Skip to content
Edit this page

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.

UART-TTL wiring between the Victron VE.Direct port and the ESP32/ESP8266, and the pinout of the JST-PH 2.0mm jack

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
uart:
  id: uart_0
  tx_pin: D8  # Not used / Not connected! The communication is read-only
  rx_pin: D7
  baud_rate: 19200
  rx_buffer_size: 256
VE.Direct pin Purpose ESP32 pin
1 GND GND
2 RX not connected
3 TX GPIO16 (RX)
4 5V not connected
uart:
  id: uart_0
  tx_pin: GPIO17  # Not used / Not connected! The communication is read-only
  rx_pin: GPIO16
  baud_rate: 19200
  rx_buffer_size: 256

Wiring of the ESP to the VE.Direct port

The JST-PH connector on this image has its lock facing downwards.

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.