question

winginit avatar image
winginit asked

Basic, lightweight VE.Direct reading library for Arduino

I developed this for a larger project but ended up turning into a basic library.

It provides very simple reading on VE.Direct SOC, Power, Volts, Amps.

Posted in case someone finds it useful.

https://github.com/winginitau/VictronVEDirectArduino


VE.Directarduino
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

3 Answers
mvader (Victron Energy) avatar image
mvader (Victron Energy) answered ·

Nice, thanks for sharing! I added it here:

https://www.victronenergy.com/live/open_source:start

1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

winginit avatar image winginit commented ·

Many thanks. Great products. Great open/ mixed source philosophy. Nice to participate and contribute something.


Brendan McLearie

0 Likes 0 ·
winginit avatar image
winginit answered ·

Updated: cleaner code; can now read any VE.Direct stat/setting (configurable); Minimal static ram usage - uses PROGMEM for all labels etc.

https://github.com/winginitau/VictronVEDirectArduino

1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

ppet avatar image ppet commented ·

Hello,

I used the library successfully and expanded the labels to include some more data points from an BMV700

Thank you for sharing your work


I was however very unsuccessful modifying the library to use a SoftwareSerial port

Your library demands a Arduino mega – Too big for some cases

Can you provide some help of even better a version with Software Serial?

Thank you in advance

Peter


0 Likes 0 ·
cterwilliger avatar image
cterwilliger answered ·

I created a branch for this to use SoftwareSerial. Tested with ESP8266.

https://github.com/cterwilliger/VictronVEDirectArduino

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Related Resources

VE.Direct protocol FAQ

Additional resources still need to be added for this topic