The Project is about a normal vending machine that serves snacks and sweets.
After having a long hard-working day, you always need your quality time and it's the best when it comes to "Netflix and Chill"
It's inspired by the slogan of Netflix that represents the "Chill" part and the whole idea of having a great movie with your favorite snack.
I used Fusion 360 started by drawing all parts of my vending machine with T-Slots by sketches.
I have front side with many details for LCD screen, 2 push buttons, coin space & acrylic part.
I have 3 sides (right, left & middle) with slots only.
I have base with holes for Arduino & 2 H-Bridge.
I have back with holes for the 2 DC Motors.
I prepare all my design on laser work by import all sketches to DXF files.
My project needs 6 sheets of Plywood.
All my design was cutting only on speed 13 & power 75 no need for scanning.
I used also acrylic sheet for the front of vending machine.
Finally i sprayed my project with black color.
Laser Works
Fabrication
Acrylic
Assemble
I used Fritzing application, it was my first time to use it, it was so easy.
I used 2 H-Bridge one of them for 2 DC motor & the other for LED RGB strip.
Output Components:
DC Motors
LCD with i2c
RGB LED Strip
Input Components:
IR sensor
Push LED buttons
Others:
Arduino Uno
Breadboard
Wires
Motor Drivers (H-Bridge)
Adapter 12V
Arduino UNO
Breadboard
DC Motor
Motor Driver
LED Strip
IR Sensor
LCD
Push LED Button
The power source for my vending machine is 12V adapter.
Because i have RGB LED strip that needs 12V to work throw H-bridge.
And i have 2 DC motor works throw another motor driver.
Also there is LCD, ir sensor & 2 push led buttons taking 5V from arduino.
I used Arduino Program to insert code to Arduino Uno
First of all i verify the LCD screen.
Then, i create instance for the 2 push buttons (Yellow & Blue), 2 DC Motors & IR sensor.
After that mention Void to select movie from two types.
I identify the Serial.begin (9600) for Arduino, then the pin mode for all my inputs & outputs components.
The last thing of the code is Void loop, it means if condition; so i said if you insert coin the screen shows to you the two types of movies after selection you will wait 2 seconds then you get your candy and the screen will show "Have a nice Movie"
but if you press any button without inserting the coin the motor couldn't move.
I started to test each component individually to check that everything is okay.
Then check all the jumpers with Avometer to be safe while working.
After that combine each 2 component together like; 2 DC motor with H-Bridge then adding 2 push buttons after that LCD screen, in the end i added IR sensor & LED strip.
In the End i collect all of them in the the box to try to arrange all wires as far as i can.
I asked for feedback & my instructors (Amany & Ibrahim) helps me.
While i was making my design, i didn't plan to make a top for my vending machine because i didn't want to close it for refilling
But my instructor Amany gave me an idea to make a top with hinges to be opened.
Michael helped me with the an idea & practically to create motor connecting with the spiral wire.
Michael gave me an idea for rolling wire by using hammer hand for my vending machine.
I faced more than problem:
When i was making design on fusion 360, i used offset for every side to make slots... i used to make offset 3.2mm & then took from them for the slot & forgot to make more space so that they didn't break for each other as shown in the first picture.
Due to breaking some pieces the back of my vending machine wasn't enough connected each other,, Mohamed Adel helps me to make slot extension to hold perfectly as shown in the second picture and really it was perfect.
After finishing my project i faced an issue in my code & Mohamed Tarek helps me to fix some mistakes.
The last problem that my LCD screen was faded while testing full project when i used Adaptor 12V but when i used USB it was perfect.... Mohamed Adel discovered that in the back of the screen there is something you can roll it with screw (blue) it can control the fading of the letters on the screen.
I need to have more than 2 movie types.
I need to have access control with a money value.
I need to have mobile controller like Siri (In IPhone).