Quiz Game Buzzer Bluetooth Edition
Intro: Quiz Game Buzzer Bluetooth Edition
So I made this Quiz Buzzer a while ago...
https://www.instructables.com/id/Quiz-Game-Show-Bu...
After using it for a while I got some feedback and decide to improve on it.
To see the code... it should work well...
STEP 1: The Circuit Prototype
Here's the new circuit prototype with all the new pieces.
STEP 2: Connectors
First I changed the connectors for the button boxes so they wouldn't be locked to the box.
I also used smaller wires so it's not as bulky when stored.
STEP 3: Sounds
I added an amplification circuit for the sound because it wasn't loud enough.
https://www.sparkfun.com/products/11044
I also added a volume button so it can be adjusted according to the loudness of the environment.
I used the ??? chip which offered all the possibilities I wanted.
STEP 4: Code Optimization
I optimized the code in the micro controller, especially how the inputs were read, using the register directly instead of checking each input one at a time.
You need to check for the correct bit in the registry as see in the code example below...
B00000001 for A0
B00000010 for A1
B00000100 for A2
etc...
And you can check for more than one input at the same time
B00110000 for A5 and A6
This made the code faster, but also reduced greatly the risk of always having the same team answering.
void setup()
{ DDRC = DDRC | B00000000; // set PORTC (analog 0 to 5) to inputs bitsPortC = 0;...
}
void loop()
{ bitsPortC = PINC;...
if (bitsPortC == B00000001)
...
}
STEP 5: Mobile App
The biggest part of all those modifications was to add an HM-10 Bluetooth chip to the circuit.
Along with this, came an Android application to control the box from a mobile phone. The mobile application can basically see which team is active (the LEDs in front of the device), the score and it decides if the answer is right or wrong.
STEP 6: Settings
With the mobile application came, the possibility to customize the experience a little bit with settings... muting the sounds, adding a difficult mode where a wrong answer removes a point, choosing if people can answer at all time or if the game master needs to tell the machine it is "Ready"... to avoid people mashing the buttons and not knowing the answer.
STEP 7: Conclusion
It was a lot of fun to learn how to program all this so it works on Bluetooth... Bluetooth Low Energy to be precise.
Now I'm looking forward to apply this knowledge to other projects.
15 Comments
michael.daddario 2 years ago
fenerhemedo 4 years ago
riaz.sulaimi 4 years ago
Winner288 5 years ago
1. I noticed you have two LEDs on the side of your main box I'm assuming one of them is for the power but what is the top led for the blueish one.
2. I'm not that knowledgable in coding for an Arduino, but I do know how to program in languages like C++, Python, etc... so if you could please explain what you're code optimizations were and how I can implement them that would be great. (If you use GitHub or some other way for me to see the code that would be even better!)
3. I'm thinking of adding a button on the top of the main box that doesn't allow anyone to buzz in so that a question can be asked first. Do you have any suggestions on how this can be implemented?
4. Lastly, did you make the mobile app yourself? If so what did you use?
I would be really appreciative if you could answer my questions, or tell me something you think is useful to know.
P.S I will be using an ATMEGA328p as my final product.
Qui2Success 5 years ago
Very impressive!
aatssecondary 5 years ago
hi there.thanx for your project here.it is a good.however i wonder, where can i get the code to make the phone connected to the bluetooth in the diagram above, because the 1st version, you provided the code, but this time, i cannot see it anywhere.thanks again.
Lisa Sane 6 years ago
Do you sell your buzzers? Looking for a elementary school teacher. TIA.
Clapoti 6 years ago
shewaras 6 years ago
Clapoti 6 years ago
Thanks for your comments.
The Arduino script is quite complicated in different classes, so I'm not sure it would make sense to share it here, it would take a lot of space and might be hard to use, but maybe I can try.
For the team name, I didn't show it, but tapping on the name of the team shows a pop-up to change the name.
Tapping on the score also allows to adjust it.
sahrulrashid 6 years ago
Hi Sir, can you share the arduino code for this version?
shewaras 6 years ago
Best Regards... Andrew.
jB80130. 6 years ago
arpruss 6 years ago
Clapoti 6 years ago
Good idea, thanks