"Wiieasy Rider" Nunchuck /Arduino hack controlling Tamiya Off-Road Car
"Wiieasy Rider" Nunchuck /Arduino hack controlling Tamiya Off-Road Car
Update :- Code posted
>>> Car Park Video of it in Action at end of Blog <<<

Goal:- Hack a Tamiya Off-Road RC car - and control it with Wii-Nunchuck controller
Why:- Its cheap and better and more fun way to control RC cars/boats & maybe planes
Phase one :- now complete hence the Blogging - Wii-NunChuck (arduino) fitted to a stock RC Tamiya Off-Track car.
Phaze two :- removal of Stock RC unit and putting my own cheaper version in - to make it remote controlled.
Phreez two.five :- Install Dead-Mans Finger.....(will be the wii top hat joystick) this thing is so fast that i need to be able to stop it quickly should it get out of hand or drive off down the road when it loses it signal or driver. ( so when the tophat joystick is pushed off center - any direction - it will arm the motor so you can drive - if you trip or fall or panic then your thumb slips off the tophat and it automatically centers and the arduino detects this and kills the motor hence DMF)
Friiez two.eight :- Wire up the Wii_s Z and C button for training mode ie half speed and less sensitivity.
Fazze Three :- Install long-range IR for collision - avoidance (Semi/Full Autonomous mode)
Fayz Four :- Find some crazy manufacturer to produce it.............
Sketchy details at moment - Video shows basic system in operation...
Wii plug/adaptor made from an old ISA pc card ;-)

Custom "Multiple Servo Rig", using a 5Volt regulator and four - triple plug headers
(after 4 servos you would need to beef up the regulator)


| Attachment | Size |
|---|---|
| WiiTamiya_speedo_steero_RF_TX_Gareth3_nodelay2LMR.pde | 2.22 KB |
| WiiTamiya_speedo_steero_RF_servotimer2_RXdeadmanLMR.pde | 2.45 KB |



@ Fri, 2010-10-01 15:02
Question about Controlling the motor
Hello,
First of all I want to say nice project.
I am building something like this, but how did you controll the moror. I see u are using it as a servo.
Thats also the case with me. (I have the same brand RC car as you :p) but how did you manige to controll it?
what were the maximum , center and minimum(reverse) values? and is it just running of 5v?
Greetings iiKoe
@ Fri, 2010-10-01 16:57
Servos and PWM and BEC
Just some pointers :-
1. Normally these cars have a motor controller already built in .... all that is needed to control it is a pwm signal and common ground connection.
2. Caution :- The motor controller normally has a BEC (battery elimination circuit) installed as well .... what this means is the servo lead coming out of the motor controller has three wires 1 is the PWM signal and the other two are supply ...yes a ground lead and actual live 5 Volts out which has been already regulated down from your racing pack battery that supplies the car. (this is a neat feature as you dont really need to worry about running a second supply just for the servos :-)
So my advise is to use the BEC 5V to drive all other servos to -
- just make a servo rig like the one shown in the write up above ...Without the regulator....yes without it ......
3. You will have to experiment with the servo values as each car would be different i guess.
4. Its quite challenging to drive - needs a lot of practice and steady hand.
@ Fri, 2010-10-01 22:10
Thanks
Thank you for the fast respond.
I now the value is different for efry car, but can you tell me yous?
then I have a direction you know. Becouse whatever value I put in, its runnig full power. I cant get it ajusted.
can you give me a sample code?
EDIT: never mind I figuert it out.
@ Tue, 2010-10-12 16:07
Servo Libraries
Just a pointer,
Some servo Libraries use millisecond input ie the so center value is 1500 (and not 90 as in degrees).
I have been traped by this one a few times.....
@ Tue, 2010-10-12 16:07
Servo Libraries
Just a pointer,
Some servo Libraries use millisecond input ie the so center value is 1500 (and not 90 as in degrees).
I have been traped by this one a few times.....
@ Tue, 2010-08-31 07:00
hi i would like to find out
hi i would like to find out how you hook the nunchuck to the car
@ Fri, 2010-09-03 22:47
Wiring of nunchuck to arduino
The nunchuck is connected to the TX Arduino
Red = 3.3V , white = Ground 0V, Green=analog 5,Yellow =analog 6
Thats basically it, the TX arduino encodes roll/pitch,tophat and buttons and sends it over an rf link module.
RF link example 1
RF link example 2
The RX Arduino picks up the rf signal and feeds the roll or pitch data to the stock servos of car.
@ Sun, 2010-07-11 11:51
deadmans finger.
Hi Gareth very nice work!
I have been trying to incorperate these codes into a robot i'm building however can't get the deadmans finger to work?
I was just wondering what has to be done in order to get this working. Thanks
@ Thu, 2010-07-15 19:44
Dead Mans Finger
Thanks for the compliment.....
There are a couple of way to implement a deadmans finger .....
.... in the code its the line :-
if ((XPress>-127) or (XPress<-133)or (YPress>-127) or (YPress<-133)) { strcat(bufferP,"P");} else {strcat(bufferP,"X");}
It uses the Top hat joystick , if you notice there is a "deadband" you may need to tune these to your controller.
It works so..... the motor will only go when the tophat joystick is pushed off center - (center position - means safety - ie off)
You can also uncomment the line :-
// if (chuck.zPressed() == 1) {strcat(bufferR,"R");} else {strcat(bufferR,"X");}
then you could use the "z" controller button too.
Hope this helps .....
@ Tue, 2009-11-17 13:07
Well done, Gareth
This reminds me at another project. The iDriver iPhone remote controlled car. Not a RC car, a real car!
See video here:
http://www.youtube.com/watch?v=oHDwKT564Kk
OK, James Bond has a similar phone controlled car many years ago. ;-)