@trainman419 You did a very good job! I was using two relay to simulate the button but that's just an ugly solution. It's way better to communicate to the LIN bus directly.
Btw, I'm using ESP8266 in my project. The only problem is that it's output pin has a voltage of 3.3V instead of 5V on an Arduino. I checked the datasheet of MCP2003B and found these about the TDX and RDX:
RDX: It has to be at a high level (> 2.5V typical) while LBUS is recessive
Looks like 3.3V from ESP8266 pin is just fine.
TDX: has an internal pull-up
I don't know if the voltage here will be 5V or 12V, but both are higher than the max tolerant voltage of ESP8266 pin.
Do you have any thought about this problem? I mean I can use a MOSFET as a gate but that seems to be an overkill.
Thanks!
@trainman419 You did a very good job! I was using two relay to simulate the button but that's just an ugly solution. It's way better to communicate to the LIN bus directly.
Btw, I'm using ESP8266 in my project. The only problem is that it's output pin has a voltage of 3.3V instead of 5V on an Arduino. I checked the datasheet of MCP2003B and found these about the TDX and RDX:
Looks like 3.3V from ESP8266 pin is just fine.
I don't know if the voltage here will be 5V or 12V, but both are higher than the max tolerant voltage of ESP8266 pin.
Do you have any thought about this problem? I mean I can use a MOSFET as a gate but that seems to be an overkill.
Thanks!