![]() |
Re: Potentiometer
Sorry but our potentiometer is still not working. Potentiometer is hooked up to Analog Channel #2. Power is going to the analog module.
Code for printing is as follows: (Im typing it because its on a different computer.) Code:
AnalogChannel *m_Pot;:confused: :confused: :confused: :confused: :confused: |
Re: Potentiometer
Quote:
When you measure the voltage with a meter, does it do what you expect? |
Re: Potentiometer
Not in the room atm but I'm sure that all three wires are connected to a pwm which then feeds into the analog module. It hasnt been changed (or at least not that I know of because OCCRA happened and fuses/pwms were taken off of the robot.) since last competition.
|
Re: Potentiometer
Colin,
Assuming that the code is functional, the reading sounds like what I would expect with a shorted wire. Use a voltmeter and check at both the pot and the wiring entry to the analog module. |
Re: Potentiometer
*Facepalm* once again on our team the fault is not programming it is electrical. The solder holding the positive wire to the potentiometer broke off.
Only noticed after trying to stick a volt meter down there.....:rolleyes: Thanks for the help nonetheless as it did help solve our problem. :D |
| All times are GMT -5. The time now is 11:13. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi