Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DIY: PvControl+
#1
First of all, this is a project that I'm doing with my partner mleon. He did it with a duinomite, but we've got much more control over system with raspberry.

In this moment, the system is working over a RPi 3b and other over a RPi 1b like a charm.

Basic components:

- 1 Rapsberry Pi
- 2 ADS1115
- 2 Shunts
- 2 Resistors (voltage divider)
- 1 Temperature sensor: DS18B20
- 1 PCF8574P
- 1 Relay module (several channels)


Optional components:

- 1 nodeMCu (Yes, we can control electrical appliances via wifi )
- 1 Relay module (Up to 4/5 channels)


Control:

System is controled by Web and/or Telegram.


In a future:

- Surplus diversion control system.

Some images:

Main page



Relays



Electric scheme (RPi 1b)


Telegram



As you see, we received some information every X minutes. And modify some values, relays status, ....


Well, this system works like a Battery Monitor System too, but cheaper. And a place, where you can get more information. Also, data log for a long time.

This image is from today:




Relays (local or wifi):

We can switch on/off relays manually (Web, Telegram) or automatically (photovoltaic conditions: vbat, ibat, ipanel, temperature, ... and/or by schedule)


More charts:

Historical chart




Batteries, production, ...



Averages




We used Highcharts library.

Stay tuned.


PS. Sorry for my english.
ruby2, Elmo, Joaquinsfy like this post
RPi: Control Sistema Fotovoltaico
There are 10 types of people: those who understand binary and those who don't.

Reply
#2
Nice Configuration!!
Reply
#3
Really nice! Smile Lots of work, and Lots of features. Great work. Will be keeping an eye on progress

Kori
Reply
#4
Excelente trabajo!
Reply
#5
We've been working on diversion, to run opportunity loads. For the moment, we get the signal from regulator. But we're thinking to use Vplaca (voltage output of solar panels) in a future.



For diversion, we're using nodeMCU connected via wifi with Raspberry. If there's some problem with wifi, all relays (SSR) will be disconnected after 2 minutes. When we create the relays, we've got priority option and 'jump'.
It's possible to have more than one SSR or normal relay (for low consumption) with the same priority, then in each bucle there will be only one relay changing its value. When all relays with same priority are 100%, then will begin next priority.
Jump: we control number of jumps from 0 to 100%.
'if diversion=1' then 'status=status+jump'
'if diversion=0' then 'status=status-jump'


At the same time, trying to check voltage from each battery o cell, using a multiplexor and one port of an ads1115.



Some images:







ruby2 likes this post
RPi: Control Sistema Fotovoltaico
There are 10 types of people: those who understand binary and those who don't.

Reply
#6
Nice!

How do you get it to work to check voltages on all cells via multiplex and that adc? Or perhaps your the one i have been talking to over FB? Smile
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
#7
We're using 16-channel analog multiplexer 74HC4067. With it, we can control 12 cells, then 24 volts system. For 48V, we'll need 2 MUX.

We take general negative cable and the positive from each cell. Then:

Vcell_1 = Vpoint_1 (+ from first battery)
Vcell_2 = Vpoint_2 - Vpoint_1
Vcell_N = Vpoint_N - Vpoint_N-1

Sig from MUX to A2 of ADC1115. And we need a PCF8574P (bus I2C) to control each input of the MUX.

I've seen your channel in youtube and some videos, but I don't know you.
RPi: Control Sistema Fotovoltaico
There are 10 types of people: those who understand binary and those who don't.

Reply
#8
Very nice!!
Reply
#9
Nikitto: Ok then it was someone else.

How do you do the switching since that Mux only are specified to max VCC between pins. That is max 10V diff between 2 pins and you will get alot more than that. Have you tested it yet?

Vsw in the datasheet. Im just saying it because i have done tests and we saw leakage. Also everyone I talked to said that you need high voltage mux if that is going to work properly. Yes voltage for one cell is 3.7v but between lowest and highest its more Smile

Im not that good with those circuits though.
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
#10
For each loop, we're going to read each input with a 'for' instruction, and update/write into DB, as we're doing with all data.
We're finishing diversion part, but we've already a part of the code and the circuit. Impossible to answer any other question about it in this moment.

We've got 2V flooded lead acid cells. So, the way is the same as for Vbat, using a voltage divider for each cell.
RPi: Control Sistema Fotovoltaico
There are 10 types of people: those who understand binary and those who don't.

Reply


Who read this thread?
77 User(s) read this thread:
Hanssing (12-07-2018, 04:18 PM), Wodys (10-15-2017, 08:38 AM), skjold petersen (08-29-2017, 07:26 PM), Stephen_Bartholomew (10-16-2017, 02:07 AM), Filip (12-07-2018, 06:48 PM), notoriousbdg (11-22-2017, 02:25 AM), Solexx X (12-07-2018, 12:10 AM), Charly144 (12-07-2018, 07:10 AM), BaronVonChickenPants (12-07-2018, 01:33 AM), Jon (08-26-2017, 10:48 PM), Geek (12-07-2018, 01:26 AM), mitchvr (06-19-2017, 01:05 PM), OmgImAlexis (10-30-2017, 03:43 AM), Stefaan De Ridder (12-07-2018, 08:58 AM), Shade (12-11-2018, 11:53 PM), KtB (08-26-2017, 07:05 PM), Daveyboy (07-16-2018, 09:05 PM), gpn (12-07-2018, 03:10 AM), mbrunton (08-26-2018, 07:37 AM), Beholder (12-07-2018, 12:48 PM), Dirty Optics (12-07-2018, 09:56 AM), Wolf (12-07-2018, 12:16 AM), Solardad (Today, 03:37 AM), aquaman (12-07-2018, 05:47 AM), MrMuzza008 (12-07-2018, 02:06 AM), raccooon (12-07-2018, 11:30 AM), KG_5 (12-11-2018, 01:21 PM), hazSolar (09-13-2018, 02:21 AM), w0067814 (12-07-2018, 07:44 AM), bukvaahmed@gmail.com (12-08-2018, 02:23 PM), Crimp Daddy (12-10-2018, 06:08 PM), jonyjoe505 (12-07-2018, 03:41 AM), Ibiza (12-07-2018, 06:08 AM), Zvonko000 (12-09-2018, 02:11 PM), iomagico (12-06-2018, 11:48 PM), SilverNodashi (12-09-2018, 07:01 AM), Walde (12-07-2018, 03:55 PM), 100fuegos (12-09-2018, 05:44 PM), itsnewby (Yesterday, 09:07 AM), Brian Lawrence (03-23-2017, 05:22 PM), DanielD (02-13-2017, 12:34 AM), ruby2 (03-17-2017, 04:38 AM), Korishan (12-07-2018, 12:56 AM), A + A (03-16-2017, 03:36 PM), PAF (12-07-2018, 10:20 AM), nikitto (12-06-2018, 11:58 PM), APD (03-16-2017, 12:59 AM), Asylumweb (02-17-2017, 11:47 PM), coolfx (05-09-2017, 12:09 PM), Majorphill (03-18-2017, 04:05 AM), Grazor (03-17-2017, 02:02 PM), ShaneE (06-05-2017, 08:43 AM), daromer (12-07-2018, 01:25 PM), Minatugar (03-23-2017, 12:06 AM), Sean (12-07-2018, 08:58 AM), mike (03-16-2017, 03:23 AM), NiVa (04-25-2017, 08:00 PM), Lux_Gamer (06-02-2017, 01:04 PM), miwall (04-23-2017, 06:37 AM), Aaron Anderson (02-26-2017, 03:54 PM), jdeadman (12-07-2018, 01:33 AM), dnik2 (02-28-2018, 06:26 PM), coconut2k13 (04-18-2017, 06:03 PM), melsom (04-30-2017, 03:02 AM), kktuo (05-26-2017, 01:34 PM), watts-on (12-07-2018, 01:09 PM), tchipperfield (03-30-2017, 05:21 PM), znourf (03-16-2017, 12:57 PM), Batrium (03-19-2017, 07:58 AM), Wattsup (03-16-2017, 07:11 AM), Elmo (03-16-2017, 08:29 AM), Project (03-18-2017, 12:13 AM), Batteriapan (02-26-2017, 11:44 PM), Frnandu Martiński (03-13-2017, 11:32 PM), Muzzlehatch (03-16-2017, 12:45 PM), sergio (03-15-2017, 04:17 PM), jesusangel (12-07-2018, 07:58 AM)

Forum Jump:


Users browsing this thread: 1 Guest(s)