I2C Communication between DS3231 and STM32 BluePill

Post here first, or if you can't find a relevant section!
Post Reply
simijames
Posts: 1
Joined: Thu Oct 12, 2023 6:42 am

I2C Communication between DS3231 and STM32 BluePill

Post 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.
GonzoG
Posts: 403
Joined: Wed Jan 15, 2020 11:30 am
Answers: 26
Location: Prudnik, Poland

Re: I2C Communication between DS3231 and STM32 BluePill

Post by GonzoG »

Have you tried any DS3231 library ??
Post Reply

Return to “General discussion”