Lab3
Practice with LEDs and buttons.
Ok. So now you have some expertise in creating circuits with LEDs and buttons. We are going to take a break from learning about new hardware, to just practicing our skills a bit. You can do one of two projects.
Option 1: 7 Segment LED.
A 7 segment display is shown above. I have 4 of them I can loan out. So if you are one of the first 4 to ask, you can do this option. Or you can buy one for under $2 at a local Radio Shack. The packaging comes with a wiring diagram. Basically, you treat it as 7 LED lights. You need a transistor for each light. You can ask me for more details. If you need more resistors let me know.
Part 1
Get the LED to display 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 repeatedly. (points = 80)
Part 2
Get the LED number to advance for each button press (+ 20)
Option 2: Simple Simon – 2 LEDs 2 Buttons
Remember that Simon Game where you needed to repeat an every lengthening pattern? You can implement something similar with 2 LEDs and 2 buttons. This requires some programming ninja, but the hardware side should be straight forward.
A full implementation is worth 100 points plus extra credit. Additional credit for games the speed up as the pattern lengthens.