I'm lazy...
I wanted a simple way to get an 80 Hz square wave so I could duplicate the Analog Discovery 2 project I posted above. I could then use the square wave to study the charge and discharge of a 10k, 0.1 ufd RC circuit.
Analog Discovery 2 is my preferred method, the 555 timer is pretty good and I could do a better job with less parts using an 8 pin uC. But all I want is the square wave..
One line of code for an Arduino and it's done! The boilerplate setup() and loop() stuff is created by the IDE
void setup() {
tone(2,80); // the only line of code I wrote
}
void loop() {
}
[/font]
Works fine...
The 555 is a handy gadget and worthy of study but when all you want is the answer, maybe the Arduino is a better choice.