brentonw2004
New Member
Hello all. I am new to this board so hello. Here is my problem. I am using a Pic 16f628 to build a car part. I am programming it with Pic Basic Pro. I need to get an 8-bit reading from a 100K potentiometer. I have tried to use the "POT" command, but I am having very little luck with this. I am debugging my chip with a serial cable connected to my computer. The pot seems to work, but it seems to increase the value of my variable way too fast, it stays at zero until nearly half way through the turn, then it increases very rapidly to 255 and stays there for the rest of the turn. How can I space this out to were 0 is at one end and 255 is at the other. I have a lot of these chips, so changing to a different chip with an a/d converter would be very costly, and I cannot simplify my design to not use a microchip. Also, could I use the POT command with a pressure sensor as well, it is after all just another type of variable resistor? Thanks!