|
| 1 | +# 🤖 Nicla Sense Env Arduino Library |
| 2 | + |
| 3 | +[](https://github.com/arduino-libraries/Arduino_UnifiedStorage/actions/workflows/check-arduino.yml) [](https://github.com/arduino-libraries/Arduino_UnifiedStorage/actions/workflows/compile-examples.yml) [](https://github.com/arduino-libraries/Arduino_UnifiedStorage/actions/workflows/spell-check.yml) |
| 4 | + |
| 5 | +This library contains an API to read data from the Nicla Sense Env board and control its behaviour. The board host three different sensors which can be read simultaneously: **ZMOD4410** (Indoor Air Quality), **ZMOD4510** (Outdoor Air Quality), **HS4001** (Temperature & Humidity). |
| 6 | + |
| 7 | +## ✨ Features |
| 8 | + |
| 9 | +This library supports the complete API exposed by the Nicla Sense Env sensor board over I2C. |
| 10 | + |
| 11 | +- 🌈 RGB LED control |
| 12 | +- ⚪️ White LED control |
| 13 | +- 💤 Board control (sleep, reset, factory reset) |
| 14 | +- 🔧 Board configuration (e.g. changing the I2C address) |
| 15 | +- 🏠 Indoor Air Quality Sensor control |
| 16 | + - Change mode (Power down, cleaning, Indoor Air quality, sulfur detection) |
| 17 | + - Detect sulfur |
| 18 | + - Measure odor intensity |
| 19 | + - Measure ethanol level |
| 20 | + - Measure TVOC |
| 21 | + - Measure CO2 |
| 22 | + - Measure air quality |
| 23 | +- 🌳 Outdoor Air Quality Sensor control |
| 24 | + - Change mode (Power down, cleaning, Outdoor Air quality) |
| 25 | + - Measure NO2 |
| 26 | + - Measure O3 |
| 27 | + - Measure air quality |
| 28 | +- 🌡 Temperature/Humidity Sensor Control |
| 29 | + - Change mode (Power down, temperature/humidity) |
| 30 | + - Read temperature |
| 31 | + - Read humidity |
| 32 | +- 📄 UART CSV output |
| 33 | + |
| 34 | +## 📖 Documentation |
| 35 | +For more information on the features of this library and how to use them please read the documentation [here](./docs/). |
| 36 | + |
| 37 | +## ✅ Supported Boards |
| 38 | + |
| 39 | +The library was tested on the Arduino Portenta, Nano and MKR board families but it likely works on other boards that come with a modern Arduino core. |
| 40 | +On Arduino boards, the default I2C interface is set to `Wire`. On other boards you may need to specify a different interface depending on the pinout. e.g. |
| 41 | + |
| 42 | +```cpp |
| 43 | + NiclaSenseEnv device = NiclaSenseEnv(Wire1); |
| 44 | +``` |
| 45 | + |
| 46 | +## ⚙️ Installation |
| 47 | + |
| 48 | +The easiest way is to use the Arduino IDE or the Arduino CLI. As for the latter option you can install it with `arduino-cli lib install Arduino_NiclaSenseEnv`. You may need to update the index beforehand `arduino-cli lib update-index` |
| 49 | + |
| 50 | +## 🧑💻 Developer Installation |
| 51 | + |
| 52 | +Clone the repository and then run any example using the Arduino CLI. e.g. `arduino-cli compile examples/IndoorAirQuality/IndoorAirQuality.ino -b arduino:samd:mkrwifi1010 --library ./ -u -p /dev/cu.usbmodem14201` |
| 53 | + |
| 54 | +## 🐛 Reporting Issues |
| 55 | + |
| 56 | +If you encounter any issue, please open a bug report [here](https://github.com/arduino-libraries/Arduino_NiclaSenseEnv/issues). |
| 57 | + |
| 58 | +## 📕 Further Reading |
| 59 | +- Indoor Air Quality: |
| 60 | + - [A Sense of Clean Air](https://www.renesas.com/us/en/blogs/sense-clean-air) |
| 61 | + - [Overview of TVOC and Indoor Air Quality](https://www.renesas.com/us/en/document/whp/overview-tvoc-and-indoor-air-quality) |
| 62 | +- Outdoor Air Quality: [Outdoor Air Quality: It’s Not Just About Urban Areas](https://www.renesas.com/us/en/blogs/outdoor-air-quality-its-not-just-about-urban-areas) |
| 63 | + |
| 64 | +- Datasheets |
| 65 | + - [ZMOD4410 datasheet](https://www.renesas.com/us/en/document/dst/zmod4410-datasheet) |
| 66 | + - [ZMOD4510 datasheet](https://www.renesas.com/eu/en/document/dst/zmod4510-datasheet) |
| 67 | + - [HS4001 datasheet](https://www.renesas.com/us/en/document/dst/hs40xx-datasheet?r=1575071) |
| 68 | + |
| 69 | +## 💪 Contributing |
| 70 | + |
| 71 | +Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. |
| 72 | + |
| 73 | +## 🤙 Contact |
| 74 | + |
| 75 | +For questions, comments, or feedback on this library, please create an issue on this repository. |
| 76 | + |
| 77 | +## ⚖️ License |
| 78 | + |
| 79 | +This library is released under the [MPL-2.0 license](http://mozilla.org/MPL/2.0/). |
0 commit comments