MarkusGaelli / MicroBlocks-SCD30

Library and example code to run the environmental sensor SCD30 from MicroBlocks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MicroBlocks-SCD30

Library and example code to run the environmental sensor SCD30 from within MicroBlocks.

Now high school students can build quality CO2 monitoring solutions to reduce Covid risk within the interactive and visual programming environment MicroBlocks (think Scratch for IoT) for many different embedded devices.

SCD30

The SCD30 is an environmental sensor to measure CO2 in ppm, temperature in °C, and humidity in %.

Technology

It is a nondispersive infrared sensor, short an "NDIR sensor". NDIR seonsors are spectography-type sensors targeted towards gas molecules, in this case towards CO2. They deliver more accurate results than cheaper MOS sensors like the SGP30 targeting CO2 equivalent gases like H2. The SCD30 sensor has an accuracy of 3% whereas SGP30 only achieves 15%. NDIR sensors are -- unlike MOS based sensors -- independent of chemical reactions and hence do not have to be recalibrated in the long run. They are a bit more expensive though.

Context

The corona epidemic is hitting students hard: They risk isolation at home and infection in the class rooms. One puzzle piece to mitigate the risk is to install CO2 monitors in the class rooms. There are good commercial solutions available -- and hopefully installed by now in many schools. Still, this problem domain should be a good motivation for both teachers and students to delve into MINT and build their own CO2 appliances using affordable IoT devices like micro:bit, Calliope mini, the AdaFruit Circuit Playground Express, or some ESP32 device. They might even use it and avoid some infections by getting reminded to open the windows when needed.

Here are a few beginner friendly block based platforms which one coud use for programming the SCD30 together with the respective library:

Platform / Enduser Name Organisation Backend Language SCD30 driver
Vittascience French Ministry of Education MicroPyton SCD30
MakeCode Microsoft Python/JavaScript SCD30
MicroBlocks (diverse/non profit) gp SCD30

Only Microblocks lets you interact directly with the blocks, in the other platforms you need to upload them first.

Example

About

Library and example code to run the environmental sensor SCD30 from MicroBlocks.

License:MIT License