Wireless Quiz Buzzer System With ESP Boards
by hugho007 in Circuits > Gadgets
32 Views, 0 Favorites, 0 Comments
Wireless Quiz Buzzer System With ESP Boards
I created this wireless quiz system during my bachelor's year to explore the development of wireless projects. The system consists of four player buttons and one master controller. The master controller identifies which player pressed their button first and can reset the system or remove players from the active list.
Supplies
Hardware
For the players push button
- 4 x Enclosure
- 4 x ESP01s board
- 4 x Arcade push button
- 4 x White LED: for each button
- 4 x Metal switch button: self locking system
- 8 x 18650 Battery:
- 4 x Two 18650 in series Battery holder
- 4 x Step down converter: step down to 3.3V
- 4 x Charge protector: HX-2X-A10
- 1 x PCB
- Wires
- Header Pins
For the master controller :
- 1 x Enclosure
- 1 x ESP32
- 5 x Colored LED: for each button
- 5 x Button: Self-resetting pbs-33b
- 1 x Passive Buzzer
- 1 x PCB
- 1 x Female USB C port
- 5 x 330 Resistors
- Wires
- Headers pins
Assembly of the Players Buttons
I drilled a hole in the top cover of my enclosure to install the arcade push button. Then, I drilled a smaller hole for the metal on/off switch. Finally, I cut the PCB and soldered everything according to the circuit diagram.
Assembly of the Master Controller
I drilled holes in the enclosure for the LEDs, buttons, and USB-C port, then installed the buttons, LEDs, and USB-C port. After that, I connected them to the ESP32 on the PCB and added the buzzer.
How the Communication Works
The buttons communicate with the master controller using the ESP-NOW protocol. Each button operates in one of five states, dictating its behavior:
They have 5 state dictating their behaviour:
- State 0: Waits for the quiz button to be pressed. When pressed, it sends the board number to the master controller.
- State 1: Blinks 5 times, then changes to State 0.
- State 2: Blinks once, then changes to State 4.
- State 3: Turns off the LED.
- State 4: Turns on the LED.
The master controller can change the state of the buttons.
For example, when the master controller receives data from the Red quiz button, it:
- Sends State 3 to the other quiz buttons to turn off their LEDs.
- Activates the onboard LED corresponding to the Red quiz button.
- Sends State 2 to the Red quiz button, which turns on its onboard LED.
If the button on the master controller corresponding to the Red quiz button is pressed, the system:
- Turns off the corresponding onboard LED.
- Sends State 3 to the Red quiz button.
- Removes the Red quiz button from the player list.
- Sends State 0 to the other quiz buttons to reset them.
When the reset button (White) on the master controller is pressed, it:
- Sends State 1 to all quiz buttons.
- Blinks all its onboard buttons 5 times."
Things to Keep in Mind
I made this project a while ago when I first began my prototyping journey, so there are plenty of improvements that could be made, including:
- The power supply is overkill for the task at hand, using a battery with built-in over-discharge protection would eliminate the need for a charge controller.
- A single 18650 battery or a smaller one would be sufficient to power the system for hours or even days (though this requires testing).
- If a single battery is used, the DC-to-DC converter could be replaced by a diode to provide the necessary voltage drop.
- The enclosure could be made of lighter materials or redesigned and 3D-printed for a more efficient build.
- A charging system could be integrated to allow the batteries to be charged onboard.
- The communication between the buttons and the master controller could be further optimized to reduce data transfer over Wi-Fi by leveraging the built-in data confirmation feature of the ESP-NOW protocol.