But.... The ESP32 has a CAN bus controller built in.. All you need is a transceiver. There is no need to first talk SPI to an external controller, to then be able to talk CAN BUS.. Cool video though and it's a good product. Thanks!
@@flixrao at the time of writing that comment, we hadn’t quite figured that out yet, but now we have. After many hours of pain, my group has found out that there was a firmware update that bricked it in many esp32s. You also have to be careful with certain esp32s because the SPI interface used with external controllers are virtualized and you have to set them up a tad differently than shown in this video. It can be a pain. I love poor documentation.
It should be the same as shown in the video.. Normally between an ESP32 and an Arduino you'd need a logic level shifter because most Arduinos are 5V and ESP32 is 3.3V. However, most MCP2515 will come with voltage regulators so this wouldn't be necessary. If yours don't come with voltage regulators you'll need a logic level shifter in between the ESP32 and the Arduino. You'll also need pull-up resistors for anything that doesn't have internal pull-ups. 4.7k Ohm resistors do the trick just fine. (This also goes for I2C and SPI)
i use DOIT ESP32 Devkit V1 and its NOT WORKING. Here something i found problem. Your blog use SCK 013, but your video using SCK 018 Your blog use INT 04, but your video not use INT From github example using CS 10, your video using CS 5 From github example doesn't use SPI.begin(); your video use it Your code using default SPI and your pin was VSPI (5,18,19,23) but default code of SPI (based SPI.cpp) was HSPI with mean pin 12-15 I cannot figured out how to fix this..
Finally, an esp32 CAN Bus project thank u
Great video. Thank you
Awesome… very beautiful thanks for sharing my friend
Great voice. Very well explained.
Awesome project, and great tutorial!
Thank you so much for this tutorial sir❤
Curious - why not just the on board TWAI controller?
Excellent work. It would be great if you could write code for the ESP32 dev module to act as GADGET: SLCAN/LAWICEL.
But.... The ESP32 has a CAN bus controller built in.. All you need is a transceiver. There is no need to first talk SPI to an external controller, to then be able to talk CAN BUS.. Cool video though and it's a good product. Thanks!
For those of us migrating from arduino and already have a bucket of MCP2515 boards, this is ideal.
There are some problems with the built in controller.
@@IJO221 like what? I'm new to this, so I would like to know!
@@flixrao at the time of writing that comment, we hadn’t quite figured that out yet, but now we have. After many hours of pain, my group has found out that there was a firmware update that bricked it in many esp32s.
You also have to be careful with certain esp32s because the SPI interface used with external controllers are virtualized and you have to set them up a tad differently than shown in this video. It can be a pain. I love poor documentation.
I have a comment, in your wiring diagram you connected the RXCAN with RXD and TXCAN with TXD, is it correct?
In can you wire rx to rx and rx to tx with most modules. Really confusing at first.
Awesome sir g
Nice 👍🏼
Innovative
can you say how to connect arduino uno and esp32 in this method?
It should be the same as shown in the video.. Normally between an ESP32 and an Arduino you'd need a logic level shifter because most Arduinos are 5V and ESP32 is 3.3V. However, most MCP2515 will come with voltage regulators so this wouldn't be necessary.
If yours don't come with voltage regulators you'll need a logic level shifter in between the ESP32 and the Arduino.
You'll also need pull-up resistors for anything that doesn't have internal pull-ups. 4.7k Ohm resistors do the trick just fine.
(This also goes for I2C and SPI)
i use DOIT ESP32 Devkit V1 and its NOT WORKING. Here something i found problem.
Your blog use SCK 013, but your video using SCK 018
Your blog use INT 04, but your video not use INT
From github example using CS 10, your video using CS 5
From github example doesn't use SPI.begin(); your video use it
Your code using default SPI and your pin was VSPI (5,18,19,23) but default code of SPI (based SPI.cpp) was HSPI with mean pin 12-15
I cannot figured out how to fix this..
Ran into the same issue, really bad "tutorial".
А если просто переназначить пины с помощью библиотеки SPI?
У меня сейчас есть проблема. Я использую контроллер RP2040 и по идее для каждого контроллера есть своя библиотека