|
|||||||
![]() |
Forum Index > Projects > Clock Kits | ||
hacking the hour hand |
|||
| | | Printable Version |
|
Anonymous: rob | ||||||||
|
in the comments for the bulbdial post there was talk of trying to modify the hour hand behavior to mimic more closely an analog clock. |
![]()
|
||||||||
|
|||||||||
|
Windell | ||||||||
|
The way that the program works is that it normally has six LEDs lit (quickly, in sequence) at any given moment-- this is how the fading between any two values works already. So... it's pretty straightforward to do this, in terms of programming-- the tricky part is figuring out what to do. Windell H. Oskay drwho(at)evilmadscientist.com http://www.evilmadscientist.com/ |
![]() Evil Scientist ![]() Status: offline
Registered: 06/15/06 |
||||||||
|
|||||||||
|
GoatRider | ||||||||
|
I've been wanted to do this too, but haven't gotten around to it yet. Too much work programming to do leaves my programming brain too tired to tackle it. |
![]() Henchperson Status: offline
Registered: 01/12/07 |
||||||||
|
|||||||||
|
Anonymous: rob | ||||||||
|
okay, i read the source code... i see how to do it but i'm not sure how it fits with the logic of the rest of the program. meaning that i think the fade values are getting reset everytime through the loop, so just setting it in normalFades() will only cause a fade once, say, at half past the hour. |
|
||||||||
|
|||||||||
|
Windell | ||||||||
|
Okay, I've coded this* if you want to try it. I don't think the result is interesting, but I am open to suggestions. PHP Formatted Code if (MinNow == 59) // End of the hour, only: { if (SecNow == 59){ HrFade2 = SecFade2; HrFade1 = SecFade1; } } PHP Formatted Code HrFade2 = MinNow; // The hour hack itself:HrFade1 = 63 - HrFade2;
Windell H. Oskay drwho(at)evilmadscientist.com http://www.evilmadscientist.com/ |
![]() Evil Scientist ![]() Status: offline
Registered: 06/15/06 |
||||||||
|
|||||||||
|
Anonymous: rob | ||||||||
Quote by: WindellOkay, I've coded this if you want to try it. I don't think the result is interesting, but I am open to suggestions.
|
|
||||||||
|
|||||||||
|
Windell | ||||||||
|
>well first i have to get the development env up and running. Windell H. Oskay drwho(at)evilmadscientist.com http://www.evilmadscientist.com/ |
![]() Evil Scientist ![]() Status: offline
Registered: 06/15/06 |
||||||||
|
|||||||||
|
Anonymous: rob | ||||||||
Quote by: Windell>well first i have to get the development env up and running.
|
|
||||||||
|
|||||||||
|
karlgg | ||||||||
i'm thinking now that the only way to accomplish this nicely is to give up the second hand, repurpose it as the minute hand, and use the current minute hand as the hour hand. i'll have a hack on this as soon as i clear my other projects...
I think I am, therefore I am... I think |
![]() Mad Scientist ![]() Status: offline
Registered: 01/25/09 |
||||||||
|
|||||||||
|
Anonymous: rob | ||||||||
Quote by: karlgg i'm thinking now that the only way to accomplish this nicely is to give up the second hand, repurpose it as the minute hand, and use the current minute hand as the hour hand. i'll have a hack on this as soon as i clear my other projects...
|
|
||||||||
|
|||||||||
|
polossatik | ||||||||
Quote by: rob Quote by: karlgg i'm thinking now that the only way to accomplish this nicely is to give up the second hand, repurpose it as the minute hand, and use the current minute hand as the hour hand. i'll have a hack on this as soon as i clear my other projects...
|
![]() Apprentice Status: offline
Registered: 01/21/10 |
||||||||
|
|||||||||
|
driverblock | ||||||||
|
I got the half-hour hack working. I started a new thread here: |
![]() Apprentice Status: offline
Registered: 04/25/11 |
||||||||
|
|||||||||
|
Anonymous: Robert | ||||||||
|
This is a perfect example of a "gotcha". |
|
||||||||
|
|||||||||
|
Windell | ||||||||
|
It's actually not "confusing." Once people realize that it's digital, they get the idea pretty quickly. Windell H. Oskay drwho(at)evilmadscientist.com http://www.evilmadscientist.com/ |
![]() Evil Scientist ![]() Status: offline
Registered: 06/15/06 |
||||||||
|
|||||||||
|
|
| All times are PDT. The time is now 11:43 AM. |
|
|
Octolively
Interactive LED kits
Meggy Jr RGB
LED matrix game
development kit.
Business-card sized
AVR target boards
Peggy 2
LED Pegboard kits