Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using ESP32 30pin dev board what pins connect to bus transceiver? #35

Open
senyaHT75 opened this issue Feb 4, 2025 · 1 comment
Open

Comments

@senyaHT75
Copy link

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.

@collin80
Copy link
Owner

collin80 commented Feb 4, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants