Connect with us

OBDII interface question - newbie alert...

Discussion in 'General Electronics Discussion' started by RicardoF1RST, May 28, 2020.

Scroll to continue with content
  1. RicardoF1RST

    RicardoF1RST

    6
    0
    May 28, 2020
    Hi could anyone please advise, I have a car OBDII to USB interface (circuit attached) that needs to connect to another device. Normally a car would provide a 12v power source to pin 16. But ideally I need to use a 5v supply to pin 16. If I do so, am I correct in assuming that the subsequent serial output on either K-Line will be 0v / 5v rather than the normal 0v / 12v high/low? i.e. the output uses the power supply on pin 16 as a reference? Many thanks.
     

    Attached Files:

  2. Harald Kapp

    Harald Kapp Moderator Moderator

    10,793
    2,435
    Nov 17, 2011
    Your assumption is correct. But:
    1. The output on K-Line(1) will then be 0 V - 5 V only, insufficient for IBDII which requires levels from 0 V to Vbat (12 V)
    2. The treshold for the transition between logic low and logic high are set to 6 V from 1/2 × Vbat (12 V). When using 5 V this threshold will be reduced to 2.5 V and susceptibility to noise will increase.
     
  3. RicardoF1RST

    RicardoF1RST

    6
    0
    May 28, 2020
    Many thanks for that, it’s what I expected. It does work when connected to a car (using the 5v) which I was surprised at, but it’s a fluke. I will add a circuit to generate the 12v as it’s not available from the car (long story). Thank you very much for the confirmation.
     
  4. narkeleptk

    narkeleptk

    32
    9
    Oct 3, 2019
    Just add a 7805 to your circuit for your 5V. Its old chip but very easy to work with and has always worked well in automotive applications for me.
     
  5. RicardoF1RST

    RicardoF1RST

    6
    0
    May 28, 2020
    Thanks, but the issue isn’t the quality of the 5v supply, that can come from the USB connector. The issue is the target device expects the logic levels to be 0v / 12v for logic 0 & 1. The interface “kinda works” with 5v power (surprisingly), but the ideal solution is to pull the 5v USB supply up to 12v internally and use that for the comms reference. The currents involved are minimal so it’s straight forward to do. Normally the 12v is provided by the target device but in my case the target only provides a ground plus TX & RX. Baud rates are low too, only 5000 and 7812.5
     
  6. Harald Kapp

    Harald Kapp Moderator Moderator

    10,793
    2,435
    Nov 17, 2011
    Find a step-up regulator or a boost regulator (same thing, 2 names) on your favorite electronics sales platform. Plenty of these available for a few bucks.
     
    narkeleptk likes this.
  7. RicardoF1RST

    RicardoF1RST

    6
    0
    May 28, 2020
    Already ordered, many thanks ;)
     
  8. RicardoF1RST

    RicardoF1RST

    6
    0
    May 28, 2020
    How much of an issue do you think it is that the 12v and GND I'll be using is coming from a USB socket, rather than from the same power supply rail that the target device is using? Thinking about it, the OBDII spec is designed so that the chip that does the logic level conversion within the lead provides a logic 1 and 0 voltage supplied by the target device for maximum compatibility. My 12v and GND will be from another source...
     
  9. Harald Kapp

    Harald Kapp Moderator Moderator

    10,793
    2,435
    Nov 17, 2011
    None at all. In fact, you'll have to have a common ground for any setup of this type to work.
    Note that your typical USB computer socket as per the standard delivers 100 mA only (without handshake with the load) or max. 500 mA (after handshake with the load). Make sure this is enough for your application or use a USB power supply rateh at more than 500 mA.
     
  10. RicardoF1RST

    RicardoF1RST

    6
    0
    May 28, 2020
    I’m thinking 30-40mA so comms USB should be fine. The ECU I’m connecting to provides a GND, TX & RX for the comms. These go to the OBDII K lines and data GND. Then there are the power 12v and chassis GND. I’m tying the GNDs together. Thanks again for your advice.
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-