Using Analog stick
Still planning to pimping the cheap handheld console, so i bought a few of these cheap analog sticks.
They are pretty simple, just 2 rotary potentiometers, converting the angle to a voltage divider.
The voltage is VCC/2*(1+sin(Angle))
With angle from -90 degree to + 90 degree
A simple lookup table will easily invert that, to get the angle from the voltage.
Comments
Post a Comment