BlueWave Studio forum
Support for DS1302? - Printable Version

+- BlueWave Studio forum (
+-- Forum: OpenAuto Pro (
+--- Forum: Real Time Clock (RTC) (
+--- Thread: Support for DS1302? (/thread-2349.html)

Support for DS1302? - EtzBetz - 01-19-2021


I have an DS1302 RTC laying around here, is it possible to get support for that as well?


RE: Support for DS1302? - BlueWave - 01-19-2021

OpenAuto Pro itself does not talk to RTC module. You need to check Raspberry PI OS capabilities and compatibility with DS1302 RTC.

RE: Support for DS1302? - interzen - 01-20-2021

I have the ds1302 working. I will search for the links I found and post more info tomorrow.

Actually I tracked them down tonight Smile

Here is the best option I found:

Here are my install notes:
RTC Support
mkdir ~/code
cd ~/code
git clone
cd rpi.rtc
sudo apt-get -y install python3-rpi.gpio
sudo python3 install
chmod +x ./scripts/ds1302_get_utc ./scripts/ds1302_set_utc

#to set the rtc from system clock

# to set system time from rtc:
sudo date -s ./scripts/ds1302_get_utc
#there should be backticks around ./scripts/ds1302_get_utc but the forum software stripped them out

#you can also use this instead:
sudo date -s $(ds1302_get_utc)

# to set the time automatically from rtc at boot run:
sudo crontab -e
# and add the following at end (EDITED 1/20 with what I have in my crontab):
@reboot date -s $(/home/pi/code/rpi.rtc/scripts/ds1302_get_utc)

Hope that helps