0% found this document useful (0 votes)
93 views1 page

Solarswitchflowchart

The document describes the logic flow for a battery charging system that can charge from either solar or mains power sources. It first checks the battery voltage and prioritizes the power sources, then monitors the battery voltage during charging to determine when it is fully charged before returning to normal operation.

Uploaded by

api-347364425
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
93 views1 page

Solarswitchflowchart

The document describes the logic flow for a battery charging system that can charge from either solar or mains power sources. It first checks the battery voltage and prioritizes the power sources, then monitors the battery voltage during charging to determine when it is fully charged before returning to normal operation.

Uploaded by

api-347364425
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Boot

Check
Priority
Switch

relay_pin LOW Solar Mains relay_pin HIGH

Middle

ERROR Check ERROR


< 3.0V > 16V
(led sequence) battery_voltage (led sequence)

3.0V < X < 16V

MAINS OPERATION SOLAR OPERATION

Normal
=<10.6V >10.6
Operation

- Set charging flag


charge_flag = 1 Check charge_flag
- Switch to mains
relay_pin HIGH Normal
Charged
State

=> 14V =1 =0

- De-set charging flag Switch to solar


charge_flag = 0 < 14V relay_pin LOW
- Switch to solar
relay_pin LOW
Still
Charging

Restart loop

You might also like