[quote author=PaulS link=topic=97414.msg731258#msg731258 date=1332195258]
[code] inputReading1 = analogRead(sensor1); //getting the voltage reading from the 02 sensor
So, inputReading1 could be 0 or 1023 or anywhere in between.
Input = analogRead(PPO); // PID analog input for PPO
Gets changed, by the precompiler, to:
Input = analogRead(inputReading1*aref_voltage/1024); // PID analog input for PPO
Since aref_voltage is 1.72, you will be reading from pin 0.0 to pin 1.718. Does that make sense?
[/quote]
The first part is write...."inputReading1 = analogRead(sensor1); //getting the voltage reading from the 02 sensor [/code]
So, inputReading1 could be 0 or 1023 or anywhere in between."
The second part....I'm not quite sure what your asking, all I know is ultimately the PPO value is equal to the output voltage that is currently being displayed by the alphanumeric LCD.