The project is "Vending machine + Photo Booth" that is used in the events. The guests can take a gift and picture during the registration. it will make the event more professional and fantastic.
I am working at company that makes events in medical field, So I want to add this feature in the events.
Regarding photo booth, I was inspired by this idea from a big event I attended, our supplier was an Indian company that brought this photo booth. But for the machine, I searched on instructables about ideas related to the events and found this idea and it is very creative idea.
I will call this project "Umut Kalir".
Software
I used Fusion 360 for creating and assembling the design.
I divided the design into 2 parts, head and body of the machine.
I made holes in the front side of the body for the ultrasonic sensor and push button in addition to a part for acrylic.
I made holes in the back side of body for the powers.
I made holes in the base side for 2 H-Bridge.
I designed the parts inside the vending machine as the base of gift and separators between the gifts.
I included the LCD screen into the front side of the head as the mouth, and 2 RGB LEDs into the same side as eyes of the machine.
I made a circle in the base of the head to pass the wires through it, and made a neck using a set of circles.
Finally, I made an extrude and assembling for all the components and connected the parts of the design together to fit each side with the other one.
For making the holes, I used a projection after inserting all the components to get their dimensions.
Software
Machine
I used 6 sheets of MDF wood, and a part of acrylic sheet for the front side.
I started the fabrication process by importing all the dxf sketches of my design into laser cad.
I made the speed=18, and the power=70.
Then, I connected the laptop with the machine.
I checked the focus to define the origin point.
I clicked on the box button to make sure it will cut inside the wood.
I pressed on the start button
I wrote the name of the vending machine "Umut Kalir" using the laser cad in the front side and another sentence "Take Your Gift" in the acrylic part, I made the speed = 300, and the power =18.
Laser Cad
Software
for drawing the circuit diagram.
Software
for controlling in the circuit
I used Fritzing for drawing my circuit diagram before starting in wiring.
My components are:
Input components:
Push Button.
Ultrasonic Sensor Module.
Bluetooth Module.
Output components:
DC Motor.
LCD screen.
RGB LEDs.
Additional components:
Breadboard.
Arduino Uno.
2 H-Bridge (Motor Driver).
Wires.
Adapter 12V.
Adapter 5V.
Breadboard
Arduino Uno
Ultrasonic Sensor
LCD screen
DC motor
Bluetooth module
H-bridge (motor driver)
RGB LED
Push button
Wires
USB cablr
I used 2 adapter, One of them with 5V for all the components, and the other one with 9V for H-bridge (Motor Driver).
Adapter 12V
Adapter 9V
Software
Arduino IDE
I used Arduino for writing the code and uploading it on the Arduino uno using USB cable.
I divided my code into 3 parts to be more simple and tested every code alone then collected the 3 parts in one part.
the first part will show message in LCD screen with the name of the project, and another one when the guest be near to the machine, he will see a welcome message using the ultrasonic sensor.
The second part is the movement of motors when the user click on the push button.
The third part is RGB LEDs connected with Bluetooth module.
At first, I added a library for LCD screen
Then, I declared the trig and echo of LCD and distance to use it un the ultrasonic sensor.
I declared the 4 motors with 2 directions.
Then, I declared the RGB LEDs, I used 3 pins only because the Arduino pins were completed.
I declared character variable with initial value = 0 for Bluetooth module.
In the setup part, I defined the outputs and inputs and used randomseed for randomise part between dc motors when the user click on the push button.
At the void loop, I used equation for making the distance be with cm, and used if condition, if the distance >= 20, the LCD will print msg "Umut Kalir"
and the second line will show "maker diploma s22"
While the distance < 20, the LCD will show a welcome msg "Hello, take your gift".
I defined the speed of the motors = 130.
Then declared the push button with integer type.
I used if condition, in case the button>800 that means that the button is off, nothing will happen, while button<800, I declared randomise variable to make a random choise from the 4 motors once the guest press on the push button.
And here I used If condition to use one of 4 motors and made randnumber equal the pins number for motors.
Here the part of RGB LEDs with Bluetooth module.
if incoming data==1 that is mean you press on the button no.1, the red color with blue one will show.
When you click on button no.2, red with green will show.
When you click on button no.3, red with another color that is mix between green and blue will show.
When you click on button no.4, green with blue will show.
When you click on button no.5, both of eyes will be green.
When you click on button no.6, the eyes colored will disappear.
Firstly, I connected the LCD screen with Ultrasonic sensor to show msg in the screen when you near to the sensor
Then, connected the 4 motors together with push button. When you click on the button. it will move one of 4 motors randomly.
Then, I collected the components together before putting them inside the body
I collected the MDF parts (Front side, right and left side, and the base) and acrylic part together., then I used the nails to be stable.
Then, I collected the inside parts (Base of gift and separator) with the back side.
Then connected the springs with the motors.
Then put my components inside the body.
I didn't found springs, so Eng. Saeed told me to use tv wire "سلك دش" and make it a spring.
My team mate Abd elrahman helped me to weld the wires that connect with RGB LEDs using welding machine.
I helped my team mate Khodary to make the back side in her design.
As usual, I asked Eng. Menna a lot :D, and I want to thank her because she helped me alot in this journey and she really smart instructor and experienced in the electronics particularly.
She sent an article to help me make the randomise part because I tried a lot but there was a line that I missed it, It was using randomSeed that it was the first time I know it randomSeed(analogRead(0));
I will add the photo booth part to be more attractive for guests as I said before.
I will add QR code for registration.