How to connect MCP2551 modul to ESP32?

Hello. I recently bought a MCP2551 modul: https://www.aliexpress.com/item/1005005125788283.html?spm=a2g0o.order_list.order_list_main.164.5a851802EQuYgn for I need to read CAN bus with ESP32.

Does anyone know how to connect it to ESP32? It looks like it uses serial communication? Are there already any (CAN, OBD2) libraries available for MCP2551 modul?

Google doesn't bite... :grin:

Thank you. I'm going to read it. It doesn't mention MCP2551, which I'm having problems with, though ...

That's a 5v chip. so you'll need a level translator chip to down shift the Rx voltage going into the ESP32.
Would not recommend the resistor hack shown in the ESPHome documentation unless you have an oscilloscope to check the signal integrity.

Also, being from an Aliexpress seller, it's highly likely to be a fake chip, so expect the behavior to deviate from the datasheet. It may even give the illusion at working at 3.3v despite what the data sheet says about the low voltage brownout shutdown behaviour.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.