3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Twitter enabled candy machine

Twitter enabled candy machine
«
  • giveAwayCandy_NewDesign.png
  • giveawaycandy.jpg
  • P1000891.JPG
  • P1000893.JPG
  • P1000897.JPG
  • P1000903.JPG
  • P1000905.JPG
  • P1000911.JPG
  • IMAG0279.jpg
  • last photo ←
»
Give away candy is a twitter enabled candy machine built by me and @sidpiraya

Tweet " give @_macke_ candy " or " give @Sidpiraya candy "  to give us candy and you can see it live at http://www.giveawaycandy.com/


Hardware:
  • Candy machine - Carousel Jukebox Gumball Machine
  • Servo - full rotation
  • Servo controller - we using a USB servo controller
  • Epoxy
  • Computer
The machine is a candy machine that we modified by glued a continuous full-rotation servo motor to ,see picture , and placed a servo contoler in.

How dos it work?
The computer has a ruby script that listens to twitters streaming api on mentions of @_macke_ and @sidpiraya. When receiving a message we use a regular expression to see if it contains “give” and “candy”. On a successful match the ruby script open a connection to a telnet server written in python that send a command to the servo controller.
Then the ruby script sends a message to the web page to display the last tweet. 

History:
If you are interested in the history of the candy machine you can read about it at Sidpirayas blog 

Have fun giving us candy =)
/Marcus
http://www.slickstreamer.info/
2 comments
Oct 23, 2011. 6:49 AMorangetj says:
why not try a juke box which listens for the name of a song and artist and searches the music library for a match and plays it
Jul 12, 2011. 9:51 PMkshea19 says:
This seems to have potential at our wildlife reserve in Nicaragua. Thanks. What I would like us to do is when a person texts a donation to us, it instructs the candy dispenser to provide a gift AND twitter that "phone number" has donated "the amount".

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
3
Followers
3
Author:_macke_(Slickstreamer)
Imagine me, a Geek Ninja, riding atop a six-legged robot spider cyclops