Hacked Gadgets Forum

September 14, 2011

Karate Chop – Avnet Dog Days of Summer Contest using a PIC 16F1827

at 11:12 pm. Filed under Cool Gadgets, Electronic Hacks, Game Hacks

karate-chop-avnet-dog-days-of-summer-contest-using-a-pic-16f1827_30


My daughter Alexis and I worked on this Karate Chop project as an entry into the Avnet Dog Days Summer Contest. She had the idea to make a game to enter in the entertainment section of the contest. The game she came up with was a reaction game where you have to quickly move to the correct indicated position. Four infrared detection circuits was the resulting method used to detect hand movements. She also wanted to have a memory type game similar to the classic game called Simon but using the IR beams instead of buttons.

As a hacker and maker I will be giving Avnet a good look when purchasing parts, in the What’s New section of the Avnet home page it says that they offer free 2 day FedEx shipping on orders over $10 to Canada and the USA as long as it is under 10 pounds! The offer code is AVNETEXPRESS, I don’t know if this is a permanent thing so get it while you can. Not sure about you but free shipping is always something that I am looking for when it comes to parts orders.

There are 4 games in total, one game is the Simon like pattern game where you need to match the random patterns 5 times in a row to win and one where you need to match the patterns 10 times in a row. The other 2 games are reaction games, one is normal speed and the other you need to be very quick. With the reaction games you need to break the indicated random beam locations 10 times in a row without breaking the wrong beam or breaking the correct beam too slowly.

On power up and after each game the system waits for the user to choose the game to be played.
1 (top left beam): Pattern match 5 to win.
2 (top right beam): Pattern match 10 to win.
3 (bottom left): Normal reaction game. Get 10 normal speed beam break reactions to win.
3 (bottom right): Fast reaction game. Get 10 fast speed beam break reactions to win.

The circuit is quite simple and makes for an ideal microcontroller solution. A 16F1827 is the PIC microcontroller which has been selected for this project, the 16F1827 is available from Avnet here. Four pairs of IR LED and IR Transistors are used to detect the person waving their hand in the four chop zones. The user feedback is done in a number of ways. Four colored LEDs which are being driven directly from the PIC output pins. A very bright surface mount LED panel is mounted behind the breadboard and is shining through to the Avnet name on the front, this is being switched by a transistor since it requires about 200mA of current. A piezo buzzer is being driven directly from the PIC and provides audible feedback during game play.

Power is coming from a 12 volt plug in wall transformer and there is an board mounted LM7805 which is providing the 5 volt regulation for the low voltage circuitry.

The physical game is made from MDF and plywood. The main 1/2 inch section was made from MDF, a thin 3mm plywood front was added which had the laser engraved lettering and laser cut Avnet name. The IR LED and IR transistor holders were also cut from MDF to allow the beams to be mounted securely. The initial idea was to have two more pieces of 1/2 inch MDF stacked to the rear of this. The center section would hold the IR beams and allow for wires to be run. The rear section would cover everything up nice and neat. To keep things simple an open design that showcases the spaghetti of wires on the breadboard was eventually what we went with. :)

Sample code will be made available once it has been cleaned up and commented a bit more.

Thanks to John Schuch from the Hacker’s Bench for the tip.



karate-chop-avnet-dog-days-of-summer-contest-using-a-pic-16f1827_32


karate-chop-avnet-dog-days-of-summer-contest-using-a-pic-16f1827_48







 

Compare prices other drug from online pharmacies www.renes-kirmeswelt.de/md/cialis_super_active_generic.html . Free viagra pharmacy safe affordable drugs at...


Related Posts

Smartphone controlled Remote Dog Feeder powered by the Avnet Spartan-6 LX9
Hacked Gadgets Workbench Contest – three days left to enter
Hyperbike – Hybrid Pedal assisted Solar Bicycle
Motorized Pool Lounger
Maker Camp Season 2014
Hacked Gadgets Holiday Contest – Last Chance
Fun Hacked Gadgets Contests
Name the Thing Contest – 68

 


 

13 Responses to “Karate Chop – Avnet Dog Days of Summer Contest using a PIC 16F1827”

  1. pc repair Says:

    That’s a cute father/daughter picture. You guys make a great team building this robot together. I hope you guys win.

  2. Karate Chop is Simon without all the touching - Hack a Day Says:

    […] in the Avnet Dog Days of Summer contest. It’s a game called Karate Chop that is basically an electronic Simon Says. The video after the break shows a demonstration of the device. When switched on it’ll play a […]

  3. IR Simon Game Uses Karate Chops Instead of Button Pushes | LED World Says:

    […] from Hacked Gadgets wrote in with the karate chop game that he and his daughter Alexis designed. My daughter Alexis and I worked on this Karate Chop […]

  4. Elouise Alacano Says:

    Excelente project, muchas gracias.

  5. Michael T. Says:

    I like that there are 4 games instead of just 1. I just liked the video to help you out.

  6. Dave Sanov Says:

    When the 4 led is flashing in circle what this mean

  7. AustynSN Says:

    Not original at all.
    Just buy Loopz.
    EXACT SAME THING.

    (I’m all for diy, but not when your claiming somebody else’s idea as original. It matters not to me if the somebody else is one person or a huge conglomerate.)

  8. Alan Parekh Says:

    Thanks PC Guy! If you like the video be sure to help us out with a thumbs up on the Youtube page. :)

  9. Alan Parekh Says:

    Hi Dave,

    When the 4 LED are flashing in a circle that means the game is waiting for the user to select what game they would like to play. You just break the beam of the game you want.

  10. Alan Parekh Says:

    Hi Austyn,

    That’s crazy, thanks for the info. I will have to check one of those out next time I am in a toy store to see how the game play feels on that one. I like the hand spacing better on that one since you need to be a bit careful not to hit the game when moving fast on ours.

    It sounds like you think I copied an existing game, that of course not the case. Alexis wanted a beam based game because of the IR beams we use in the stair lighting controller kits. These are actually the same IR LED and transistor pairs used in the stair lighting kits.
    http://alan-parekh.vstore.ca/stair-lighting-controller-p-1.html

  11. Karate Chop is Simon without all the touching | CisforComputers Says:

    […] in the Avnet Dog Days of Summer contest. It’s a game called Karate Chop that is basically an electronic Simon Says. The video after the break shows a demonstration of the device. When switched on it’ll play a […]

  12. Krusty Says:

    Thumbs up given, good luck!!

  13. Alan Parekh Says:

    Thanks for the support Krusty!

Leave a Reply

Internal Links:

Categories:

Search:

Google
Hacked Gadgets
Web

Site Sponsors:

Nuts and Volts Electronic Labs Trossen Robotics Free Technical Publications Blue LED

 

Recent Comments:

Site Rating:

More RSS Feed Options

Site Sponsors:

 

Interesting Sites:

Site Videos:

Incoming Links: