A months ago, I thought to learn programming for arduino and arduino application through a project. So looking through projects I saw online, i thought to read data off the anemometer sensor (similar to the project in http://www.hackerscapes.com/2014/11/anemometer/) which made use of the adafruit anemometer, arduino uno. However, by improving same project, I integrated the RTC 1307 and ethernet shield with SD card to read/write date, time and wind speed onto the SD card at 10 second interval with header on csv. This was successful using separate code from datalogging library, rtc library and anemometer code from http://www.hackerscapes.com/2014/11/anemometer/. However, I noticed the following;
1-If the entire Arduino module with rtc and ethernet shield is powered off for a while (with cmos present), it retains the last date and time when powered back on and even when I uncomment the script to adjust the time to now, it still remains same except i pull out the cmos and run the code. Any reason for that?
2-Is it possible that the rtc with cmos present keeps reading date/time even when power on the module is off such that when power is restored, date/time continues…Any suggestions
2-Based on the aforementioned, I am looking to see if the code will fully achieve the function to read/write date, time and wind speed effectively at ten minutes interval-delay(600000)
windspeed_datalogging.ino (5.39 KB)