Lesson Plan: Week 3
In Week 3 we will do the following (please, click on the Segment links below to access the course materials):
Segment 2:
|
Homework 2: Make a binary counter that can be increased and decreased with two buttons.
Goal: Make a binary counter that can be controlled with two buttons. One button counts it up, the other down. If you want to go above and beyond (i.e. be awesome), add a third button that resets the counter to zero. Set-up: The starting point for this homework are the EEawesome videos 5 and 6 about the binary counter and using switches as input devices. We strongly recommend to plug this together before coming to class since it takes some time to get the counter set-up. Once the counter is working, add the two buttons. Programming: Start out with the sketches provided with the eeawesome videos. When programming the Arduino, conditionals (IF statement) are needed to read the two buttons out. If that is a mystery, check out our Intro to Programming videos. Helpful info: Intro to Programming videos, EEawesome videos about buttons, binary counter and LEDs To get credit: The working set-up must be demonstrated to the instructors/TAs by end of the class on the due date. |