Project b8 bounceless switches – Elenco XP&trade User Manual
Page 42
-41-
Use the same circuit as project B7. Load the program
Bounceless Switches into the microcontroller (U21)
using the programming instructions in project B1. The
circuit works the same, except the LED will toggle every
time the switch is pressed. The “switch bounce” problem
has been fixed.
Part B. Try swapping the positions of the press switch
(S2) and the 1k
Ω
resistor (R2). Now the red LED
changes when the press switch is released instead of
when the switch is pushed.
Sometimes hardware cannot be changed but the
software (program) can. How could you change the
flowchart program to make the LED toggle when the
press switch is released using the original circuit?
Snappy knows how.
Project B8
Bounceless Switches
Optional:
The “switch bounce” problem
was fixed here by adding a
0.1 second pause before the
microcontroller checks if the
switch was pressed.
To make the LED toggle
when the press switch is
released, change the input
pin 3 tests (from 1 to 0 or
from 0 to 1).
- Upgrade Kit SC100 to SC300 (76 pages)
- Snap Circuits Jr.® Educational 100 Exp. (48 pages)
- Upgrade Kit SC300 to SC500 (64 pages)
- Snap Rover ® (24 pages)
- Snap Circuits LIGHT ® (84 pages)
- Snap Circuits Extreme® Educational 750 Exp. (88 pages)
- Projects PC1-PC73 (60 pages)
- Electronics 202 (132 pages)
- Snaptricity® (92 pages)
- Upgrade Kit SCROV10 to SCROV50 (48 pages)
- Snap Circuits Green ® (80 pages)
- C Adapter for Snap Circuits® (2 pages)
- Motion Detector Kit (20 pages)
- Digital Roulette Kit (16 pages)
- FM Wireless Microphone Kit (12 pages)
- AM Radio Kit (32 pages)
- AM Radio Kit (36 pages)
- AM/FM Radio Kit (64 pages)
- Circuit Maker Skill Builder 125 (64 pages)
- Circuit Maker Sound Plus 200 (80 pages)
- Understanding Logic Gates (16 pages)
- Understanding Logic Gates and Circuits (42 pages)
- Tumbling Robot (12 pages)
- Solar Energy (16 pages)
- C2D Scope (16 pages)
- 288x Astrolon Telescope with Aluminum Tripod (1 page)
- Simulated Frog Dissection Kit (1 page)
- Talking Galaxy Planetarium with Night Light (1 page)
- Night’n Day® (10 pages)
- Radio Controlled Black Widow (1 page)
- Handheld Microscope (2 pages)
- Water Filtration Kit (8 pages)
- 6-in-1 Solar Kit (18 pages)
- Microscope Set in Carrying Case (1 page)
- Mobile 20 Telescope (1 page)
- Mechanical Drum (20 pages)
- Aerial Screw (20 pages)
- Swing Bridge (20 pages)
- Printing Press (24 pages)
- MultiBarrel Cannon (20 pages)
- Armored Car (24 pages)
- Paddleboat (20 pages)
- SelfPropelled Cart (20 pages)
- Catapult (24 pages)