{"collection":"posts","slug":"1736536967495-pure-internet-office-space","cid":"bafkreia4wcdlpcgvsrnu7pnines3h4r2qmwhjdslz7xjvzlbeaebbcgzti","title":"Pure Internet: office---space","excerpt":"A Pi Zero 2 W and Waveshare Environment HAT record my office conditions every 60 seconds.","body":"![](blob://bafkreihc33qgv2u5thb3skmoutcdmtaoxr5mptiu3tg5f5awmlhexsfpai)\n\nI had a spare Raspberry Pi Zero 2 W and a Waveshare Environment HAT sitting in a drawer. The Zero 2 W is overkill for reading sensors and writing to a database, but the 64-bit processor makes library support easier.\n\nThe Environment HAT carries the sensors:\n\n- TSL25911 Digital Ambient Light Sensor\n\n  - I2C address: 0x29\n  - Effective range: 0~88000 Lux\n\n- BME280 Temperature, Humidity, and Air Pressure Sensor\n\n  - I2C address: 0x76\n  - Temperature: -40~85°C (0.01°C resolution, ±1°C accuracy)\n  - Humidity: 0~100%RH (0.008%RH resolution, ±3%RH accuracy, 1s response time, ≤2%RH delay)\n  - Air Pressure: 300~1100hPa (0.18Pa resolution, ±1hPa accuracy)\n\n- ICM20948 9-DOF Motion Sensor\n\n  - I2C address: 0x68\n  - Accelerometer:\n    - Resolution: 16-bit\n    - Range: ±2, ±4, ±8, ±16g (configurable)\n  - Gyroscope:\n    - Resolution: 16-bit\n    - Range: ±250, ±500, ±1000, ±2000°/sec (configurable)\n  - Magnetometer:\n    - Resolution: 16-bit\n    - Range: ±4900µT\n\n- LTR390-UV-1 UV Sensor\n\n  - I2C address: 0x53\n  - Response wavelength: 280nm - 430nm\n\n- SGP40 VOC Sensor\n  - I2C address: 0x60\n  - Measuring range: 0 ~ 1,000 ppm ethanol equivalent\n  - Limit condition: \u003c0.05 ppm ethanol equivalent OR \u003c 10% preset concentration point\n  - Response time: \u003c10s (tau 63%)\n  - Start time: \u003c 60s\n\nA new entry every 60 seconds, give or take. The sensors occasionally stall, but the database aggregation absorbs most of it, and some error handling tries to reinitialize before rebooting.\n\nThe code is open source, split across [office-space](https://github.com/iammatthias/office-space) (a Vite + React frontend reading from Supabase) and [office-space-db](https://github.com/iammatthias/office-space-db) (the Python and systemd service running on the Pi).\n\n![](blob://bafkreicr46gd3qto5xrdhwsmbchtb5efzjkwvcl3z3d2txy64xo3ecbxxa)","tags":["raspberry-pi","sensors","open-source","monitoring","hardware","mint","data-collection"],"published":true,"createdAt":"2025-01-10T11:22:00Z","updatedAt":"2026-07-16T14:56:30Z"}
