Bluetooth Controlled Insect (HC-05 & Servos)

by Aditya Tripathi in Circuits > Arduino

2870 Views, 6 Favorites, 0 Comments

Bluetooth Controlled Insect (HC-05 & Servos)

IMG_20160126_093125.jpg
temp_-1324208318.jpg
IMG_20160126_092857.jpg
IMG_20160126_092853.jpg
IMG_20160126_085312.jpg
IMG_20160126_085347.jpg
Hello first thanks for reading my Instructables. There are many Instructables for bluetooth control car . But this is a Bluetooth Control Insect .

This uses two servo motor which acts as muscles of insect and the bones are made of Aluminium hanger. Bluetooth Module HC-05 gets connected with any smartphone and then we need only an app called Bluetooth RC controller . Now when we connect HC-05 to Bluetooth RC controller . Our Smartphone sends data to it . When no button is pressed it sends character 'S' to our HC-05 and so and so far.

Video was not made while typing but I make sure that I upload the video 2 days after.

This i'ble is dedicated to my country.


PLEASE PLEASE PLEASE VOTE FOR ME IN THE CONTEST.

Tools and Parts:

IMG_20160126_084006.jpg
imgres.jpg
images.jpg
IMG_20160126_085501.jpg
images.jpg
imgres.jpg
Double sided.jpg
Glue gun.jpg
images.jpg
imgres.jpg
Male pins.jpg
Soldering iron.jpg
wire.jpg
imgres.jpg

Servos -2 (Normal or Continuos Rotation)

  • Arduino or Arduino Pro Mini (Recommended Pro Mini as to reduce weight)
  • HC-05 Bluetooth Module
  • Cloth Hanger ( Aluminium )
  • 9V Battery
  • Battery Clip 9V
  • Wire (Female to Female) (Male to Female)
  • Male pins
  • PCB
  • LEDs (for eyes)
  • Hot Glue gun with Sticks
  • Double Sided Tape
  • Soldering Iron
  • Tape
  • Solder Wire
  • Soldering helping hand
  • Not all Tools mentioned here are that much necessary for the Bot e.g. Soldering helping hand. But if you are a active hobbyist you must have these tools for your future projects.

Making Legs

IMG_20160126_095528.jpg
IMG_20160126_095601.jpg
IMG_20160126_095553.jpg
IMG_20160116_124752.jpg
IMG_20160116_124339.jpg
IMG_20160116_124631.jpg
IMG_20160116_124845.jpg
IMG_20160116_124633.jpg
IMG_20160116_124629.jpg
IMG_20160116_124736.jpg
IMG_20160116_124830.jpg

Cut two peices from a wire cloth hanger rear legs 28cm and front legs 25cm.
Bend the legs with plier. Make sure that the feet point backward so that they act as a hook that they are able to climb over obstacles. At this stage do not worry about the shape of legs you can shape them afterwards . Legs may slip so you must attach Heat Shrink tubing or rubber band. I used rubberband .

Attaching Legs

IMG_20160126_095607.jpg
IMG_20160126_095616.jpg
IMG_20160126_095519.jpg
IMG_20160126_095625.jpg
IMG_20160126_095511.jpg
IMG_20160126_084134.jpg
IMG_20160126_084111.jpg
IMG_20160116_124347.jpg
IMG_20160116_124553.jpg

Attach the aluminium legs to the Servo attachment first with a jumper wire and than hot glue them.You do not need to attach the attchment just now . You can attach them afterwards.

Testing Bluetooth

Connect HC-05 Rx to Arduino or Pro Mini Tx pin.

Connect HC-05 Tx to Arduino or Pro Mini Rx pin.

Connect HC-05 +5 volt pin to Arduino or Pro Mini +5 or vcc pin.

Connect HC-05 Gnd to Arduino or Pro Mini gnd pin.

Connect led to Digital pin 13

Now download an app from google play called ""Bluetooth Rc controller"" . Install it and connect to Hc-05.

Upload the following code and test that when you press forward Button in""Bluetooth Rc controller""does the LED glow or not. If it does than proceed to the next step else recheck the conection and soldering.

Downloads

Connections of Servo

IMG_20160126_083817.jpg
IMG_20160126_083259.jpg
IMG_20160126_083418.jpg

To connect servo first connect Vcc of each servo to each other and than to Vcc of Pro Mini

Than group all Gnd's together. Connect servo signal pin to digital pin 7&8(you can change them in the code) & its all for servo.

Programming Walk

The code for each(Forward,Backward).

Downloads

Full Code

The code is for continuous rotation Servo because I lost my Normal Servo so you have two choices . Either you convert your servo to continuous rotation servo or wait for me to publish version 1.2 of Insectbot. Here is the code .

Connections Full

IMG_20160126_083201.jpg
IMG_20160126_084209.jpg
IMG_20160126_084244.jpg
IMG_20160126_083239.jpg
IMG_20160126_084233.jpg
IMG_20160126_092120.jpg
IMG_20160126_091250.jpg
IMG_20160126_083311.jpg
IMG_20160126_083051.jpg

Connect leds + two pin 12 & 13.

Connect Vcc of each servo & HC-05 to each other and than to Vcc of Pro Mini Than group all Gnd's together. Connect HC-05 Rx to Arduino or Pro Mini Tx pin. Connect HC-05 Tx to Arduino or Pro Mini Rx pin. Now we are done we shall Check our progress. To connect multiple + you can make your own breadboard.

Correcting the Loopholes of Continuos Rotation Servo

IMG_20160126_083602.jpg
IMG_20160126_083610.jpg
IMG_20160126_084648.jpg

As we all know that Continuos Rotation Servo are inaccurate so to plug out the loopholes

this step was made. First tune them . To tune them you need to upload the following code that makes the servo write 90 and not 90 degree here 90 means zero speed so if servo moves at that point you should turn the screw (potentiometer) located on the side of each servo next Put a iron stick with hot glue on the side of servo so that they do not move too much.

Finishing and Decorating

IMG_20160126_092828.jpg
IMG_20160126_092907.jpg
IMG_20160126_084658.jpg
IMG_20160126_084309.jpg

Roll all the wire around the robot and tape them.

Stick the HC-05 to Insectbot and Pro Mini with double sided tape. Cover the robot with fluroscent sheet and stickers and all.

Precautions

You must take some precautions while working on this .

You must not touch the hot tip of Hot glue gun .It mayburn your hand. Do not short circuit it may burn atmega chip on arduino. While uploading code you must remove the Rx,Tx pin of HC-05 from Arduino. Do not turn the Servo forciby it may become inaccurate. Do soldering carefully. For more advice comment their please.

Ideas for Future

IMG_20160126_082943.jpg
IMG_20160126_084314.jpg
IMG_20160126_082844.jpg
IMG_20160126_092811.jpg

Add new sensors to it.

Teach him to climb higher objects.

Add a peizo speaker .

Teach your insect to stand if it falls on its back.