Just Linux - some python scripts to pull in the data and push it to Grafana. Should be easy enough to run on Windows and Mac as well though.
I am wanting so bad to do this for my MPP LV6548's and heltec BMS!Yep, as soon as I have the BMS side of things done.
Please tell me RJ12 Cables PIN asignment. I tried connection but it did not work.If you want a cheap monitoring solution, I can now get great stats from the Renogy Wanderer 10a Li using a Python script.
The little Renogy is under $20.
You will need a $25 Pi Zero and make a special USB-RJ6 cable. Everything else is freeware.
# renogy.py
Reading Renogy Wanderer data...
Battery SOC: 100.0 %
Battery Voltage: 26.6 v
Charging Amps: 0.08 a
controller temp: 9.472 C
Load watts: 4 w
PV volts: 27.4 v
PV amps: 0.03 a
PV watts: 2 w
bat min volts: 26.6 v
todays charge power: 80.0 w
todays discharge power: 42.0 w
View attachment 14277
View attachment 14281
Im connected to a small 24v A123 LifePO4 bank I use for testing, and also monitoring cell voltages with a 8s Chargery BMS. The PiZero plugs into the USB ports of the Renogy for power only. All the data comes from the RS232 port.
What's exciting is you can parallel these 10a Renogy units to make a cheap 40amp charger and get the full features of a unit that costs $200.
I'll clean up the code and post the howto ASAP. Joe.
Reading Renogy Wanderer data...
MinimalModbus debug mode. Writing to instrument (expecting 7 bytes back): '\x01\x03\x00\n\x00\x01¤\x08' (01 03 00 0A 00 01 A4 08)
MinimalModbus debug mode. No sleep required before write. Time since previous read: 1012.0 ms, minimum silent period: 4.01 ms.
MinimalModbus debug mode. Response from instrument: '' () (0 bytes), roundtrip time: 2005.6 ms. Timeout setting: 2000.0 ms.
Failed to read from instrument
Opened new tmp file /tmp/Renogy.prom.tmp
Reading Renogy Wanderer data...
MinimalModbus debug mode. Writing to instrument (expecting 7 bytes back): '\x01\x03\x00\n\x00\x01¤\x08' (01 03 00 0A 00 01 A4 08)
MinimalModbus debug mode. No sleep required before write. Time since previous read: 1027.4 ms, minimum silent period: 4.01 ms.
MinimalModbus debug mode. Response from instrument: '\x00\x00\x08\x10A\x18\x83' (00 00 08 10 41 18 83) (7 bytes), roundtrip time: 0.1 ms. Timeout setting: 2000.0 ms.
Traceback (most recent call last):
File "./RenogyWanderer.py", line 272, in <module>
readRenogy(file_object)
File "./RenogyWanderer.py", line 64, in readRenogy
register = renogy.read_register(0x00A)
File "/usr/local/lib/python3.7/site-packages/minimalmodbus.py", line 258, in read_register
return self._genericCommand(functioncode, registeraddress, numberOfDecimals=numberOfDecimals, signed=signed)
File "/usr/local/lib/python3.7/site-packages/minimalmodbus.py", line 697, in _genericCommand
payloadFromSlave = self._performCommand(functioncode, payloadToSlave)
File "/usr/local/lib/python3.7/site-packages/minimalmodbus.py", line 798, in _performCommand
payloadFromSlave = _extractPayload(response, self.address, self.mode, functioncode)
File "/usr/local/lib/python3.7/site-packages/minimalmodbus.py", line 1075, in _extractPayload
raise ValueError(text)
ValueError: Checksum error in rtu mode: '\x18\x83' instead of 'h2' . The response is: '\x00\x00\x08\x10A\x18\x83' (plain response: '\x00\x00\x08\x10A\x18\x83')
These images should help with your pinout problems. Check each connection with a mutimeter!
Maybe you can find a modbus query tool for windows?
I have tried the following 3 adapters.1) your adaptor is true RS232
I checked the contacts with a multimeter. Each voltage was below when the 12V battery was connected.2) the RJ connector is really making contact with the pins in the renogy SCC, I had trouble with this.
I tested with some python codes on MacOS X and Windows modbus test tool.3)You need to test the data connection with my python PI code (on GitHub, link below) as it's modbus protocol, not a serial data stream. Modbus responds to queries. The line will be quiet without the correct query. Maybe you can find a modbus query tool for windows?
27c27
> renogy = minimalmodbus.Instrument(devName, 1)
---
< renogy = minimalmodbus.Instrument(devName, 255)
> diff /usr/local/lib/python3.7/site-packages/minimalmodbus.py /usr/local/lib/python3.7/site-packages/minimalmodbus.py~
2078c2078
< SLAVEADDRESS_MAX = 255
---
> SLAVEADDRESS_MAX = 247
===> Work fine.A) Plugable USB to Serial Adapter Prolific PL2303HX Rev. D Chipset
https://www.amazon.com/dp/B00425S1H8/
===> Not work.B) PL2303HX-RS232-Serial-TTL-Adapter
https://www.amazon.com/dp/B08JTVNGL9/
===> Not work.C) DSD-TECH-Adapter-FT232RL
https://www.amazon.com/dp/B07BBPX8B8/
Great yourself a new pi 4 or pi zero. Take the time to understand the steps. The experience is worth every minute of your time. You will be using those skills for years to come. Above all have fun! Joe.I'm having issues with the install instructions. https://github.com/BarkinSpider/SolarShed/blob/master/Pi Setup Cheat Sheet
Is there a Raspberry Pi image with the software all ready loaded that might be a faster way for a noob like me to get it operational?
It would be faster for me to read the instructions and look at operational code to understand the instructions.
My experience is in building automation, so I am interested in this project to teach myself a new skill set.
Testing Configuration:
Renogy Wanderer 10 Amp 12V/24V PWM Negative Ground Solar Charge Controller
USB to serial adapter, custom cable made and tested for correct voltage from the RS-232 port.
AGM B.B Battery (12v 8Ah) BP8-12 Qty 2 in parallel (Fused at 7 1/2 Amps)
Solar Panel is an adjustable power supply 0 - 24 VDC at 20 Amps set at 15.4 VDC (Fused at 7 1/2 Amps)
Raspberry Pi Model B Plus Rev 1.2 Software loaded Raspberry Pi Imager v1.6 with "Raspberry Pi 0S (32bit)" Power from the USB from the Wanderer (Fused at 2 Amps)
I am happy to buy a new PI if that will make me compatible with the project image file.