No PID Display

Inquiry and support for Freematics products
Post Reply
DonJuan
Posts: 2
Joined: Wed May 07, 2014 2:51 pm

No PID Display

Post by DonJuan »

Hello sir,
I working on my suzuki swift,first i upload the example code for i2c obd but when i hit the rpm above 3000 the led still turn off. Then i try to check for the adapter connection first :
#include <Arduino.h>
#include <Wire.h>
#include <OBD.h>

COBDI2C obd;

void setup()
{
// we'll use the debug LED as output
pinMode(13, OUTPUT);
// start communication with OBD-II UART adapter
obd.begin();
// initiate OBD-II connection until success
while (!obd.init());
digitalWrite(13,HIGH);
}

void loop()
{
// int value;
//if (obd.read(PID_CONTROL_MODULE_VOLTAGE, value)) {
// RPM is successfully read and its value stored in variable 'value'
// light on LED when RPM exceeds 3000
//digitalWrite(13,HIGH);
// digitalWrite(13, value > 3000 ? HIGH : LOW);
}
}


When i turn on the engine, the LED starts blinking. Then i try to get the RPM but still nothing happen.
Any info for reading the parameter? Should program the adapter again? (i'm using freematics adapter model B)
stanley
Site Admin
Posts: 1018
Joined: Sat Mar 01, 2014 3:15 am

Re: No PID Display

Post by stanley »

Please check if read() returns true or false.
Post Reply