Introduction: Mil-Spec PEZ Dispenser

Picture of Mil-Spec PEZ Dispenser

Build a flashing, remote controlled electro-pneumatic PEZ Dispenser with semi-auto and full-auto capability.

What you need:
1. Sense of humor
2. 1/2 a brain
3. Get fired from your job for having all of the above.

Step 1: Parts List

Picture of Parts List

What I used:
1. Pneumatic cylinders (1-single acting spring return, 1-double acting)
2. MAC solenoid valves (3 way, 5 way)
3. airbrush propellant
4. 2 transistor (FETs)
5. 38khz IR detector
6. TV remote control
7. Controller board (Basic Stamp or Arduino)
8. LED
9. lever switch

Cylinders are from Clippard.

Step 2: Construction and Operation

Picture of Construction and Operation

Items shown in the picture below, by number:
1. single acting spring return cylinder
2. double acting cylinder
3. lever switch
4. string
5. r/c control horn

1. Activate cylinder #1 to pull PEZ head back
2. Control horn depresses switch lever to indicate the weapon is in firing position
3. Activate LED
4. Cycle cylinder #2 to eject one round of ammo...or rectangle...whatever...
5. Turn off LED, release cylinder #1

TV remote causes the output pin of the IR detector to go high. This triggers the BASIC STAMP as indicated in the source code shown in the next step.

Step 3: Basic Stamp (BS2-BOE) Source Code

Picture of Basic Stamp (BS2-BOE) Source Code

'* mil-pez.BS2
'* Alan Mollick
' {$STAMP BS2}
' {$PBASIC 2.5}
' {$PORT COM5}

INPUT 0 ' IR detector
OUTPUT 3 ' 3-way solenoid
OUTPUT 8 ' 5-way solenoid
INPUT 10 ' head up feedback switch


IF (IN0 = 1) THEN Hold ' wait for TV IR signal

HIGH 4 ' LED = on
HIGH 3 ' 3-way solenoid on, head pulled back

IF (IN10 = 1) THEN Hold10 ' Stay here until switch (pin 1) = low

HIGH 8 ' 5-way solenoid = on
LOW 8 ' 5-way solenoid = off
LOW 3 ' 3-way solenoid = off
LOW 4 ' LED = off



Step 4: Watch and Behold...

Video - Mil-Spec PEZ


b2gills (author)2008-08-18

Now you need to do an instructable on how to modify a semi-automatic pez dispenser, into a full-automatic pez dispenser.

el_roboto_loco (author)b2gills2009-02-02

that would be funny - I'd have to mention that full auto PEZ are illegal in all 50 states

Dr.Paj (author)2008-02-08

You need to get this thing fully automatic and to have a larger capacity, say...400 PEZ or so. So you could try to build a spring loaded cartridge... kind of like an Uzi or AK.

mettaurlover (author)Dr.Paj2009-01-07

i'd modify one of those huge Darth Vader giant pez dispensers to have a slot so the head doesn't have to come up , a spring loaded firing mechanism to fire them fast and HARD, and a motion sensor to tell it to fire, probably mounted inside the head. TEH ULTIMAT CANDY-BASED WARFARE DEVICE!!!!!

rc jedi (author)mettaurlover2009-01-10

or meds that go into the other end of your body. just sit on the "dispenser" and boom! you are medicated!

razor1000 (author)2007-12-05

Do you have any sources for "beginning pneumatics"? I've been looking around, but I haven't found anything that explains what all those things you mention about the cylinders mean (like single-acting). I'd really like to try some of it out, but it's just hard to get started! (Fantastic project btw)

Wyle_E (author)razor10002008-01-02

A 'single-acting' cylinder can push in one direction, and needs an external force (such as a spring) to return the piston to the 'ready' position. A 'double-acting' cylinder has air ports at both ends and a seal around the piston rod, so that it can push either way. Look at the 'Pneumatics' topics here: /

el_roboto_loco (author)razor10002007-12-10

You can go to Also, here's an intro to pneumatics.

jongscx (author)2007-12-03


laernmoer (author)2007-12-03

A mil-spec TV remote? you got docs on that? just kidding, this is the most perfect waste of time I've seen on this site. (-: Props to you.

GorillazMiko (author)2007-12-02


Vertigo666 (author)2007-12-02

Nice. Now you need someone on the recieving end with their mouth open.

Dorkfish92 (author)2007-12-02

Wow! That's the coolest PEZ ever! Nice thinking!

zjharva (author)2007-12-02

HOLY CRAP!! that is awesome :p wooooooooooooot!

!Andrew_Modder! (author)2007-12-02


About This Instructable




More by el_roboto_loco:Hacking the Failed Billion Dollar Border Security SystemEasy Button/WalMart Button/Whoopee Cushion Triple Hack++Mil-Spec PEZ Dispenser
Add instructable to: