Animated Pegboard Clock using 625 LEDs
Evil Mad Scientist, who make the Peggy 2 LED board ran a competition to design a clock using the Peggy. I proposed a subtly moving view of an analogue clock (borrowed from Victoria station in London) that follows the minute hand but shows enough of the face to see the hour hand too. I won the Peggy with my design, so decided to implement it.
It took me far too long to get it going but I have a sparkfun RTC DS1307 (dropping 5 minutes every month, avoid!) telling the [arduino compatible] onboard atmel the time. The code and image are all held in the IDE’s compilation of my probably pretty inefficient code, and it is on the limit of not working; One more variable and the stack hits the heap and it stops working.
Still, shows off what can be shown on a 25×25 2-bit greyscale display like the Peggy, and illuminates my living room enough to not stub my toes in the dark too! ….Simon
Any chance of you releasing the code for that? I’ve got a peggy 2, and would love a clock!
It would be marvelous if you could post the code, with a PayPal tag I you’d like a donation. It creates such a marvelous aesthetic. Rick
Yes, I’m happy to post the code in theory, I just need to extract it from the entrails of my broken laptop. I will post a link here in the next week or two when I get it sorted:)
I won’t be looking for a donation, but if you want to show gratitude you can always vote for me to go to space:
https://www.lynxapollo.com/en_GB/153860/simon-jelley?image=0
Have voted! Good luck, and thanks for agreeing to post the code.
Simon , were you able to get your code off the old laptop disk? Many thanks for your efforts , Rick
Any luck getting the code for the Pegboard Clock? I would really like to get this great code running again.
Hi,
I totally failed to reply when I dug this out, sorry for that.
I have got a version of the code off an old USB key. It is now at:
https://code.google.com/p/peggy2-station-clock/
Note a change to the peggy2 library for DarkLine()
Several points to note:
1. This code has been rescued from my old laptop that suffered a hard drive failure. I found it on an old USB key, so I can’t guarrentee it is the latest (or even a working version) and I haven’t got a working cable to test it on Peggy.
2. The DS1307 library I used doesn’t work anymore with arduino 1.0 onwards, in this upload I have commented all RTC code, so you need to enter the time in starttimemillis and it will run off the arduino’s crystal. Once again code is untested on peggy, but at least it compiles now! Do what you need to make it talk
3. My code is not great, I’m a mechanical engineer and arduino is just a hobby.
I’ll try to be more responsive in future, sorry again for the wait.
Simon Jelley
Many thanks. Will let you know if I am smart enough to get it running again.
Pingback: Hackerspace Tours: Cambridge Makespace | Hackaday