Bidirectional Charging
Bidirectional charging means, that the car is able to provide power to the outside world, via the charge port.
Tags: bidi, inverse charging, vehicle-to-load, V2L, vehicle-to-home, V2H, vehicle-to-grid, V2G
https://openinverter.org/forum/viewtopic.php?t=5090
https://openinverter.org/forum/viewtopic.php?t=3551
Bidirectional Charging via AC
Some OEM on-board-chargers are able to create AC voltage. Todo: any reverse-engineering ongoing for such chargers? E.g. for Hyundai/Kia E-GMP?
Bidirectional Charging via CHAdeMO
The CHAdeMO standard was planned for supporting bidirectional power transfer from the beginning. Todo: Any open-source projects in this direction?
Bidirectional Charging via CCS
The CCS standard did not plan bidirectional power transfer. This means, depending on the implementation details of the cars charge controller, the car may or may not allow to draw energy out of the CCS port. Later versions of the CCS standard, ISO15118 (2020?), are defining special communication procedures for bidirectional power transfer. But it will take some time until this standard is widely adapted.
In the open-source world, however, we do not need to wait until OEMs and charger manufacturers implement the latest ISO15118. We can support bidirectional charging even with the "old" DIN spec. The strategy is: Even if the car is requesting to be charged, it also accepts discharging, without terminating the charging session. It may terminate if the SOC falls below a certain, configurable level, to prevent an empty battery. The car announces the allowed charge current, and the same value, just in opposite direction, can be used as a discharge current limit, too.
Practical implementation with parts list
One way to DIY a bidirectional charger is the use of a hybrid PV inverter with high voltage battery input. The advantage is that these are mass-produced (thus cheap) and conform to the various legal requirements. The inverter then handles power transfer and optionally smart functions such as zero grid import/export and we only need to supply the surrounding logic and electrics.
This component list is just an example that has proven to work. It is preliminary and has not been tested with OEM cars yet, so it will likely be extended. As always, you are working with high voltage and especially grid voltage. Make sure you are qualified otherwise ask for help.
Item | Approximate cost | Link/Source | Remarks |
---|---|---|---|
Sungrow SH5.0RT (or more powerful variant) | 850€ | Sungrow | Pick an inverter that is supported by Battery Emulator |
CCS Connector | 90€ | AliExpress | Plain connector without cable |
BeagleBone Green | 45€ | Mouser | |
BeagleBone COMCPE | 40€ | Mouser | RS485, CAN comm and 2x relay driver |
TPLink TL-PA4010 | 15€ | Powerline modem | |
Flexible cable, 4 or 5 pole | 4€/m | Local hardware store | Size according to charging current. 5x2.5mm² used for the 5 kW inverter
For DC+, DC-, PE, CP and PP. PP can optionally be terminated in the plug, then you just need 4 poles |
2 Fuse blocks | 6€ each | Mouser | |
2 25A fuses | 8€ each | Mouser | 400V AC rated from your local hardware store suffices as it's 2 in series |
12V 2A DIN rail supply | 18€ | Mouser | In case relays are needed later on, otherwise 5V model makes things easier |
12V to 5V step-down converter | 5€ | ebay or ali | Needed if you chose 12V supply |
DIN rail cabinet | 20€ | Local hardware store | |
MC4 connector set | 5€ | ||
5V to 400V step up converter | 10€ | Only needed for OEM cars |
The CCS connectors + and - is connected to the inverter input via the fuse blocks. I did not deploy additional contactors but rely on the ones that are already in the car and the inverter. The PLC modems output transformer is connected to PE and CP via a capacitor and a resistor, more details in uhis github.
The BeagleBone is connected to the PLC modem and the inverter Ethernet port, so you will need a small network switch, also for the uplink to your home network. In addition the CAN outputs of the COMPCE cape connects to the inverters battery CAN (pins 3 and 4 on the Sungrow).
More info on the software setup in the development threads linked above, uhis github and Johannes' github.
This setup can also be used with CHAdeMO cars in which case the powerline modem can be omitted.
Compatible cars
This table lists cars where we successfully pulled power OUT of the cars battery via its quick charge port.
More details on forum thread.
First column: Y - works flawlessly with no timeout, P - works partially with long timeout, N - works not at all or quick timeout
Make | Model | Requirements | Remarks | |
---|---|---|---|---|
P | Hyundai | Ioniq Classic 28 kWh | Simulated precharge | Timeout after 10 minutes |
Y | MG | MG4 | Simulated precharge | No timeout |
Y | Tesla | Model Y | Physical Precharge voltage | 5 kW tested |
Y | Tesla | Model 3 | Physical Precharge voltage | BMS aborts charging session if more than 15Ah discharge have been detected |
Y | BYD | Atto 3 | 5 kW tested | |
Y | Polestar | 2 | Physical Precharge voltage | |
N | VW | ID.4 | Timeout after 1 minute | |
N | BMW | IX4 | Timeout after 5 minutes | |
N | Chevrolet | Bolt | Timeout after 50 s | |
N | Kia | EV6 | Timeout after 10 s |
todo
References
todo