Solar Recorder using PIC18F458 microcontroller
The device used for measuring daily insolation has been developed. The device was built with a PIC18F458 and the 128MB Multimedia Memory Card, MMC. The solar radiation is measured by a calculator solar cell. The PIC chip interfaces the MMC using SPI mode. The interval between samples is set to one minute. The firmware detects the memory card, assignes the file name and begins recording automatically. The LCD displays the file name, current sample and real-time ADC data. With the MMC flash technology and a cheap media card reader, the devices will be able to record huge amount of data and quick data uploading to the PC.
To estimate the sun energy for a given location, we record the irradiance (W/m^2) with time. Figure 2 shows a sample plot of irradince with time (5mins interval). The daily insolation can be computed easily by integraing the curve. For accurate total radiation measurement, we use the expensive pyranometer. However for simplicity and cheap instrument we can replace it with a small colar cell as the input sensor. The article shows the use of PIC microcontrolller and the Multimedia Memory Card for data storage.
The complete hardware schematic is shown in Figure 1. The MCU is PIC18F458 running at 4MHz clock. The SPI port RC2-RC5 is used to interface the MMC card. Since the memory card is +3.3V logic, we use CMOS CD4050 to translate from +5V logic to +3.3V logic. RC5 is MMC command shifted out from the MCU. The shift clock is RC3. Data out from the memory card is read back by RC4. The text LCD is interfaced to the PORTB using 4-bit mode.
For more detail: Solar Recorder using PIC18F458 microcontroller