Using ESP32 30pin dev board what pins connect to bus transceiver?
Used ESP32RET_updater to load code into a 30pin dev board. Using the USB connection I can connect to SavvyCAN on a COM port however there is no bus traffic shown. I suspect that I am using the wrong pins on the ESP32 to connect to the CAN transceiver. My question is, what pins on the ESP32 are used to connect to the bus transceiver and what pin is output and what pin is input to the ESP32? The ESP32 has a CAN transceiver are you using that? I am using an external SN65HVD230 device for the interface at 3.3v. It appears in the ESP32RET.ino code that GPIO pins 4 and 5 are used but which is input and which is output to the bus. Its the classic RS232 issue from the old days! Any feedback would be appreciated! Thanks, Tom S.
Yes, it's always tough to get down to the bottom of things like this. It doesn't help that I forget which pins to use because I'm usually using the boards that the library was originally coded for so I don't even have to think about it. Here's what the library says:
//Set these to the proper pin numbers for you board. Set by default to correct for EVTV ESP32-Due //rxpin txpin ESP32CAN attribute((weak)) CAN0(GPIO_NUM_16, GPIO_NUM_17, 0) ;
So, the answer would seem to be pin 16 = RX and 17 = TX