Page 1 of 1

connect ESP32 to CAN BUS SHIELD

Posted: Wed Nov 06, 2024 9:34 am
by lxkxst
Hey guys,

im kind of new to the ESP32 topic. Right now I'm trying to get my ESP32 connected to the CAN BUS SHIELD i both bought a few days ago but it's not working out.

This is the ESP32 I'm using: https://www.reichelt.de/entwicklungsboa ... oup%20%231

This is the CAN BUS SHIELD I'm using: https://wiki.seeedstudio.com/CAN-BUS_Shield_V2.0/

Can anybody here help me with the correct PIN connection and the right libary and code to use to find out if the connection is working? Since the SHIELD is originally designed for an Arduino, I am kind of feeling lost on how to connect it properly. Also I couldnt really find a proper definition of the pins of the ESP32.

If anybody here could help me a bit with it I would be really happy.


Best regards

Re: connect ESP32 to CAN BUS SHIELD

Posted: Thu Nov 07, 2024 7:58 am
by MicroController
That shield uses the MCP2515, which is a CAN controller. It may be easier to use the CAN ("TWAI") controller inside the ESP32 with only an external CAN transceiver like the TJA1051.
lxkxst wrote:
Wed Nov 06, 2024 9:34 am
Also I couldnt really find a proper definition of the pins of the ESP32.
Unlike Atmel's AVRs, most of the functions of the ESP32 aren't hard-wired to specific pins but can be configured at runtime to use any (/most) pins you want.