Can my homeowners association stop me from installing solar panels?
No it cannot. According to DSIRE (Database of State Incentives for Renewables & Efficiency)
“HOAs are barred from restricting a homeowner’s right to install solar panels. States which have laws that override any HOA contracts seeking to deny the right to install solar PV systems include: Arizona, California, Colorado, Delaware, Florida, Maine, Maryland, Massachusetts, Nevada, New Jersey, North Carolina, Oregon, Vermont, Virginia, and Wisconsin.”
For details concerning solar access rights in Maryland click HERE.