This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I'm using the FRC Gamepad Tool to load the TI-supplied firmware for a USD HID joystick with a KMA210 magnetic angle sensor. I have a voltage divider taking the KMA210's 5V max output to 3.3V, and when plugging in the MSP and checking the windows game controllers, an axis does respond when I turn a magnet near the sensor, but the reading is all over the place. Bouncing back and forth by 40% of the whole angle range. I've tried using an external 5V supply, tried changing the sampling on the ADC, the Vref, the clock multiplier, the wires, the input pin, just about everything.
Does anyone have any advice?
Hello Evan,
Thank you for your post. Did you happen to calibrate the inputs? If you do not connect the spare analog inputs to a voltage during calibration (so called ‘floating’ inputs), the input will behave erratically. We recommend that you connect each unused analog input to ground and avoid using these in your code.
Regards,
James
MSP Customer Applications
I've tried:
Connecting all unused analog pins to ground
Connecting all unused analog pins to 1.5v
Removing all unused analog pin references from the code and changing ADC sampling to single channel
I did. I actually just ended up replacing the MSP430 with an Arduino Leonardo and it works perfectly. If you have any more ideas though, I'd love the extra resolution of the MSP
Hello Evan,
I'm glad to hear you got something working! Unfortunately, I don't have much experience with this project/design and don't have any hardware (except the LaunchPad). The most likely cause for noise issues is loose cables or poor soldering. It is strongly recommended that you use a sturdy connection on the LaunchPad and all input devices. From what you're describing, it almost sounds like there's some type of interference causing your values to jump around.
It may be helpful to use a simple potentiometer to see how the analog input is measured across the input voltage range. Using this instead of the KMA210 magnetic angle sensor module may help isolate where the issue is.
Regards,
James
MSP Customer Applications
**Attention** This is a public forum