CAN Bus signals on a breadboard with ESP32 microcontroller and Oscilloscope

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ก.ย. 2024
  • 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/do...
    [Great article on CAN]
    circuitstate.c...
    [Arduino ESP32 CAN library]
    github.com/san...
    [ESP32 Dev Module]
    amzn.to/3HCIqwY
    [CAN Bus Module Transceiver]
    www.amazon.com...

ความคิดเห็น • 21

  • @imanuelpundoko6831
    @imanuelpundoko6831 2 หลายเดือนก่อน

    do you ever tried NodeMCU esp8266 with mcp2515? or anyone have any experience to interfacing the esp8266 with mcp2515

  • @marcelshasa
    @marcelshasa ปีที่แล้ว +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 10 หลายเดือนก่อน

    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

  • @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?

  • @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 5 หลายเดือนก่อน

      Same problem! Have you fixed it?

  • @jeffreyrh
    @jeffreyrh 11 หลายเดือนก่อน

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

    • @Electronieks
      @Electronieks 5 หลายเดือนก่อน

      By other esp32 board

  • @tomek19991999
    @tomek19991999 ปีที่แล้ว

    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?

  • @robfei-u6b
    @robfei-u6b ปีที่แล้ว

    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  ปีที่แล้ว

      Just use 5V vcc, as written in the spec

  • @aerospace_andy
    @aerospace_andy ปีที่แล้ว

    thank you very much!

  • @Alperic27
    @Alperic27 2 หลายเดือนก่อน

    dude … u keep confusing transceivers with transmitters …… 🤦‍♂️