I have tried to connect the OBD-II Adapter for Arduino - Model B to a 2014 Toyota Prius (ISO 15765-4 CAN | 11-Bit 500k) which should be supported, but the program hangs at obd.init().
I have properly connected the two wires to the SDL/SDA ports and tried to change the protocol in obd.h init() but still did not work...
I have tried with the car ON and OFF, connecting SDA and SDL before and after the arduino is ON.
When I try this code (inside de setup function):
Serial.println("test");
if(obd.init()){
Serial.println("OBDII adapter has been connected");
} else {
Serial.println("Connecting to OBDII adapter...");
}
Only test is displayed, nothing else in the if/else statement is displayed, it seems like the code hangs inside the init() method.
When connecting the adapter the blue light flashes twice and then turns off, is this a normal behaviour?
Any ideas?
Model B & ISO 15765-4 CAN (11-Bit 500k baud) & Prius Proble
Re: Model B & ISO 15765-4 CAN (11-Bit 500k baud) & Prius Pr
Did you connect GND?
Re: Model B & ISO 15765-4 CAN (11-Bit 500k baud) & Prius Pr
You are right, I did not connect GND. I tried again with the ground connected to the arduino and this time it worked! (That and turning the car on and waiting a couple of minutes for the whole thing to connect). The blue lights also flash every couple of seconds and I get good data back.
Thank you!
Thank you!
Re: Model B & ISO 15765-4 CAN (11-Bit 500k baud) & Prius Proble
What do you mean exactly by connecting to the GND ?
Are you using a OBD connector or do you connect directly to the pins ?
Are you using a OBD connector or do you connect directly to the pins ?
Re: Model B & ISO 15765-4 CAN (11-Bit 500k baud) & Prius Proble
Connect Arduino GND and adapter GND.