CAN Bus signals on a breadboard with ESP32 microcontroller and Oscilloscope

  Рет қаралды 8,792

The EV Engineer

The EV Engineer

Күн бұрын

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
@marcelshasa
@marcelshasa Жыл бұрын
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 Жыл бұрын
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
@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?
@EV_engineer
@EV_engineer Жыл бұрын
Absolutely!
@redmundperrz7234
@redmundperrz7234 Жыл бұрын
Thank you
@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?
@Electronieks
@Electronieks 5 ай бұрын
1k
@bennguyen1313
@bennguyen1313 11 ай бұрын
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
@imanuelpundoko6831
@imanuelpundoko6831 2 ай бұрын
do you ever tried NodeMCU esp8266 with mcp2515? or anyone have any experience to interfacing the esp8266 with mcp2515
@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
@PremKumar-ex7pm
@PremKumar-ex7pm Жыл бұрын
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 6 ай бұрын
Same problem! Have you fixed it?
@aerospace_andy
@aerospace_andy Жыл бұрын
thank you very much!
@jeffreyrh
@jeffreyrh Жыл бұрын
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
@Alperic27
@Alperic27 3 ай бұрын
dude … u keep confusing transceivers with transmitters …… 🤦‍♂️
Зу-зу Күлпаш 2. Бригадир.
43:03
ASTANATV Movie
Рет қаралды 708 М.
啊?就这么水灵灵的穿上了?
00:18
一航1
Рет қаралды 48 МЛН
Epic Reflex Game vs MrBeast Crew 🙈😱
00:32
Celine Dept
Рет қаралды 39 МЛН
CAN Bus Properties and Troubleshooting
18:09
Enovation Controls
Рет қаралды 1,4 МЛН
CAN Protocol Explained | Controller Area Network
12:09
The EV Engineer
Рет қаралды 85 М.
Op-Amps  - Using Operational Amplifiers
44:21
DroneBot Workshop
Рет қаралды 289 М.
The Tesla Robotaxi is Confusing...
19:14
Marques Brownlee
Рет қаралды 838 М.
VW Can Bus Hacking With SavvyCan & Cantact - Voltlog #342
14:12
Making a CAN Bus on a breadboard with two ESP32 microcontrollers!
11:26
Sniffing any CAN-bus on the cheap(5$) with Arduino, Tested on an VW Polo 9N3
21:57
Зу-зу Күлпаш 2. Бригадир.
43:03
ASTANATV Movie
Рет қаралды 708 М.