Approved content
The content below is provided by a partner.
Environment and Science IoT package is developed under the cooperation of ELECFREAKS, CLASSROOM and TINKERCADEMY.
The ELECFREAKS Environment and Science IoT Kit can detect all kinds of environment data like temperature, humidity, wind speed, light intensity, noise, dust, and PM2.5 level. In addition, you can upload these environment data to the SmartIoT IoT server (free registration required), using the ESP8266 serial wifi module.
environment
packageEnvironment_IoT
drawer in the editor to drag out and arrange the blocksDownload
to move your program to the micro:bitInitialize dust sensor. Set pin vLED and VO.
Environment_IoT.initdust(DigitalPin.P10, AnalogPin.P1)
get dust(μg/m³)
Environment_IoT.initdust(DigitalPin.P10, AnalogPin.P1)
basic.forever(() => {
basic.showNumber(Environment_IoT.ReadDust())
})
get DHT11 Temperature(℃)
basic.forever(() => {
basic.showNumber(Environment_IoT.ReadTemperature(AnalogPin.P0))
})
get pm2.5(μg/m³)
basic.forever(() => {
basic.showNumber(Environment_IoT.ReadPM25(DigitalPin.P11))
})
get pm10(μg/m³)
basic.forever(() => {
basic.showNumber(Environment_IoT.ReadPM10(DigitalPin.P12))
})
get soil moisture, Value Range: 0~100.
basic.forever(() => {
basic.showNumber(Environment_IoT.ReadSoilHumidity(AnalogPin.P3))
})
get wind speed(m/s)
basic.forever(() => {
basic.showNumber(Environment_IoT.ReadWindSpeed(AnalogPin.P4))
})
MIT
Environment-and-Science-IoT=github:tinkertanker/pxt-iot-environment-kit#v5.5.9