[DIY] Spider Robot - PART II - Remote Control

57,232

95

27

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

About: My Chinese name is 許英豪. My background is Electronic and software engineering. I have over 30 years design experience on the SmartPhone, Tablet and Digital camera. I love DIY!

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.

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.

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.

Step 2: Upload the Code to Spider Robot

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

...

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.

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

2 People Made This Project!

Recommendations

  • The 1000th Contest

    The 1000th Contest
  • Battery Powered Contest

    Battery Powered Contest
  • Hand Tools Only Challenge

    Hand Tools Only Challenge

27 Discussions

0
hardic2007g
hardic2007g

Question 15 days ago

Hey! I want to control the spider robot with IR please give me the code.

0
tothkristof2017
tothkristof2017

Question 10 months ago on Step 4

Hello i don't finded the app in Google play store can someone send me a link or a zip?

0
AbdurrahmanF
AbdurrahmanF

Question 1 year ago on Step 4

i use arduino nano and bluetooth HC-05. Why can't upload code to board, even though I was freed bt hc 05. error look at the picture. help me

WhatsApp Image 2019-10-28 at 22.30.12.jpeg
0
RegisHsu
RegisHsu

Answer 1 year ago

you should push the "reset" button on Nano while you click the "upload" on Arduino IDE.

0
AbdurrahmanF
AbdurrahmanF

Reply 1 year ago

still "error" after pressing the "reset" button on Nano when you click "upload"
Is it really not possible to use Arduino Nano?
Please help me myfriend .. what's wrong
what should replace Arduino Pro Mini ??
but normal spider programs 1 and 2 without Bluetooth are running smoothly

have email

WhatsApp Image 2019-10-29 at 20.57.46.jpeg
0
RegisHsu
RegisHsu

Reply 12 months ago

it is for sure to use nano

0
MayankP49
MayankP49

Question 1 year ago

Can I run this code on Arduino Uno without changing anything

0
mahbub7783
mahbub7783

Question 1 year ago

hi,
/// I made the spider robot with demo version.Now I am doing the bluetooth one but I am having some problem with the android input command.Please, help me out..........

0
y2016793
y2016793

Question 1 year ago

Can you send me the code that the Spider Code with Controller

4
WyntonL
WyntonL

Question 2 years ago

How do we get apps like Bluetooth Electronics to control the spider as the interface of the app has joycons and buttons?

0
NickM345
NickM345

Question 2 years ago on Step 1

Where i can find the scematic of this roboter?

1
blubaughd
blubaughd

Question 2 years ago on Step 4

Okay now I am really confused. I can get the robot to do everything via usb. It will not do it via bt on com 9 or 10 even though it works on com 8 (usb) I do see the initialization commands on the com 8 serial monitor but not on any other serial monitor

0
blubaughd
blubaughd

2 years ago

I am Trying to locate the port for HC-06 but I am only finding the usb what is the issue

0
CheL7
CheL7

2 years ago

Hi everyone, when I try to upload the "spider_open_v3.ino" to pro mini by HC-06. An error happened with my arduino which I listed below. Do anybody know what happen? And how can I fix it? Thanks!!!

草稿碼使用了 17,238 bytes (56%) 的程式存儲空間。最大值為 30,720 bytes。

全域變數使用了 743 bytes (36%) 的動態記憶體,剩餘 1,305 bytes 供局部變數。最大值為 2,048 bytes 。

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x29

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x29

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x29

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x29

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x29

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x29

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x29

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x29

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x29

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x29

1
blubaughd
blubaughd

Reply 2 years ago

Disconnect the HC-06 during upload

0
CheL7
CheL7

Reply 2 years ago

I just fixed it this morning. First, I try to uploaded the code by HC-06 bluetooth, and failed. Then, I try to uploaded the code by TTL. The HC-06 didn't removed from board, so failed again. Finally, I removed the HC-06, and uploaded the code by TTL. Then, it works.

0
VishalK57
VishalK57

2 years ago

hi RegisHsu i got an error in compiling the bluetooth sketch

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Arduino: 1.0.6 (Windows NT (unknown)), Board: "Arduino Pro or Pro Mini (5V, 16 MHz) w/ ATmega328"
FQAZKN1IEX51BNL:34: error: 'SerialCommand' does not name a type
FQAZKN1IEX51BNL.ino: In function 'void setup()':
FQAZKN1IEX51BNL:99: error: 'SCmd' was not declared in this scope
FQAZKN1IEX51BNL:116: error: 'FlexiTimer2' has not been declared
FQAZKN1IEX51BNL:117: error: 'FlexiTimer2' has not been declared
FQAZKN1IEX51BNL.ino: In function 'void loop()':
FQAZKN1IEX51BNL:154: error: 'SCmd' was not declared in this scope
FQAZKN1IEX51BNL.ino: In function 'void action_cmd()':
FQAZKN1IEX51BNL:207: error: 'SCmd' was not declared in this scope

i got this error can u pls tell me what can i do

0
VishalK57
VishalK57

2 years ago

i get error in copiling the bluetooth code what can i do

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Arduino: 1.0.6 (Windows NT (unknown)), Board: "Arduino Pro or Pro Mini (5V, 16 MHz) w/ ATmega328"
FQAZKN1IEX51BNL:33: error: 'SerialCommand' does not name a type
FQAZKN1IEX51BNL.ino: In function 'void setup()':
FQAZKN1IEX51BNL:98: error: 'SCmd' was not declared in this scope
FQAZKN1IEX51BNL:115: error: 'FlexiTimer2' has not been declared
FQAZKN1IEX51BNL:116: error: 'FlexiTimer2' has not been declared
FQAZKN1IEX51BNL.ino: In function 'void loop()':
FQAZKN1IEX51BNL:153: error: 'SCmd' was not declared in this scope
FQAZKN1IEX51BNL.ino: In function 'void action_cmd()':
FQAZKN1IEX51BNL:206: error: 'SCmd' was not declared in this scope

this is the error

0
Rogue_ork
Rogue_ork

2 years ago

Hey, this is a wonderful project and i'm making it at the moment!

Did you end up finishing your remote control? if so, could you please add the remote control to this Instructable? Thank You!

(even if you just add the code that would be wonderful!)

0
VishalK57
VishalK57

3 years ago

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