Skip to content
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

Usage with MCP2025 #55

Open
Dabi1127 opened this issue Jan 14, 2024 · 2 comments
Open

Usage with MCP2025 #55

Dabi1127 opened this issue Jan 14, 2024 · 2 comments

Comments

@Dabi1127
Copy link

Hey!
Can I use this library with the MCP2025 IC? If so, do I need to change anything in the code?
MCP2025 datasheet: https://ww1.microchip.com/downloads/en/DeviceDoc/20002306B.pdf
I found it pretty similar to the SN65HVDA100.

@iwanders
Copy link
Owner

Library is agnostic to the transceiver chip, it only uses digital signals on Tx and Rx, just make sure to set the wake pin appropriately, just glancing at the first page I expect it'll work fine. Give it a shot :)

@supergladson
Copy link

Hello friends, speaking of working fine, I would like to share two new informations. The first is that this library worked perfectly on the MC33660. The other information is that it worked on the STM32 family using the STM32Duino library. There are some considerations: 1) The user must insert the index number of the port array to be used in the obd.begin() function, as this function does not accept the PB9, PB10 format in RX_PIN, TX_PIN, only integers numbers. This information about the relationship between the array index and the pin name is in the variant_generic.cpp file. 2) To avoid communication problems on the STM32, configure the Serial port to SERIAL_8N1 when starting Serial.begin(), it is a good practice for the STM32Duino. To find out the default port of each STM32 microcontroller in the STM32DUINO library, open the variant_generic.h file that refers to the core of your microcontroller. To finish, in the STM32 (STM32DUINO) from the second serial port onwards, the initialization occurs using the HardwareSerial() function. As this OBD9141 library will use two serial ports, I will already provide this tip. I hope I helped how to get this OBD9141 library successful with the STM32 family using the STM32Duino library (Arduino_Core_STM32).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants