You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi
i want read speed by obdIIUART and print it to Serial monitor
my code is
#include <OBD2UART.h>
COBD obd;
void setup()
{
// we'll use the debug LED as output
pinMode(13, OUTPUT);
Serial.begin(115200);
// start serial communication
obd.begin();
// initiate OBD-II connection until success
while (!obd.init());
}
void loop()
{
int SPEED;
if (obd.readPID(PID_SPPED, SPEED)) {
Serial.println(SPEED);
}
delay(500);
}
but my result is
ATIATZATE0ATH0010D0100012001400160
010D50
010D50
010D50
why it happend? i only want "50" as speed
please help me
The text was updated successfully, but these errors were encountered:
hi
i want read speed by obdIIUART and print it to Serial monitor
my code is
#include <OBD2UART.h>
COBD obd;
void setup()
{
// we'll use the debug LED as output
pinMode(13, OUTPUT);
Serial.begin(115200);
// start serial communication
obd.begin();
// initiate OBD-II connection until success
while (!obd.init());
}
void loop()
{
int SPEED;
if (obd.readPID(PID_SPPED, SPEED)) {
}
delay(500);
}
but my result is
ATIATZATE0ATH0010D0100012001400160
010D50
010D50
010D50
why it happend? i only want "50" as speed
please help me
The text was updated successfully, but these errors were encountered: