ESP32 CAN Bus Tutorial | Interfacing MCP2515 CAN Module with ESP32

Поделиться
HTML-код
  • Опубликовано: 5 фев 2025

Комментарии • 24

  • @SmartTronics
    @SmartTronics 5 месяцев назад +7

    Finally, an esp32 CAN Bus project thank u

  • @nathanpeterson1783
    @nathanpeterson1783 37 минут назад

    Great video. Thank you

  • @RaushanKumar-dc9we
    @RaushanKumar-dc9we 5 месяцев назад +1

    Awesome… very beautiful thanks for sharing my friend

  • @purity6541
    @purity6541 5 месяцев назад +1

    Great voice. Very well explained.

  • @rau7han
    @rau7han 5 месяцев назад

    Awesome project, and great tutorial!

  • @Azephyrad
    @Azephyrad 5 месяцев назад +2

    Thank you so much for this tutorial sir❤

  • @robertcameronjones
    @robertcameronjones 3 дня назад

    Curious - why not just the on board TWAI controller?

  • @HaseenaParween-s7s
    @HaseenaParween-s7s 5 месяцев назад +1

    Excellent work. It would be great if you could write code for the ESP32 dev module to act as GADGET: SLCAN/LAWICEL.

  • @Pyromasaur
    @Pyromasaur 4 месяца назад +6

    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!

    • @JamesOnscotch
      @JamesOnscotch 3 месяца назад +1

      For those of us migrating from arduino and already have a bucket of MCP2515 boards, this is ideal.

    • @IJO221
      @IJO221 3 месяца назад +1

      There are some problems with the built in controller.

    • @flixrao
      @flixrao Месяц назад

      @@IJO221 like what? I'm new to this, so I would like to know!

    • @IJO221
      @IJO221 Месяц назад

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

  • @OmarZC06
    @OmarZC06 5 месяцев назад

    I have a comment, in your wiring diagram you connected the RXCAN with RXD and TXCAN with TXD, is it correct?

    • @IJO221
      @IJO221 3 месяца назад +1

      In can you wire rx to rx and rx to tx with most modules. Really confusing at first.

  • @mramzadg
    @mramzadg 5 месяцев назад

    Awesome sir g

  • @Daddy-k9o
    @Daddy-k9o 5 месяцев назад

    Nice 👍🏼

  • @damanshah2789
    @damanshah2789 5 месяцев назад

    Innovative

  • @TechEngineering-w3h
    @TechEngineering-w3h 4 месяца назад +1

    can you say how to connect arduino uno and esp32 in this method?

    • @Pyromasaur
      @Pyromasaur 4 месяца назад

      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)

  • @tommybulyan
    @tommybulyan 2 месяца назад

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

    • @outkast187
      @outkast187 2 месяца назад

      Ran into the same issue, really bad "tutorial".

    • @dandik_4347
      @dandik_4347 Месяц назад

      А если просто переназначить пины с помощью библиотеки SPI?

    • @dandik_4347
      @dandik_4347 Месяц назад

      У меня сейчас есть проблема. Я использую контроллер RP2040 и по идее для каждого контроллера есть своя библиотека