We will be using push buttons to change the brightness of an LED one step at a time. During the course of this little project, we will also cover de-bouncing buttons. If time permits, we will start with Serial communications.
Agenda:
1. How push buttons work
2. How to connect the buttons
3. Reading push button values
4. De-bouncing the input
5. Incrementing/Decrementing the LED value
6. Time permitting – Sending serial from the Arduino to the computer
If you cannot attend the class in person, E-Mail arduino@unallocatedspace.org and ask to be added to the Google Hangout. The hangout will be started just before class (6:45-7:00 PM).
The slides for the upcoming and previous classes can be found here. The slides are generally made during the three days before a class.
Required Items:
1. An Arduino board of some kind (Uno, Due, Mega, Boarduino, Duemilanove, etc)
2. If your board does not have USB programming built in, you will need a programmer (AVRISP, Bus Pirate, Bus Blaster, AVR Dragon, another Arduino, etc)
3. Breadboard (the long one if possible, though the small square-ish ones are okay for now)
4. USB cable for your board and/or programmer
5. Laptop with the Arduino IDE installed (Linux, Windows, or Mac)
6. Jumper wires for your breadboard
Provided Items:
1. Breadboard and jumpers (if you don’t have any of either)
2. LEDs
3. Resistors (200-1,000 Ohm)
4. Push button
Since Unallocated Space runs off of donations, we would like to mention that the recommended donation for this class is $5. It is by no means a requirement, but it does help us keep the lights on! Attendance to the space, and this class, is 100% free to all!
Related