0% found this document useful (0 votes)
92 views9 pages

DIY Spider Robot PART II Remote Control

This document describes how to add remote control functionality to a spider robot project using Bluetooth. It details uploading new code to enable Bluetooth control, connecting the robot to a PC, Mac or Android phone using a Bluetooth app. Commands for controlling movement and actions are provided. Steps to build a physical remote control prototype are also mentioned but not fully documented.

Uploaded by

tri edy utomo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
92 views9 pages

DIY Spider Robot PART II Remote Control

This document describes how to add remote control functionality to a spider robot project using Bluetooth. It details uploading new code to enable Bluetooth control, connecting the robot to a PC, Mac or Android phone using a Bluetooth app. Commands for controlling movement and actions are provided. Steps to build a physical remote control prototype are also mentioned but not fully documented.

Uploaded by

tri edy utomo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

technology workshop craft home food play outside costumes

[DIY] Spider Robot - PART II - Remote control


by RegisHsu on September 25, 2015

Table of Contents

[DIY] Spider Robot - PART II - Remote control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

Intro: [DIY] Spider Robot - PART II - Remote control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Step 1: Make sure the bluetooth module was well connect to the mainboard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Step 2: Upload the code to Spider Robot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

Step 3: Connect the Spider Robot with PC/Macbook . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

Step 4: Connect the Spider Robot with Android Phone . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

Step 5: Build a real remote control? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

http://www.instructables.com/id/DIY-Spider-Robot-PART-II-Remote-control/
Intro: [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 - http://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.

http://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.

http://www.instructables.com/id/DIY-Spider-Robot-PART-II-Remote-control/
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

...

File Downloads

http://www.instructables.com/id/DIY-Spider-Robot-PART-II-Remote-control/
Arduino-SerialCommand-master.zip (6 KB)
[NOTE: When saving, if you see .tmp as the file ext, rename it to 'Arduino-SerialCommand-master.zip']

spider_open_v3.ino (23 KB)


[NOTE: When saving, if you see .tmp as the file ext, rename it to 'spider_open_v3.ino']

DatenblattHC-05_BT-Modul.pdf (932 KB)


[NOTE: When saving, if you see .tmp as the file ext, rename it to 'DatenblattHC-05_BT-Modul.pdf']
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

http://www.instructables.com/id/DIY-Spider-Robot-PART-II-Remote-control/
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.

http://www.instructables.com/id/DIY-Spider-Robot-PART-II-Remote-control/
http://www.instructables.com/id/DIY-Spider-Robot-PART-II-Remote-control/
http://www.instructables.com/id/DIY-Spider-Robot-PART-II-Remote-control/
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...

http://www.instructables.com/id/DIY-Spider-Robot-PART-II-Remote-control/
Related Instructables

Very simple to
Control Arduino Arduino bot Hacked Hexbug Bluetooth Robot create Arduino
with Android Android remote Spider Arduino with computer Arduino bot bluetooth spy
Phone via control II by Control by Interface by Android remote robot with
Bluetooth by braserito66 sezgingul stuartrucker control by Android
CircuitMagic donmatito RemoteControl
app by
Konstantin
Kalushev

Advertisements

Comments

http://www.instructables.com/id/DIY-Spider-Robot-PART-II-Remote-control/

You might also like