#solar #hardware #charge #controllers #control #stats #gather


A small library to control Morningstar solar charge controllers

9 releases

0.4.1 Mar 4, 2022
0.4.0 Aug 23, 2021
0.3.0 Jul 18, 2020
0.2.0 Jul 11, 2019
0.1.1 Oct 28, 2018

#1162 in Hardware support

41 downloads per month


899 lines


Gather stats from, and control morningstar solar charge controlers. Currently only the Prostar MPPT is supported, because that's the only one I have physical access to.

see document http://support.morningstarcorp.com/wp-content/uploads/2015/12/PSMPPT_public-MODBUS-doc_v04.pdf for details on the modbus interface.

Programming the charge controller is now supported. No checks are done to the parameters you set, and I cannot be responsible for the outcome of an improperly programmed controler, you could set fire to your house, destroy your batteries, destroy your charge controllers, or summon lightning from the angry gods. All that said, I program my Prostar MPPT40M using this code, and it works just fine :-)


~260K SLoC