GoGo Clock Module

GoGo Clock Module

This small add-on module gives you the ability to write programs that are aware of the date and time. For example, you can tell your creation to water the plants or feed the fish everyday at 5.30pm. If you create a door alarm system, you can record the date and time when the alarm is triggered. 

The module keeps the clock running even when you turn off the gogoboard by using power from a single coin battery. According to the clock's specs, the battery should last for "years". There is a "heart beat" button on the module which will blink an LED once a second indicating that the clock is still ticking. 

Logo Commands

clockon Turns on the clock. Usually unneccessary. When the module looses power (i.e. the battery is removed), you need to re-enable the module with this command. If the heart-beat LED blinks when you press the button on the module, it means the module is enabled and you don't need to use this command.
day reports the current date (1-31).
month reports the current month (1-12).
year reports the current year (two digit number. I.e. 11 = 2011).
hour reports the current hour (0-23)
minute reports the current minute (0-59)
second reports the current second (0-59)
dow reports the day-of-week (1-7)

Example Program

; this program will beep at the beginning of each hour
to hourlyBeep
forever [ 
if minute = 0 and second = 0 [ beep ]
wait 10
]
end
  
; This program will show the date and time on the 
; 16x2 character display module everytime sensor1
; is pressed
to showTimeWhenPressed
forever [
if sensor1 < 100 [
show day
show "/"
show month
show "/"
show year
show " "
show hour
show ":"
show minute
show ":"
show second
]
wait 10
]
end

Requirements

GoGo Board Version 4.0 or newer
GoGo Board Firmware version 12 or newer

Setting the Clock on First Use

The first time you use the clock or if your clock looses it's battery power, you will need to set the date and time. This is done by synchronizing with your computer time. Once the module is connected to the gogoboard, open the gogo monitor software and go to the Add-ons tab. There you will find a button that allows you to synchronize your time. 

Download the Tech Files

The current version is 1.0

gogoclockPCB1.0.zip The KiCAD PCB source
gogoclockGerber1.0.zip The manufacturing files
gogoclockPCB1.0.PDF A PDF version of the PCB layers
Bill of Materials The component list required