A project to explore measurement of carbon dioxide concentration and presenting the numbers in virtual reality.
Learn to interface a Sensirion SCD41 carbon dioxide sensor to a Raspberry Pi and an Oculus Quest to 3D map carbon dioxide levels.
https://physicslibrary.github.io/Threejs-VR-Carbon-Dioxide-Sensor/
Oculus Quest (tested Quest 1, no controllers)
Oculus Browser >15.4 (Quest update 29.0)
Not sure if Oculus Browser needs to be configured for WebXR like in the early days. If the simulation below does not work, type "chrome://flags" in Oculus Browser and search for "webxr". "WebXR experiences with hand and joints tracking" and "WebXR Layers" are enabled.
Codes for WebXR hand tracking may stop working after an Oculus Browser or threejs update.
Open Oculus Browser to link ("Enter VR" using hand, no controller):
https://physicslibrary.github.io/Threejs-VR-Carbon-Dioxide-Sensor/examples/threejs_vr_scd41sim.html
Code threejs_vr_scd41sim.html in ./examples simulates CO2 concentration as a function of distance from a point.
With a real SCD41 sensor, one can map CO2 concentration in a room. CO2 in a room are dependent on ventilation, number of persons, time, diffusion, and other factors. Perhaps there will be a passthrough mode in VR in a browser to merge real and virtual views to visualize CO2 3D data.
Raspberry Pi with wireless LAN (tested Pi Zero W).
Sensirion SEK-SCD41-Sensor evaluation kit
Oculus Quest (tested Quest One, update 29.0, Oculus browser 15.4)
Raspberry Pi OS Lite (tested May 7, 2021 release)
https://www.raspberrypi.org/software/operating-systems/
scd41.glb
photogrammetry created from 18 images using AliceVision Meshroom
(CC BY 4.0)
https://github.com/Sensirion/raspberry-pi-i2c-scd4x
https://montrealgazette.com/news/quebec/co2
Adafruit Industries' Youtube on SCD4x:
https://www.youtube.com/watch?v=M_tFVNKgX04
Copyright (c) 2021 Hartwell Fong