|
Re: Get Resistance from Analog In?
That is exactly how you wire it. If you are using Kevin's code you type in Get_ADC_Result(CHANNEL) =. Channel must be from 1-16 depending on which port you plug it into. It returns in 10 bit resolution so if you are saving it to a byte, do Get_ADC_Result(CHANNEL)/4. If you want to make it slightly faster you can use >>2 instead of /4.
__________________
2017 Shenzhen, China Regional CSA
2013 - Present MAR Control System Adviser and FTAA
2009 - Present Programming an Electrical Mentor Team 41
2007 - 2008 Team 41 Lead Programmer, Electrical
2005 - 2008 Team 41 Member
2008 NYC Regional Winner
|