Introduction: Guiding Robot With Voice Recognition Feature
Guiding Robot is a mobile robot which we made to guide the visitors to various departments in our college campus. We made it to speak a few predefined statements and to move forward and backward according to the input voice. In our college we have the Mechatronics department and the IT department opposite to each other.When the robot is placed in front of the Mechatronics department, it moves forward to reach the Mechatronics department and it moves backward to reach the IT department according to the input voice, as simple as that.
Step 1: Components Requied
- 1 x Raspberry Pi 3
- 1 x Arduino nano
- 4 x 12V motors with clamps
- 4 x wheels
- 1 x motor driver
- 1 x 12V battery
- 1 x 5V power bank
- 1 x wooden base
- 1 x USB speaker
- 1 x microphone
- 1 x robot body and head
- some nuts, bolts and wires
- Internet connection
Step 2: Base of the Robot
- Take a rectangular board (l,b,h as required).
- Drill holes according to the motor clamp holes.
- Fix the motor and the clamp to the base with nuts and bolts.
- Drill holes as shown in the image to fix the body of the robot.
- Drill another hole to bring the wires from the motor to the top of the base.
Step 3: Body
- We used two chemical box as the body and a chick box as head.
- Drill appropriate holes on the boxes and fix it one on the other.
- Place the body on the base with the head on the top.
Step 4: Setting Up Raspberry Pi
Step 5: Connections
- Connect the two right motor wires to output port-1 and the other two motor wires to the out put port-2 of the motor driver.
- Connect arduino nano pins 2,3,4 and 5 to the motor driver pins 1,2,3 and 4.
- Connect the arduino nano to RPi via USB cable. We used arduino nano as a slave and RPi as a master.At some cases RPi was not able to control the motor driver,so we used arduino nano to control the motor driver.
- Connect USB Speaker and Microphone(we used inbuilt mic of a webcam) to RPi via USB ports and fix them to the head of the robot.
Step 6: Downloads
- Download the attached file and extract it.
- Power the RPi and copy the extracted files to RPi desktop.
- upload the arduino code to the arduino nano from RPi.
- Right click on the speaker icon on the desktop and select the output audio device as USB audio device.
- The "1.txt" file consists of the voice input statements and the corresponding audio output statements are given in th file "2.txt".
- Add the desired input statements to the file "1.txt" and the output statement to the corresponding line of the file "2.txt".
Step 7: Testing of the Robot
- Power the motor driver with a 12 V battery.
- Run the code "GuideRobot.py"
- When you speak the 1st statement in the file "1.txt", the robot replies by converting the 1st statement of the file "2.txt" to speech and so on.
- Say "Guide me to Mechatronics department", it will move forward and say "Guide me to IT department", it will move backward. These statements can be edited as required.
Participated in the
Voice Activated Challenge