Page 1 of 1

Getting wrong temperature value

Posted: Tue Feb 23, 2016 1:05 pm
by Yanickr1973
Hi everyone,

I just received my UART OBD2 adapter and did a quick sketch to try it

I am reading the following PIDs:

obd.read(PID_RPM, rpm);
obd.read(PID_AMBIENT_TEMP, temp);
obd.read(PID_SPEED, vitesse);
obd.read(PID_CONTROL_MODULE_VOLTAGE, volt);


Everything is fine exept for the Ambient temp which gives me a value of around 517 (it's minus -11 outside right now)


Am I doing something wrong?

Thank's!

Re: Getting wrong temperature value

Posted: Sun Mar 06, 2016 10:22 am
by stanley
You need to check if read() returns true of false. If the data is not available from your car, it returns false and thus value is not valid.