Now that I have my influxdb and grafana all set up I would like to have a device send my battery voltage to the influxdb via wifi.
I have a 48V nominal Pb battery bank that I would like to monitor.
I have looked, obviously not everywhere, but I can't seem to find a simple solution for this.
If anyone has a solution to monitor my battery bank with something like (RPi, arduino, or some other way) as to send this data to my influx db that would be highly appreciated. Once I get my powerwall set up with a BMS probably Batrium I won't need that anymore but in the meantime what to do?
Additional sensors could include temp, humidity barometric pressure. Those I seem to be able to find but the Voltage one seems to elude me.
Any ideas?

Thanks in advance.
Wolf

If 18 X 650 = 2200+mAh then we have power!
May all your Cells have an IR of 75mΩ or less
Last count as of 8/7/2019
Total Number of Cells Recorded and processed 6149
Total Cells required for PowIRwall 2856
Total Cells ≥2200mAh, ≥80%, ≥35mΩ, ≤75mΩ, ≥4.12V 2760
For Info Google Drive
Not your average Wolf

This isn't off the shelf, but its not hard to use one of the wifi controller chips, aka ESP8266 chips to do this for you with a minimal number of external parts. A couple of the models have an analog pin for which you could use to monitor voltage via a simple resistor divider. Check out this: https://randomnerdtutorials.com/esp8266-...h-nodemcu/

Then it would be a matter of writing the code to read the value and send it upstream via wifi in some kind of timed loop I'd imagine.

FYI: Keep in mind these ESP8266 boards work at 3.3v and not the usual 5v arduino

Your best bet is going to be either an arduino with an esp8266 to send data over WIFI or an ESP32 that has enough analog inputs for you to be able to use them. No matter what, you'll need to develop the hardware yourself from scratch and write all the code from scratch.
Well, you've got the majority of work left.

I've got my system up and running now - and trust me, you did the easiest part. Getting data into influxdb is the hard part. Good luck man. Check youtube there are a bunch of tutorials , all of which skip over some very important steps.
I'm working on some code at the moment. When I finish it, I'll have code for an esp8266, and an image of a pi to allow for all of this monitoring.

The issue with influxdb and grafana is that they aren't good for streaming data - as in, they are great to show data taken every couple minutes - but I want to know my voltage and temperature instantly. So I use MQTT for everything - but I have important information live streamed and displayed in Node-Red, and then once every five minutes it sends an AVG value via MQTT to Node-Red which then pushes it to InfluxDB and Grafana picks it up from there. You don't want to live-stream data to influxDB because then you'll just have way too much data in there - and if you use a PI, you'll destroy your storage medium fast.

seem to have a serial output which they use to connect to PC and App, and as far as i have understood they have published the protocol in a terrible excel sheet.
Since you can see all cell voltages , and much more, that should be a possible basic unit for you.

a 13 S and 14 s system is available, but you have to order them as matching, they are not universal. 30 bucks.

(04-13-2019, 01:39 AM)Mikethezipper Wrote: I don't think there is an easy answer.

@ Mikethezipper

Well you were right there wasn't an easy answer but.........
Over my holiday, (for Sean's benefit) my Vacation I immersed myself into learning the Arduino IDE.
I was very successful.
Using an ESP8266 board I installed a BME280 i2c board for environment stats and calculated a Voltage divider for 100V max to 3.3V for the A0 pin.
So far so good I got all the right outputs going to the serial monitor. Then Wifi and then sending data to the influx db.
The results in grafana
I built 2 of the ESP8266 boards just to see the difference in V if there was any. .07V eh not bad for a 10 bit resolution
There is some noise in the measurements if you read the data by the second so there are some solutions that I will try. There are suggestions to read the inputs twice in rapid succession and discard the first reading. Also a .01uf capacitor connected to pin A0.

Next step is to work with this code on an ESP32 and use all 8 available ADC inputs on the ADC1 SAR. ADC2 SAR is used by the Wifi so no go there for the other 10 ADC channels. If I need more ADC channels I can always use another ESP32 they are cheap enough.
The noise may be less noticable on the ESP32 as it has 12 bit resolution. At least I am hoping.
My next update on this I hope to have at least my 3 arrays and 2 battery banks recording. Possibly I will throw some current readings in there also.

As far as Grafana is concerned the readings update fast enough for me as I am injecting data every 5 seconds. If the database grows to quickly I can always change the retention policy or slow the data feed down some.

If 18 X 650 = 2200+mAh then we have power!
May all your Cells have an IR of 75mΩ or less
Last count as of 8/7/2019
Total Number of Cells Recorded and processed 6149
Total Cells required for PowIRwall 2856
Total Cells ≥2200mAh, ≥80%, ≥35mΩ, ≤75mΩ, ≥4.12V 2760
For Info Google Drive
Not your average Wolf

If 18 X 650 = 2200+mAh then we have power!
May all your Cells have an IR of 75mΩ or less
Last count as of 8/7/2019
Total Number of Cells Recorded and processed 6149
Total Cells required for PowIRwall 2856
Total Cells ≥2200mAh, ≥80%, ≥35mΩ, ≤75mΩ, ≥4.12V 2760
For Info Google Drive
Not your average Wolf

I dont seem to have the patience to get to grips with yet another graphing application - I have a good few years worth of PVOutput generation data online, and I see Iotawatt can post usage ... another rainy day project.

Have you seen the emonDC ? - there might be something you can glean for your project.

I will keep an eye on this.
At this time though I am trying to get away from putting data out on the web. Just trying to keep it inhouse.
Plus its a new learning experience working with Arduino IDE and building my own sensor arrays. Giving my brain some
challenges is good.

If 18 X 650 = 2200+mAh then we have power!
May all your Cells have an IR of 75mΩ or less
Last count as of 8/7/2019
Total Number of Cells Recorded and processed 6149
Total Cells required for PowIRwall 2856
Total Cells ≥2200mAh, ≥80%, ≥35mΩ, ≤75mΩ, ≥4.12V 2760
For Info Google Drive
Not your average Wolf

Glad to see you got it up and running. Another possibility is to use your charge controller. What I'm actually going to do is to use an ESP8266 and RS485 to TTL converter to get data straight from my charge controller. Having voltage is nice, but it's only some of what's going on. Without also knowing how much power is going in or out, it's not the whole picture. For most uses though, voltage is enough to get an idea of what's going on - and knowing your voltage now is better than knowing your voltage and currents after another two months of development

I was going to use an ESP to do voltage monitoring until I realized that it's only got a 10 bit ADC, and even then it'll only tell me voltage. Also, the measurement is only as good as the reference voltage, which for that chip I don't think it's any good. Basically, I suspect it is susceptible to both temperature and voltage fluctuations into the esp chip... but I'm not sure.

As for how to get better readings - you can always take 10 readings and average them - but the noise in the readings will get averaged in too. What I've done in the past is to get say.. 10-20 readings, and take the median of those readings. That should give you the most accurate measurement of the voltage without temperature compensation.