ESP32-WROVER-IE CAN sensor usage

Rusty_technician
Posts: 2
Joined: Thu Sep 05, 2024 11:38 am

ESP32-WROVER-IE CAN sensor usage

Postby Rusty_technician » Fri Sep 06, 2024 1:12 pm

Hi,
I am trying get raw output from a CAN type sensor (MR72 CAN radar). I tried USBCAN converter given by the company but it is showing the data in their software tool in a visual format only. I tried some CAN test tools but had no luck with them and couldn't even figure out some tools. I was suggested to use the ESP32 CAN bus as a receiver to get the raw output. I have a ESP32-WROVER-IE module from my other project, I tried connecting the CAN-H and L pins to GPIO4 and GPIO5 and provided the 12v stable power supply required by the sensor. I used the example for CAN receiver available in Arduino IDE but didn't get any response.

Can anyone help me to figure this out either by suggesting some CAN test tool with how to get this data or by helping to get the output through ESP32

The Sensor has only 4 wires, Vcc, GND, CAN-H, CAN-L. here's a reference link: http://en.nanoradar.cn/Article/detail/id/488.html

MicroController
Posts: 1734
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: ESP32-WROVER-IE CAN sensor usage

Postby MicroController » Sat Sep 07, 2024 12:11 pm

Rusty_technician wrote:
Fri Sep 06, 2024 1:12 pm
I tried connecting the CAN-H and L pins to GPIO4 and GPIO5
That's not how it works. You need an external CAN transceiver chip to which you connect CAN-L and CAN-H, then you connect the transceiver's CAN-RX and CAN-TX to the ESP.
See e.g. https://www.iotsharing.com/2017/09/how- ... e.html?m=1

Who is online

Users browsing this forum: No registered users and 50 guests