maandag 10 februari 2014
Arduino Pan & Tilt with Wii Nunchuk - hardware
The servo's are driven by an Arduino mini and I added a Wii Nunchuk controller so the camera follows the movement of your hand. I wrote an Arduino sketch that drives the servos by using the joystick or by using the internal movement sensors of the Nunchuk.
This video shows some tests I did mounting all kinds of equipment. The purpose was to see if these servos can really take a lot of weight.
Well, they can !
The servo's (Tower Pro MG995 - link is in dutch) are the powerful kind you find online for really low prices. I did this test some time ago to check if they can really take the 13 to 15 kg cm troque that the supplier claims. It's not an accurate test, but I calculated that it should at least hold a bucket of water (10 kg) on a lever of 1 cm.
This is the part where you connect your photo or video equipment on top and slide it back and forth.
Nunchuck Arduino Adapter by Sparkfun.
This is the layout I used to connect the parts. It's important to check that pins AD4 and AD5 (analog pins 4 & 5) are used by the I2C interface of the Arduino. The Wii Nunchuk uses this interface, so you don't have any choice there. Pins 3 and 5 were used to drive the servos, but any pin can do that job if you alter the sketch on the next page.
I'm using battery power of 7.2V for the servo's and for the 9V connector of the Arduino. Be sure never to connect the power lines of the servo's to the 5V regulator of an Arduino, it will be toasted!
Next: the software page