General Misc > Robot Videos

Wii Nunchuck Controlled Robot

(1/10) > >>

frank26080115:
My robot Charlie with a Wii Nunchuck R/C system

[youtube=425,350]rFN0P7389O8[/youtube]

I sound weird on a mic.

EDIT: I posted code and such a few posts after this one

Other videos on my Youtube account
http://youtube.com/frank26080115

More better neater photos on my flickr
http://www.flickr.com/photos/frank26080115/2125780153/

Mega:
Very cool!
Where can I find more info on Charlie?

Admin:
Nice!!!

post some code!

ed1380:
awesome

frank26080115:
The Nunchuck reading code is an improvement upon the code from http://www.windmeadow.com/node/42

This is all done with the Arduino environment

You need one of my custom library (some weird functions i find handy), and you need to modify the existing Wire library with the steps in http://www.windmeadow.com/node/42

my library file is named basic.h, place it in /arduino-0010/hardware/libraries/basic/
i've attached this file to this post

the controller side uses the file inside my "charlie_wii_nunchuck.zip" attached to this post
I found that instructions here http://www.windmeadow.com/node/42 for the connection is not so reliable, I really think you should use a 3.3V regulator, PLUS 10K pull up resistors
Read this http://www.sparkfun.com/commerce/present.php?p=Sensor-Interfacing

The radio transmitter is one of those cheap RF modules Spark Fun sells, except mine only costs $5 each, not $15,
it is connected to the TX pin on the MCU
Don't bother with 4800 baud even though it's the speed the modules are advertised at, use 2400
http://www.robotshop.ca/home/products/robot-parts/communication-control/data-telemetry/on-shine-low-cost-tx-rx.html

the robot has pins defined to the various servos, the pin definitions can be changed in the code (file is servo.pde), the radio receiver is connected to the RX pin, the file is "charlie_advanced_rc.zip"
(I got lazy and used a bunch of switch cases instead of simply calculating out the servo pulse widths, floating point wasn't working right)

OH, and I made a connector to avoid cutting the nunchuck's cables, it's a stick of double sided copper clad board etched with 3 lines to match the inside of the connector, and i made a plastic housing so everything stays nicely together, it's great! The screws I used even lets the connector to "click in"

The pinouts of the connector is here:
http://www.hardwarebook.info/Wiimote_Expansion_Port

Navigation

[0] Message Index

[#] Next page

Go to full version