Page 1 of 1

ESP32-WROVER-IE CAN sensor usage

Posted: Fri Sep 06, 2024 1:12 pm
by Rusty_technician
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

Re: ESP32-WROVER-IE CAN sensor usage

Posted: Sat Sep 07, 2024 12:11 pm
by MicroController
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