Realtime Clock in Arduino: Difference between revisions

From Open Source Ecology
Jump to navigation Jump to search
(Created page with "<html><iframe width="560" height="315" src="https://www.youtube.com/embed/E6wkvTG2Ofs" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyrosc...")
 
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Internal=
Arduino has an internal clock. Is shut down if Arduino loses power. Can use 3.7 battery for power. Library is RTC.h.
https://www.arduino.cc/en/Reference/RTC
Power draw for Arduino on standby on 3.7V is about 20ma. So uses about 1.5Whr every 24 hours.
See more about [[Relays#Power Draw]]
=External=
<html><iframe width="560" height="315" src="https://www.youtube.com/embed/E6wkvTG2Ofs" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></html>
<html><iframe width="560" height="315" src="https://www.youtube.com/embed/E6wkvTG2Ofs" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></html>
Module is cheap - [https://www.amazon.com/HiLetgo-AT24C32-Arduino-Without-Battery/dp/B00LX3V7F0/ref=asc_df_B00LX3V7F0/?tag=hyprod-20&linkCode=df0&hvadid=312400581241&hvpos=&hvnetw=g&hvrand=9151307232354017007&hvpone=&hvptwo=&hvqmt=&hvdev=c&hvdvcmdl=&hvlocint=&hvlocphy=9023315&hvtargid=pla-576374083857&psc=1]

Latest revision as of 07:13, 19 March 2021

Internal

Arduino has an internal clock. Is shut down if Arduino loses power. Can use 3.7 battery for power. Library is RTC.h.

https://www.arduino.cc/en/Reference/RTC

Power draw for Arduino on standby on 3.7V is about 20ma. So uses about 1.5Whr every 24 hours.

See more about Relays#Power Draw

External

Module is cheap - [1]