I know this is a very basic question even worth asking but i am working with multiple pots connected to analog inputs and since due to mechanical characteristics all of them have slightly different resistance values at their center positions. Is there any best way to determine this center position at the beginning of the code for each pot so that it may be used as a reference for further values?
I know this is a very basic question even worth asking but i am working with multiple pots connected to analog inputs and since due to mechanical characteristics all of them have slightly different resistance values at their center positions. Is there any best way to determine this center position at the beginning of the code for each pot so that it may be used as a reference for further values?
Thanks in advance.
Regards.
Well, on any other Arduino, this is simple, just save the calibration values into EEPROM and read them from there back on a system restart. Have done that with some setups for temperature control on Uno, Leonardo/Yun and Mega2560.
Catch 22 however is that the Due by default doesn't have a build-in EEPROM similar to the AVR chips, though an alternative is mentioned here...