Buttons and switches
- ArduinoButtons done right
A button with INPUT_PULLUP, counting presses, contact bounce, debouncing with millis() and with the Bounce2 library, and telling a press from a hold
- ArduinoMany switches on few pins
A switch matrix on the Arduino: a 4 × 4 membrane keypad scanned by our own code, arrays and nested loops, ghost keys and the diodes that remove them
- ArduinoDetecting the ball
The Arduino detects the ball: a microswitch on a ramp, a hit timed with micros(), why Bounce2 misses a short hit, a tilt and a Hall sensor with a magnet
- InfoButtons and switches
Push buttons, microswitches, tilt and reed switches: how they work, wiring them to an Arduino with a pull-up resistor, and why contacts bounce.
- ProjectsUseless box
A useless box with an Arduino and an SG90 servo that switches itself off: PWM, powering a servo and reading a switch.