Wiring¶
The VE.Direct port is a 4-pin JST-PH 2.0 mm jack carrying a TTL-level UART. The component only reads data, so only GND and the device's TX line have to be connected.
Check the TX voltage first
The TX voltage of the VE.Direct interface depends on the product: Some are 5V, others 3.3V!
Please measure the voltage between TX and GND. In case of a logic level of 5V you should add a voltage divider or logic level converter between the ESP and the Victron device.
Do not power the ESP from the VE.Direct port
According to the VE.direct FAQ, the 5V/3.3 pin has a strict current limitation, allowing only 10mA on average with occasional 20mA bursts lasting up to 5 milliseconds. ESP devices draw several hundred milliamperes during startup and an additional 100-150mA when transmitting, which would overload and permanently damage the Victron device's power circuit. Power the ESP from its own supply.
Finding the pin order
If you are unsure about the pin order please measure the voltage between GND and VCC (5V). If you measure a positive voltage you know the position of VCC and GND.
Direct connection (non-isolated)¶
| VE.Direct pin | Purpose | ESP8266 pin |
|---|---|---|
| 1 | GND | GND |
| 2 | RX | not connected |
| 3 | TX | D7 (RX) |
| 4 | 5V | not connected |
Isolated connection (recommended)¶
Use an ADUM1201 for galvanic isolation between the ESP and the Victron device, or make an insulated VE.Direct cable.
| VE.Direct pin | Purpose (wire color) | ADUM1201 side 2 | ADUM1201 side 1 | ESP8266 pin | ESP32 pin | USB TTL cable |
|---|---|---|---|---|---|---|
| 1 | GND (black) | GND2 | GND1 | GND | GND | GND |
| 2 | RX (red) | VOB | VIB | D8 (TX) | GPIO17 (TX) | TX |
| 3 | TX (white) | VIA | VOA | D7 (RX) | GPIO16 (RX) | RX |
| 4 | 5V or 3V3 (yellow) | VDD2 | VDD1 | 3V3 or 5V | 3V3 or 5V | 3V3 or 5V |
Do not leave VIB floating
If the VE.Direct RX line is connected to VOB on the ADUM1201, the corresponding VIB needs to be connected to a valid signal, i.e. VDD1 or GND1. Depending on the RX pin configuration of the device, this might enable/disable the device. Check the device documentation for details. If unsure, leave the RX line unconnected, but still tie the VIB pin of the ADUM to VDD1 or GND1.
Next step¶
Continue with the Installation.
