PaulS:
inputReading1 = analogRead(sensor1); //getting the voltage reading from the 02 sensorSo, inputReading1 could be 0 or 1023 or anywhere in between.
Input = analogRead(PPO); // PID analog input for PPOGets changed, by the precompiler, to:
Input = analogRead(inputReading1*aref_voltage/1024); // PID analog input for PPOSince aref_voltage is 1.72, you will be reading from pin 0.0 to pin 1.718. Does that make sense?
No.....those sections are only related to and control the "PID"(the setpoint controller) function and have nothing to do with the input being read.....only the following code has to do with the LCD displaying the direct voltage that was converted from the "0-1023" value. And this displayed voltage value on the LCD is what is being fed into inputs A0, A1, and A2.
Thank you.