

Are you sure the response is supposed to be that long? Can you provide a link to more info on this PID? However, that is an absolutely ridiculously long PID response. Serial.println(F("\tERROR: ELM_GENERAL_ERROR")) įor more info on custom queries, you can look at this GitHub issue. Serial.println(F("\tERROR: ELM_TIMEOUT")) Įlse if (myELM327.status = ELM_GENERAL_ERROR) Serial.println(F("\tERROR: ELM_STOPPED")) Serial.println(F("\tERROR: ELM_NO_DATA")) Serial.println(F("\tERROR: ELM_UNABLE_TO_CONNECT")) Serial.println(F("\tERROR: ELM_GARBAGE")) Įlse if (myELM327.status = ELM_UNABLE_TO_CONNECT) Serial.println(F("\tERROR: ELM_BUFFER_OVERFLOW")) Serial.println(F("\tERROR: ELM_NO_RESPONSE")) Įlse if (myELM327.status = ELM_BUFFER_OVERFLOW) Serial.print("DPF burns: ") Serial.println(burn) Įlse if (myELM327.status = ELM_NO_RESPONSE) Serial.print("Payload received for DPF burns: ") Int32_t tempBurn = myELM327.findResponse() Serial.print("Liters: ") Serial.println(litersLeft) Serial.print("Payload received for liters: ") Int32_t tempLitersLeft = myELM327.findResponse() / 64.0


Serial.print("Payload received for soot: ") Int32_t tempSoot = myELM327.findResponse() Serial.print("Payload received for rpm: ") Serial.println("Couldn't connect to OBD scanner - Phase 2") ĭigitalWrite(LED_BUILTIN,HIGH) delay(100) ĭigitalWrite(LED_BUILTIN,LOW) delay(100) Serial.println("Couldn't connect to OBD scanner - Phase 1") For custom queries, take a look at this example that prints soot level: // modified test + my custom PIDsĮLM_PORT.begin(ESP_BLUETOOTH_NAME, true) You can query any PID supported by the ELM327.
#Elm327 user manual pdf Bluetooth#
Note that you will need to connect to the bluetooth scanner using an HC-05 or other bluetooth to UART converter. Serial.print("RPM: ") Serial.println(rpm) Serial.println("Couldn't connect to OBD scanner") Serial.println("Attempting to connect to ELM327.")

#Elm327 user manual pdf code#
Some notables include speed, rpm, MAF pressure, etc.īelow is an example code that will print rpm data from a (running) car. And you can use it to query any pieces of data as specified by the OBD-II public PIDs.
