Main Menu

Secondary Menu

Lemonade Machine

Introduction: Lemonade Machine

Hello and welcome to my Lemonade Machine instructable.

This is a fun project I made for my schoolwork "If This Then That". I made this arduino project because I was to lazy to go to the kitchen to get myself a drink. So if you had the same problem than you are on the right page.

With the lemonade machine you don't have to decide which drink you have to pick because it will pick it for you. And for the people that like a bit of fun, with the timer you will have to make your drink fast and set a record for yourself and friends. I you will enjoy this tutorial and that it will come to good use.

Step 2: Getting Started

Start by saw your wood to get 12 small pieces (14x7 cm) and 4 wide pieces (14x14). Use 3 of the small pieces to make a hole about 4 cm wide.(check your tap for the correct measure, you will need to fitt the tap in the hole later)

Use your wood glue to glue the pieces together to create a box with a hole. So now you will have a open box consisting of 3 (14x7) piece of which two have a hole to put the tube in between, the 4th piece you need to scrub the sides to make it slide in better.

Put the tub in between the holes and use super glue or wood glue to glue them

You can now close the lid by slidding the other wood piece in

Ad the tap at all 3 boxes and you should have it done like the last picture in the slide

Step 3: Testing Arduino With 123D Circuits

Now we will create our aurduino in 123d circuit or thinkercad. First build the circuit as shown in the first image.(see first image) Next set up a servo and a 7 segment display as shown in the rest of the pictures.

Step 4: Setting Up the Code

Now we need to set up the code. So the main loop, loops through all the different function.

So first we have the melody that plays then the arduino waits for a button to be pressed. When the button is pressed the 3 LED's will start flashing one by one. When the button is pressed again the LED that was on is saved and will flash meanwhile the servo will wave (if you made a sign). This will go on for as long as you make this function last. Next the timer starts to count up until you press the button again to end the whole sequence. So the melodie plays again and arduino waits for you to press the button.

Step 5: Creating Your Lemonade Machine

So with this part we will start to put the things together by using tin out of sight on the back side of the lemonade machine. Spread the components apart by a great distance. Use long strips of tin to connect the 5 volts and the ground to all the connected cables. Next extend every outlet that needs to go to either a digital pin or an analoge pin with a long cable to reach the arduino that will be located on the upper side of the whole lemonade machine. Make sure to tape all the wires down so they won't touch eachother electrical currents.

*Tip

Label all wires that go to either analog or digital pins with the numbers of those digital/analoge pins (for example A3 or 13)

Hope you enjoyed this tutorial and have a great time with your Lemonade Machine!