Introduction: Tabletop Pinball Machine Using Evive- Arduino Based Embedded Plaform
Another weekend, another exciting game! And this time, it’s none other than everybody’s favorite arcade game - Pinball! This project will show you how to make your very own Pinball machine easily at home. All you’d need are components from the evive Starter Kit, some laser-cut parts, colors and papers to decorate your machine, and a lot of DIY-ing! So, bring your mates along, put on your DIY-ing caps, and ready, set, DIY!
Step 1: Supplies
Step 2: Understanding the Design
As you already know there are a number of components in a pinball that makes the game interesting. Thus, let's understand the design of the structure that we will be preparing. Some of the components are MDF cutouts and some are 3D printed whose design you can find below.
Note: You can make the pinball out of cardboard sheet too but MDF will give it more durability.
We will need the following components for the Pinball Machine
- The Control Panel
- The Supports (x 2)
- The Score Walls (x 4)
- The Base
- The Boundary Walls (x 2)
- The Front Wall
- The Extra Wall
- The Launch Wall
- The Drain Wall
Once you have these parts and the 3D printed let’s begin!
Step 3: Making the Playfield Beautiful
Playfield is the area where the entire game of Pinball is being played. Also, all the components will be placed on the playfield thus, it is suggested to decorate the base in the first step(only if you want to).
We are going with the space theme thus, have glued a beautiful space image on the base plate. Once you have glued the paper to the base, make sure that you make the holes on the paper that were on the base plate.
Step 4: Attaching the Boundary Walls
Take both the left boundary wall and the right boundary wall and attach it to the base plate using M3 nuts and bolts(as shown in image 1).
Once done, take the front wall and attach it to the base plate and left boundary wall(as shown in image 2). We will not be attaching the front wall to the right boundary as the space left here is to make the Launchpad. Launchpad is nothing but the corridor from where we will be launching or shooting our ball into the playfield.
Step 5: Assembling the Launchpad and the Drain
Now, let’s make the launchpad and the drain. Launchpad as you already know is the place from where we launch the ball into the playfield. The drain is the place which ends the game i.e. once the ball reaches the drain, it can no longer return to the playfield in that chance. Also, the ball in the drain rolls down and ends up in the launchpad. Now, that we know what is what, let’s start their assembly.
Take the extra wall and attach it to the front wall and the base plate(as shown in the above image 1).
Now, take the drain wall and attach it to the extra wall and the left boundary. You may notice that the drain wall is a bit slant which makes it easy for the ball to roll down(as shown in the above image 2).
Once done, attach the launch wall parallelly to the right boundary wall on the base plate. Make sure you leave some space between the extra wall and the launch wall. This space will act as the gate between the drain and the launchpad(as shown in the above image 3).
Step 6: Attaching the Score Walls
The score wall or the target walls. These are the walls that will make you score better. Whenever the ball passes through the first and the third wall, 500 pts are added into your total score. And if the ball passes through the center wall you’ll earn 1000 pts.
Thus, attach the score walls on the base using M3 nuts and bolts.
Step 7: Attaching the Back Boundary
Now, we need to secure the back wall so that the ball does not go off the playfield even when we shot the ball real hard. We have used a foam sheet to make the back wall.
Cut the thick foam sheet and glue it to the base plate and the boundaries using Hot Glue.
Step 8: Attaching the Supports and the Incline Wall
Now, the basic playfield is almost ready, it’s time to add support to the pinball machine. Take the two support plates and fix it on the base plate as shown in the above figure 1in using M3 nuts and bolts. Adding supports will give inclination to your pinball machine.
There is just one small thing remaining that is the corner. You may notice that a small corner is formed near the interaction of the left boundary wall and the drain wall. There are chances that the ball may get stuck here. Thus, we will be adding the incline wall, whenever the ball reaches this corner, it swiftly rolls to the drain.
With this, our playfield is ready.
Step 9: Adding the Motors
You may notice that the playfield in pinball is never empty. There are tons of elements that are present on the playfield to make the game interesting. Out of which one is the flipper and the other is bumper.
Bumpers are the one that rotates continuously pushing the ball away in any random direction. Thus, attach 3 DC motors near the top boundary using M3 nuts of 20mm length and bolts.
Now, its time to add the flipper motors. Flipper motors will be attached towards the draining end. Will discuss what flippers are in the next step. Till then remember, they are the ones who can save you.
Note: Before mounting the motors, test them using evive's firmware. Open the firmware menu, select Controls, select motors, select M1 or M2 depending where you have attached the motors.
Step 10: Attaching the Limit Switches
Flippers are the ones that are under your control. They redirect the ball into the playfield after you press the corresponding button. Thus, we do not want the flippers to rotate 360degrees. We will restrict the flipper movements using limit switches. You may notice small curves near the drain area this is where we will be fixing our flippers. Now, we will two tactile switch for each flipper. Attach them to the end of the curve. As soon as you press the button, the flipper DC motor will start rotating, as soon as the flipper touches the upper limit switch, the DC motor starts rotating in the opposite direction bringing the flipper down. Now, the motor stops rotating as soon as flipper touches the bottom limit switch until the control button is pressed again.
Repeat the same process for the other side too.
Step 11: Mounting the IR Sensors
We know why we call the small walls the score wall, but how will they know that the ball just passed through them. We will add IR sensors for the same. In total, we will be adding 5 IR sensors.
- One at the launchpad
- Three for the score walls
- One at the drain
As soon as the ball passes through the IR sensor of the launchpad, the game begins.
Now, the IRs at the score walls is to notice the number of times the ball passes through the score walls.
Finally, the IR at the drain indicates that the game is over(image 2).
Note: Before mounting the IR sensors test the sensors using evive's firmware(Pin State Monitor). Also, if they aren't responding well try calibrating them.
Step 12: Adding the Control Buttons and the RGB Strip
First, let’s add the control buttons. Control buttons are the ones that will control the movement of flippers. We have two arcade switches and have attached them onto the control panel in the holes given.
Once done, take the RGB LED strip and attach it on the boundaries of the playfield. We will change the color of the RGB strip showing the status of the game. The RGB should turn green whenever a new game starts and should turn red when the game ends. Also, it should change each time the ball passes through the score walls.
Step 13: Adding the Launcher
Now, its time to add the launcher or the plunger. The launcher will help you launch your ball into the playfield through the launchpad. We have 3d printed the launcher to which we have attached the rubber band. The end of the rubber is attached to the front wall and the left boundary wall. The more you pull the launcher, the more force will be transferred to the ball.
Step 14: Attaching the Control Panel
Once you have your plunger attached and wires to the sensors, attach the control panel on top of the playfield using M3 nuts and bolts.
Step 15: Time to Add the 3D Printed Parts
Lets first add the side lane walls, these will direct your ball to the flipper if the ball enters the lane.
As we already know the use of the bumper. Fix them on the free shafts of the DC motors.
Time to add the flippers, fix the flippers on the shaft of the DC motor. Also, make sure that the flippers fit nicely in the curves given.
Once done, let's attach some kickers. Kickers are those that propel the ball horizontally into the playfield whenever ball touches it, Attach 3 standoffs each side and wrap rubbers around them.
With this, your entire assembly of the pinball is complete.
Step 16: Making the Connection
- Connecting the IR Sensors
- Score 1 IR Sensor(signal pin) to Digital Pin 8 of evive
- Score 2 IR sensor(signal pin) to Digital Pin 9 of evive
- Score 3 IR sensor(signal pin) to Digital Pin 10 of evive
- Drain Wall IR sensor(signal pin) to Digital Pin 11 of evive
- Launchpad IR sensor(signal pin) to Digital Pin 12 of evive
- Now connect VCC and GND of all the IR sensor to VCC and GND of evive
- Connect the RGB LED strip to Digital Pin 13 of evive
- Left Flipper Motor to M1 port of evive
- Right Flipper Motor to M2 port of evive
- Connect the “NC” terminal of Left Side Flipper Switch to Digital Pin 2 of evive and 10K ohm resistor, and connect another end of 10k ohm resistor to GND of evive, also connect “COM” terminal of Left Side Flipper Switch to VCC of evive
- Similarly, connect the “NC” terminal of Right Side Flipper Switch to Digital Pin 3 of evive and 10k ohm resistor, and connect another end of 10K ohm resistor to GND of evive, also connect “COM” terminal of Right Side Flipper switch to VCC of evive
- Connect all the 3 Bumper motors in parallel and connect its one end to VVR(+) pin and another end to “COM” terminal of Relay, then connect “NO” terminal of the relay to VVR(-) pin of evive
- Connect “NC” of Left Side Limit Switch(Up) to VCC of evive and COM terminal to Digital Pin 4 of evive and to GND via 10K ohm resistor
- Connect “NC” of Left Side Limit Switch(Down) to VCC of evive and COM terminal to Digital Pin 5 of evive and to GND via 10K ohm resistor
- Connect “NC” of Right Side Limit Switch(Up) to VCC of evive and COM terminal to Digital Pin 6 of evive and to GND via 10K ohm resistor
- Connect “NC” of Right Side Limit Switch(Down) to VCC of evive and COM terminal to Digital Pin 7 of evive and to GND via 10K ohm resistor
Step 17: Time to Code
We are going to write code in PitoBlox, a Scratch 3.0 based programming software. Upload the following script to evive.
Step 18: Conclusion
With this, your DIY Pinball machine is ready. Get. Set. Pinball!
Participated in the