![]() Once that's done, run sudo hwclock -w to write the time, and another sudo hwclock -r to read the time. #3a) add "dtoverlay=i2c-rtc,ds3231" to the end of the config.txt fileĪnd # in front of the 2 lines containing -systzĭisable the "fake hwclock" which interferes with the 'real' hwclock The answer came from Gordon77 in a post below, here is my summary for future readers: I got the RTC modules from Amazon, these are the ones I am trying to use: #Ds3231 use as timer install#4) sudo pip3 install adafruit-circuitpython-ds3231 #3) sudo pip3 install adafruit-circuitpython-lis3dh #2) sudo raspi-config *enable I2C interface - raspi-config -> Interfacing Options -> I2C - > Enable #Ds3231 use as timer update#1) sudo apt-get update & sudo apt-get upgrade #Ds3231 use as timer how toI dont know if this is the problem or not or how to change it.īelow is the most concise instructions that I have managed to assemble so as to configure it: I read on an arduino forum this "If EOSC bit is set high that would stop the clock as it stops the internal oscillator." I dont know what I am missing, I have been messing around with this for a bit. IF I shut it down at say 10:22 and wait 5 min then boot up with no network connection the time will state 10:22 where it should be 10:27 I am having a problem where I am able to get the time/date to save to the RTC and it automatically reads it back on boot BUT the time does not advance when the RPI is shut down. The DS3231 real time clock communicates with the Arduino through the I2C communication, so we have included the wire library.Hello, I have a DS3231 on an RPI4 with Raspian Buster Lite. The wire library is for the I2C communication between the DS3231 and the Arduino.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |