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.

Whac-a-Veggie

Whac-a-Veggie
For this year’s Trunk ‘O’ Treat game I wanted to make a something fun and exciting for kids to play so I choose a Whac- a-Mole type game called Whac-a-Veggie using the Veggie Tales characters.
The Whac-a-Veggie game is played with a foam hammer in your hand and the veggie characters randomly popping-up quickly and you have to hit them on the head before they go back in there holes to score a hit, the one with the most hits wins. The PIC microcontroller controls the game action with air cylinders that push the veggies up and down by the use of an air solenoid. A timer keeps the game time to 35 seconds long and the score board counts  the number of veggies you hit in the game.
 
Remove these adsRemove these ads by Signing Up
 

Step 1Design and Operation

Design and Operation
The Whac a Veggie game has to maintain the following list of game requirements for reliability and game operation. The game starts off by clearing the score for a new game and keeping score during the game with every hit. Start a timer for a preset game time and the timer stop the game when the time is expired. The veggies need to pop-up randomly during the game. The veggies must not rotate when hit so we have to design the hardware to keep the veggies looking forward at all times. The game must me made strong enough to take the many hard hits with the hammer. The relay, air cylinders, and solenoids need to move the veggies up and down quickly to have good game to player response for game fun.

Parts List
PIC 18F4550 PIC
40 Pin PIC Development Board # DEV-00021 (Spark Fun)
ATX breaker board #BOB-09558 and ATX connector #PRT-09498 (spark fun)
Bimba Air cylinder 6” travel #BF-096-D
MettleAir pneumatic valves 5/2 way 4A210-08 12VDC (Pneumatic Products)
Brass air Silencer for exhaust air 1/8” (Pneumatic Products)
Tubes thread fittings 1/4” #S1/4-N02 (poweraire.com) 
Tube male elbow fittings 1/4” #E1/4-N02 (poweraire.com) 
Union straight speed controller #USC1/4 (Qty-6) (poweraire.com)
Triple branch union #TUBU1/4(Qty-2) (poweraire.com)
20MHZ crystal oscillator
Timer MX024 Digital Timer (Bakatronics)
Relay module board, eight channels, for PIC, songle electronics (eBay)
ATX breakout board and connector # BOB-09558 and PRT-09498.
Resistors: 1K, 100, 10K, 470 ohm,
Capacitors 4.7uf, .1uF
Counter Display #G16774 (goldmine electronics) 
ATX power supply connector 12v, 5v power for control and lights.
Blank PCB proto boards
IC’s
74LS08 AND gate
74LS04 inverter 
Mechanical hardware springs, 6-32 bolts, 1/4”-20 bolts, 8-32 bolts, 
« Previous StepDownload PDFView All StepsNext Step »
13 comments
May 21, 2012. 2:10 PMthatwoodbeme says:
Excellent project! I'd like to build at least one for our church free public play events. Any idea how it'd hold up to maybe a game every 90 seconds for three hours three times a year? Is that too intense for this build? Got any ideas on mods to make it more robust to increase it's service cycle? Thanks!
Feb 8, 2011. 8:35 AMtekkguy says:
What was the total cost of the parts?
Dec 31, 2010. 8:09 AMkooth says:
This is awesome and I'm going to try to build one for my grandkids. I know almost nothing about pneumatics however. Does your system need an air compressor for the air cylinders or am I missing something?

Thanks!
Jan 3, 2011. 6:07 AMkooth says:
A-hah! I couldn't find Pneumatic Products at first because I thought it wasn't an eBay-type company. I need to learn to read for comprehension! Thanks again!
Jan 3, 2011. 6:05 AMkooth says:
Thanks, that really cleared up my understanding of how this works!
Dec 2, 2010. 10:38 PMHonus says:
Wow- very impressive!
Nov 29, 2010. 2:47 PMCrescentMoon says:
Wow! Really impressive!!
Nov 29, 2010. 11:27 AMiminthebathroom says:
much fun!
Nov 29, 2010. 5:05 AMjeff-o says:
Very nice result. Does the code have provisions for people cheating? That is, covering all the holes so a "hit" is registered when the veggie pops up?
Nov 9, 2010. 4:33 PMfungus amungus says:
Very cool. Do you have any footage of it in action with veggies getting whacked?
Nov 9, 2010. 4:21 AMTSC says:
This is pretty good!!

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!
16
Followers
6
Author:mark-mark