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

Popular posts from this blog

G600 Microscope Battery charging mod

INA3221, weird wiring

Component tester with STM32 : Part 1 ADC, Resistor