question

winginit avatar image

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
10 |3000 characters needed characters left characters exceeded

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 Share
10 |3000 characters needed characters left characters exceeded

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

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


Brendan McLearie

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 Share
10 |3000 characters needed characters left characters exceeded

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

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


cterwilliger avatar image
cterwilliger answered ·

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

https://github.com/cterwilliger/VictronVEDirectArduino

Share
10 |3000 characters needed characters left characters exceeded

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