• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

Makefile.amH A D11-Nov-201877 82

Makefile.inH A D03-May-202218.7 KiB652566

READMEH A D11-Nov-20181.2 KiB3726

solar.ccH A D06-Jan-201916.3 KiB757516

solar.hH A D06-Jan-20193.4 KiB13086

README

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