Do you like my hacking? If so, please consider leaving something in the
Current contents:
EUR85 (about $113.9), some lint and a button.
The software is written to enable the user to configure the clock at run-time using only two buttons: the '+'-button increases the current setting, the 'adv'-button saves the current setting and allows one to setup the next.
If the microcontroller is fresh from the programmer, the firmware doesn't yet know what the hardware looks like, so stuff like the type of fan and the angles the hands are on should be set up first. After that, the user can input the current time and after that's confirmed, the clock will start running.
The software mainly works by using three interrupts: the first one kicks in 500 times a second and is used for button debouncing and keeping time. The second one is dynamically adjusted to kick in 60 times per rotation of the fan and handles the showing of the hands by enabling and disabling the three colors of the RGB-led. The third one kicks in every time the fan generates an RPM-pulse. When that happens, the microcontroller will evaluate the speed at which the rotation-timer happens and adjust it when necessary.
The software for the clock is written in avr-gcc and released under the GPL v3, so if you want, you can modify it to display a clock on anything rotating quickly enough. If you come up with something interesting, please let me know!
Video of the led-fan-clock in action:
What a kick ass ! you should become a scientist, keep up !
Hey, sprite: Why dontcha dig into that tip jar and get some proper schematic capture software? ;) j/k I love hand-drawn schemo's! BTW, this and all your other projects are great! Keep up the good work!
Nice, I want one too, but since your using a tricolor led, wouldnt one piece of white paper suffice. Itd just reflect whatever colour the led is spitting out when its going. Save on some config time since all hands have same offset.
Congratulations - i love this idea - very nice indeed!
In order to drive more than 1 LED, I used 2N7000 FET instead of BC560. Could this be a problem as it is not fast enough? Thanks!
Hello。I am from China.and got this link from google.and I like this idea very much.and I try to built this project on a breadboard.and I got some problem.would you pls HELP me .and I seach the copyright message and not find you email address.would u pls sent email to me :shsteve @vip.163.com ,this way I can sent emai to u .thank very very much .
Peter: Please mail me, the address is linked in the copyright message underneath the page. Debugging in the comments can be a bit hard :)
Hi, I've seen a few ATMEL projects before on the net but none compels me to actually dive into it. But this one got me hooked. So, I start getting all the tools, programmer, attiny2313, software, components, etc, and follow the instructions and built this project on a breadboard. This is my first ATMEL chip project. I turned the thing on and the LED (I used a RGB LED) emit 3 colours (RGB), after few seconds, it blink and then it is off. A few seconds later, it start blinking in green every second. My fan doesn't show anything. I check and confirm pulses are coming in from the Fan but there are no pulses coming from attiny to drive the LED; only on and off. What am I doing wrong here? Please HELP!!
I thougt it was going to flicker a bit, nothing at all!
Awsome projects.... dont get tired of reading your articles. A+