Debian Codegraph @

extras/solar/README

raw
1 This modules simulates a Solar panel controller with a lead-acid battery, solar panel,
2 and voltage and current sensors. The module has three sensor pins and two
3 control pins.
4
5 The three sensor pins are
6
7 Vsol - Solar panel Voltage
8 Asol - Solar panel Current
9 Vbat - Battery voltage
10
11 The two control pins are
12
13 PWM - Pulse with modulated signal to controler
14 OK - PWM signal is used (if low PWM is don't care)
15
16 Attributes are as follows
17
18 Aoffset - Voltage on Asol when current is zero
19 Ascale - Volts/Amp scale factor for Asol
20 BDOC - Battery degree of charge (determines battery voltage)
21 VBscale - Vbat (volts) = battery voltage * VBscale
22 VSscale - Vsol (volts) = solar panel voltage * VScale
23 inductor - controller inductor in Henrys
24
25 The module simulates a 12 solar panel with the following specs
26
27 open circuit voltage 21.6V
28 Short circuit current 1.27A
29 Max power point 17.3V 1.16A
30
31 The simulated panel VI is an approximation and is OK for the current purpose
32 but should not be taken a correct for design purposes.
33
34 The battery uses a simple model for a 12V lead-acid (or SLA) battery with a
35 20 mah capacity and a 1.5 ohm internal resistance. The small battery
36 capacity is to allow the battery to quickly change state.