Thread Rating:
  • 4 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Esperyd´s Raspberry PI project
Hi Daniel...

Would a MODBUS to Ethernet thingy work with your software side of things rather than the little WIFI unit?
I am thinking about something like this...

https://www.iot-store.com.au/products/rs...3050641747


If it was capable, would it be "contactable" via the local network as far as the Rasp Pi side goes?
Reply
(01-22-2019, 08:48 PM)WuggyBuggy Wrote: Is there a way to get it running on a pi3 model+?

Did you find a way to do this?
i think Daniel or someone else will have to update the ISO, but he does not have a B+ model to test it on, and does not have time to update it either.
I i keeping my fingers crossed, as i god a B+ model for Christmas, but have no way of using it, and the sun in comming out soon.
Reply
Hi Daniel... I have used your Raspberry ISO and connected up an SDM630 to a simple circuit for testing using the USB to modbus dongle. When I first ran the python script I got some errors that it couldnt find paho.mqtt. I used pip to install that.
Now it says no module named pymodbus.constants.
Webmin says all the packages are up to date so perhaps something not installed or paths issue?

Can you help me sort this out. I'd like to get it working on this simple single phase appliance before installing it into the 3 phase supply to measure the house.

I've reinstalled the ISO to start fresh so I am back to having the "no module named paho.mqtt.client" being shown when I try to start mat.py

I've got it sorted out. Reinstallation of a few things (may have broken when package updates were done?) and changed the constant endian around a bit and updated some links to hosts in the py file...
Happily can report it showing the watts being used by the appliance.

I now have to figure out how to show some gauges for voltage too...
Reply
(02-19-2019, 09:02 AM)oilskov Wrote:
(01-22-2019, 08:48 PM)WuggyBuggy Wrote: Is there a way to get it running on a pi3 model+?

Did you find a way to do this?
i think Daniel or someone else will have to update the ISO, but he does not have a B+ model to test it on, and does not have time to update it either.
I i keeping my fingers crossed, as i god a B+ model for Christmas, but have no way of using it, and the sun in comming out soon.

No haven't messed around with it yet.
Reply
(09-13-2018, 12:31 PM)uploader18 Wrote:
(09-13-2018, 10:48 AM)Frnandu Martiński Wrote:
(09-12-2018, 05:40 PM)uploader18 Wrote: Hi!

Thank you for all your answers but let me be more specific. Since i have PIP5048 that gives me only voltage and current for solar and no data in W or Wh. This make all calculations (for me) a little bit complicated since i do not know how to tell grafana to calculate daily power production from those two variables.

As for CRC16 it is strange that inverter accepts command that i want to set from SBU to grid but not the other way around. I can set solar charging current but not solar+grid charging current.

Beware that when setting between SBU and other source priority the PIP as a 10min buffer interval before it will switch back to SBU.
I also have the PIP5048 and I added the PIP commands for these settings in solar-sis, and they should work quite nicely.

Using PIP reported voltage*current for calculating Wh will not be very precise.
I use a few SDM120s instead (for house and grid Wh measurements) which are much more reliable.
Only for solar (from the PCM60x) I use the method of reported voltage*current and summing it up in influx queries.


Here how it looks:
 


This is using my tesla app powerflow imitation code, you can try it at https://github.com/frnandu/diypowerflow

Check out more details of my build at: https://secondlifestorage.com/showthread.php?tid=1061

For the part of switching from source to source is if I do it by hand (in PIP's menu it switches instantly with no delay from SBU to UTI and UTI to SBU). When I poke API to switch to UTI it does that instantly and changes parameter 1 from SBU to UTI but when I want switch from UTI to SBU it does not switch parameter 1 to SBU.

As for the part of solar daily consumption I was able to solve that too.

FOR SOLAR

SELECT  (mean("pv_input_voltage_1") *mean(pv_input_current_for_battery))/1200 FROM "pip_query_general_status" WHERE $timeFilter GROUP BY time(3s)


FOR POWER USED

SELECT mean(ac_output_active_power)/1200 FROM "pip_query_general_status" WHERE  $timeFilter GROUP BY time(3s)


I group by time 3 sec since my readings come every 3 sec and divide it by 1200 why(60m*60s)/3(every 3 sec data)

Regards
If I want to label these two, would it be Kw or Kwh?

(09-14-2018, 04:43 PM)oldserg Wrote: I create the queries like these to calculate energy:
===================
5. cq_kWh_batt_discharg
CREATE CONTINUOUS QUERY cq_kWh_batt_discharg ON powerwall RESAMPLE FOR 1h BEGIN SELECT integral(kwh_bco, 1h) / 1000 AS kWh_batt_discharg INTO powerwall.autogen.kWh_ALL FROM (SELECT mean(battery_discharge_current) * mean(battery_voltage) AS kwh_bco FROM powerwall.autogen.pip_query_general_status GROUP BY time(2m) fill(0)) GROUP BY time(20m) TZ('Europe/Rome') END

6. cq_kWh_PV_batt_charg
CREATE CONTINUOUS QUERY cq_kWh_PV_batt_charg ON powerwall RESAMPLE FOR 1h BEGIN SELECT integral(kwh_PV_bat, 1h) / 1000 AS kWh_PV_batt_charg INTO powerwall.autogen.kWh_ALL FROM (SELECT mean(battery_charging_current) * mean(battery_voltage_from_scc) AS kwh_PV_bat FROM powerwall.autogen.pip_query_general_status WHERE pv_input_current_for_battery > 0 GROUP BY time(2m) fill(0)) GROUP BY time(20m) TZ('Europe/Rome') END
===================

You need to create a new tables for these values before
Do you do this in Influxdb?
Reply
(07-17-2018, 09:48 AM)Frnandu Martiński Wrote:
(07-11-2018, 01:45 PM)SiverNodashi Wrote:
(07-04-2018, 12:36 PM)daromer Wrote: Solar-sis you can define the commands in the config file. You then use the API to poke the system to do certain things.

Hi, 

How do you "poke the API"?  i.e. how do you access the API?

like I wrote above (check what port you have configured, mine is 3001, adjust accordingly):

curl http://localhost:3001/output_source_priority?source=00 

curl http://localhost:3001/utility_max_charging?current=10

Are you able to adjust the inverter's voltage readings dynamically through this?

Let me explain, I know the PIP4048 doesn't read any battery capacity accurately so I would either need to get a Victron BMV for my current Lead Acid battery which can properly measure and report the battery capacity, using Volts and Ampere (The PIP4048 only use Voltage) or I am looking at getting a LiFePO4 battery but will sit with the same problem. 

So I want to / need to give the inverter the actual battery readings instead of relying on it's built-in process to guess it. 
At one time, on another inverter, I measured 27.4v while the inverter reported 28.8v
Reply
If your inverter measures one and you another then you have a voltage drop in the system. THe PIP should be within 0.1V easy and if it isnt you either have huge voltage drops during that load causing it to divert.

The PIP cannot measure capacity since it have NO CLUE about capacity on your battery bank. It ONLY shows current voltage. Secondly the algoritm is for LA and only in resting state.
If you cant to have capacity you need a proper coulomb counter meter instead like the Victron or any other that measures energy going in and out.

The inverter does not guess on the voltage. It meassures it inside the unit. Once again look into why you get that screwed up readings from the start. There is no changing the voltage reading. Potentially you can calibrate the inverter but that need special software and I have not seen it available.
The Ultimate DIY Solar and build place
YouTube / Forum system setup / My webpage  Diy Tech & Repairs

Current: 10kW Mpp Hybrid | 4kW PIP4048 | 2x PCM60x | 83kWh LiFePo4 | 10kWh 14s 18650 |  66*260W Poly
Upcoming: 14S 18650~30kWh | Automatic trip breakers, and alot more
Reply
(03-29-2019, 09:51 AM)daromer Wrote: If your inverter measures one and you another then you have a voltage drop in the system. THe PIP should be within 0.1V easy and if it isnt you either have huge voltage drops during that load causing it to divert.

The PIP cannot measure capacity since it have NO CLUE about capacity on your battery bank. It ONLY shows current voltage. Secondly the algoritm is for LA and only in resting state.
If you cant to have capacity you need a proper coulomb counter meter instead like the Victron or any other that measures energy going in and out.

The inverter does not guess on the voltage. It meassures it inside the unit. Once again look into why you get that screwed up readings from the start. There is no changing the voltage reading. Potentially you can calibrate the inverter but that need special software and I have not seen it available.

I get those screwed up readings due to a design flaw on these cheap inverters. 
Look here: http://forums.aeva.asn.au/viewtopic.php?p=71631#p71631

As you say, it needs a proper battery measurement system. Something like the Victron BMV702. Lithium battery's BMS also give proper readings but the inverter doesn't know about it. 

A friend who installed Pylontech LiFePO4 batteries didn't get much runtime out of his bank. Then he installed a iccsoftware + a comms cable to the batteries. iccsoftware now reads the battery's soc constantly throughout the day and he can now drain the batteries down to 80% DOD every time.

P.S. Those voltage discrepancies I had was taken with the volt meter at the inverter's battery connections. At the battery it was 0.04v different, so the volt drop on the 35mm2 cable is minimal.
Reply
Yes then you have the command so just go ahead and run it towards the inverter. You can run it via solar-sis if you want but I have never bothered with it. I have set my thresholds properly and dimensioned and after that havent had a problem. The above post is rather new and wasnt available when I started with it. With that said on the many units I have had I have not had such an issue and on the units i have helped with everyone have been implementation issues on the contacts or wires.

I use solar-sis to control my inverters and also the ats switches. Works flawlesly and all input from Batrium so i get proper SOC values and voltages on each pack. Total voltage is not very good to rely on and it should be on cell level.
The Ultimate DIY Solar and build place
YouTube / Forum system setup / My webpage  Diy Tech & Repairs

Current: 10kW Mpp Hybrid | 4kW PIP4048 | 2x PCM60x | 83kWh LiFePo4 | 10kWh 14s 18650 |  66*260W Poly
Upcoming: 14S 18650~30kWh | Automatic trip breakers, and alot more
Reply
Quick question. Can the mpp solar 10kW hybrid and the rashberry pi read information from the same energimeter? If yes, can I connected on the same terminals as the pi? Can't find this in your videos daromer. I've tried =(
Reply


Who read this thread?
100 User(s) read this thread:
hbpowerwall, AZ_Tekkie, Chickey, ShaneE, Minx, daromer, Sean, mike, 18650Shrink, goodnowm, AveRageJoe, BigBen, PaulKennett, Joaquinsfy, SJBW, NiVa, MichelKuenemann, Lux_Gamer, Andreas Kvernes, owitte, opus40, RudyLiPower, lgeo, dakoal, VdVoort4, Glubux, Majorphill, Elwood, coolfx, ruby2, JustJim, Korishan, A + A, PAF, FERCSA, Prahe86, Clisse, Zensay, Franky Beuselinck, Batrium, Darmok, Wattsup, Scepterr, eeesOap, BobinTN, Tristan Timmer, Frnandu Martiński, CrankyCoder, Mike C, Droid126, eAnic, Sabado, jdeadman, charlie246, monsted, camils, Zagy, 2146, wim, wimpie007, ericg, frnandu, typ49, John, Christian, Robert Baumer, Alyas Junior Abdul, Jeremy Choy, 1958 greyhound, Abarth595, Sentinal, Tango47, kktuo, civitou, neilmc, Kaspars Krumins, Off Grid Power wall, Verner A. Møller-jensen, Tychipowerwall, rebelrider.mike, kaits31, gaz, watts-on, Dan Lim, jesusangel, Gimpy_AK, fcbrand, Daggerzz, Hanssing, MetalFang, Fredd, autobd, IronSky, Mark Daniel Olsen, DrkHrs13, tamkov, silverse2m6, kot, quake101, Joost2

Forum Jump:


Users browsing this thread: 2 Guest(s)