-
Notifications
You must be signed in to change notification settings - Fork 176
CAN filter hardware
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.
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 |
Software for the CAN filter can be found here
See this video: https://www.youtube.com/watch?v=LssrvVYLtp8
Flash with BridgeFlasher.exe located in software folder. The compiled .srec files are . 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.
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