Quote:
Originally Posted by Ether
How is the potentiometer connected to the cRIO (ie where is each wire going)? Have you measured the pot's signal with a simple voltmeter to ascertain for certain that it is actually providing a signal?
|
Above should be the your first step in troubleshooting this problem! So often we overlook the basics and jump to the advanced steps.
1) Verify the pot actually works.
2) Verify it is connected correctly.
3) See if the code reads as expected.
Quote:
Originally Posted by EricVanWyk
If it looks like you are getting noise, you probably are - I'm betting that your code is just fine.
Wire one end of the pot to +5V, the other end to ground, and the middle to the signal input. These should be labeled on the shell for the analog breakout.
|
To address step #2 above, make sure the pot is connected to the analog bumper as follows:
One end of the pot is connected to the black wire of a PWM cable. The other end of that black wire needs to be connected to the Gnd. pin on the analog input you selected.
The other end of the pot needs to be connected th the red wire of the same PWM cable. The other end needs to be connected to the +5v pin of the analog input.
Now the wiper of the pot needs to be connected to the white wire of the PWM cable. The other end of the white wire needs to be connected to the
Signal pin of the selected analog input.
With these steps verified, you can now use a "probe" to see if the code is working properly.