question

bluejeans avatar image
bluejeans asked

RPi reporting issues

I just built a Victron equipped (MPPT and smart shunt) power station/solar generator. I wanted to see how long the so-gen would run my fridge on the battery. I am running an RPi with Venous OS. While only monitoring through the VRM while at work, the Pi would only report the smart shunt for 2-4 hours and then stop reporting. I had to come home and power cycle the Pi to start reporting.

So not sure if it was wifi, the VRM, or something else, I connected my hacked laptop screen to the Pi. When the Pi stopped reporting on the VRM (reporting only the smart shunt) the directly connected screen reported voltage, watts and amp draw, but not batt percentage. (second pic)

So I connected my solar panel and power cycled the Pi. Same scenario. A bit of time later the shunt stopped reporting on the VRM. Voltage, watts and amp draw, are on the screen, but not batt percentage. (3rd pic) The solar continues to report on the VRM and screen

Not sure where to troubleshoot now. Any help would be appreciated

20211130-094221.jpg

20211130-094442.jpg

20211130-095002.jpg

Raspberry Pi
20211130-094442.jpg (961.3 KiB)
20211130-095002.jpg (988.0 KiB)
2 |3000

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

5 Answers
kevgermany avatar image
kevgermany answered ·

First thing I'd do is eliminate RPi issues.

Fit an RPi UPS shield with 18650 cells.

Not sure what the options are, but set up some logging to monitor WiFi, internet and the Victron data. Cos at the moment you've not got enough info to go on.


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.

bluejeans avatar image bluejeans commented ·
What do 18650 cells do for me that a 12v-5v buck does not?

And how would an issue with the buck report a 1/2 dozen parameters consistently, and only 1 intermittently?

How would monitoring wifi change things, (assuming there could be a wifi issue) as the directly wired screen does the same thing?

0 Likes 0 ·
kevgermany avatar image
kevgermany answered ·

You said VRM stopped working. I assume that's getting fed via WLAN and internet. Sorry if I misunderstood.

Pi via buck boost - if you're powering the Pi from the batteries you're monitoring, it eliminates this.

Really I'm second guessing what you're doing/how it's set up because you're not giving us much to go on.

5 comments
2 |3000

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

bluejeans avatar image bluejeans commented ·

I did not say my VRM stopped working. I said, ONE parameter, battery SOC, stops reporting after a varying period of time. An RPi power cycle fixes that, for another varying period of time. All other parameters report consistently and always. The SAME thing happens on the directly wired screen. So that eliminates (in my mind) wifi or VRM

If you are suspecting power supply issues, help me understand how that effects only ONE parameter, and not ALL parameters.

And... let me know what more info you need to further help diagnose. I will provide it

0 Likes 0 ·
bluejeans avatar image bluejeans bluejeans commented ·
I did just disconnect the RPi and then connected the RPi to a power bank, which is 18650 cells :) I will see what happens over the next few hours and report back
0 Likes 0 ·
bluejeans avatar image bluejeans bluejeans commented ·

Power supply issues are out. 3 hours on the power bank, and same scenario

0 Likes 0 ·
kevgermany avatar image kevgermany ♦♦ bluejeans commented ·
One thing eliminated. How does the Pi get its data?
0 Likes 0 ·
bluejeans avatar image bluejeans kevgermany ♦♦ commented ·
VE Direct USB to serial
0 Likes 0 ·
marc-kelly avatar image
marc-kelly answered ·

If the Pi is getting some data from the battery monitor the serial connection or the Pi isn't the problem. Sounds like the shunt/BMV fails after a few hours? Weird problem.

2 comments
2 |3000

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

bluejeans avatar image bluejeans commented ·
thats my thought. But I wanted someone else to tell me independently. Any ideas on how to verify/trouble shoot that theory?
0 Likes 0 ·
bluejeans avatar image bluejeans bluejeans commented ·
although.... the shunt reports everything on BT in the app. So... maybe it could be something in the serial connection???

I have an extra cable. I think I'll try replacing the shunt cable to see what happens

0 Likes 0 ·
bluejeans avatar image
bluejeans answered ·

SOLVED... I think

I changed the USB/serial, and once changed, I plugged the USB into a different Pi port. It has run 24hrs now without a hiccup, when before it was only running 2 to 4 hrs

Not sure which of the 2, or maybe both... or neither.... made the difference. More time should tell

2 |3000

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

bluejeans avatar image
bluejeans answered ·

Update... not good @#$%

Everything has worked from my last post on Dec 04 to now. I have the same but different issue. Before and now the RPi was not reporting battery SOC.

NOW the SOC is not showing on Victron Connect either! The SOC was showing in the VC app before

Do I have a bad smart shunt? screenshot-20211217-091939.jpg


2 |3000

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