Notification

Icon
Error

Clock
Bodwad
#1 Posted : Monday, June 25, 2012 8:39:34 AM(UTC)
Rank: Tinkerer

Joined: 6/25/2012(UTC)
Posts: 5

Was thanked: 1 time(s) in 1 post(s)

Hi everyone, just getting into gadgeteer and making myself an MP3 player / BGM system. Doing well so far until I came across the lack of a clock. I have decided to try and make a clock module, its going to be a steep curve as I dont know much electronics but I like a challenge :oD


First question that I thought was....has anyone made one before? Can anyone recommend a IC I can use? Unfortunately I cant garantee an internet connection so I cant use online time keepers :o(


Thanks


Paul

Architect
#2 Posted : Monday, June 25, 2012 9:00:35 AM(UTC)
Architect

Rank: Gadgeteer

Joined: 11/23/2011(UTC)
Posts: 43

Thanks: 3 times
Was thanked: 3 time(s) in 3 post(s)
Are you talking about RTC? What Gadgeteer main board are you using?
Bodwad
#3 Posted : Tuesday, June 26, 2012 3:33:20 AM(UTC)
Rank: Tinkerer

Joined: 6/25/2012(UTC)
Posts: 5

Was thanked: 1 time(s) in 1 post(s)

Hello thanks for your help :o)


Unfortunately an RTC wont work for what I need. I need a proper clock function. For example I want a user to set a timer to play between two times of the day. E.g


Between 12:00 and 14:00 you can play a lunchtime BGM playlist. Then between 14:00 and 18:00 you could play an afternoon playlist. To do this I would need a clock capable of keeping track of the GMT time and date.


I know that I will need a battery to keep the clock running while the system is not plugged in, I will also need a IC clock chip that has onboard memory.


I am currently using the FEZ Spider board and will be receiving a Cerberus in the next few weeks :o)


 


Paul

RorschachUK
#4 Posted : Tuesday, June 26, 2012 4:02:58 AM(UTC)
Rank: Tinkerer

Joined: 4/19/2012(UTC)
Posts: 7

Architect is right, that's a Real Time Clock (RTC), which Spider supports, you just need to connect a suitable coin-cell battery on socket 2, perhaps using the Extender module to connect the battery between ground and pin 5 on socket 2 (the Z socket). Search TinyCLR for this, there's plenty of posts about it there. Spider would then keep track of the time when not powered up. Lots of electronics suppliers carry suitable 'holders' for the battery, e.g. http://www.sparkfun.com/products/783 - no IC clock chip needed.

Kerry H
#5 Posted : Wednesday, June 27, 2012 2:28:11 PM(UTC)
Kerry H

Rank: Admin

Joined: 11/22/2011(UTC)
Posts: 80

Thanks: 8 times
Was thanked: 5 time(s) in 5 post(s)

RorschachUK's answer is probably the easiest route if your mainboard has a built-in RTC.  Some mainboards may not have this function - for those mainboards, another approach would be to connect your device to the Internet and query a date/time service. 

-- K

Kerry Hammil
Microsoft Research
Bodwad
#6 Posted : Friday, June 29, 2012 3:29:27 AM(UTC)
Rank: Tinkerer

Joined: 6/25/2012(UTC)
Posts: 5

Was thanked: 1 time(s) in 1 post(s)
Thanks for the replies everyone. Very much appreciated.

Because I dont know what board I will eventually be using I have decided to have a go at creating my own module using I2C. Its good practice and we already have a couple of trial chips coming our way.

When it fails I will resort to using the onboard clock :oP. Probably with a new board as I will blow up my existing one lol.

Thanks again, will keep the forums advised and release the control should I be successful :o)

Paul
Rss Feed  Atom Feed
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.085 seconds.