Академический Документы
Профессиональный Документы
Культура Документы
Living
Outside
Play
Technology
Workshop
Quiz Game Controller using "Lights and Sounds Buzzers" and Arduino
by projectnotions on May 6, 2013
Table of Contents
Quiz Game Controller using "Lights and Sounds Buzzers" and Arduino . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Intro: Quiz Game Controller using "Lights and Sounds Buzzers" and Arduino . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Step 1: Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
http://www.instructables.com/id/Quiz-Game-Controller-using-Lights-and-Sounds-Buzz/
Intro: Quiz Game Controller using "Lights and Sounds Buzzers" and Arduino
Jeopardy style quiz games are favorites for creating excitement and educational instruction at the same time. Teachers, summer camp counselors, and even industry
educators find this type of game to help generate interest and involvement from the participants.
The idea behind the game is simple, but sometimes finding a device that will perform the "first to respond" lockout function can be problematic. Here is YAQGC (Yet
Another Quiz Game Controller :) based on some pretty neat lighted buzzers and an Arduino put in to a project box.
While the "Lights and Sounds Buttons" from Learning Resources were designed as "stand alone" devices, a few modifications allows them to be connected to and
controlled by an Arduino controller. The "Lights and Sounds Buzzers" make a professional looking and fun implementation of a Quiz Game controller.
The buzzers are modified to plug into a base unit and provide "button press" signals and accept an "activation" signal.
The control box houses the Arduino Uno, the reset button, and four LEDs.
While the button modifications are a little tedious, intermediate soldering skills and patience will produce a nice looking and fun to use Quiz Game Controller.
In addition to capturing the first to respond "winner", the controller also captures 2nd, 3rd, and 4th place in order of button press. The order is indicated on the control box
LEDs. Of course the beauty of having a programmable controller is tuning it to just the way you want it. Other game modes are possible, including "Wheel of Fortune"
modes, although this version of the Arduino program only implements the "Jeopardy" style game.
Let's get started!
YouTube demo of completed system
Background and instructions on www.projectnotions.com
http://www.instructables.com/id/Quiz-Game-Controller-using-Lights-and-Sounds-Buzz/
http://www.instructables.com/id/Quiz-Game-Controller-using-Lights-and-Sounds-Buzz/
Step 1: Components
Here are the required parts:
- Set of "Lights and Sounds Buzzers" by Learning Resources
- 4 Mini Reed Relays (Radio Shack 275-0232 or similar)
- Arduino Uno
- Project Box
- 4 LEDs, one each in Red, Blue, Green, Yellow (with included resistor)
- 5 resistors, 2.2K (or any value you have from 220 to 2.2K should work)
- 8 2.5mm stereo mini phone jacks
- Reset Button, Normally Open, Momentary Contact
- Project Box
- hookup wire
Tools include:
- Soldering iron
http://www.instructables.com/id/Quiz-Game-Controller-using-Lights-and-Sounds-Buzz/
http://www.instructables.com/id/Quiz-Game-Controller-using-Lights-and-Sounds-Buzz/
http://www.instructables.com/id/Quiz-Game-Controller-using-Lights-and-Sounds-Buzz/
http://www.instructables.com/id/Quiz-Game-Controller-using-Lights-and-Sounds-Buzz/
We only put the LEDs and the reset button on the top to make it easier to take the top off with a big wiring mess.
4. Assemble and test
Check the wiring carefully as you go along.
It is easiest to test with the Arduino programmed, so you may like to proceed to the next step for programming the Arduino.
http://www.instructables.com/id/Quiz-Game-Controller-using-Lights-and-Sounds-Buzz/
http://www.instructables.com/id/Quiz-Game-Controller-using-Lights-and-Sounds-Buzz/
LED Sequencing
So, with this program technique, we can change the LED states in complicated ways and STILL watch for button press events in a timely manner. In addition, its easy to
change the way the LEDS behave without having to change the logic of the C code. We just have to change the profiles and steps in the LED-SEQ[] array.
In fact this is how we programmed our Easter Egg behavior. Can you find it? Do you want to put in your own Easter Egg behavior. Go ahead and do it! The job isnt
finished untill the Easter Egg is done!
Button State Machine and Profiles
The process for manipulating the button behavior is exactly the same as described for the LEDs above. The Button state variable containing the profiles and steps
or sequences is the int BTN_SEQ[] array.
Similarily, the current profle and step for each color is maintained in the long lBSS[] array.
The discussion for the LEDs then applies to the buttons with substitution of the above button variables.
Overall program flow
The various variables are declared, and the variable names for the Arduino I/O pin assignments are declared. See the appendix, the code, or the schematic for the
Arduino pins used.
The polling loop then consists of the general steps below:
Check for button presss, and record the order.
Manage the Button Sequence State for each color button.
Manage the LED Sequence State for each color LED
Check for the Reset button (and then reset the Button/LED Sequence State array to Profile 0, or off)
Check for any special Reset Button conditions (i.e. held for > TEST_MODE milliseconds, then go into a profile for Lights Test mode.
The special case handling of the buttons to independently manage both lights and sound with only one signal line is described in more detail in the section on Button
Modifications.
See the appendix for the complete program listing.
Extensions
Did we miss something that you think would be really neat? For example, perhaps there could be a Wheel of Fortune game mode also, where a Color is selected at
random, and given a pre-determined amount of time to answer.
Or invent your own new game mode.
Thats the beauty of a microcontroller implemting the logic. Simply create your own program and make it behave exactly the way you want it to.
Let your imagination run wild, and happy Arduino programming!
The program source can be downloaded at www.projectnotions.com .
http://www.instructables.com/id/Quiz-Game-Controller-using-Lights-and-Sounds-Buzz/
Related Instructables
Q&D-Poor
man's-SkinnerSadist-Jeopardy
game by israelff
Quiz Show
Buzzer System
using Staples
Easy Button by
Meeker46
Quiz-O-Tron
3000: Arduino
quiz contestant
lockout system
by RoysterBot
Quiz game
system by
tecnovillage
Wireless Quiz
Game by
TedMeyers
A Microsoft
PowerPoint
Quiz by
saintjimmy
Advertisements
http://www.instructables.com/id/Quiz-Game-Controller-using-Lights-and-Sounds-Buzz/