Go Down

Topic: Please help with animatronic skull (Read 571 times) previous topic - next topic

Hi all! Noob here, please bear with me. I managed to get a basic parallax thumbstick to control 2 servos (pan/tilt) to control this guy:

http://www.youtube.com/watch?v=duqM3DZileQ&feature=plcp

Now I would like to replace the thumbstick with a wireless Wii nunchuk (Nyko kama- already bought-already hacked an adapter).

Here are my problems (other than I apparently suck at coding):

This code works with a CORDED chuk, but the servos are intended to be rotational (mine aren't- they just shudder when active- can't figure how to change)(also won't work for me with wireless chuk at all).
http://www.instructables.com/id/How-to-Control-Your-Robot-Using-a-Wii-Nunchuck-an/?ALLSTEPS

This code works with my wireless, but the servos move all the way in one direction at the slightest input, and do not self-center (I tried changing from analog 0 and 1 to digital 9 and 10- didn't solve) I think this one is my best bet though.
Project URL: http://www.gabrielbianconi.com/projects/arduinonunchuk/

This code only works CORDED for me, but the joystick function does not work, although the accelerometer is smooth (I still want stick control).
http://www.timteatro.net/2012/02/10/a-library-for-using-the-wii-nunchuk-in-arduino-sketches/

I honestly have been chasing down links of code for a week, but as I've said, my coding skills are pretty basic, and a lot of it seems pretty old. I think that Gabriel Bianconi's looks like my best bet, but how do I get the self-centering and quick response like in my video?

Please help me Obi-Wan, you're my only hope...

Thanks for your time,
John


What was the greatest invention before sliced bread?

Nevermind!

By increasing the deadband value, I'm able to control it much more smoothly now (using Gabriel's code). I would still prefer it to self-center, but maybe I'll figure that one out on my own as well...
XD
What was the greatest invention before sliced bread?

boomocha

were you able to use the wireless nyko kama nunchuk on your project? can i ask some help?? hehe

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy