Pinball machine
- 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
- ArduinoReaction game
A reaction game on the Arduino: a state machine with switch and case, a random wait with random(), timing with millis() and sounds with tone() that don't wait
- 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
- ProjectsPinball
We build a tabletop pinball machine with Arduino together: buttons, ball sensors, coils, lamps, an LED display and sound, part by part in the workshops.