Getting wrong temperature value

Inquiry and support for Freematics products
Post Reply
Yanickr1973
Posts: 2
Joined: Tue Feb 23, 2016 12:59 pm

Getting wrong temperature value

Post 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!
stanley
Site Admin
Posts: 1029
Joined: Sat Mar 01, 2014 3:15 am

Re: Getting wrong temperature value

Post 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.
Post Reply