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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dual can port ESP32-C6 board #1

Open
MagnusThome opened this issue Dec 23, 2023 · 5 comments
Open

Dual can port ESP32-C6 board #1

MagnusThome opened this issue Dec 23, 2023 · 5 comments

Comments

@MagnusThome
Copy link

@zeroomega

Email me at magnus@rejsa.nu if you want a RejsaCAN v6.0 board 馃憤

Some pictures https://github.com/MagnusThome/RejsaCAN-ESP32/tree/main/Code%20Examples/RejsaCAN%20v6.x%20-%20ESP32-C6%20-%20DUAL%20CAN%20self%20test

@zeroomega
Copy link
Contributor

Hi Magnus,
Thanks for the introduction.
I already have my own boards now so I don't need additional C6 boards. I saw you have SD card slots in your board. Are u using it as a CAN data logger?

PXL_20231212_055145521

@MagnusThome
Copy link
Author

MagnusThome commented Dec 23, 2023

Nice looking board you have. What do you use the dipswitches for?

I made my C6 board mainly out of curiosity about the dual TWAI controllers plus a challenge I gave myself to make a really small board, and my first ever four layer board 馃檪 My plan is to place one as MITM on the bus up to the instrument cluster to be able to show things, while on track, that are not available in the cluster normally. But just right now I don't have a car with a CAN based cluster 馃槄 SD slot is just a "good to have", never know what strange ideas I might come up with 馃榿 It was fun designing a reeeeally small housing for it to.

I can't find many more than us two that use the new handle based TWAI?

@zeroomega
Copy link
Contributor

Dipswitch is to turn on/off CAN bus terminal resistor. Turn ON the board regardless of ignition signal, setup analog data CAN ID, etc. The main use case for my board is to read 5V analog input and send them to CAN for oil pressure data logging. I am not sure if you a following GR86/BRZ oil starvation issue https://youtu.be/4Jk5WTWoqt4 , he used my board (though a previous version) and I have a few friends also purchased my board for the same purpose. The board will copy car's CAN bus data to 2nd CAN bus, which connects to a dedicated CAN datalogger like AIM Solo DL2. And the analog data will only be sent to the 2nd CAN bus as well, leaving car's can bus untouched to avoid potential issues.

The dual CAN on ESP32C6 is quite useful, I am planning to use it to reverse engineer some CAN protocol on my car using MINT approach but I was too busy recently.

For dashboard, I used an off the self Lilygo S3 TDisplay module. It doesn't have a CAN transceiver but it has BLE, so I just use that to receive CAN data from my board. It works well for me.
image

I do have some plan to build a SoC platform based dashboard because most MCU+Display has too little memory and graphic libs like lvgl is too slow. The current candidate is Allwinner T113, which has 2 CAN bus and 128MiB ram. But bootstrapping it is way more difficult than just using a ESP32.

The ESP-IDF 5.2 is not yet released so I doubt there are a lot of people using it. And I think starting from ESP-IDF v5, the code quality is becoming worse. I might migrate to STM32G473 platform in the future.

@MagnusThome
Copy link
Author

We have a fun hobby :-D

@MagnusThome
Copy link
Author

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