Page 1 of 1

CAN-BUS port reading with ESP32 and MCP2515_CAN module

Posted: Mon Nov 01, 2021 7:25 pm
by GustavoJRoque
Hello friends. I need to perform a CANH and CANL port reading through my vehicle's OBDII connector. I found several materials with various types of projects, however, none of them used the ESP 32 and the tests were made between other boards. Can someone help me?

I'm using a:
ESP-WROOM 32 : https://produto.mercadolivre.com.br/MLB ... trnica-_JM
MCP2515_CAN: https://produto.mercadolivre.com.br/MLB ... quantity=4

Re: CAN-BUS port reading with ESP32 and MCP2515_CAN module

Posted: Wed Nov 03, 2021 12:40 pm
by saruhan
Hello

You can use Sn65hvd230 chip to reading can buz data.
https://a.aliexpress.com/_va5ga2

I bought this İrem last year and it worked.

Re: CAN-BUS port reading with ESP32 and MCP2515_CAN module

Posted: Wed Nov 03, 2021 5:35 pm
by dmaxben
You dont need to use an MCP2515. Just use the ESP32's internal native SJA1000 CAN controller. Much easier to use the ESP32's internal CAN peripheral, unless you need to connect to multiple CAN busses at once (in that case you'll need to use the MCP2515).

Search "TWAI" (two-wire-automotive-interface).

Remember you'll still need a CAN transceiver chip though regardless. Be sure to use a transceiver that is compatible with 3v3 logic level, otherwise you'll burn up the ESP32's GPIO's...