Fading. It is also hard.Without programming, it is possible but it is not efficient. The circuits aren't small. In fact, most fading circuits use large capacitors that take up space. Not pleasing.
Put these two together and it is extremely tough
In the end, I must subject to programming.
To be specific,
Open source Arduino programming.
By building this project, pupils will learn how Pulse Width Modulation works by correctly using an Arduino, a computer and a breadboard with LEDs. They will also learn how inversion is caused when sinking and sourcing is switched.
Update: I changed the code a bit. It now fades a bit faster and a bit better and smoother to view. If you downloaded the code look again at the code.
Remove these ads by
Signing UpStep 1What You Need.
6 LEDs (possibly more.)
Jumper Wires
Breadboard and/or protoboard
| « Previous Step | Download PDFView All Steps | Next Step » |













































Also, did you sink and source?
I will now rework the code.
int x = random(1, 7)
to get a random number, and list all of the combinations the lights could be, and use the number gotten from the result of the random function to randomly select one of the combinations (and yes I know that that would only be capable of choosing only 6 possible combination of something like 30 to 36.)
:-)
I will try that.
are you going to order another atmega, or get a new arduino?
The EEPROM seems busted...the TX LED stays on all the time.
I will have to run the Command Prompt to see where it doesn't work.
Very cool I did it and it works!!!!
Thanks!