In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: You won't get linear results if you are not using the same value resistors. You will need to use an op-amp to buffer the voltage (you may be able to use the SX comparitor, I never tried it). Basically you want to run your 35volts through a resistor divided to get it down to 5 volts. Then run that 5 volts through an op-amp to buffer the voltage level. Then run the output of the op-amp into the analogin circuit using the same value resistors on each side. Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=200009#m200010 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)