PIC18f4550 - Detection if a potentiometer is connected or not
This is my first thread, so please sorry for any kind of mistake, such in bad explication of my situation as for my bad english.
So here is my question, is there a way I can detect if a person did connected a potentiometer or not by software? I'm developing a board that have 8 potentiometer connections, and not always will they all be connected, and if one of them is not connected I don't wanna floating values displaying, for this situation I wanna lock the value to 0. And I wanna some kind of plug and play, if someone connect a potentiometer without reset the board, it would start read and displaying the values.
Can someone help me?
I tried to put the pin high and do a ADC read, and then put it low and read again, I know if ther is not a potentiometer connected I will read something like 1020 and 3, and if is there one connected I will read diferent values, but I have a fear to burn my chip if the person let the potentiometer in the low or high position, or this won't happen?
Unfortunately, I can do only software change, hardware changes is no longer avaliable because my boards is already manufactured.
Thanks all you guys!