![]() ![]() Playing with the PID settings may help, but ultimately you'll get the smoothest footage if you ramp the speed down smoothly with the joystick so you're not fighting the inertia too much. Ta-da - you've got a pan/tilt remote head :)īecause you're now in charge of the motor speed, it's easy to make the camera bounce or jerk, particularly if you try and get it to stop too fast. In the GUI, do the settings as per previous post, turn the speeds right down on the RC Settings page (I found 3 works well), and on the Advanced page, whack the Expo curve up (gives you finer control when doing slow tilts/pans) and you'll probably be able to turn the deadband down a bit. (You can use any 4-conductor wire for this I just chopped the ends off a USB lead) Wire the 5V and GND connections on the joystick board to any of the 5V and GND connections on the board (I used the ones next to the TX/RX connections), then wire the VRx and VRy connections on the joystick board to the RC_ROLL and RC_PITCH connections - if you're looking at the board with the RC and FC bank of pins at the bottom right, you'll want to connect to the top left pin and the one next to it. Search eBay for "analog joystick arduino" and you'll find them - around £3 / $5. I can confirm this works: my joystick turned up just now - it's just a PS3 style analog controller on a breakout board. Let me know if this works - I'm going to be doing the same thing as soon as I get time to dig a joystick out of the junk box. Make sure you choose the analog, not PWM versions of the inputs. You'll need to use the GUI to tell the board what you've done - on the RC Settings page, RC_ROLL Pin mode should be set to Normal (PWM or analog), and beneath that, you can then choose which joystick input you want to use for which axis. The middle connection on the pots now give you a variable voltage between 0 and 5V depending on how you're moving the joystick, so connect one of them to the middle pin of RC_ROLL input on the board, and the middle connection on the other pot to the middle pin of the RC_PITCH input. The x-axis on the joystick is connected to analog in 0, the y-axis is on analog in 1. If youre using a part like the Joystick shield pictured below, you may not need a pulldown resistor. Connect a wire between 0v or GND on the controller board to the left-hand connection on each of the joystick pots, and connect the 5v supply you found on the board to the right-hand connection on each pot. Connect your Leonardo board to your computer with a micro-USB cable. Each of these pots has three connections. Your joystick will have two pots - potentiometers - one for each axis. Despite the markings on the board, there is no 5v supply at the RC_xxx pins, so you'll need to use one of the other 5v supplies on the board - perhaps the UART one (ignore RX and TX, just use the GND and 5V pins). The RC_ROLL and RC_PITCH inputs on the board can take an analog input, from 0 to 5v. To connect a standalone analog joystick (ie you aren't using radio control): I haven't connected a joystick yet, so take this with a pinch of salt, but as I understand it: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |