I have made a game to teach children how to count numbers from 1 to 6 and how to recognize them with the help of sounds (Buzzer).
The child will click a number on the phone APP and the number he clicked will display on 7 segment and a unique sound for each number will rise from the buzzer.
Bluetooth Module
Arduino Uno and it's cable
7 Segment Display
One buzzer
Some male-female and male-male wires
Breadboard
Tinkercad website
Mobile APP.
Arduino APP.
I need Bluetooth Module for sending data wirelessly and an APP in downloaded on phone to act like the GUI, I need Arduino Uno to be the microcontroller of the project and it's cable to connect it to the PC,I need Arduino App to write the code of the project. I need a 7 segment to show numbers and a buzzer to make sound. I needed also a breadboard to help me to connect my wires. And finally, Tinkercad website to test wires connection.
Design in TinkerCAD website
I used the search tab to collect my tools then I started connecting them : I have connected the Bluetooth module with power and ground Also connected TX to RX in the Arduino and the RX to the TX.Then I moved to the 7'segment connection I put a 220 Ohm resistor to each pin to limit the power and connected them to pins 2,3,4,6,7,9,10 in the Arduino ,Then I connected the common to the ground . Finally I put the buzzer and connected one pin of it to an analog pin(11) to have different sounds. , and the other pin was put to the ground.
Editing setting in Bluetooth APP
I have changed the data sent by the APP to be '1' when clicked on A , '2' when B '3' when C , '4' when 'D' , '5' when 'E' and '6' when 'F'.
Also paired the phone to the Bluetooth (HC-05).
Arduino code for a 7'segment and a Buzzer
After connecting the wires in Tinkercad I moved to Arduino App to write the code , I started writing a code to operate the7'segment only then I checked that it's working , when I made sure I added a code to the buzzer.
In the code above I made a variable called income to store the characters sent by the Bluetooth APP.
I then made 8 output pins , seven of them for the 7'segment pins and the last was for the buzzer . Then I called the Serial function to set the speed of sending data .
Inside the void loop I checked for the characters sent by the Bluetooth APP if '1' is sent I will display 1 in the 7'segment by making pins 7 and 4 high and the last pins low, Also I have set the buzzer tone to be 29.
I made the same sequence " with a change of the tone " in the last characters sent by the Bluetooth APP by the help of this Link .
I didn't find the Bluetooth module on tinkercad ,so I searched for other components which is close and found this Wifi module.
This week I have learned how to deal with Bluetooth module using serial and what APP's we can use in our phones and PC's to send data to this module wirelessly with the help of Bluetooth.
I have learned also how to set data which is sent from the APP to the Arduino with help of the APP settings.
I saw this project in fab-lab Mansoura which taught me a lesson that Every big project needs to be decomposed into smaller tasks so you can be impressed with the final result :).