-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get MCP2003B to work with 3.3V ESP8266? #5
Comments
@left4taco were you able to solve this? I'm in the exact same situation with a NodeMCU |
Interested as well. |
I have an MCP2003B hooked up to a Sparkfun Thing Dev (ESP8266) and I have not had trouble with it. I seem to remember finding something about this in the MCP2003B data sheet, but I don't remember exactly where. |
@trainman419 I'm also struggling with my esp8266 (Wemos D1 Mini). To make the debugging easier, I've switched the lin.h to SoftwareSerial and use the USB port (HardwareSerial) to get some console output. I get a proper answer for the current height (enc_a).
I'm wondering about the output of
Do you have any idea what the Btw. I've the bigger size bekant and according to the megadesk repo, I've changed this line |
while reading my own answer, I think I should try EDIT: |
@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!
The text was updated successfully, but these errors were encountered: