Thursday, April 17, 2014

Circuit #5 Push Buttons Notes

Goal: Use push buttons for digital input

Floating - When the digital pin is disconnected from everything. Is the pin HIGH or LOW? Hard to say because there's no solid connection to either 5 volts or ground. The pin can be read as either one.

Pullup resistor - To deal with the above issue, connect a small resistor (10k Ohm) between the pin and 5 volts. This ensures the pin will have a weak connection to 5 volts and will be read as HIGH.

Vilros Ultimate Starter Kit Tutorial Sketches 1-12

No comments:

Post a Comment