Remove these ads by
Signing Up
Remove these ads by
Signing Up
Remove these ads by
Signing Up
PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format.
You also have the ability to customize your PDF download.
We did find a bug around line 54 (I think)...
digitalWrite(LED06, LOW);
delay(30);
Should insert:
digitalWrite(LED07, HIGH);
delay(30);
...which was great, because it was that bug that made all of this click for my son. We were playing with the timing, mainly making it faster. Finally, we slowed it down to one instruction per second and noticed the one LED wasn't lighting. This allowed me to show him, line by line, each instruction as it triggered. We found the error, fixed the code, and high-fived.
Anyway, thanks for the 'ible.' And make sure to tell your dad or mom that some other random dad said you're great. Thanks for the lesson. Seriously.
Now, since im such a nice dude - http://en.wikipedia.org/wiki/File:4-Bit_PISO_Shift_Register_Seq.gif
& http://en.wikipedia.org/wiki/Shift_register
Basically you send it a load of 0s & 1s to one pin, and it sends each of them out to a dedicated pin -
So if i send the sequence 100 000 00 to my shift register on its "in" pin - the 8 outs would then be configured like this :
Pin 1 : ON(1);
pin 2-8 : OFF (0);
This can ofc be varied like you want to - Shift registers are usefull if you want to save pins :)