Introduction: [DIY] Spider Robot - PART II - Remote Control

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

Here is the part 1 - if you are interested in this robot.

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

Step 1: Make Sure the Bluetooth Module Was Well Connect to the Mainboard

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

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.

Step 2: Upload the Code to Spider Robot

1. install the "" library, refer to here for detail process

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


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(9600); <=== using default setting


Step 3: Connect the Spider Robot With PC/Macbook

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

Step 4: Connect the Spider Robot With Android Phone

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.

Step 5: Build a Real Remote Control?

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

Here is the prototype in my blog for reference.


AO_909 made it! (author)2017-07-25

Hi everyone! I just finished making this robot and wanted to share some tips/links that helped me out, as well as provide a Fritzing diagram of where the wires go and such. Hope this helps!

VishalK57 made it! (author)2017-04-09

how can i control this robot with HC-05 bluetooth module

spc2199 made it! (author)2016-08-20

I still haven't been able to solve my issue of the messed up leg movements on some commands. I don't know what exactly the problem is but I have ruled out power supply. I have tested spider_open_v1 and that works perfectly (the example loop) but spider_open_v3 and spider_robot are giving me troubles with Bluetooth control, could it be the serial library or something else in the code? How can I test or fix this. Please help, I really need to get this working or I will fail my subject.


freff made it! (author)2016-08-07

I have finished the Spider build, and all's well. I have tried to use HC-06 to no avail. It installs on the Pro Mini and pairs ok with Android. Unfortunately, I'm at a loss as to how to install the code. I have tried to follow the tutorial ReguisHsu kindly posted, Part 2 The-remote-control. Unfortunately, I'm at a complete loss as how to install the code. Does the code the spider_open_v3.ino remain and the HC-06 code added. Or do I remove spider_open_v3. If so it's here I'm failing. If some could talk me through the sequence I'd be eternally grateful. Sorry for the long comment

Alexander heron the inventor made it! (author)2016-06-23

ok now i manage to download the library but still no effect on the verify process same trouble

Alexander heron the inventor made it! (author)2016-06-23

i cannot download the library with the zip thingy

Alexander heron the inventor made it! (author)2016-06-22

dude when i try to verify this happen

exit status 1

Error compiling for board Arduino/Genuino Uno.

/Users/Liza/Downloads/spider_open_v1/spider_open_v1.ino:28:62: fatal error: FlexiTimer2.h: No such file or directory

#include <FlexiTimer2.h>//to set a timer to manage all servos


compilation terminated.

/Users/Liza/Downloads/spider_open_v1/spider_open_v1.ino:28:62: fatal error: FlexiTimer2.h: No such file or directory

#include <FlexiTimer2.h>//to set a timer to manage all servos


compilation terminated.

exit status 1

Error compiling for board Arduino/Genuino Uno.

exit status 1

Error compiling for board Arduino/Genuino Uno.

/Users/Liza/Downloads/Arduino-SerialCommand-master 2/SerialCommand.cpp

/Users/Liza/Downloads/Arduino-SerialCommand-master 2/SerialCommand.h

/Users/Liza/Downloads/Arduino-SerialCommand-master 2/SerialCommand.h

rsouza15 made it! (author)2015-12-28


About This Instructable




Bio: My Chinese name is 許英豪. My background is Electronic and software engineering. I have over 30 design experience years on the SmartPhone, Tablet and Digital ... More »
More by RegisHsu:How to Make a Complex Shape 3D Model by SketchUpHandy Power Supply[vPython] Spider Robot simulator
Add instructable to: