CAN-BUS port reading with ESP32 and MCP2515_CAN module

GustavoJRoque
Posts: 1
Joined: Mon Nov 01, 2021 6:59 pm

CAN-BUS port reading with ESP32 and MCP2515_CAN module

Postby GustavoJRoque » Mon Nov 01, 2021 7:25 pm

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

saruhan
Posts: 12
Joined: Tue Nov 02, 2021 7:42 pm

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

Postby saruhan » Wed Nov 03, 2021 12:40 pm

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.

dmaxben
Posts: 108
Joined: Thu Nov 16, 2017 6:04 pm

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

Postby dmaxben » Wed Nov 03, 2021 5:35 pm

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...

Who is online

Users browsing this forum: Google [Bot] and 119 guests