The Planted Tank Forum - View Single Post - DIY Aquarium Touchscreen Controller
View Single Post
Old 11-24-2012, 04:18 AM   #86
Darkblade48
Moderator
 
Darkblade48's Avatar
 
PTrader: (3/100%)
Join Date: Jan 2008
Location: Toronto
Posts: 9,077
Default

Quote:
Originally Posted by mistergreen View Post
Don't most devices lose time if there's no power? You can attach a battery to the arduino in case it loses power. It handy so you don't have to reset all of the settings.
Yes, most devices will lose time if there is no power. The battery does not go directly to the Arduino per se, instead, the DS1307 RTC has space for a 2032 button battery, so it will be able to keep track of time even in case there is a power loss.

The 5V line in is so that the Arduino can query the IC for the correct date/time. Then you can throw it all onto an LCD (or have the microcontroller query the RTC if it requires that information, i.e. for a timer).
__________________
Anthony

A Primer to Pressurized CO2 and A Primer to Planted Tanks
Eheim Pimp #362 - Eheim 2213 x2, Eheim 2028, Eheim 2217, Eheim surface skimmer and Eheim autofeeder.
Victor Pimp #33 - HPT272-125-350-4M
Darkblade48 is offline   Reply With Quote