-
I know, it's not the right place for a question like that. But can you explain how to connect to a victron system with your software extension? I want to integrate the solar values of the hoymiles inverters into the vrm portal. Is this possible over the air without a cable connection? Do i need further wiring or dongles for the microcontroller? |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
I've been asking myself the same question, can the ESP32 talk to the Victron with Bluetooth or does it have to be wired? Then a pin layout in the description would be quite exciting. Thank you |
Beta Was this translation helpful? Give feedback.
-
@johannesosterberg Sorry for the late response. I use a serial connection (cable) to read the VeDirect protocol from my mppt battery charger. I use a D1 mini esp32
You can download the Ve.Direct protocol and the cable layout directly from victron's website https://www.victronenergy.com/support-and-downloads/technical-information |
Beta Was this translation helpful? Give feedback.
-
Does the D1 mini esp32 work with 5V? Because the Victron MPPT uses 5V for the Ve.Direct port. This could damage the esp32 because the esp32 works with 3.3V. Do you use a Logic level converter? |
Beta Was this translation helpful? Give feedback.
-
Hi @berni2288, my official answer would be use a voltage divider or level shifter for the input pin on the D1 mini32. But, I don't use a level converter. (https://www.qworqs.com/2021/05/19/are-the-esp32-and-esp8266-5v-tolerant-yes-they-officially-are/). And yes, it seems to work fine for me. This works since more than 6 month perfectly. But I can't tell you something for a longer period first hand. If my D1 mini esp32 will die one day, I will replace it and will add a level shifter for input. I simply run out of level shifter, and now I'm too lazy to change something. |
Beta Was this translation helpful? Give feedback.
-
Thank you! That's interesting. I tried to use a level shifter yesterday with my Azdelivery NodeMCU ESP32 yesterday, and I didn't get it working. |
Beta Was this translation helpful? Give feedback.
-
It's working now without the logic level converter. Nice :) I've used the default GPIO21 and GPIO22 pins also. VICTRON_PIN_TX of the esp32 needs to be connected to the RX of the Victron. The Victron MPPT Ve.direct pin order and voltages are the following: GND | RX (3.3V) | TX (5V) | 5V power Victron GND --> ESP32 GND |
Beta Was this translation helpful? Give feedback.
-
Nice. I would always connect RX/TX. Maybe we want to make use of the hex protocol for Ve.direct. For that, you have to send commands to Victron. |
Beta Was this translation helpful? Give feedback.
It's working now without the logic level converter. Nice :)
Now I can enhance my dynamic power limiter feature by using the data from the Victron device also.
I've used the default GPIO21 and GPIO22 pins also. VICTRON_PIN_TX of the esp32 needs to be connected to the RX of the Victron.
The Victron MPPT Ve.direct pin order and voltages are the following:
GND | RX (3.3V) | TX (5V) | 5V power
Victron GND --> ESP32 GND
Victron RX --> ESP32 VICTRON_PIN_TX (not sure if this is even needed, as we only receive data
Victron TX --> ESP32 VICTRON_PIN_RX