obd k-line interface
PFloyd36069
Posts: 135
Hello,
Just curious if this (http://blog.perquin.com/prj/obdii/obdii_avr.gif) is compatible with the prop. I've tried to get it to work but haven't had any luck. I'm using the full duplex serial object with it set to 125K baud rate, maybe that's too fast for the transistors? If it is compatible, is there anything special I need to do in the program to get it to work?
Thanks,
Bryan
Just curious if this (http://blog.perquin.com/prj/obdii/obdii_avr.gif) is compatible with the prop. I've tried to get it to work but haven't had any luck. I'm using the full duplex serial object with it set to 125K baud rate, maybe that's too fast for the transistors? If it is compatible, is there anything special I need to do in the program to get it to work?
Thanks,
Bryan
Comments
Thanks,
Bryan
Yes, as kwinn says, there is more than the maximum of 0.5mA.
More like:
(13.8V - (3.3V + 0.6V)) / 10K = 0.99mA
But this, not something we want to do, although probably isn't sufficient to cause damage.
Automotive electrical systems are a pretty severe environment.
Its pretty easy to see over voltages caused by alternator charging systems 18V.
Jump starting can cause greater than 28V.
And other short spikes with much higher voltages.
27K should be good at protecting the Prop.
This should protect up to:
(0.5mA * 27K) + (3.3V + 0.6V)) = 17.4V
I would like to protect up to 28V minimum:
(28V - (3.3V + 0.6V)) / 0.5mA = 47K
47K should still work well at 115200 baud.
BTW, the baud rate mentioned was 125K baud. That should have been 115200 baud.
Lastly, the circuit you show is a non inverting circuit.
Most of the examples with the Prop assume the serial data is inverted.
This may be why it isn't working.
Duane J
The o'scope should be able to show what is going on.
BTW, to test your Rx pin you could directly connect the Tx and Rx pins together and see if sent characters show up on the Rx input. If so the pin should be OK.
If not, just use another pin pair.
What pins are you using? I assume not P30/P31 as they would be for programming.
Duane J
On-board_diagnostics
I could find nothing running at 125Kbaud.
Most were much lower speed and with a Pulse-width modulation (PWM) signaling.
Which would not be compatible with standard RS-232 type signals.
Duane J
Mercedes?
Enjoy!
Mike