[DIY] Spider Robot - PART II - Remote Control

by RegisHsu in Circuits > Robots

79494 Views, 118 Favorites, 0 Comments

[DIY] Spider Robot - PART II - Remote Control

未命名.png
IMG_20150805_231015.jpg

If you find my design interesting, you could make a small donation:
http://paypal.me/RegisHsu

There is the part 2 of my Spider robot project - how to remote control through bluetooth.

Here is the part 1 - https://www.instructables.com/id/DIY-Spider-RobotQu... if you are interested in this robot.

It is a simple way to send the command to this spider robot by serial communication.

Make Sure the Bluetooth Module Was Well Connect to the Mainboard

FXKZW2XIEB87G4U.LARGE.jpg
2015年9月26日 台北 14時18分41秒.jpg
2015年9月26日 台北 14時19分35秒.jpg
2015年9月22日 台北 19時08分13秒.jpg
2015年9月22日 台北 19時09分08秒.jpg

Refer to the step 2 of my Spider robot project, please make sure the HC-06 module is connected to the mainboard well.

https://www.instructables.com/id/DIY-Spider-RobotQu...

The LED of HC-06 will keep flashing when power on, it is waiting for connection.

The HC-06 is a popular bluetooth module for arduino.

Upload the Code to Spider Robot

F4VFJCHIEEOJZ7C.LARGE.jpg

1. install the "Arduino-serialcommand-master.zip" library, refer to here for detail process https://www.arduino.cc/en/Guide/Libraries

2. rebuild the "spider_open_v3.ino" and upload to Spider Robot

Note:

Please make sure the setting of your HC-06, here is the default value:

9600 baud rate, N, 8, 1. Pincode 1234

**************

If you want to change the baud rate, refer to the attach file "DatenblattHC-05_BT-Modul.pdf" in detail.

***************

I have changed the baud rate to 57600, you shall change the code to 9600 if you are using the default setting.

void setup()
{

...

//Serial.begin(57600);

Serial.begin(9600); <=== using default setting

...

Connect the Spider Robot With PC/Macbook

全熒幕_2015_9_26_下午8_22.png
spider_open_v3___Arduino_1_6_6_Hourly_Build_2015_08_28_11_10_和__dev_cu_Regis-1-DevB.png
_dev_cu_Regis-1-DevB_和_spider_robot_firmware_auto___Arduino_1_6_6_Hourly_Build_2015_08_28_11_10_和_spider_open_v3___Arduino_1_6_6_Hourly_Build_2015_08_28_11_10.png

1. Do the pairing process before connect to Spider Robot with PC/Macbook/Phone. Pincode 1234

2. Launch Arduino IDE tool, and set the port to HC-06 device in Tools menu item <picture-1>

3. click the icon of Serial Monitor <picture-2>

4. and, check the setting of serial port <picture-3>

then we can input the command to drive the Spider Robot move.

For example, "w 0 1" means robot stand up, and "w 1 5" is driving robot step forward 5 steps.

Here is the command set.

// action command 0-6,
// w 0 1: stand

// w 0 0: sit

// w 1 x: forward x step

// w 2 x: back x step

// w 3 x: right turn x step

// w 4 x: left turn x step

// w 5 x: hand shake x times

// w 6 x: hand wave x times

Connect the Spider Robot With Android Phone

Screenshot_2015-09-27-00-02-44.jpeg
Screenshot_2015-09-26-16-50-44.jpg
Screenshot_2015-09-26-16-50-56.jpg
Screenshot_2015-09-26-16-51-09.jpg
Screenshot_2015-09-26-16-51-42.jpg
Screenshot_2015-09-26-16-53-08.jpg

Another way is connecting with Android phone, it is more fun than PC/Mac.

A good App would suggest to you - Bluetooth SPP tools pro, you can install it from Google Play.

The "Keyboard mode" is easy to use for children.

And the "CMD line mode" is using for debug or development.

Build a Real Remote Control?

IMG_20150902_235950.jpg

I still working on this project and will release it in near future.

Here is the prototype in my blog for reference.

http://regishsu.blogspot.tw/2015/09/robot-quadrupe...