<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><div><br class=""><div><br class=""></div><div>I’ve tried to make it as generic as possible.</div><div><br class=""></div><div><ul class="MailOutline"><li class="">SW1 is a four position switch</li><ul class=""><li class="">#0 - no connection (with test point that can inject custom voltage if required)</li><li class="">#1 - USB 5v. Bus is powered with 5v from the USB (useful for bench testing)</li><li class="">#2 - LDO 5v. Bus is powered with 5v using a LDO to regulate down vehicle 12v power</li><li class="">#3 - 12v. Bus is powered from vehicle 12v<br class=""><br class=""></li></ul><li class="">S1 is a on/off switch. When on, it adds a diode+resistor to the K-Line (which is required by some cars for K-line tools being master).<br class=""><br class=""></li><li class="">Test points everywhere, to help debugging</li></ul></div><div><br class=""></div><div>For roadster, SW1 is #2 and S1 is off.</div><div><br class=""></div><div>It is exposed to the ESP32 as an async port, at 3.3v levels. But the transceiver handles the bus at 5v or 12v. It works with K-line, and should also work with LIN, if required. EGPIO8 is used to enabled/disable the transceiver (normally disabled).</div><div><br class=""></div><div>Regards, Mark.</div><div><br class=""></div><div>P.S. Circuit schematic attached.</div><div><br class=""></div><div></div></div></body></html>