Unable to connect using OBD UART with Arduino
Posted: Thu May 26, 2016 6:30 am
Hey,
I bought the OBD UART adapter in February, but got busy with work so I just managed to get around my project using it this week.
However, I haven't been able to successfully connect to the car...
Even with the simplest code, it goes past obd.begin() but never successfully returns from obd.init()...
My setup:
Arduino UNO
Wiring: red wire connected to 5V on Arduino, black to ground, green connected to RX and white connected to TX.
Car: 2007 Mazda RX-8
Things I tried:
- Tried connecting red wire from OBD to Vin instead of 5V on Arduino
- Tried swapping TX and RX connections in case I messed up the wiring
- Tried with another Arduino UNO (thinking that maybe something got fried with the first one?) but that didn't change anything (and whatever else I run on those Arduinos works fine...)
- Tried using different wires (male-male connected from OBD adapter to breadboard) in case there's something wrong there
- Tried powering Arduino from 9V battery instead of OBD Vcc, with shared ground
- Tried powering Arduino from USB connected to laptop
- Changing from COBD to COBDI2C (even though I didn't think that would help, I have the UART/Serial model of OBD adapter)
- I wanted to try with "SoftwareSerial" but for some reason I'm seeing only gibberish in the Serial Monitor in Arduino IDE... How should it be used? What am I missing?
- Running this sketch: https://github.com/stanleyhuangyc/Ardui ... d_uart.ino but it appears to be getting stuck in the loop with obd.init()
- Running this sketch: https://github.com/stanleyhuangyc/Ardui ... t_test.ino but I'm only seeing some gibberish (nothing like what's passed to println())
Video showing the adapter with solid red led (I'm assuming power), and shortly blinking orange (communication?):
https://1drv.ms/v/s!An97xZQnw4Pvjqt2RzaeAXBhoOTehw
The code is simply obd.begin() and then obd.init() with 1 second delay between attempts and piezo beep to indicate that it's happening (very quietly heard in the video).
TX/RX leds are not blinking on Arduino at all during those attempts...
What am I missing?
Can it be that the adapter I received is faulty? Any way to confirm that?
If so, would it be possible to receive a replacement?
I'll be grateful for any help - I got to a dead end and am running out of ideas to try...
Thanks,
Bogdan
I bought the OBD UART adapter in February, but got busy with work so I just managed to get around my project using it this week.
However, I haven't been able to successfully connect to the car...
Even with the simplest code, it goes past obd.begin() but never successfully returns from obd.init()...
My setup:
Arduino UNO
Wiring: red wire connected to 5V on Arduino, black to ground, green connected to RX and white connected to TX.
Car: 2007 Mazda RX-8
Things I tried:
- Tried connecting red wire from OBD to Vin instead of 5V on Arduino
- Tried swapping TX and RX connections in case I messed up the wiring
- Tried with another Arduino UNO (thinking that maybe something got fried with the first one?) but that didn't change anything (and whatever else I run on those Arduinos works fine...)
- Tried using different wires (male-male connected from OBD adapter to breadboard) in case there's something wrong there
- Tried powering Arduino from 9V battery instead of OBD Vcc, with shared ground
- Tried powering Arduino from USB connected to laptop
- Changing from COBD to COBDI2C (even though I didn't think that would help, I have the UART/Serial model of OBD adapter)
- I wanted to try with "SoftwareSerial" but for some reason I'm seeing only gibberish in the Serial Monitor in Arduino IDE... How should it be used? What am I missing?
- Running this sketch: https://github.com/stanleyhuangyc/Ardui ... d_uart.ino but it appears to be getting stuck in the loop with obd.init()
- Running this sketch: https://github.com/stanleyhuangyc/Ardui ... t_test.ino but I'm only seeing some gibberish (nothing like what's passed to println())
Video showing the adapter with solid red led (I'm assuming power), and shortly blinking orange (communication?):
https://1drv.ms/v/s!An97xZQnw4Pvjqt2RzaeAXBhoOTehw
The code is simply obd.begin() and then obd.init() with 1 second delay between attempts and piezo beep to indicate that it's happening (very quietly heard in the video).
TX/RX leds are not blinking on Arduino at all during those attempts...
What am I missing?
Can it be that the adapter I received is faulty? Any way to confirm that?
If so, would it be possible to receive a replacement?
I'll be grateful for any help - I got to a dead end and am running out of ideas to try...
Thanks,
Bogdan