I need to connect arduino to K-Line in my car's OBDII port.
I used an L7805 to power the atmega but how can I interface 12V car logic with 5V arduino logic?
The problem is, the connection has to be bidirectional- sometimes the arduino
will pull the line high/low and sometimes the car will - the purpose of
this connection is to get throttle, rpm etc. data.
This would be easy if the connection was one directional - I could use a
transistor to steer 12V to going IN the K-Line and voltage divider if I wanted to do the reverse. But how to do both?
-
2here they use a voltage divider for the RX and a transistor for the TX.– GerbenCommented Aug 28, 2018 at 12:50
-
These bi-directional logic level converters work with 5V and 12V, and cost 0.33CAD: aliexpress.com/item/…– VE7JROCommented Aug 28, 2018 at 14:18
Add a comment
|
1 Answer
I found this that may be helpful to you. this circuit allows for bidirectional communication between automotive K-line ECUs and an arduino. K-Line Interface circuit