xsilvergs
Forum Member
Well it's still a bit wet for working on the van with the doors open and after a conversation with another member I thought it was about time to get tank measurement working on a Raspberry Pi running Victrons Venus/Cerbo GX ported software.
Luckily my eBay purchase, an MCP3208 ADC chip, turned up this morning a day early. The electronics part was easy but finding the relative posts on the Victron Community forum to update the RPi's code took a bit of time (links below). Having got the tank measurement part working it was then time to simulate a tank sender. Victron have a number of options in there software for resistive type sender units but that is added complication and cost. Using an Arduino is far easier, cheaper and adaptable.
The Arduino, given the tank volume and dosing pump volume can calculate the fuel used by counting pump pulses the amount of fuel remaining in the tank. From this it then produces a voltage relative to the fuel remaining in the tank (1.8v Full, 0v Empty) simulating a tank sender. This voltage is read by the ADC and the value passed to the Raspberry Pi when asked.
And here is a picture of the the Victron GX screen with three tanks. Fresh Water is empty, the Waste Water and Fuel are at 93%.
useful links:
http://ww1.microchip.com/downloads/en/DeviceDoc/21298e.pdf
community.victronenergy.com
community.victronenergy.com
Luckily my eBay purchase, an MCP3208 ADC chip, turned up this morning a day early. The electronics part was easy but finding the relative posts on the Victron Community forum to update the RPi's code took a bit of time (links below). Having got the tank measurement part working it was then time to simulate a tank sender. Victron have a number of options in there software for resistive type sender units but that is added complication and cost. Using an Arduino is far easier, cheaper and adaptable.
The Arduino, given the tank volume and dosing pump volume can calculate the fuel used by counting pump pulses the amount of fuel remaining in the tank. From this it then produces a voltage relative to the fuel remaining in the tank (1.8v Full, 0v Empty) simulating a tank sender. This voltage is read by the ADC and the value passed to the Raspberry Pi when asked.
And here is a picture of the the Victron GX screen with three tanks. Fresh Water is empty, the Waste Water and Fuel are at 93%.
useful links:
http://ww1.microchip.com/downloads/en/DeviceDoc/21298e.pdf