"read failed" error - Analog Input. How to connect potentiometer to Analog input of Industruino 1286 Ind.I/O ?
I have a simple potentiometer with 3 pins (V+, Signal, GND). I have connected first pin (V+) to +5V of external power supply, second pin (Signal) to Analog Input (CH1) and third pin (GND) to ground of external power supply and ground pin (Analog zone) of Industruino. Industruino is powered by USB cable connected to Laptop. Serial Monitor shows "read failed" as soon as Industruino is powered up and there is no change in the potentiometer values. I have changed analogReadMode to V10 or mA_raw, and the error still exists.
This wiring works with Arduino Uno with simple analogRead function. However it doesn't work with Industruino.
sensorVal1 = Indio.analogRead(1);
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!