solar_controller by egriffiths

This sketch is missing a short description
To maximize the power generated by my solar arrays. When the batteries are charged, divert the energy to the grid tie inverter. Even when all three major arrays are diverted, the 90 watt array is still connected to the batteries. This will keep the batteries up to compensate for any small loads that remain connected to the battery bank. System components: 4 24 volt solar arrays as described in code header. A 70 amp charge controller for the batteries with a load output for misc connections. A 1500 watt pure sine wave inverter that will automatically switch to battery power when the grid is off. A custom controller that monitors the 60 Hz AC grid power. If it senses a problem with the grid power it trips a solid state relay removing grid power to the inverter.

Embed This Sketch

Use the following HTML code to embed the sketch code above in your blog or website.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/sketch:212054" frameborder="0"></iframe>

Embed The Serial Monitor

You can also embed the Serial Monitor section! Just use this HTML code.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/serialmonitor" frameborder="0"></iframe>