In the first part all the external files necessary for the different functions are included. Calibration values: These values are crucial for the measurements. These values are depending on the CT sensors used, tolerances of the used resistors and capacitors and other things. To get these values correct, I stepped several times. .
This modul contains 2 functions used to store the recorded values. String getTimeStamp()returns the current date and time of the system. To get it we use the “bridge” function “.run”. .
This modul handles the light sensor. The communication with the light sensor is done within the Adafruit_Sensor and Adafruit_TSL2561_U. .
This is the programs main loop. It is running all the time. Inside the loop we use the millis() function to initiate measurements and saving. .
This modul contains the CT sensor measurement routines. The direct measurement of current and voltage is done by the emonLib library. EmonLib is an open source library. [pdf]
[FAQS about Yun Photovoltaic Panel Project]
Enter your inquiry details, We will reply you in 24 hours.