.
Overview.
Knowing the AQI (air quality index) is important especially in areas that have air quality related hazard. Now you can build your own kit which will tell if there is an air quality risk in your area.
The AQ kit has a LED light will tell if there is an air quality risk. An AI model about air quality classification will be built using SensiML and uploaded to QuickFeather Dev Kit. Sensor data will be used to tell if the current condition poses any air quality risk.
.
Setup Hardware and SensiML.
There is a very nice tutorial describing how to setup the hardware and SensiML system. Follow this to setup the development environment.
.
Build the Lesson #1b: M4 only – modify qf_helloworldsw.
I followed this lesson and managed to build the app and run it:
.
Build the Quickfeather Simple Streaming Interface AI Application Project.
I followed the instructions of the project and built the app successfully.
.
Build the Quickfeather MQTT-SN AI Application Project.
I planned to use the PmodAD1 module and the above project made use of the PmodAD1 module. But when I tried to build the above MQTT-SN project and there were this error:
.
make[1]: Leaving directory '/data/playground2/climate-change/qorc-sdk/qf_apps/qf_mqttsn_ai_app/GCC_Project'
make -f makefiles/Makefile_output
make[1]: Entering directory '/data/playground2/climate-change/qorc-sdk/qf_apps/qf_mqttsn_ai_app/GCC_Project'
Linking ...
/usr/share/gcc-arm-none-eabi-10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld: /data/playground2/climate-change/qorc-sdk/qf_apps/qf_mqttsn_ai_app/GCC_Project/output/sensor_ad7476_config.o:/data/playground2/climate-change/qorc-sdk/qf_apps/qf_mqttsn_ai_app/ad7476/src/sensor_ad7476_config.c:31: multiple definition of `adc_fpga_task_config'; /data/playground2/climate-change/qorc-sdk/qf_apps/qf_mqttsn_ai_app/GCC_Project/output/ql_adcTask.o:/data/playground2/climate-change/qorc-sdk/qf_apps/qf_mqttsn_ai_app/GCC_Project/../../../Tasks/ADC/src/ql_adcTask.c:64: first defined here
collect2: error: ld returned 1 exit status
make[1]: *** [makefiles/Makefile_output:5: all] Error 1
make[1]: Leaving directory '/data/playground2/climate-change/qorc-sdk/qf_apps/qf_mqttsn_ai_app/GCC_Project'
make: *** [Makefile:11: all] Error 2
(base) bitnami@ip-172-26-5-75:/data/playground2/climate-change/qorc-sdk/qf_apps/qf_mqttsn_ai_app/GCC_Project$
.
Since there was not much time for the project, I revert back to use the Quickfeather Simple Streaming Interface AI Application Project
as the base.
.
Summary.
With the AQ kit, you will be more prepared if there is an air quality risk. You can build your own kit, may be with additional sensors. You may change the AI model if you have made a better model.
.
Resources.
SensiML Quick Start Tutorial Series
.
Comments