

Overview
01My role
I led the project and completed most of the engineering work, including the system design, the simulation, the 3D models, the electrical design, the firmware and the testing. Teammates assisted with circuit board layout and routing, and with assembly.
The game
The machine is a single-ball game on a standard 20.25 in by 45 in playfield. The player completes four side quests, each of which raises a 3D-printed Louie the Cardinal one level up a flag pole. Completing all four sends Louie to the top of the pole.
System architecture
- A PC runs the game rules and drives the scoreboard on the backbox monitor.
- An Arduino Mega reads the switches, fires the coils, and operates the ball lift and Louie's winch.
- A Teensy 4.1 on a custom board drives the playfield lighting.
- A custom 48 V driver board switches the coils for the flippers, slingshots and pop bumpers.
- Two supplies provide 48 V for the coils and 5 V for the lighting, sensors and logic.
Use of AI
I used AI tools to cover areas where I did not have prior experience. The most important part of this was providing the correct information. The simulation gave real dimensions for the playfield, and that data was used with AI assistance to create the CNC files and the laser-cut parts. The playfield features were also designed in simulation, and the 3D print files were generated from those models. We measured the purchased parts ourselves, including the pop bumpers, flippers and buttons, and supplied those measurements so that the design matched the actual hardware.
Simulation
02
Approach
The machine was designed in simulation before anything was built. The table was created and played in Visual Pinball X, with the game rules written in the Mission Pinball Framework. The same rule code that runs the simulated table is intended to run the physical machine.
Video
The table
The table has two flippers, two slingshots, three pop bumpers, a ramp on each side that returns the ball to its own inlane, three stand-up targets, three nest targets, a six-stall starting gate across the top, and Louie on his pole in the center. The table is generated from a single layout file, so the simulation, the playfield artwork, the CNC drawing and the 3D model all come from the same dimensions.
Game logic
The rules are written as modes in the Mission Pinball Framework:
- Side quests. Four side quests: the left ramp, the right ramp, the stand-up bank and the nest. Each raises Louie one level, and all four light one of four Cardinal lights.
- Fly Louie Fly. Four Cardinal lights start a 30-second double-scoring mode.
- The Derby. The starting gate selects three horses that race as the player scores.
- Thunder. Completing the stand-up bank gives a random award.
- Ramp combinations, a crowd meter, lane lights and a ball save.


What the simulation tested
- Game logic. The rules were tested by playing the simulated table.
- Physics. Test tables fire balls and record the results: plunger strength, whether each ramp can be made from each flipper, lane widths and the playfield incline.
- Ball stuck locations. A test script dropped a large number of balls onto different locations on the table and recorded where each one came to rest. Any ball that did not drain marked a location where a ball could become stuck, and the table was corrected at that location.
3D design
03Cabinet
The cabinet is 3/4 in plywood. The backbox holds the monitor, the PC and the speakers, and the lower cabinet holds the power supplies and the circuit boards. The panels were nested onto plywood sheets to produce the CNC files.


Playfield and features
The playfield drawing carries every hole and slot the CNC cuts. The features that stand on the playfield were modelled as individual parts: both ramps, the starting gate, the apron, the ball trough and lift, the nest, Louie and his pole, and a holder for every light.


3D printing
04Scope
The parts were printed on a Bambu Lab P1S and a MakerBot Sketch Sprint. Parts that take direct impact from the ball are Tough PLA, and the remainder are standard PLA.
Ramps
Each ramp is longer than a printer bed, so it is divided into sections that fit: four for the left ramp and six for the right. The sections are joined and supported as follows:
- Splice plates. At each joint, a plate sits outside both walls of the channel. Flat-head screws are inserted from inside the channel so that the ball passes over flush heads.
- Posts. Printed posts stand on the walls below the ramp and hold its floor at the correct height.
- Brackets. Four brackets fasten the left ramp to the cabinet wall, and screw ears at the mouth of each ramp fasten it to the playfield.
- Sensor pockets. A pocket on each side of the return holds one half of an infrared beam pair, so that only a ball that completes the ramp is counted.




Other parts


Electrical design
05Coil supply
The coils are rated for 48 V, which is standard in pinball machines, so the coil supply is 48 V.
I sized the supply from the duty cycle of the coils, which is set in the firmware. I analyzed the worst case, with every coil firing at once, and calculated the continuous current draw from the duty cycle. A 30,000 µF capacitor bank is connected in parallel with the supply to prevent the voltage from sagging during short, high-current pulses. The analysis showed that a 500 W supply with this capacitor bank is adequate.
Solenoid driver redesign
The solenoid driver we inherited from the prior team was based on a published design for an Arduino-controlled pinball machine. That design uses optoisolators to separate the Arduino from the coil supply, which prevents electrical noise from the coils from reaching the Arduino. The published design notes that without isolation, firing one pop bumper would often trigger the others. I kept the isolation in our design.
When I reviewed the inherited schematic, I found a problem with how the MOSFET gates were driven. All of the channels shared one resistor between the 12 V supply and the gates, so the gate voltage dropped as more channels turned on: about 3.7 V with one channel on and about 2.2 V with two. A pop bumper coil needs about 3.2 V at the gate to carry its full current, so when two coils fired at the same time, neither MOSFET turned on fully.
In the new design, each channel has its own gate divider supplied from the 48 V rail. This keeps every gate at 12 V regardless of what the other channels are doing.
Gate voltage
The white line marks the approximately 3.2 V a pop bumper coil requires at the gate. Inherited values are calculated from the schematic.
Protection
The coils are among the most expensive components in the machine. Each driver channel has its own fuse so that a fault on one channel cannot damage its coil.
Lighting
The LEDs are powered directly from the 5 V supply. They are driven by a separate controller, a Teensy 4.1, because their data signal requires precise timing that would interfere with the Arduino's work of reading switches and firing coils.
Circuit boards
I designed a seven-channel 48 V driver board and an LED controller board in Altium. Both were fabricated, then assembled and tested by hand. Teammates assisted with layout and routing.




Wiring diagrams
The wiring schematics were drawn in KiCad, with one sheet for each subsystem: power, the solenoid drivers, the coil wiring, the Arduino connections and the LED controller. The switches and sensors are wired directly to the Arduino Mega.


Programming
06Overview
The software is divided into three parts: the game rules, which run on the PC in the Mission Pinball Framework, and one firmware program for each controller. The code was developed with AI tools.
Mission Pinball Framework
The Mission Pinball Framework is open-source software for running a pinball machine. A game is written mostly as configuration files, not as a conventional program.
- Machine configuration. One file lists every switch, coil and light with a name and a number. The rest of the game refers to the hardware by name.
- Events. The framework is event-driven. When a switch closes, it posts an event with that switch's name, and the game responds to events.
- Modes. The rules are divided into modes, each in its own folder. A mode starts and stops on events and defines what it scores, which lights it controls and which events it posts in turn. This machine has modes for the base game, the side quests, the wizard mode, the Derby, the Thunder award and the ramp combinations.
- Hardware independence. The same configuration runs against simulated hardware, the Visual Pinball X table or the physical machine. Only the platform setting changes.
The following lines are from this machine's configuration. They name a pop bumper's switch and coil, instruct the controller to fire the coil when the switch closes, and award points for the hit.
switches:
s_pop_1: {number: 2}
coils:
c_pop_1: {number: 2, default_pulse_ms: 25}
autofire_coils:
ac_pop_1: {coil: c_pop_1, switch: s_pop_1}
variable_player:
s_pop_1_active: {score: 100, crowd: 2}
Arduino Mega firmware
The Arduino Mega connects the PC to the hardware. The PC decides the rules, and the Mega reads the inputs and drives the outputs. Its program runs a single fast loop that performs the following tasks:
- Read the switches. Each input has its own pin. A change must remain steady for a few milliseconds before it is accepted, which removes contact bounce.
- Report changes to the PC. Each change is sent over USB using LISY, a standard pinball protocol that the Mission Pinball Framework supports.
- Fire coils on command. The PC sends a coil number and a pulse length, and the Mega switches that driver channel on for that time.
- Respond locally where speed matters. Sending a flipper press to the PC and back would add delay. At the start of a game the PC gives the Mega a set of rules, such as "when the left flipper button closes, turn on the left flipper coil," and the Mega applies them itself in about one millisecond. The pop bumpers and slingshots work the same way.
- Operate the mechanisms. The ball lift is a timed servo sequence: raise, hold and lower. Louie's winch moves a stepper motor to one of five heights and finds its bottom position with a home switch at power-up.
The firmware includes two protections for the coils. The PC sends a signal every half second, and if those signals stop, the Mega turns every coil off. In addition, no coil other than a flipper may remain on for longer than 100 ms, so a software fault cannot hold a coil on until it overheats.
Teensy 4.1 firmware
The LED controller's program is short. The PC sends a complete list of colors for the lights over USB many times per second, and the Teensy sends those colors down the LED chain with the precise timing the LEDs require. It makes no decisions of its own.
Bill of materials
07Summary
Every part in the machine is listed on a single bill of materials with its part number, vendor and price. Fasteners were counted from the holes in the 3D model. Parts already owned or donated, including the PC, the flipper and pop bumper assemblies and the servo, are listed separately.
| Subsystem | Lines | Cost |
|---|---|---|
| Power distribution | 18 | $262.54 |
| Game control | 3 | $38.09 |
| Input and sensing | 7 | $188.53 |
| Solenoid drive | 10 | $52.41 |
| Playfield mechanisms | 8 | $138.62 |
| Cardinal toy | 1 | $14.99 |
| Lighting | 4 | $39.89 |
| Structure | 8 | $275.30 |
| Purchased parts | 59 | $1,010.37 |
Construction
08CNC
The playfield and the cabinet panels were cut on a CNC machine from the CAD drawings. The playfield is cut from one panel, with holes for the light inserts, switches, posts, pop bumpers, the drain and the ball lift, and slots for the flippers and slingshots.

Laser cutter
The clear light inserts were cut from 1/4 in acrylic and the playfield plastics from 1/16 in acrylic on a laser cutter.



Assembly


Testing
09LEDs
Each playfield light is a WS2812B RGB LED in a printed holder beneath a clear insert. The tests confirmed that the LED controller board can set an LED to any color, and that two LEDs on one data line can hold different colors.
Solenoid driver
The PC sends a command, the Arduino pulses a driver channel for 30 ms, and the coil fires from the 48 V supply. The channels were tested one at a time. Six channels across two boards were verified, which covers both flippers, both slingshots and two pop bumpers.

Ball lift
A ball placed in the lift breaks the infrared beam. The Arduino raises the lift, holds it while the ball rolls off, and lowers it. The ball was detected and lifted on every trial on the bench.

Mechanisms
10Ball lift
A drained ball comes to rest lower than the shooter lane, so it cannot roll back without assistance. It passes under the playfield and is lifted back up.
- The apron directs the drained ball to a 1-1/4 in hole.
- The ball drops into a printed trough under the playfield. The floor of the trough slopes toward the lift.
- The ball rolls onto the lifter. An infrared beam across the housing signals the Arduino that a ball is waiting.
- A servo turns a gear approximately 148 degrees. The gear drives a rack on the back of the lifter and raises the ball 2.6 in through the playfield.
- The top of the lifter is sloped, so the ball rolls into the shooter lane and onto the plunger.
- The servo lowers the lifter for the next ball.


Louie's lift
Louie indicates the player's progress. Each completed side quest raises him one level on a 4.9 in flag pole.
- Louie is a printed figure on a sleeve that slides on the pole.
- A string is attached to the back of the sleeve. It runs up inside the pole, over a pin at the top, and down a second bore.
- The string passes through the playfield to a printed spool on a stepper motor.
- Winding the spool raises Louie. Unwinding it allows gravity to lower him.
- The spool turns 1.8 times over the full 3.6 in of travel, which is divided into four levels. A home switch gives the Arduino the bottom position.




Outcome
11Delivered
The project delivered a complete design for the machine and a working version of each major subsystem:
- The assembled cabinet and playfield, presented at the capstone design showcase.
- A full simulation of the game, playable from start to finish, with the scoreboard and sound.
- Game rules and controller firmware, developed with AI tools.
- Two custom circuit boards, the LED controller and the 48 V solenoid driver, assembled and tested.
- A working ball lift mechanism.
- A CNC-cut playfield and cabinet, and the 3D-printed parts.
- Complete schematics, 3D models and a bill of materials.
The remaining step is the final integration of the subsystems on the playfield. The project documentation includes a list of recommendations for the team that continues the work.