PEZ Robo Dispenser Using Arduino by techbitar
Featured
pez-robo (5).JPG

I was strolling down the candy aisle at the supermarket and there it was:  the PEZ dispenser, conjuring up sweet (literally) childhood memories served up by my favorite cartoon characters in squarish sugary pellets.  Then, all of a sudden, an LED went off in my head.  PEZ meets Arduino. 

In this age of over-automation,  where robots do everything short of scratching nostrils, I figured that my sugar-dispensing childhood toy, The PEZ, also deserves automation.  

HOW IT WORKS

Basically, I am using an ultrasonic distance sensor to decide if someone is within 20 cm from the sensor which is attached next to PEZ.  If so, Arduino will turn the servo 180 degrees back pulling with it the ear of Mickey Mouse. When Mickey's head is pulled back, a PEZ pellet is pushed out of the mouse's mouth.  Yummy.

After a few seconds (5 seconds in my Arduino sketch) the servo returns back to 90 degrees,  closing Mickey's mouth and waiting for the next person in line to serve. 



 
Remove these adsRemove these ads by Signing Up

Step 1: PARTS LIST

pez-robo (15).JPG
  • The PEZ Robo Dispenser.  I picked a Mickey Mouse PEZ because big ears are better at holding a noose that will be tied to the rotating servo horn. 
  • Arduino Uno or clone. I used my GOduino III
  • Ultrasonic Distance Sensor HC-SR04. ($2.50 Ebay)
  • RC Servo ($2.50 Ebay)
  • Breadboard
  • Jumper wires
  • Wire fasteners or rubber bands
  • Battery (Anything over 7 volts with about 500mAh).
pansartax says: Jan 25, 2013. 12:33 AM
If you mod the head a little bit, could you get it to pop the PEZ out into your hand?
techbitar (author) says: Jan 25, 2013. 1:10 AM
I considered mounting it on a motion sensing robot. The possibilities for this silly contraption are endless :)
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!