Skip to main content

The AI robot is a human shape robot that could move forward and raise hands.

In this project, you will learn how to build a robot with a motor and 3D print, a Raspberry Pi may be a suitable replacement from the board shown in the video.

The project includes the AI recognition parts, please read Part 1  Part 2 Part 3 and Part 4 of HOW TO BUILD YOUR OWN DATASET WITH A NEURAL NETWORK CONSOLE.

Let get started!

Here is a step by step video to follow.

Make a robot with a servo, more videos here 

Milestone, after you have completed the robot parts, please use this Html file to test the robot functions.

<html>
<body>
<table align="center" border=1 cellpadding=10>
<caption><b>Robot Control</b></caption>
<tr><td></td><td>
<form action = "http://192.168.4.1">
<input type="hidden" id="command" name="command" value="F">
<center><input type = "submit" value = "F (Fast Forward)"></center>
</form>
<form action = "http://192.168.4.1">
<input type="hidden" id="command" name="command" value="f">
<center><input type = "submit" value = "f (Slow Forward)"></center>
</form>
</td><td></td></tr>
<tr><td>
<form action = "http://192.168.4.1">
<input type="hidden" id="command" name="command" value="L">
<center><input type = "submit" value = "L (Turn Left)"></center>
</form>
<form action = "http://192.168.4.1">
<input type="hidden" id="command" name="command" value="l">
<center><input type = "submit" value = "L (Move Left)"></center>
</form>
</td><td>
<form action = "http://192.168.4.1">
<input type="hidden" id="command" name="command" value="0">
<center><input type = "submit" value = "Reset"></center>
</form>
</td><td>
<form action = "http://192.168.4.1">
<input type="hidden" id="command" name="command" value="R">
<center><input type = "submit" value = "R (Turn Right)"></center>
</form>
<form action = "http://192.168.4.1">
<input type="hidden" id="command" name="command" value="r">
<center><input type = "submit" value = "R (Move Right)"></center>
</form>
</td></tr>
<tr><td></td><td>
<form action = "http://192.168.4.1">
<input type="hidden" id="command" name="command" value="b">
<center><input type = "submit" value = "B (Backward)"></center>
</form>
</td><td></td></tr>
<tr><td></td><td>
<form action = "http://192.168.4.1">
<input type="hidden" id="command" name="command" value="B">
<center><input type = "submit" value = "Hand (L)"></center>
</form>
</td><td></td></tr>
<tr><td></td><td>
<form action = "http://192.168.4.1">
<input type="hidden" id="command" name="command" value="Y">
<center><input type = "submit" value = "Hand (R)"></center>
</form>
</td><td></td></tr>
</table>
<center>(After kicking a button, press "<-" on the web browser to get the screen back.)</center>
</body></html>

The AI part is sending the TCP packet to the robot and the robot response. The Spresense will first send the GPIO signal to Raspberry Pi, the Raspberry Pi is linking to the robot Wi-Fi. Then, the Raspberry Pi will send the signal received from Spresense to the robot via Wi-Fi.

Here is the Raspberry Pi program. The Raspberry Pi will receive the result of the Spresense and then send to the robot, the same as the Html above.

The pins could be defined by your own choice, the Raspberry Pi will communicate with the Robot's esp8266 then function well.

Enjoy

Downloads

Brian0925 has not written a bio yet…
DesignSpark Electrical Logolinkedin