This post was copied from the following url
http://hk.myblog.yahoo.com/robot-builder/article?mid=104
Recently, I have free time to play with electronics and robot again. And I found Arduino is a very good device for bringing your imagination into reality. There will be tons of projects created with this microcontroller board. It is cheap but powerful. You can use it to control many low level devices.
I have a lot of cheap Radio Control Toys such as UFO, Mimi Cars, Tanks... Most of them are controlled by transmitters running in 27Mhz. I wonder the functions of the transmitters for these toys are very simple. Most of them have forward, backward, turn left, turn right, turbo and stop functions. If I can decode the signals( from the transmitters) and store the encoded pulses inside the Arduino and send out again, it is possible to control these toys from other devices having serial connection.
Nokia N82 <---------> Arduino + RC transmitter ----------------> RC Toys
Bluetooth Radio Control
PC <---------> Arduino + RC transmitter ----------------> RC Toys
Bluetooth Radio Control
After reading the following websites, i wounder it is possible to builder a RC Controller from Arduino.
1. Building a Universal Remote with an Arduino
http://zovirl.com/2008/11/12/building-a-universal-remote-with-an-arduino/
2. iPhone controlled R/C car
http://www.youtube.com/watch?v=i29u92qg40E
3. ShakerRacer: Real RC car controlled with the N95 acceleration sensor
http://blogs.forum.nokia.com/blog/andreas-jakls-forum-nokia-blog/2007/11/27/shakerracer
4. How Radio Controlled Toys Work
http://electronics.howstuffworks.com/rc-toy2.htm
For my first testing, I used a Nokia N82 mobile phone to control a mini RC Car. Nokia N82 have a 3D title sensors ( accelerators) which will provide the orientation of the phone. Changing the orientation will send out commands for controlling the toys. OK. Lets see the videos.
Let see the required equipments and software:
1. Parallax oscilloscope ( For decoding the pluses which are sending from transmitter)
http://www.parallax.com/Store/Accessories/Tools/tabid/162/ProductID/46/List/0/Default.aspx?SortField=ProductName,ProductName
2. Non-used RC toys ( I need the transmitter and receiver, running at 27Mhz)
3. Arduino Diecimila ( The microcontroller board)
http://www.arduino.cc
4. Bluetooth serial port ( From sparkfun, use to connet between Arduino and Nokia N82)
http://www.sparkfun.com/commerce/product_info.php?products_id=582
[ This bluetooth module is quite expensive (~HKD480). I know that there may be a cheaper version from taoboa
http://www.taoboa.com.]
5. Nokia N82 ( Installed with Pys60 which will get the orientation of the phone and send out commands , to play with Pys60, you need to know programming Python)
http://wiki.opensource.nokia.com/projects/PyS60
http://www.python.org
I need the transmitter and receiver , which are taken from the following non-used RC car
The mimi RC car, The receiver was taken out.
The red wire pin (SI) was connected to oscilloscope, then measure the width and number of pluses. or please see the spec. of the receiver (
http://www.utc-ic.com/spec/RCR2C.pdf)
The stuff inside the orange box is the 27Mhz transmitter. To stimulate the encoded pluses, it need to connect the output pin of the Arduino to the (SO) pin of the transmitter.
The spec. is matching the following remote control I.C. ( transmitter)
http://www.utc-ic.com/spec/RCT02.pdf
Now. It is time to decode the signals of the RC car, which is also running in 27Mhz
I got the following result (For forward direction), it just need to measure the width of the pluses and number of repeated pluses for different directions (i.e. forward, backward, turn left, turn right, turbo, stop) and use Arduino to stimulate the signals.
.
From the outputs, I got the following signals
1. Forward : 4 long pluses, then following 10 short pluses
2. Backward :4 long pluses, then following 40 short pluses
3. Forward +Turn Left: 4 long pluses, then following 28 short pluses
4. Forward +Turn Right : 4 long pluses, then following 34 short pluses
5. Backward+Turn Left: 4 long pluses, then following 46 short pluses
6. Backward+Turn Right : 4 long pluses, then following 52 short pluses
7. Turbo: 4 long pluses, then following 22 short pluses
Now making a PCB which connect the transmitter and the Arduino. loading the programme for Arduino and Nokia N82. It is now able to control the cheap radio control car from the N82..
If you are interesting in the software. please download here ( sorry for few comments):
1. Wire programme for Arduino
http://freespace.webtracker.hk/remote_mimi_car2.pde
2.PyS60 programme for N82 (based on
Jouni Miettunen's Sensor Analyzer)
http://freespace.webtracker.hk/bt_controller_v_1.0.py
Using similar techniques, it is possible to decode another Radio Control Toys( running 27Mhz) with out hacking the hardware.. I will try another toys soon....