ISO 9141-2
Re: ISO 9141-2
Stanley, I understand, that code doesn't support ISO-9141-1, but does your hardware support ISO-9141-2?
Re: ISO 9141-2
Me too I have a little problem on my OBD-II for Arduinolbroph wrote: ↑Tue Apr 07, 2015 9:46 am I just received my OBD-II adapter for arduino and I am having issues initializing.
Car: 2001 Saab 9-3
Protocol: ISO 9141-2
Arduino: RoboRED (UNO)
I cannot even get the example RPM sketch to work. It doesn't seem to connect to the car. Used oscilloscope to verify arduino is transmitting, downloaded and added libraries successfully.
I can compile and upload the example code to my UNO just fine (no errors). After uploading, Rx light blinks about once/3 seconds if i keep the UNO connected to the computer. Once I disconnect and use other power source (from OBD-II adapter) it doesn't blink anymore, but scope shows it is still transmitting.
****** Does anyone have this same problem or the solution to it??? *******
Below is the example code I tried.
/*************************************************************************
* Sample sketch based on OBD-II library for Arduino
* Distributed under GPL v2.0
* Visit http://freematics.com for more informationRegroupement de prêt immobilier
* (C)2012-2014 Stanley Huang <stanleyhuangyc@gmail.com>
*************************************************************************/
#include <Arduino.h>
#include <Wire.h>
#include <OBD.h>
COBD 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());
}
void loop()
{
int value;
if (obd.read(PID_RPM, value)) {
// RPM is successfully read and its value stored in variable 'value'
// light on LED when RPM exceeds 3000
digitalWrite(13, value > 3000 ? HIGH : LOW);
}
}
Help will be welcome
Re: ISO 9141-2
Old cars keep running but
Tsk! Seek J1850 VPW support, any better vendors out there?Post by stanley » Sat Apr 18, 2020 12:45 am
J1850 is phasing out so we are not going to add support for it.