-
Notifications
You must be signed in to change notification settings - Fork 167
Inverter: SMA Sunny Tripower Smart Energy
Caution
Working with high voltage is dangerous. Always follow local laws and regulations regarding high voltage work. If you are unsure about the rules in your country, consult a licensed electrician for more information.
- Sunny Tripower Smart Energy 5.0 / 6.0 / 8.0 / 10.0 ✔️
All these inverters use the SMA_TRIPOWER_CAN
option!
This inverter does not handle a CAN connected EV battery on the same channel. If the inverter, which likes to see only BYD CAN frames, sees standard automotive CAN frames, the inverter will enter a fault state.
This can be solved in several ways:
- You can add an isolated MCP2515 CAN channel
- You can add an isolated MCP2518 CANFD channel, and run it in classic CAN mode
- You can use the Stark CMR hardware
- You can use a CAN filter between inverter and the rest of the system
Keep in mind that you will also need automated contactor control via GPIO, or a battery that has CAN controllable on/off contactors. This is due to a complicated pairing process when taking the battery in to use, when the inverter will command on/off the battery in order to succeed with pairing.
Important
Grounding is extremely important for all inverters. Make sure the battery case is connected to protective earth, and the shield part of the twisted pair CAN is connected to PE also! Failing to do this will result in CAN errors.
The inverter needs to be able to control the closing of the contactors. This is done via a signal, called the enable line. This Enable line is connected to GPIO 5 on the LilyGo board. Due to the signal being 12V, we need to step it down to 3.3V that the Battery-Emulator uses on its GPIO pins.
This stepdown can be achieved with a resistor divider
The 1k resistor isn't technically needed but just in case there's a short it would limit the current into the LilyGo pin
This is how the SBS should be connected to the lily/stark hardware
Make sure that the settings in the "USER_SETTINGS.h" file are correct. The line:
#define SMA_TRIPOWER_CAN //Enable this line to emulate a "SMA Home Storage battery" over CAN bus
Needs to be uncommented for the software to emulate the correct protocol over CAN. Next step is then to select the battery that you intend to use, for instance if you use LEAF battery, make sure the following line is uncommented:
#define BATTERY_TYPE_LEAF // See NISSAN-LEAF-BATTERY.h for more LEAF battery settings
Also, Contactor control is required to let the Battery-Emulator decide when to turn on/off the battery
#define CONTACTOR_CONTROL //Enable this line to have pins 25,32,33 handle automatic precharge/contactor+/contactor- closing sequence
The inverter needs to allow when to turn on the contactors for the pairing to work. Apart from contactor control needed via GPIO, one of the pins will need to be used as an input, and "Allow contactors to close" signal from the inverter, also called the Enable line. This Enable line is connected to GPIO 5 on the LilyGo board.
After setting this up, flash the board!
Todo!
Please feel free to add!