The most important impact to climate on earth is the activities of the sun. Heat, energy from the sun and obit distance from the sun can influence the weather or make wild fire more liable. The observation of solar activities can give one index on how the weather may changed. Solar radio can show the tendency of the solar activities.
2 How to solveOne round reflective anntenna shall be built to follow the orbit of the sun to record the stength and spectrum of the sun. This data shall be annotated with present temperature and humidity. Such data shall be collected by QuickLogic QuickFeather Development Kit and analysised by deep learning toolkit of SensiML. This solution detect the radiactive from the sun instead of strong sun image by camera. The round reflective annenna is direction sensitive. This is useful for weather forcast and tendency prediction..
3. SolutionsThe radiactive activities is correlated with the energy activities on the SUN. The main feature is to measure the energy source from the sun. Data collected from radio frequency from the anntenna as input to SensiML for model training.
The the trained model shall be downloaded to make prediction accordingly.
3.1 Use qf_ssi_ai_app in qsdk as sample and change the directory into qf_ssi_ai_solarRadiation,
Connect USB-serial port via a USB to TTL serial adapter, plugs in RXD to Pin 2 and TXD to Pin 3 on J3.
Revise the Fw_global_config.h
with
#define FEATURE_USBSERIAL 1
#define DEBUG_UART UART_ID_USBSERIAL
Enter into simple stream mode, with MQTT-SN mode, the Data Capture Lab (DCL) can be used.
Build the code and flash the board,
output of accelerators shall be as follows,
3.2 Start Data Capture Lab (DCL) with registrated acount, or the capture and Edit mode can not be used.
3.3 Open The sensiML toolkit, the data label and training can be done
The main.c used FreeRTOS and thread are running with
vTaskStartScheduler();
Therefore, the whole framework can be kept unchange with one sensor to capture solar radiation value with PIN in ADC_channel_1.
The main program shall be
#include "sensor_sradiation.h"
#include "eoss3_hal_adc.h"
int main(void)
{
SOFTWARE_VERSION_STR = "qorc-sdk/qf_apps/qf_ssi_app";
qf_hardwareSetup();
nvic_init();
#if (FEATURE_USBSERIAL == 1)
S3x_Clk_Disable(S3X_FB_21_CLK);
S3x_Clk_Disable(S3X_FB_16_CLK);
S3x_Clk_Enable(S3X_A1_CLK);
S3x_Clk_Enable(S3X_CFG_DMA_A1_CLK);
load_fpga(axFPGABitStream_length,axFPGABitStream);
HAL_ADC_Init(ADC_CHANNEL_0,0);
// Use 0x6141 as USB serial product ID (USB PID)
HAL_usbserial_init2(false, true, 0x6141); // Start USB serial not using interrupts
for (int i = 0; i != 4000000; i++) ; // Give it time to enumerate
#endif
dbg_str("\n\n");
dbg_str( "##########################\n");
dbg_str( "Solar Radiation Detection\n");
dbg_str( "##########################\n\n");
dbg_str( "\n\nHello for Solar Radiation Tracing!!\n\n"); // <<<<<<<<<<<<<<<<<<<<< Change me!
HAL_Delay_Init();
HAL_I2C_Init(i2c0config);
kb_model_init(); /* initialize the knowledgepack */
#if (SSI_SENSOR_SELECT_SSSS == 1)
sensor_ssss_block_processor();
#endif
sensor_sradiation();
#if ( ((SSI_SENSOR_SELECT_SSSS == 1) && (SENSOR_SSSS_LIVESTREAM_ENABLED == 1)) || \
((SSI_SENSOR_SELECT_AUDIO == 1) && (SENSOR_AUDIO_LIVESTREAM_ENABLED == 1)) )
StartSimpleStreamingInterfaceTask();
#endif
/* Start the tasks and timer running. */
vTaskStartScheduler();
dbg_str("\n");
while(1);
}
The data shall be parsed with Datablock according to MQTT-sn format to be captured by DCL.
After devicePack be downloaded, prediction part shall be added for data prediction.
That part of work is still pending for later to complete.
Comments