January 31, 2013
By the end of the week it will be February and my hackerspace, MakerBar, will be on to our February theme, it’s about time. The members are talking about clock and calendar projects and there are two clock classes in the works; Raspberry Python – Talking Clock Feb 9th and ChipKIT for Organic Lifeforms: Clock Edition Feb 23th.
This then is the first clock of February, a ChipKIT Uno32 with a ChipKIT Basic I/O Shield attached. As befits a beginning this is a very simple project.
Step 1 Solder in RTC Crystal (based on instructions here)
Step 2 Attached Basic I/O Shield (got this for contest here)
// Initialize the RTCC module
// Set the time to something sensible
// Format the time and print it.
sprintf(date,”%02d/%02d/%02d”, RTCC.day(), RTCC.month(), RTCC.year());
sprintf(time,”%02d:%02d:%02d”, RTCC.hours(), RTCC.minutes(), RTCC.seconds());
//Clear the virtual buffer
//Chosing Fill pattern 0
//Turn automatic updating off
This clock will become the basis of the class project for the February 23th class, ChipKIT for Organic Lifeforms: Clock Edition. The clock in that class will not rely on this shield and will have functionality this clock does not, like setting the time, and time permitting an alarm.
Full, latest code available here.