HPDE-Tools / CANMIM

MIT License
4 stars 1 forks source link

Dual can port ESP32-C6 board #1

Open MagnusThome opened 10 months ago

MagnusThome commented 10 months ago

@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 commented 10 months ago

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 commented 10 months ago

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 commented 10 months ago

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 commented 10 months ago

We have a fun hobby :-D

MagnusThome commented 10 months ago

https://www.youtube.com/watch?v=dpaOF7OZ8Pg