About this document ...
Lab 1 - Buttons and Lights
4. Four buttons:
- Load demo4. This time, use a cable to connect the Port B and PB/LED
headers.
- Connect the speaker on your board to pin D5. Run a jumper from the
Port D header to your breadboard, and then plug the blue wire from
the speaker into the same row as the jumper. Connect the black wire
from the speaker to ground.
- You should hear a beep when you press the buttons.
- Try inserting a pause between turning on the LED and playing the beep.
At what point does the delay become noticeable? What if the beep comes
before the light?
- Try finding the minimum noticeable debounce time as in #3 using only
the beep as feedback. Is it different?itemize
About this document ...
Lab 1 - Buttons and Lights
4. Four buttons:
Copyright © 2003-09-21