Google Home Controlled Beer Launcher

by neil_b111 in Circuits > Robots

403 Views, 0 Favorites, 0 Comments

Google Home Controlled Beer Launcher

4C93B2EE-3223-4678-91A4-6C7BFB6D84F5.JPEG

I just graduated college and moved to a new city to start my career as an engineer when all of a sudden the pandemic hit and I was stuck in my tiny one bedroom apartment.

After feeling like I just about watched everything on Netflix and was reaching peak boredom in quarantine, I decided to build something! What is better than building a voice controlled beer launcher to shoot myself drinks while I kick my feet up and relax on the couch.

My goal for this project was to build this device at a very low cost utilizing lots of resources around me as well as to learn more about engineering.

I ended up completing this project even though at times I felt defeated, I kept persevering until it was a success. I ended up going viral on social media for it and felt like not only did I put a smile on my face, but a smile on the thousands of others who viewed it during a time when the world could use a good smile. I hope you enjoy!

Video of the Device

Google Home Automated Beer Launcher
Google Home Controlled Beverage Launcher

This is a video of the completed beer launcher using custom Google Assistant commands to LAUNCH the drink! Also, a kids friendly version using a coke here that shows a better view of how the trigger mechanism works.

Supplies

IMG_7876.jpeg
IMG_1216 2.PNG
IMG_1225.JPG

SUPPLIES LIST

NodeMCU (Amazon Link)

Breadboard/Jumper Wires

Linear Actuator (Amazon Link)

Power Supply Module

Red and Green LEDs

Power Adapter Supply

Motor Controller Drive (Amazon Link)

Door Latch (Trigger mechanism) (Link)

Custom made Beverage Holster

Wood/Screws/PVC Piping

Slingshot Cord (Amazon Link)

Brackets (Link)

Plastic Holder

Picture Hanger Hook (Link)

Screw Eye Hook (Link)

Saw

Drill

Wood Stain

Laptop/Phone

Note: A lot of these supplies were gathered from an Arduino Starter Kit (Amazon Link). This is a great kit if you are just starting out with a lot of cool supplies and tutorials.

Building the Launcher

IMG_7887.jpeg
60918228909__1354DD16-2865-4E13-9658-D7F340CD32B0 2.JPG
Screen Shot 2021-09-08 at 4.57.07 PM.png
IMG_1226.jpg

I wouldn't call myself a carpenter but I think this launcher turned out pretty good. There are hundreds of other ways this could have been built, but this was my take on the device. Much of the screws and brackets used to build this I found lying around my apartment and the wood I picked up from the scrap section at Home Depot.

STEPS

  1. Cut two large planks of wood approx. 2 feet each and screw them into a square wooden base vertically at the edge of the base board, approx. 4 inches apart, using some screws and brackets as support
  2. Repeat this process with two small planks of wood, approx. 1 foot each, towards the opposite edge of the base board.
  3. Place a single piece of wood approx. 2.5 feet long at a 45 degree angle between the pairs of vertically fixed planks and screw the plank into place going through the sides of the vertical planks.
  4. Cut the PCV pipe in half vertically so it is just small slide segment.
  5. Place the PVC pipe on top of the angled plank and screw into place.
  6. Screw two brackets at the top side edge of the angled plank, and place a screw into each bracket (see picture).
  7. At the base of the angled plank, screw down the door latch.
  8. Using an old beer can, cut it into a sleeve and screw it into the slingshot using the screw eye. (The sleeve is used as support to hold the can; see attached video below.)
  9. Attach the Picture Hanger Hook through Screw Eye.
  10. Connect Slingshot to screws in the brackets at the top of the angled plank.
  11. Attach Linear Actuator to base board, near the door latch, and holster down using a plastic holder. (In my case I cut up and old mouthwash bottle).
  12. Attached Linear Actuator to door latch using screw hooks.
  13. Stain the wood (outdoors) or decorate to however you please.

Setting Up Blynk

0D877127-EFA7-4335-A100-8E5963011CA9.JPEG
IMG_1215.PNG
IMG_1214.PNG
IMG_1261.PNG
IMG_1262.PNG

STEPS

For an in-depth guide for setting up Blynk and starting a new project please go here.

  1. Download Blynk app on your phone, set up an account if needed, and start a new project.
  2. For device, choose NodeMCU. For connection, type choose WiFi.
  3. Take note of the Auth Token.
  4. Add two button widgets to your canvas
  5. The first button will be the FIRE button. This button, when activated, initiates the code to contract the linear actuator pulling the door latch open, releasing the slingshot, and firing the device. Make the proper attribute changes, to the buttons, based on the pictures above.
  6. The second button will be the RESET button. This button when activated initiates the code to extend the linear actuator pushing the door latch closed. Make the proper changes based on the pictures above.
  7. Push the play button in the top right corner to run the project.

Note: Click on more pictures to see all of the photos

Setting Up Google Assistant Integration

Ifft 1.JPG
Ifft 2.JPG
Ifft 6.JPG
Ifft 3.JPG
Ifft 4.JPG
Ifft 5.JPG

STEPS

Note: Click on more pictures to see all of the photos

  1. Go to IFTTT.com and set up an account based on the account you use for your Google Home.
  2. Create a new Applet by going to My Applets and then Create.
  3. Click on "If This" and then search for "Google Assistant" and select it.
  4. You have multiple options to select from. Choose "Simple Phrase".
  5. Add the phrase you want to say to your Google Home to activate the launcher. In this case I am using, "Toss me a Cold One"
  6. Add in how you want your Google Home to respond and click "Create Trigger".
  7. Click on "Then That" and search for "Webhooks" and select it.
  8. For URL enter... https://45.55.96.146/AUTH TOKEN/update/V0 ... but switch out AUTH TOKEN with the token created in Blynk
  9. For Method use "PUT", for content type use "application/json", and for Body use ["1"]. Click Create Trigger.

Your Google Home is now connected to your Blynk Project. When you say the phrase you created it will now trigger the FIRE button in the Blynk app. Next we are going to use ArduinoIDE to link your Google Home and your Blynk Project to your Linear Actuator.

Wiring Up the Device

Slide1.jpeg

STEPS

Follow along using the diagram above I created, using Fritzing, and the following steps below to see how the device was wired.

  1. Insert the Power Supply Module onto the top on the Breadboard with the jumper cap placed on the 5V output pin on one side of the breadboard (column A) and the jumper cap removed from the other side of the breadboard (column B). Power the Power Supply Module using a Power Adapter (up to 12V).
  2. On the opposite side of the breadboard (column B) power the columns using an external power supply (up to 12V) for the Linear Actuator.
  3. Motor Controller Driver Port A-1B to D7 on NodeMCU (Yellow Wire).
  4. Motor Controller Driver Port A-1A to D6 on NodeMCU (Purple Wire).
  5. Motor Controller Driver Port VCC to Positive Terminal on the Breadboard column B.
  6. Motor Controller Driver Port GND to GND on the Breadboard column B.
  7. Linear Actuator Black Wire to Outside Terminal of Motor A on the Motor Controller Driver.
  8. Linear Actuator Red Wire to Inner Terminal of Motor A on the Motor Controller Driver.
  9. NodeMCU GND to Breadboard GND column A
  10. NodeMCU Vin to Breadboard Positive column A
  11. Insert the Red LED (+) wire into an empty space on the breadboard and then wire it to D1 on NodeMCU (Red Wire)
  12. Insert the Red LED (-) wire into the GND of column A.
  13. Repeat the process with a Green LED (Green Wire)

Now that everything is finished wiring up. We can move on to the Arduino IDE coding.

Setting Up Arduino IDE

Node Arduino.png
Screen Shot 2021-09-13 at 8.18.52 PM.png
Screen Shot 2021-09-13 at 8.19.33 PM.png
Screen Shot 2021-09-13 at 8.59.24 PM.png
Screen Shot 2021-09-13 at 8.59.37 PM.png

STEPS

Note: The first image shows how the NodeMCU Pins relate to Arduino Pins. ArduinoIDE uses the Arduino Pin nomenclature so you must convert them over i.e. Pin D1 on the NodeMCU is Pin 5 on the Arduino

  1. Download ArduinoIDE, the NodeMCU Library, and the Blynk Library from the following links (Arduino, NodeMCU Library, Blynk Library).
  2. Launch Arduino IDE and plug in your NodeMCU using a Micro USB.
  3. Go to Tools and select the correct COM PORT the NodeMCU is plugged into.
  4. Go to File > Examples > Blynk > Boards_WIFI > ESP8266_Standalone and select it.
  5. For Boards make sure Generic ESP8266 Module is selected. Go to Tools > Boards and select Generic ESP8266 Module.
  6. A skeleton ArduinoIDE code will open where you can now fill in the proper code to get the device to work in. First change the "YourAuthToken", "YourNetworkName", and "YourPassword" to your Blynk Auth Token, your WiFi Network name, and your WiFi Password respectively.
  7. Begin inserting the ArduinoIDE code following along with the images.

How the Program Works

When you say the simple phrase, "Hey Google, Toss me a Cold One!", the webhook we created using the IFTTT connects to the Blynk project we made activating the button we created. Once the the button is activated, through WiFi, the code runs on the Arduino, activating the linear actuator, tossing you a nice crisp cold one. Cheers!

Cheers!!

congratulations-cheers.gif

Congrats! We have officially completed the voice controlled beer launcher! I hope you enjoyed this instructable as much as I did making it. Feel free to reach out to me if you have any questions or comments about this instructable and stay tuned for feature projects.