BlueWave Studio forum
  • Login
  • Register
  • Login Register
    Login
    Username:
    Password:
  • Home
  • Help
  • View Today's Post
  • More
    • BlueWave Studio
    • Shop
User Links
  • Login
  • Register
  • Login Register
    Login
    Username:
    Password:

    Quick Links Home Help View Today's Post
    More
    • BlueWave Studio
    • Shop
    BlueWave Studio forum OpenAuto Pro Real Time Clock (RTC) Support for DS1302?

    Support for DS1302?
    EtzBetz
    Offline

    Junior Member

    Posts: 1
    Threads: 1
    Joined: Jan 2021
    Reputation: 0
    #1
    01-19-2021, 06:32 PM
    Hello,

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


    Greetings,
    Raphael
    BlueWave
    Offline

    Administrator

    Posts: 2,750
    Threads: 64
    Joined: Jun 2019
    Reputation: 67
    #2
    01-19-2021, 07:27 PM
    OpenAuto Pro itself does not talk to RTC module. You need to check Raspberry PI OS capabilities and compatibility with DS1302 RTC.
    interzen
    Offline

    Junior Member

    Posts: 25
    Threads: 0
    Joined: Nov 2019
    Reputation: 2
    #3
    01-20-2021, 07:59 AM (This post was last modified: 01-21-2021, 01:19 AM by interzen.)
    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: https://github.com/sourceperl/rpi.rtc

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

    #to set the rtc from system clock
    ds1302_set_utc

    # 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
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)



    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Help · BlueWave Studio · Shop

    Copyright © bluewavestudio.io. All rights reserved.

    Linear Mode
    Threaded Mode