Nick's Pong Clock, Arduino and Sure 2416 panels advice
hi all, newbie both these forums , arduino in general go easy on me 
i built pong clock going instructions on nick's blog (http://123led.wordpress.com/about/) , has gone swimmingly. made few adjustments design code near enough code verbatim. i'd add functions (like dimming panels after 10pm) finding difficult decipher guts of sketch. know of threads can find more information regarding controlling these panels? i've read few posts of wesfw these forums , know laid down lot of groundwork libraries nick's clock uses
tia, hope right section

i built pong clock going instructions on nick's blog (http://123led.wordpress.com/about/) , has gone swimmingly. made few adjustments design code near enough code verbatim. i'd add functions (like dimming panels after 10pm) finding difficult decipher guts of sketch. know of threads can find more information regarding controlling these panels? i've read few posts of wesfw these forums , know laid down lot of groundwork libraries nick's clock uses
tia, hope right section
hi, , welcome !
since admit being newbie might worth checking out info on pwm brightness control of leds since that's how these displays work. place start jeremy blum youtube tutorial, here: http://youtu.be/_lccgfsmor4 give basic concept if don't have covered.
the displays have brightness level capability, work you. sketch clock uses in fade functions here:
so can see using constant defined in ht1632 library ht1632_cmd_pwm , adding intensity value 0 (off) 15 (max brightness) can set brightness of panels. bit's pretty straightforward.
now need work out intensity want run things (presuming default 15 daytime running) , intensity works night mode (that require testing i'm thinking) , add function sets intensity values desired. like:
and want drive clock brightly, use
hope can need here, cheers !
geoff
since admit being newbie might worth checking out info on pwm brightness control of leds since that's how these displays work. place start jeremy blum youtube tutorial, here: http://youtu.be/_lccgfsmor4 give basic concept if don't have covered.
the displays have brightness level capability, work you. sketch clock uses in fade functions here:
code: [select]
/*
* fade_down
* fade display black
*/
void fade_down() {
char intensity;
(intensity=14; intensity >= 0; intensity--) {
ht1632_sendcmd(0, ht1632_cmd_pwm + intensity); //send intensity commands using cs0 display 0
ht1632_sendcmd(1, ht1632_cmd_pwm + intensity); //send intensity commands using cs0 display 1
delay(fadedelay);
}
//clear display , set full brightness again we're ready plot new stuff
cls();
ht1632_sendcmd(0, ht1632_cmd_pwm + 15);
ht1632_sendcmd(1, ht1632_cmd_pwm + 15);
}
/*
* fade_up
* fade display full brightness
*/
void fade_up() {
char intensity;
( intensity=0; intensity < 15; intensity++) {
ht1632_sendcmd(0, ht1632_cmd_pwm + intensity); //send intensity commands using cs0 display 0
ht1632_sendcmd(1, ht1632_cmd_pwm + intensity); //send intensity commands using cs0 display 1
delay(fadedelay);
}
}so can see using constant defined in ht1632 library ht1632_cmd_pwm , adding intensity value 0 (off) 15 (max brightness) can set brightness of panels. bit's pretty straightforward.
now need work out intensity want run things (presuming default 15 daytime running) , intensity works night mode (that require testing i'm thinking) , add function sets intensity values desired. like:
code: [select]
/*
dim or return displays full brightness
*/
void dimtheclock(boolean dimit) {
char intensity = 15; // level full brightness
if (dimit) intensity = 8; // choose value suits taste this
ht1632_sendcmd(0, ht1632_cmd_pwm + intensity); //send intensity commands using cs0 display 0
ht1632_sendcmd(1, ht1632_cmd_pwm + intensity); //send intensity commands using cs0 display 1
}
}and want set clock display dim, call code: [select]
dimtheclock(true);and want drive clock brightly, use
code: [select]
dimtheclock(false);hope can need here, cheers !
geoff
Arduino Forum > Using Arduino > Project Guidance > Nick's Pong Clock, Arduino and Sure 2416 panels advice
arduino
Comments
Post a Comment