A good friend of mine who’s a teacher was doing quizzes in her class making students compete to answer questions… resulting in them complaining they raised their hands before the others.
I decided to give her this quiz show type buzzer for Christmas to solve her problems.
When one of the players press it’s button (the fastest player wins this), the led of the right colour lights up saying he’s in control… and no other buttons from the other players work, until the master of the game decides if the answer is good or not by pressing a little button on the main unit, giving a point or not to the player in control.
If you have any questions, comments, constructive criticism… don’t hesitate to write 🙂
If you like my build, please like the video on YouTube and subscribe, it would be nice 🙂
P.S. There is a little problem with the display that I couldn’t figure out how to solve. When playing a tune, the display doesn’t light up anymore, like if no current goes to it anymore… anybody has an idea what the problem could be or how to fix it in code ? See the video if you don’t understand what I mean.
Step 1: Components
- Rocker Switch
- ATmega328
- Ceramic Resonator 16MHZ
- 5V wall adapter power supply
- Barrel jack
- Hook-up wires (black, red, green, white, yellow)
- Heat shrink tubing
- Big buttons (green, blue, yellow, red)
- Some LEDs
- Serial 8 Characters x 7 Segment LED Display
- Prototyping board
- Tamiya connectors (male, female)
- Some resistors (1x100ohm (for the speaker), 5x150ohm (for the leds), 6x10KOhm (for the buttons))
- Push buttons (2)
- Speaker wire
Step 2: The Plan
Sorry for my writing… I know it’s not a very professional plan, but if I have more time I will make a better one and replace it… feel free to ask me anything about it if it’s not clear 😉
Step 3: The Prototype
I’ve decided to try my idea with an Arduino prototype.
The different buttons are for each “team” and for the master of the game to accept or reject an answer, giving the point to the team answering the question or not.
The leds lit up to know which team can currently answer.
The speaker plays a little tune… but it’s not amplified, so it’s not very loud.
The display shows the current score for each teams.
Step 4: The Code
So… I’m including my code, but I’m not explaining it… and yes I know there is no comments… if you have questions, feel free to ask me, but I didn’t do this to make a programming tutorial.
First you need to include “pitches.h”… but to be able to include it, you need to get it from here… Arduino Tone Tutorial
#include “pitches.h”
Then let’s define some arrays to help ourselves for later when we need to use the 8 digits 7 segments display
// array to activate particular digit on the 8x7segment module<br>// it is the common anode of 7 segment byte digit[8] = { 0b10000000, //digit 1 from right 0b01000000, //digit 2 from right 0b00100000, //digit 3 from right 0b00010000, //digit 4 from right 0b00001000, //digit 5 from right 0b00000100, //digit 6 from right 0b00000010, //digit 7 from right 0b00000001 //digit 8 from right }; <br><p>//array for decimal number, it is the cathode, please refer to the datasheet. //therefore a logic low will activete the particular segment //PGFEDCBA, segment on 7 segment, P is the dot byte number[12] = { 0b11000000, // 0 0b11111001, // 1 0b10100100, // 2 0b10110000, // 3 0b10011001, // 4 0b10010010, // 5 0b10000010, // 6 0b11111000, // 7 0b10000000, // 8 0b10010000, // 9 0b01111111, //dot 0b11111111 //blank };</p>
We should also define some constants that will help us identify input and output pins later in the code
For more detail: Quiz Game Show Buzzer using Arduino