-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch for load output possible? #105
Comments
This implementation uses the read-only ve.direct ASCII protocol right now. I assume we have to switch to the binary version to control the device. |
And even the BLE version ;) |
There is theoretical an other way: By the Victron MPPT Charger you can configure that the RX pin is "binary". Now you can build in ESPHome a Switch-Component (or Relais?) to raise the voltage to 5V on the RX-Pin |
This sounds odd. If you pull-up the voltage at the RX pin you won't be able to receive data anymore. :-) |
Ah, I understand the concept now. The RX pin is the unused one in a read-only setup. |
I can confirm, that this way is working. If you put 5V on RX Pin and config RX for switching the Load-Output in the Bluetooth-App. After this, you have to build a "switch-component" in ESPHOME |
Could you try to drive the
|
Hi, Oh, i can test it after my vacation - because my "Jerrycan-Battery" is actuall in use and allready solderd with iron. But: Why with 3V? For stability (in longterm use) I use a cheap logic level converter, because i wouldn't use 5V on the ESP32 Pins. i using not the TTL as Output, i have solderd a "Jumperbridge" on the platin for XOR. On the HV-Side i solderd the VCC from Victron and on HG is the Victron GND connected. |
Let's ignore the voltage level of the UART communication for now (off-topic). If we focus on "how to control the load output of a victron device using the RX pin" we have to apply some voltage to this pin. If we simply attach a GPIO to the RX pin the voltage level will be 3.3V because the ESP is a 3.3V device. The RX pin probably expects 5V here (on some victron devices). I would like to know the lower voltage level is sufficient to drive the load output. |
Some facts for the focus: In the previous post, I only just wanted to warn that 5V is not a good idea for long-term use on the RX of the ESP, and that you could switch everything via a logic-level converter that doesn't just do TTL. So the Answere of the question above is:
**1 And as an additional Answer:
** if it is of interest, i will present the project in a few words. |
It took some time to understand your idea. :-) Long story short: The TX channel of a (two channel) level shifter can be used to drive the load output using 5V. |
just a quick not from me: |
As the load output is configurable/ switchable via the Victron App, I want to ask if this is achievable via MQTT as well? It would be great to have control over the load output via Home Assistant.
The text was updated successfully, but these errors were encountered: