Page 1 of 1

I2C Communication between DS3231 and STM32 BluePill

Posted: Thu Oct 12, 2023 6:51 am
by simijames
Hi,

I am new to STM32 and using STM32 blue pill module. I got a semester project to interface RTC module DS3231 with the Blue pill board.

We need to design an alarm clock but that's another story, currently I am stuck at the interfacing of rtc module with stm32.

I want someone to guide me properly how to get data from the rtc module and display on the LCD. MY RTC module is giving some response but its not correct, just random values.

I got some help from Google i.e. I am following this tutorial for I2C communication https://www.theengineeringprojects.com/ ... stm32.html and I think its working correctly, if someone want I will share the code.

Next I have connected STM32 with the RTc module using this one: https://how2electronics.com/stm32-ds323 ... lock-oled/ its actually what I want to design but here RTC is sending weird data.

I will provide more details on demand.

Have a good day.

Re: I2C Communication between DS3231 and STM32 BluePill

Posted: Thu Oct 12, 2023 3:29 pm
by GonzoG
Have you tried any DS3231 library ??