On Sat, Mar 18, 2017 at 1:49 AM, <[email protected]> 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
Sounds like a cool project, and looks doable. In Linux joysticks show up as input devices, typically in /dev/input/js0 That file appears automagically when you plug in the USB joystick, and it contains the binary event stream from the joystick. There's a input device test program jstest in the linuxconsoletools package, which decodes that binary traffic, decoding that stream. A typical game pad has two joysticks and a dozen or so buttons (mine has 4 front buttons, colored ABCD cross on the right, 4-way hat on the left, 3 buttons in the middle and two center buttins in the joysticks. Since each joystick provides X and Y analog position, each gamepad can drive four PWM outputs, so you need two gamepads---I think that's what ou mean by 'two joysticks'/ -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAC%3D1GgGpiJJdP8XyfCZRxtrAeh4QA5SEqRMhWCzYvg_HvM3O8A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
