PINBALL MACHINE

Project Ideation

1- Tell us about the idea of your project. Why do you care about this? What were you inspired by? Include images and videos of similar projects

I was insane about this game when I was young so I decided to make it at final

Pinball is an arcade game in which a ball rolls and is propelled inside a specially designed cabinet known as a pinball machine, hitting various lights, bumpers, ramps, and other targets depending on its design. The game's object is generally to score as many points as possible by hitting these targets and making various shots with flippers before the ball is lost

Project Construction

2- Explain the CAD process of your project. How did you use the software to design your project? (List the softwares/tools/materials...etc that you used)

softwares :

fusion 360

cura ultimaker

lassercad


designing process

at first i started with the base simple 30 *40 cm with t slots

then I draw the tabs and the t-slouts to make the body well fixed in the base

the front was 15*40 cm

the right side was 15*30 cm

I imagine the parts and draw it

the ground made to complete the shape and hide the components and the same base dimentions

AFTER sketching I extruded to 3.2 mm

then I join them together

now the shape is completed

for playing field draw this part

then I started to join the parts to the body and extrude circle for the fan after making projection on it


i made edit at joints because something was wrong but now perfectly fit

i drawthis part to hold the playing field part

i started to insert lcd screen and the arduino - limit switchs - push button -solenoid and leds from grabcad website and made projection to make the components fit into the body

the final shape for the machine

cura

I downloaded the arm file then import it to cura and slice it

after slicing the part was 2h 5m_25gram _20 infill_0.2draft then clicked on save to disk

then I took this parts to cura and start slice

lasercad


I uploaded all the parts to lassercad to start print

it took 2h35min_30gram_20infill_0.2draft

3- Explain the fabrication process of your project. How did you use the machine to fabricate your project? (List the softwares/tools/materials...etc that you used)

tools

fabrication :

3d printer

3d printer

red pla

purple pla

laser cutter machine

mdf 3.2 mm thickness

screw and bolts



now the machine finished the parts the I close it

after saving the part I go to the lap and upload the file on sd card then takeit to the machine and start to upload the red filment first then uploading the file


WhatsApp Video 2022-09-28 at 8.15.45 AM.mp4

it took 2h25m_30g

WhatsApp Video 2022-09-28 at 8.15.37 AM.mp4

then after one day i printed the arms

I changed the color into purple then upload the code into the machine and waited for 2h5min and the part was ready with no supports

laser cutter :


at first i open the machine then box the sheet after uploading the dxf file

Project Electronics & Power Management

4- Describe your electronic circuit. What are the input and action components? What is the function of each? How do the components integrate together to form your smart system? (List the softwares/tools/components...etc that you used)

TOOLS

  • servo motor : should make the arm revolve 180 degree to push the ball

  • solenoid : at start point it push the ball

  • LED : change it's color during the movement of the ball

  • limit switch : when the ball hit it it give a point

  • IR sensor : sense the motion of the ball when it's become near to lose

  • LCD screen : show the msgs if the ball hit a point or lose one chance from 3 or game over

  • jumpers for connection

  • arduino uno

  • breadboard

  • push bottons

circuit wiring :

SOFTWARES

arduino IDE


tinker cad


IMG_5273.mov
IMG_5273.mov

on tinkercad I put all the components

and started to connect the circle together then i write the code

at first : i connected the 2 sensors : the 2 pins vcc and ground to the board

1 pins to the arduino

  • second :servo

the 2 pins vcc and ground to the board

1 pins to the arduino

  • the LEDs : i connected the postive with arduino the negative with the ground the leds will light during servo rotating

  • the push bottons for servo to start

5- What is your power source? How did you select the suitable power source for your project? (List the softwares/tools/components...etc that you used)

i used 2 power adaptors :

  • 9v for the arduino :

because arduino takes small volt from 5 -9 so this resson i choose 9 v

  • 12v for the solenoid

because linear solenoid takes 12 v

Project Programming

6- Describe the code of your project. How did you program each function of the project?

at first i put them on tinker cad then choose blocks the servo on pin 3

and the led on 6 as output

11 is the push botton

the servo on pin 5

and the led on 8 as output

12 is the push botton

the second sensor will be on when the ball hit it so it gave game over

and the leds will be on if the sensor is on score will increase point else will be low



first I uploaded the lcd library

then put the servo library

then the solinoid on pin 4 as out put


the servo on pin 3

and the led on 6 as output

11 is the push botton

the servo on pin 5

and the led on 8 as output

12 is the push botton


is the servo on the leds will light else the leds will be off

then we go to the sensor part

if the sensor is on score will increase point else will be low

the second sensor will be on when the ball hit it so it gave game over

and the leds will be on


Project Integration & Testing

7- Demonstrate with text and visuals how did you integrate the project’s modules together? What are the testing results? (Include a Demo video separately, showing a proof of functionality)

IMG_5273.mov

at first I tried the circuit and make sure that all components are working before puttin them in the design

collection

I started to collecting the printed parts to the base and make sure that they are fixed well .

with screw and bolts i fixed the red parts

i connected the first them together

it took so long

after collection

after colleting the parts

the ball on the ground


final look

the screen shows the text

IMG_7717.mov

the solenoid hit the ball on start

WhatsApp Video 2022-10-07 at 12.28.05 AM.mp4
WhatsApp Video 2022-10-07 at 12.28.22 AM.mp4

Sharing & Collaboration

8- Did you ask for feedback? What are the ideas that others have contributed or suggested? What was someone else’s idea that you built upon? How did you help your peers? How did your peers help you?

Ahmed atef and Abdelrahman has helped a lot. Firstly, in the coding part, I was intending to have both inputs from the servo motor and IR sensor to make the motion of the ball in the ground I have developed a code for the latter; unfortunately, the code has worked but there was a confusion between both readings, so i reduced it to only IR , but they helped me a lot to make the code perfect .




Overcoming Challenges

9- When you got stuck, what/who did you turn to? At what point did you have to pause to research or learn more before moving on? What are some mistakes, pitfalls, or challenges that others can avoid if they were doing this project?

the base was bigger than the sides and never fit ,

I wasn't know what to do with the joints but my insturactor helped me step by step we made offset to the base then extruded the addition parts

after that we joined them together then extruded again to the taps

then we make sure that all parts are fit well



the second problem i faced i wasn't know how to include libraries but Abdelrahman helped me the solution was to choose libraries then mange libraries


Future Work

10- If you had more time, what is one thing you would change/ Do next in your project?

I would make it to be controlled through a Bluetooth module and pc , and I would add more limit switchs make it more perfect.




Final Project Design Files