CAN Bus signals on a breadboard with ESP32 microcontroller and Oscilloscope

Поділитися
Вставка
  • Опубліковано 29 кві 2023
  • In this video, I use a pocket-sized oscilloscope to measure CAN signals on a breadboard. The system consists of two ESP32 microcontrollers, each connected to a TJA1050 CAN transceiver. I use an open-source Arduino library for CAN communication.
    The primary objective of this experiment is to determine if using 5V CAN transceivers with 3.3V microcontrollers is safe. As a bonus, we get to see the voltage levels adhere to the CAN protocol in real life. Enjoy!
    [TJA1050 CAN TRANSCEIVER DATASHEET]
    www.nxp.com/docs/en/data-shee...
    [Great article on CAN]
    circuitstate.com/tutorials/wh...
    [Arduino ESP32 CAN library]
    github.com/sandeepmistry/ardu...
    [ESP32 Dev Module]
    amzn.to/3HCIqwY
    [CAN Bus Module Transceiver]
    www.amazon.com/dp/B07W4VZ2F2?...
  • Наука та технологія

КОМЕНТАРІ • 19

  • @user-jd4cj5di3y
    @user-jd4cj5di3y Рік тому +1

    I really enjoyed your video :)
    I was wondering if the CAN transceiver is really necessary for applications where the CAN nodes are close to each other with a distance of approximatively 20 cm (it would be for a communication between a dsPIC and a ESP32) ?

    • @EV_engineer
      @EV_engineer  Рік тому +1

      Hello, glad you enjoyed the video! CAN is designed for safety-critical applications, i.e. automotive or aerospace. In those cases, cables are long and we need to ensure signals aren't affected by interference. Definitely not necessary for short distances such as in this video

  • @bennguyen1313
    @bennguyen1313 7 місяців тому

    I understand trc2csv exists, but do you know if it's possible to convert a trc capture (I have a peak usb interface) to an asc or log format?
    For example, python-can logconvert doesn't seem to support trc.. the only way might be to do in multiple steps?
    1) canlogconvert from trc to asc
    2) logconvert to go from asc to log
    3) Once it's in log format, it can be converted to csv using Log-CANverter ... or log plotted using cantools

  • @andyhinkel
    @andyhinkel Рік тому

    thank you very much!

  • @redmundperrz7234
    @redmundperrz7234 Рік тому

    Thanks for the can bus series video , now i know a little bit about voltage swing and in conclusion we can now use that setup together with arduino and MCP2515 transciever so they can communicate?

  • @tomek19991999
    @tomek19991999 8 місяців тому

    Thanks for video. So the result is that you can use TJA with power supply 5V, but with a resistor or without? If with resistor, than which one?

  • @user-rk9zx3lt8k
    @user-rk9zx3lt8k 10 місяців тому

    thanks for your video, so if 3.3v from esp32 is not good solution for this can transceiver, what is alternative solution?

    • @EV_engineer
      @EV_engineer  10 місяців тому

      Just use 5V vcc, as written in the spec

  • @jeffreyrh
    @jeffreyrh 8 місяців тому

    That library does not work with the ESP32 S3. Any ideas how to make this work on the S3?

  • @PremKumar-ex7pm
    @PremKumar-ex7pm Рік тому +1

    I connected one esp32 with one tja1050 , the other side of tja1050 i.e CANH and CANL i have connected to one of the can network.
    i see that i am not getting any output i.e rx signals to esp32
    could you suggest something on this error

    • @EV_engineer
      @EV_engineer  Рік тому

      When debugging it’s helpful to isolate the issue. Do you know that the CAN bus is active? Have you confirmed you can TX data from your transceiver? Do you also have a CAN bus on a breadboard or some other setup?

    • @PremKumar-ex7pm
      @PremKumar-ex7pm Рік тому

      @@EV_engineer I have ecu which is transmitting rx signals..
      Transceiver is not sending any Tx signals.. Yes can bus is active..

    • @PremKumar-ex7pm
      @PremKumar-ex7pm Рік тому

      Could you help me out.. How to solve this?

    • @HuyLe-ki2dn
      @HuyLe-ki2dn 2 місяці тому

      Same problem! Have you fixed it?