• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

DS1307 RTC on Pi Pico doesn’t keep it’s initialization.

Q&A Forum › Category: Raspberry Pi › DS1307 RTC on Pi Pico doesn’t keep it’s initialization.
0 Vote Up Vote Down
Renaud Richard asked 2 days ago

Hi,
I cabled three DS1307 RTC on three Pico as described in module 10.4 of your book “Learn Raspberry Pi Pico/Pico W with MicroPython”
I am experiencing the same trouble with the three different Pico (W and W2) and three RTC.
After having run 10_4_1_sync_rtc then 10_4_2_rtc_display_time_oled, while still connected to Thonny, everythings fine. Actual day and time.
Then of course I named it main.py to run it out of Thonny on a mains usb and the real date is always lost for “01-01-2021 00:00:01”
This happens on any of the three Pico/RTC builts.
I reloaded from your link the 10_4_1_sync_rtc and 10_4_2_rtc_display_time_oled to be sure they were not corrupted but to no avail.
Obviously the RTC doesn’t keep it’s initialization.
Any tips welcome
Renaud

2 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 1 day ago

Hi.
Does your RTC have a battery attached? If not, it cannot maintain the time after being disconnected from the power source.
Regards,
Sara

0 Vote Up Vote Down
Renaud Richard answered 11 hours ago

Hi Sara,
Yes, all three have their batteries and they are above 3V.
Regards,
Renaud
 

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Smart Home with Raspberry Pi, ESP32, and ESP8266 V1.6 September 9, 2025
  • [eBook Updated] Learn LVGL: Build GUIs for ESP32 Projects – Version 1.5 July 7, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.