Close

testing testing and retesting

A project log for Low cost solar panel solution (MPPT + sun tracker)

portable flexible panel + MPPT controller + solar tracker system less than 55 USD ????

jp-gleyzesJP Gleyzes 08/27/2022 at 08:170 Comments

My latest modification of the software introduced quite a lot of necessary improvements but also some complexity into the code and thus bugs occured...

The reason for these bugs were simply a lack of tests... The system was running under "normal" conditions but was critically failing when a "degraded case" occured.

So the only solution was to improve (a lot) the testing scenarii and harden the software side. 

I took my inspiration from the European Space Standards (I am a space ingeneer !) and taylored the ECSS-E-ST-40C  which is the "Verification Standard" for space systems !

Stop kidding, I only kept from this standard the overall philosophy consisting in documenting and testing the specifications under realistic use cases including degraded modes of the software.

Here are the testing cases that have been currently checked:

Nothing fancy into this log... All these tests needed a lot of time, but they were the price to be paid to get confidence into the system. 

It's now fully automatic, without any need for human intervention (initialization excepted). 

It can work with or without sun, relying only on the sun angles computation and a sufficient (or not) voltage to run the motors.

All the complexity is hidden into an intensively tested software system.

Discussions