You said directly, so I thought I might add this. You can take a PIC16Fx with integrated ADC's and set up your joystick's pots in voltage divider mode. To explain, you hook up your VCC to one end of your pot and then take the voltage as sunk through another fixed resistor to ground. Ask me if I'm still not explaining it right or just google voltage divider.
Then assembly code your PIC such that the raw ADC value is used in a timed loop (use a 20 Mhz XTAL and just count the instructions, on a PIC each instruction runs per cycle...nice that way) that drives a GPIO pin out giving you your PWM. This will easily allow a pot (ie. a joystick which is 2 pots) to DIRECTLY control something like a hobby servo. For a hobby servo you need to get the PWM running nicely at about a few hundred or khz and to move it you just adjust the ratio of the on/off on its signal line (there are a lot of tutorials out there on the specifics). Seriously you can have like a rotary pot that get's the servo to mimic the rotation on the pot this way. On Saturday, March 18, 2017 at 6:59:25 AM UTC-7, cobr...@gmail.com wrote: > > > I just want to know the possibilities here before buying a beaglebone > black and starting a project. Im completely new here so perhaps there would > be a better micro-controller out there. I just want to be able to use a > generic usb joystick (or 2 rather simultaneously) to get user inputs that > in turn control pwm pins to vary the output voltage. From there i know the > voltage can be amplified to get into my 24v needed range to proportionally > control a hydraulic function. The key here is that i want to be able to > make a system that if components get damaged they can be swapped out and i > don't have to fabricate a new analog multi-axis joystick each time. I would > need the possibility of 6 pwm's being controlled at the same time via 2 > joysticks but i will do my research to get to there. I'm just wanting to > know what the possibilities are. Thanks > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/8500944a-3353-4b61-b92d-64706d8006ce%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.