Build a Pinball Machine

Build a fully functional pinball machine with 4 networked Arduinos: Control, Audio, Lights, Score, with this code and my free E-book.

Oct 30, 2017

17026 views

15 respects

Components and supplies

3

Arduino UNO

1

Arduino Mega 2560

Project description

Code

functions.ino

arduino

This is a “tab” file for PinballControl_14.ino. It maps each of the switches to the set of functions that it has to initiate.

names.ino

arduino

this is a “tab” file for PinballControl_14.ino. It defines: the pins allocated to each of the switches; pins that are outputs to device coils; game control constants.

PinballControl_14.ino

arduino

This controls the game. Its triggers are the rollover switches on the playfield and the switches in the devices such as pop bumpers, targets etc. It causes coils within the devices to be energized and also triggers, via 12C comms, actions such as light and sound sequences which are controlled by the slave Arduinos.

PinballAudio_01.ino

arduino

This is from Spark Fun Electronics 2011 and written by Nathan Seidle

Addscore_03.ino

arduino

This takes receives a number over I2C and displays it on the pinScore 7 digit display

names.h

arduino

This is a “tab” file for PinballAudio_01.ino

PinballLights_08.ino

arduino

This defines a lighting sequence for each of the sets of lights on the machine

Types.ino

arduino

this is a “tab”file for PinballControl_14.ino.

functions.ino

arduino

This is a “tab” file for PinballControl_14.ino. It maps each of the switches to the set of functions that it has to initiate.

PinballAudio_01.ino

arduino

This is from Spark Fun Electronics 2011 and written by Nathan Seidle

Types.ino

arduino

this is a “tab”file for PinballControl_14.ino.

PinballControl_14.ino

arduino

This controls the game. Its triggers are the rollover switches on the playfield and the switches in the devices such as pop bumpers, targets etc. It causes coils within the devices to be energized and also triggers, via 12C comms, actions such as light and sound sequences which are controlled by the slave Arduinos.

names.h

arduino

This is a “tab” file for PinballAudio_01.ino

mp3_config.h

arduino

This is a “tab” file for PinballAudio_01.ino

names.ino

arduino

this is a “tab” file for PinballControl_14.ino. It defines: the pins allocated to each of the switches; pins that are outputs to device coils; game control constants.

PinballLights_08.ino

arduino

This defines a lighting sequence for each of the sets of lights on the machine

Addscore_03.ino

arduino

This takes receives a number over I2C and displays it on the pinScore 7 digit display

Comments

Only logged in users can leave comments

grahamasker

0 Followers

0 Projects

+1

Work attribution

Table of contents

Intro

15

0