{"id":28858037,"url":"https://github.com/tscholze/dotnet-iot-raspberrypi-enviro","last_synced_at":"2026-04-17T08:01:57.083Z","repository":{"id":297817643,"uuid":"994176032","full_name":"tscholze/dotnet-iot-raspberrypi-enviro","owner":"tscholze","description":"A C# .NET implementation for controlling the Pimoroni Enviro! multi sensor board on a Raspberry Pi.","archived":false,"fork":false,"pushed_at":"2025-06-07T17:29:13.000Z","size":1011,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-01T04:45:11.744Z","etag":null,"topics":["ads1115","bmp280","csharp","dotnet","lsm303d","pimoroni","pimoroni-enviro","raspberry-pi","raspberrypi","tcs3472"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tscholze.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-01T11:36:42.000Z","updated_at":"2025-06-07T17:29:17.000Z","dependencies_parsed_at":"2025-06-07T17:43:18.566Z","dependency_job_id":null,"html_url":"https://github.com/tscholze/dotnet-iot-raspberrypi-enviro","commit_stats":null,"previous_names":["tscholze/dotnet-iot-raspberrypi-enviro"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tscholze/dotnet-iot-raspberrypi-enviro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tscholze%2Fdotnet-iot-raspberrypi-enviro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tscholze%2Fdotnet-iot-raspberrypi-enviro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tscholze%2Fdotnet-iot-raspberrypi-enviro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tscholze%2Fdotnet-iot-raspberrypi-enviro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tscholze","download_url":"https://codeload.github.com/tscholze/dotnet-iot-raspberrypi-enviro/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tscholze%2Fdotnet-iot-raspberrypi-enviro/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31920518,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ads1115","bmp280","csharp","dotnet","lsm303d","pimoroni","pimoroni-enviro","raspberry-pi","raspberrypi","tcs3472"],"created_at":"2025-06-20T02:04:33.179Z","updated_at":"2026-04-17T08:01:56.882Z","avatar_url":"https://github.com/tscholze.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🌡️ .NET IoT Raspberry Pi Enviro pHAT\n\nWelcome to a comprehensive environmental sensing journey with your Raspberry Pi! This project brings the versatile [Pimoroni Enviro pHAT](https://shop.pimoroni.com/products/enviro-phat) to life using C# and .NET, transforming your Pi into an environmental monitoring station.\n\n\u003ccenter\u003e\n   \u003cimg src=\"_docs/image.png\" height=\"200\" alt=\"Image of the project\" /\u003e\n\u003c/center\u003e\n\n## 🚀 What Does It Do?\n\nWith this .NET IoT implementation, you can:\n\n- 🌡️ Monitor temperature and pressure with the BMP280 sensor\n- 🎨 Detect colors and light levels with the TCS3472 sensor\n- 🧭 Track motion and orientation with the LSM303D accelerometer/magnetometer\n- ⚡ Measure analog inputs with the ADS1115 ADC\n- 💡 Control the onboard LED for status indication\n\nPerfect for environmental monitoring, motion detection, and IoT experimentation!\n\n## 🔌 Hardware Requirements\n\n- [Raspberry Pi](https://www.raspberrypi.org/) (any model with 40-pin GPIO)\n- [Pimoroni Enviro pHAT](https://shop.pimoroni.com/products/enviro-phat)\n- I²C enabled on your Raspberry Pi\n\n## 🖥️ Software Requirements\n\n- [.NET SDK](https://learn.microsoft.com/en-us/dotnet/iot/deployment) installed on your Raspberry Pi\n- I²C interface enabled (`sudo raspi-config`)\n- Git (for cloning the repository)\n\n## 🏃‍♂️ How to Get Started\n\n1. **Clone this repository:**\n   ```bash\n   git clone https://github.com/yourusername/dotnet-iot-raspberrypi-enviro.git\n   cd dotnet-iot-raspberrypi-enviro\n   ```\n\n2. **Build and run:**\n   ```bash\n   dotnet run --project Enviro\n   ```\n\n## 📊 Features\n\n- Real-time sensor data reading and display\n- Automated sensor polling every 10 seconds\n- LED status indication\n- Error handling and graceful shutdown\n- Clean, documented C# code following best practices\n\n## 🔧 Implementation Details\n\nThe project implements drivers for:\n- BMP280 temperature/pressure sensor\n- TCS3472 color/light sensor\n- LSM303D accelerometer/magnetometer\n- ADS1115 analog-to-digital converter\n\nEach sensor is properly initialized and configured for optimal performance.\n\n## ❤️ More IoT projects of mine\nI like to tinker around with Raspberry Pis, I created a couple of educational apps and scripts regarding the Pi and sensors - mostly from Pimoroni.\n\n### .NET on Raspberry Pi \n- [dotnet-iot-raspberrypi-blinkt](https://github.com/tscholze/dotnet-iot-raspberrypi-blinkt) A C# .NET implementation for the Pimoroni Blinkt! LED board on a Raspberry Pi\n- [dotnet-iot-raspberrypi-enviro](https://github.com/tscholze/dotnet-iot-raspberrypi-enviro) A C# .NET implementation for the Pimoroini Enviro HAT with BMP, TCS and more sensors\n- [dotnet-iot-raspberrypi-rainbow](https://github.com/tscholze/dotnet-iot-raspberrypi-rainbow) A C# .NET implementation for the Pimoroini Rainbow HAT with Lights, BMP, segment displays and more\n\n### Windows 10 IoT Core apps\n- [dotnet-iot-homebear-blinkt](https://github.com/tscholze/dotnet-iot-homebear-blinkt) Windows 10 IoT Core UWP app that works great with the Pimoroni Blinkt! LED Raspberry Pi HAT.\n- [dotnet-iot-homebear-tilt](https://github.com/tscholze/dotnet-iot-homebear-tilt) Windows 10 IoT Core UWP app that works great with the Pimoroni Pan and Tilt HAT (PIC16F1503)\n- [dotnet-iot-homebear-rainbow](https://github.com/tscholze/dotnet-iot-homebear-rainbow) Windows 10 IoT Core UWP app that works great with the Pimoroni RainbowHAT\n\n### Android Things apps\n- [java-android-things-firebase-pager](https://github.com/tscholze/java-android-things-firebase-pager) An Android Things app that displays a Firebase Cloud Messaging notification on a alphanumeric segment control (Rainbow HAT)\n- [java-android-things-tobot](https://github.com/tscholze/java-android-things-tobot) An Android Things an Google Assistant app to controll a Pimoroni STS vehicle by web and voice\n\n### Python scripts\n- [python-enviro-gdocs-logger](https://github.com/tscholze/python-enviro-gdocs-logger) Logs values like room temperature and more to a Google Docs Sheet with graphs\n- [python-enviro-excel-online-logger](https://github.com/tscholze/python-enviro-excel-online-logger) Logs values like room temperature and more to a M365 Excel Sheet with graphs\n- [python-enviro-azure-logger](https://github.com/tscholze/python-enviro-azure-logger) Logs values like room temperature and more to an Azure IoT Hub instance\n\n## 🤝 Contributing\n\nContributions are welcome! Whether you want to add new features, improve documentation, or fix bugs, feel free to:\n\n1. Fork the repository\n2. Create a feature branch\n3. Submit a Pull Request\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\nDependencies or assets may be licensed differently.\n\n---\n\nHappy monitoring! 📊✨\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftscholze%2Fdotnet-iot-raspberrypi-enviro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftscholze%2Fdotnet-iot-raspberrypi-enviro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftscholze%2Fdotnet-iot-raspberrypi-enviro/lists"}