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.

4 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.

whfarms avatar image
whfarms answered ·

Has anyone ever gotten this to work. IT does not seem to ever open a serial connection for me.

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.

I've listed the requirements I've gotten to work in the thread you created.

I started off with a windows pc, 12v battery and realterm software and the other components just to get my head round how to handle the bluesolar controller.

It is annoying the victron connect software won't let you talk to the bluesolar over a com port, which then means purchasing an overpriced victron cable. But it does give you a baseline to work from.


0 Likes 0 ·

Related Resources

VE.Direct protocol FAQ

Additional resources still need to be added for this topic