Introduction: R2-D2 RC Model

Picture of R2-D2 RC Model

I started this project as educational bluetooth rc robot, but in progress i decided to do it as R2D2 look like robot toy.

Robot building is still in progress.

Already done:

  • Robot legs with motors and wheels
  • Robot body
  • Stickers
  • Simple bluetooth steering (Forward, Back, Left, Right and Horn) works with Bluetooth RC Controller on android
  • Buzzer as a horn

In progress:

  • DFPlayer with R2D2 mp3 sounds on SD card instead of buzzer E18-D80NK sensor to avoid obstacle colision
  • RGB LED installation as an robot eye

In future:

I have a plan to implement one more option FOLLOWER - when this option is on robot will follow the operator. The problem is that I have only overall idea. I plan to use band with IR SMD LED mounted on the operators leg and few IR phototransistors with Sharp distance sensor, but its only concept if someone have any other idea PLEASE write it in a comments.

Step 1: Parts and Tools

Picture of Parts and Tools

Parts needed:


Electric and electronic parts:

  • RedBot MainBoard -1 pc.
  • HC-05 Bluetooth Module - 1 pc.
  • DFPlayer Mini - MP3 Pleyer - 1 pc.
  • speakers 3W - 2pcs.
  • DAGU motor with gear 48:1 - 2 pcs.
  • E18-D80NK - Adjustable sensor - 1 pc.
  • RGB LED - 1pc.
  • 4 AA Battery holder with plug - 1 pc.
  • Wires

Building parts:

  • Plastic trash bin - 1pc.
  • A5 greyboard 1mm thic - 6pcs.
  • DAGU Wheel - 2pcs.
  • Metal blocks

Tools:

  • Glue gun
  • Screwdriver
  • Wrench
  • Soldring iron

Step 2: Building Robot Body

Picture of Building Robot Body

As you already know the main body of a robot is made of a trash bin. Legs are made of 1mm thin cardboard cut and glued with a glue gun in shape like on a picture. There are two DAGU motors installed with using of metal blocks on two longer legs. On the third short leg is ball caster also mounted on magnetic blocks. On the trash bin are stickers cut on a plotter.

Probably in future cardboard legs will be changed to a PCV.

Step 3: Electronics

Picture of Electronics

Main part of a robot is Sparkfun RedBot mainboard. It has motor drivers installed, so i connected only HC-05 bluetooth module: RX, TX to pins A0 and A1, VCC to 5V, and GND to GND. Xbee switch i set to SOFTWARE SERIAL. There is also buzzer connected between digital pin 9 and GND.

System is powered by 4 AA batteries mounted in a battery holder and plugged directly to RedBot mainboard.

In the nearest future im going to mount electronics inside the body and add DFplayer, RGB LED, and obstacle sensor.

Step 4: Programming

Program to control robot is really simple. Car Bluetooth RC app by buncalocsends single char which depends on pressed button: F for forward, B for back, L for left, R for right, V or v for horn (it works like on/off button). When there is no pressed button application sends S char. To control robot you need to read char from BT and make some if / else - if condition to run motors or horn.

Step 5: New Mainboard

Picture of New Mainboard

Because of lack of digital pins in RedBot I decided to use Arduino NANO instead of it.

I used EAGLE to make new PCB.

New mainboard has:

  • Arduino NANO
  • Pololu 2511 Motor driver
  • HC-05 Bluetooth module pinout
  • DFPlayer - MP3 player
  • Step - Down transformer - to use 11.1 Li-Pol battery
  • MAG3310 I2C Magnetometer (not implemented yet)
  • RGB LED pinout with resistors
  • Digital pinout for E18-D80NK infrared sensor

As you can see I made some mitakes:

  • Width of ARDUINO NANO -as you can see I used cables on one side of controller
  • I switched RX and TX pin for HC-05
  • I forget that it is NOT SMD PCB and caption is mirror reflected
  • I projected 5V power supply for MAG3110 instead of 3V3

I will attach EAGLE PCB project when everything will be OK.

New ARDUINO program for R2D2 is still in progress and will be available later.

Comments

kasperkls02 (author)2016-01-06

To the following function you coulst rssi. Rssi is a 0-100 number that tells the signal your rc tx and rx. If it get to low then turn the antenna on r2 and when it finds good signal then drive that way. . Dont know if this just my crazy bad solution but just an idea.

Albi78 (author)kasperkls022016-01-06

Hey,

Nice idea - RSSI can give me info about distance between model and phone, but I still need direction.

Just4Fun Media (author)2016-01-06

That looks great! How long did it take to build?

Have a great day! :-)

Albi78 (author)Just4Fun Media2016-01-06

Thanks,

It's hard to say how long, because I was making it in late evenings and nights. It took me 5-6 "sessions" to make it.

DIY Hacks and How Tos (author)2016-01-06

Awesome! My son would flip if he got one of these. I may have to make one for his birthday.

About This Instructable

3,377views

77favorites

License:

More by Albi78:R2-D2 RC Model
Add instructable to: