5% OFF Over $19, Code: Elephant5; 10% OFF Over $59, Code: Elephant10



Yahboom Omibox Robot Kit arduino IDE course 5.8 Voice

Posted by Fiona Su on

Yahboom Omibox Robot Kit arduino IDE course 5.8 Voice

1.Learning goals

1-1.The position of the Voice sensor on the robot car

1-2.Learn about the Arduino board pins connected to the Voice sensor of Omibox programmable robot 

2.Preparation

image.png

As shown in the above picture, we circled the voice sensor with a red wire frame. 

According to the hardware quick manual, we can see that the Voice sensor is connected to the A7 of the Arduino.

3.About code 

The part code for this experiment is as follows:

image.png

4.Download code

1.We need to open the code of this experiment: Voice.ino, click“√” under the menu bar to compile the code, and wait for the word "Done compiling " in the lower right corner, as shown in the figure below.

2. Click 【Tools】 --- 【Board】 -- we need to choose Arduino Uno. As shown in the figure below.

image.png

image.png

3.In the menu bar of Arduino IDE, we need to select 【Tools】---【Port】--- selecting the port that the serial number displayed by the device manager, as shown in the figure below.

 

 

4. After the selection is completed, you need to click “ →  ”under the menu bar to upload the code to the Arduino UNO board. When the word “Done uploading” appears in the lower left corner, the code has been successfully uploaded to the Arduino UNO board, as shown in the figure below.

image.png

image.png

5.Experimental phenomena

After the program is uploaded, open the power of the car. When we take a breath at the sound sensor of the Omibox robot car, the buzzer will sound.

image.png

!!!Note:The experiment needs to be done in a quiet environment. If the experimental effect is not good, you can adjust the threshold of the sound sensor.

The code of the experiment: 8.Voice.rar

 

 

0 comments

Leave a comment

Please note, comments must be approved before they are published