Skip to content

CAN filter hardware

Daniel Öster edited this page Dec 28, 2024 · 4 revisions

What is a CAN filter?

Since some inverters need to see only certain CAN messages on the bus, we can achieve this by adding a CAN-filter between the inverter and the rest of the CAN-bus. By doing this you can use the single CAN channel LilyGo board with an inverter that usually requires a dedicated CAN channel.

image

How do I get the hardware?

We utilize the cheaply and readily available CAN filter also used for Nissan LEAF battery upgrades. It is available on Aliexpress. Below are some purchase links, please note that you need the BLUE PCB for this code to work.

Hardware Purchase link
2-port budget bridge AliExpress "MB CAN Filter 18 in 1
STM32 USB flasher Ebay

Where do I get the software?

Software for the CAN filter can be found here

Flashing the CAN filter

See this video: https://www.youtube.com/watch?v=LssrvVYLtp8

Flash with BridgeFlasher.exe located in software folder. The compiled .srec files are located in the releases section . For ST LINK CLI, point the exe towards the "ST-LINK_CLI.exe" located in the "STM32 ST-LINK Utility" folder that appears after installing it. Incase the BridgeFlasher.exe doesn't run, make sure you have installed vc++ 2015 x86

This is what the BridgeFlasher.exe should look like. Press Start to flash. alt text

Connect the ST Link V2 to the J1 ports on the PCB. It can be hard to connect dupont wires here, so I recommend getting needle pins. Pay close attention to the pin labels on the ST Link flasher, they can vary location depending on type.

7 3.3V - J1

Nothing - J2

3 GND - J3

2 SWDIO - J4

6 SWCLK - J5

alt text

Clone this wiki locally