Arduino workshop plan
The Arduino workshop plan for the 2026/27 school year: which lesson is done at which workshop and in which month, with a short description of each lesson.
Safety and basics
Chapter 0Safety in the Arduino workshop
We work like engineers — we plan, build, measure and test
Chapter 1Electric circuit - basic concepts
The basics of an electric circuit: what current, voltage and resistance are, their units, and how to measure them with an ammeter, voltmeter and ohmmeter.
Lesson 1.1Arduino, electronics and building your own devices
From your first electric circuit and C++ program to devices, automation and your own printed circuit board.
Lesson 1.2Review of electronics basics and measurement
Connect, measure, check: electronics basics through real components and hands-on experiments
Arduino inputs and outputs
Chapter 2Arduino - step by step
An automatic light like a fridge light: push button, NPN transistor and LDR, then an Arduino that reads the light on A0 and dims an LED with PWM.
Lesson 2.1Voltage divider, Arduino and PWM
From measuring the voltage on a potentiometer to an LED that warns when a threshold is crossed
Lesson 2.2Traffic lights for cars and pedestrians
The Arduino controls a traffic light for cars, a pedestrian light and a sound signal, and our own function keeps the program short and easy to read
Lesson 2.3Two traffic lights at a crossroads
Two Arduinos talk over a wire: traffic light A controls the crossroads, B listens and reports when it has stopped, and with millis() both notice a fault.
Inputs and time
Chapter 3Buttons 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
Lesson 3.1Reaction 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
Lesson 3.2Many 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
Lesson 3.3Detecting 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 an infrared break-beam
Lights, cards, servos, sound
Chapter 4LED matrix and MAX7219
An 8 × 8 LED matrix with the MAX7219 chip on the Arduino: multiplexing, our own send function with shiftOut(), a picture, an animation and scrolling text
Lesson 4.1Chained matrices
Two matrices in a chain and how a message travels through them; measuring the current with a multimeter; a scrolling score with the MD_Parola library; the MAX7219 also drives single LEDs.
Lesson 4.2RFID cards
The RC522 RFID card reader: reading a card's number (UID) and a list of known cards, the 3.3 V supply, voltage dividers on the signals and a short look at SPI.
Lesson 4.3SG90 servo
The SG90 servo: a positional servo turns to the angle set by a potentiometer, and a continuous one spins. A separate 5 V supply and a common GND.
- Winter break
Project: arcade gadget
A small project of your own: an arcade gadget made from the buttons, buzzer, matrix, cards and servo of the earlier lessons.
Lesson 4.4Sound: DFPlayer
Sound effects and music with the DFPlayer Mini module, with a recap of tone().
Lesson 4.5Two Unos over I2C
Two Unos talk over I2C: one sends events, the other drives the lights, the servo and the sound.
Power and coils
Chapter 512 V power supply
A 12 V supply: choosing a safe source, the voltage with and without a load, a fuse, a common GND and measuring the current.
Lesson 5.1Transistor and relay
A transistor and a relay as switches for bigger currents, and the flyback diode that protects the transistor when a coil switches off.
Lesson 5.2MOSFET and solenoid
A MOSFET switches a solenoid: how long the pulse lasts, how long it may stay on at most and how warm it gets.
Lesson 5.3Flipper on a test bench
A flipper on a test bench: a strong pulse for the hit, then PWM to hold it up.
Designing the pinball
Chapter 6How a pinball works
How a pinball machine works: choosing a theme, a cardboard prototype and the first 3D prints.
Lesson 6.1Playfield layout
The playfield layout at full size: the slope, the flippers, the ball's paths and the places for the diverter, the lamps and the card reader.
Lesson 6.2Rules as a state diagram
The pinball machine's rules and game modes as a state diagram.
Lesson 6.3Architecture: 4 Unos
The pinball machine's architecture: four Unos, the list of inputs and outputs, sharing out the pins and the current, and four teams.
Lesson 6.4KiCad: driver board
In KiCad we draw the coil driver board as a shield for the Uno, then order it or build it on perfboard.
Build and program
Chapter 7PlatformIO and cabinet
PlatformIO and a project with several files; work on the pinball cabinet begins.
Lesson 7.1Flippers
Flippers: the teams fit their coils and program them with the buttons.
Lesson 7.2Switches
The playfield switches: the matrix, the break-beams and the tilt report hits to the main Arduino.
Lesson 7.3Slingshots
Slingshots: a switch fires a coil that kicks the ball away.
Lesson 7.4Lamps and display
The pinball machine's lamps and display: the score, pictures and playfield lights through MAX7219 chips.
Lesson 7.5Sound and servo mechanisms
Sound effects and music, and the servo mechanisms on the playfield, such as the diverter.
Lesson 7.6Soldering the boards
Soldering practice and putting together the pinball machine's boards.
Lesson 7.7The whole game
The whole game: player cards, high scores in EEPROM and a service mode.
Lesson 7.8Playtesting and tuning
Connecting all the parts of the pinball machine, playtesting and tuning.
Finale
Pinball tournament
Showing the pinball machine and a pinball tournament.