{"id":5902,"date":"2024-01-31T19:53:28","date_gmt":"2024-01-31T14:23:28","guid":{"rendered":"https:\/\/electrocredible.com\/?p=5902"},"modified":"2024-03-23T18:17:26","modified_gmt":"2024-03-23T12:47:26","slug":"raspberry-pi-pico-rtc-ds1302-micropython","status":"publish","type":"post","link":"https:\/\/electrocredible.com\/raspberry-pi-pico-rtc-ds1302-micropython\/","title":{"rendered":"Raspberry Pi Pico RTC DS1302 Tutorial- MicroPython Code"},"content":{"rendered":"\n

This tutorial will guide you to interface the DS1302 RTC with Raspberry Pi Pico W using MicroPython code.<\/p>\n\n\n\n

A real-time clock or RTC is an integrated circuit that can keep time. It consumes very little power and can run for years on a coin battery. RTCs are an important part of everyday electronics and help to keep time even after a device is powered down. <\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

The RP2040 microcontroller that powers Raspberry Pi Pico features an inbuilt RTC. However, the development board does have the feature to power the RTC without powering the board.<\/p>\n\n\n\n

The inbuilt RTC resets on reboot and requires to be constantly powered to keep time. As Raspberry Pi Pico boards consume a few milliAmperes of current, it becomes impractical to use the inbuilt RTC in battery-powered projects. <\/p>\n\n\n\n

Related:<\/em> How to Power Raspberry Pi Pico with Batteries – Li-ion, 9V, 12V, AA, AAA Examples<\/a><\/p>\n\n\n\n

\n
\n

Table of Contents<\/p>\nToggle<\/span><\/path><\/svg><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n