Robot Gong: Ultimate Hackaton Project Idea for Sales and Product Geeks (No Coding Required)

by robotgong in Circuits > Gadgets

1949 Views, 9 Favorites, 0 Comments

Robot Gong: Ultimate Hackaton Project Idea for Sales and Product Geeks (No Coding Required)

How to build a Robot Gong: Ultimate office hackaton / DIY project idea (no coding required)
20180226_IMG_5376.jpg

Let's build a robotic musical gong triggered by email. This allows you to setup automated email alerts to fire off the gong... (via SalesForce, Trello, Basecamp...)

Your team will never again forget to "GONGGG" when new code releases, a deal closes, or when lunch is ready!

No Time to DIY? Visit www.robotgong.com and sign up to buy one.

Materials Needed

20180226_IMG_5372.jpg

We will need...

Step 2 to 8: Setting up the electric motor

Step 9 to 12: Attaching motor to the GONG

Step 13 to 17: Setting up the email trigger

Solder Wires to the On/off Switch

20180214_IMG_5283.jpg
20180214_IMG_5287.jpg

Cut two electrical hookup wires of different colors and solder them to the on/off switch.

If you've never soldered before, check out these tutorials: video tutorial 1; video tutorial 2; instructables tutorial.

Attach Wires to Barrel Jack Adapter

20180214_IMG_5294.jpg

Use a small screwdriver to attach two other electrical hookup wires of different colors to the female barrel jack adapter.

Solder Barrel Jack Adapter Wires to Servo Trigger Board

20180214_IMG_5298.jpg
20180214_IMG_5300.jpg
20180214_IMG_5302.jpg

Now solder the free ends of the barrel jack adapter wires to the VCC and GND pads on Sparkfun Servo Trigger board. You'll note two sets of VCC/GND on opposite sides of the board - it doesn't matter which side you choose to solder onto as both will work.

Make sure to have the wires come through the top of the circuit board, and solder on the back side. I recommend to have the red wire pointed to VCC and black wire to GND as standard practice.

Solder On/off Switch Wires to Servo Trigger Board

20180214_IMG_5304.jpg
20180214_IMG_5306.jpg

Solder the free ends of the on/off switch electrical wires to the IN and GND Sparkfun Servo Trigger board.

Again, make sure to have the wires come through the top of the circuit board, and solder on the back side. I recommend to have the red wire pointed to IN and black wire to GND as standard practice.

Solder a 3-pin Header to the Servo Trigger Board

20180214_IMG_5310.jpg
20180214_IMG_5314.jpg

Use a utility knife to cut off a 3-pins header from the break away headers. Solder it onto the 3 pads at the end of the Sparkfun Servo Trigger board. This will help connect our servo motor later.

Test Motor

20180226_IMG_5368.jpg
20180226_IMG_5367.jpg

We're now ready to test our Servo Trigger Board setup and see if it'll power our motor.

  1. Plug the Servo Motor electrical wires into the 3-pin header on the board. Align the yellow wire to SGI; Red wire to VCC; Black wire to GND.
  2. Adjust the trimpots (white A, B, C screws) on the Sparkfun Servo Trigger board:
    • A sets the position the servo motor sits in while the on/off power switch is open. Turn A fully counter-clockwise.
    • B sets the position the servo motor moves to when the on/off power switch is closed. Turn B fully clockwise, so the motor moves a complete 90 degrees from its start position.
    • T sets the time it takes to get from A to B and back. Set T to the middle.
    • (Feel free to play with these settings after you confirm the motor/board setup works.)
  3. Make sure the on/off switch is in the OFF position.
  4. Connect the 5V Power Supply to the Barrel Jack Adapter to power up the board.
  5. Now set the on/off switch to ON and see if the motor moves a complete 90 degree. Switch it back to OFF and see if it'll come back to its starting position.
  6. Unplug the power supply.

Come Back to Starting Position Automatically

20180226_IMG_5365.jpg

We're now going to make a change to how the Sparkfun Servo Trigger board controls the motor.

As you've seen in the previous step, the motor currently comes back to its starting position when we set the switch to off. Instead, we want the motor to come back automatically without having to turn the switch. This'll allow us to leave the switch in ON position and let our Wemo power supply trigger the motor (more on Wemo stuff later...)

To do this: Simply solder shut the SJ1 solder jumpers at the back of the Sparkfun Servo Trigger board. This is a great tutorial on soldering / closing solder jumpers.

Now when the switch is turned on, the servo motor will move from A to B to A. By itself.

Connect the power supply back and test.

Mount Motor to Gong Frame

20180214_IMG_5341.jpg
20180214_IMG_5344.jpg

Unplug the motor if it's still attached to the trigger board.

Position the motor on the top bar of the gong frame, with the rotor perpendicular to the gong's surface. Slightly off-center from the gong's center-point (this allows the mallet to hit the center once we attach it to the rotor). Finally, ensure the rotor can turn freely without hitting the frame (With an X shaped arm horn attached).

To secure the motor in place, first put a 3M double-sided sticker between the motor and the frame. Then attach a zip-tie to secure it to the gong frame.

Adjust Rotor Starting Point

20180226_IMG_5379_1.jpg

Before attaching the mallet to the X shaped rotor, let's make sure the rotor starting point is where we want it.

  1. Plug the motor back into the Sparkfun Servo Trigger board.
  2. Connect the power supply back to the trigger board as well. The motor will automatically go to its starting position.
  3. The X rotor should sit flat against the ground as starting position. In other words, you should read x (not +) by looking at it from the side. If the rotor isn't in the desired position, unscrew the center screw on the motor/rotor, detach the rotor from the motor (keep a hand on the motor so it doesn't move), and re-attach it in the desired position.
  4. Unplug the motor from the trigger board.

Attach Mallet to Motor

20180214_IMG_5347.jpg
20180214_IMG_5348.jpg
  1. Set the mallet against the rotor surface. Then adjust the mallet vertical position so the head (padded area we hit the gong with) is right at the center of the gong.
  2. Mark with a pencil the spot where the mallet touches the center of the rotor. This is where we're going to drill a hole to attach the mallet to the motor.
  3. Drill a hole through the mallet at the marked spot. Use a drill bit that's similar in diameter as the zip tie you plan to use to attach it to the rotor.
  4. Attach the gong mallet to the rotor using a zip-tie per image above. A zip-tie works better than screwing the mallet to the motor as it allows a more flexible movement, mimicking a natural hit to the gong.

Test Your Robot Gong!

20180214_IMG_5358.jpg

Plug the motor back into the trigger board. Test your robot gong by turning the switch to ON.

As an optional, step, you can put all the electrical components in an enclosure and stick it to the side of the gong. This keeps things tidy. There are many tutorials on how to craft an enclosure: Here's one.

Setup Wemo and IFTTT

Wemo-Mini-Smart-Plug-in-use.jpg

We're now ready to setup the email trigger that'll power up the gong.

  1. Setup your Wemo smartplug as per Belkin's included instructions.
    • Then plug in your gong's power supply into the Wemo Smart Plug
    • You can test the setup by manually pushing the Wemo's power button. Your gong should go off every time the Wemo Plug turns on.
  2. Sign up for an account at ifttt.com, and make sure it also works at https://platform.ifttt.com (that's where we'll build an our trigger applet). There's no need for a paid/partner account for our purposes.
  3. Link your Wemo smart plug to your IFTTT account as per these instructions.

Setup Email Trigger (Part A: Turn On)

Screen Shot 2018-02-15 at 3.34.01 PM.png
Screen Shot 2018-02-15 at 3.34.19 PM.png
Screen Shot 2018-02-15 at 3.34.33 PM.png
  1. Go to https://ifttt.com/services/maker_webhooks/setting... and find Your Key, which is the last part of the URL after ".../use/" - We will require this key later below.
  2. Go to https://platform.ifttt.com/maker/ and click on "New Applet"
  3. As Trigger, choose "Email" and "Send IFTTT an email tagged". Then set the tag value to #WemoOn
  4. Then add an Action, choosing "Wemo Smart Plug" as services and "Turn On" as action.
  5. Finally add a second Action, choosing "Webhooks" as services and "Make a web request" as action.
    • Set the URL Field Label to: http://lab.grapeot.me/ifttt/delay?event=WemoOff&t=0.1&key=YOUR KEY FROM STEP 1 ABOVE
    • Set the Content Type Field Label to Text/Plain
  6. Save the applet once you're done.
  7. Click "Enable it on IFTTT.com" and Turn On

NOTE: The URL in step 4 allows us to ask a web service to turn off our Wemo Smartplug after a delay. More info from our friend here: https://grapeot.me/adding-a-delay-to-ifttt-recipes.html

Setup Email Trigger (Part B: Delayed Turn Off)

Screen Shot 2018-02-15 at 3.35.18 PM.png
Screen Shot 2018-02-15 at 3.35.26 PM.png

Once our email trigger turned on the Wemo smart plug, and the mallet has hit the gong, we're now going to turn the Wemo off. This will require a second applet.

  1. Go to https://platform.ifttt.com/maker/ and click on "New Applet"
  2. As Trigger, choose "Webhooks" as service and "Make a web request." Then type in the Default Value as "WemoOff."
  3. As Action, choose "Wemo Smart Plug" as service, and "Turn Off" as action.
  4. Save the applet once you're done.
  5. Click "Enable it on IFTTT.com" and Turn On

Our Wemo is now configured to turn on and then off after a delay once we send an email to IFTTT, using the email address associated with our IFTTT user account. Give it a try by sending an email to trigger@applet.ifttt.com with the subject line "#WemoOn." Make sure your outgoing email address is the one used to setup the IFTTT account. The Wemo Smart Plug should turn on and then off after a brief delay. Feel free to connect the gong for more sound effect :)

Change IFTTT Email Address That Triggers Wemo

Screen Shot 2018-02-15 at 3.40.56 PM.png

We may want a different email address to trigger our IFTTT Email based applet. For example, we may want SalesForce or another CRM to directly email trigger@ifttt.com and set off our gong system. That email will be different from our user account email.

To change the email address that IFTTT recognizes as action trigger, simply go to https://ifttt.com/email and click on "Settings."

Setup Automated Email Alert / Trigger

We're finally on the step of setting up the automated email event that'll trigger our gong system. Let's explore a couple options:

  • Celebrate Sales: Fire off an email when you convert a lead or close an opportunity in SalesForce.
  • Celebrate a Completed Task: Fire off an email when a project or task is complete.
    • To do this, you could use a service such as Zapier and send an email when a specific event happens in your project management tool.
    • For example, this Trello - Email Zap could send an email every time a Trello task is moved to the Complete column.

These are just some ideas. What we've built is a robot GONG that can be triggered by an email. When and how your automated email is sent is a wild card. Cheers!