|
1 | | -# ScioSense ENS21x |
| 1 | +# ScioSense ENS21x Arduino Library |
2 | 2 | Arduino library for the ENS21x temperature & humidity sensor family with I2C interface from ScioSense. |
3 | 3 |
|
4 | | -## Introduction |
5 | | -This project is an Arduino *library*. It implements a driver with examples for the ENS21x sensor family. ENS21x chips are digital temperature & humidity sensors with an I2C interface. |
| 4 | +<img src="images/ens21x.png" width="400"> |
6 | 5 |
|
7 | | -Note that the ENS21x requires a supply voltage of 1.71V .. 3.60V. |
| 6 | +The ENS21x is a family of high-performance digital temperature and humidity sensors produced by |
| 7 | +[ScioSense](http://www.sciosense.com). With industry leading accuracies down to 0.1°C temperature and 0.8% relative |
| 8 | +humidity, their rapid response and reliable, long-term performance the ENS21x family addresses the fields of home |
| 9 | +appliances, building and automotive HVAC, cold chain management, personal health and wellness monitoring, industrial |
| 10 | +automation and instrumentation. |
| 11 | + |
| 12 | +The ENS21x family includes the ENS210, ENS211, ENS212, ENS213A and the ENS215. |
8 | 13 |
|
9 | 14 | ## Links |
10 | | -The ENS21x sensors are made by [ScioSense](http://www.sciosense.com). |
11 | | - - In the library, an implementation for the ENS210 is given. The datasheet and further documents for this sensor can be downloaded here |
12 | | - https://www.sciosense.com/products/relative-humidity-and-temperature-sensors/ens210-relative-humidity-and-temperature-sensor/ |
13 | | - |
| 15 | +* [Further information about the ENS21x](https://www.sciosense.com/products/relative-humidity-and-temperature-sensors/ens210-relative-humidity-and-temperature-sensor/) |
| 16 | +* [Datasheet](https://www.sciosense.com/wp-content/uploads/2023/06/SC-001822-DS-3-ENS21x-Datasheet.pdf) |
| 17 | +* [Application notes](https://www.sciosense.com/wp-content/uploads/documents/SC-001928-AN-1-ENS21xA-Design-Guidelines.pdf) |
| 18 | +* Buy the ENS210 on [Mouser](https://mou.sr/3P3DWmK) or [Digikey](https://www.digikey.nl/en/products/detail/sciosense/ENS210-LQFM/6490747) |
| 19 | +* Buy the ENS210 evaluation kit on [Mouser](https://mou.sr/44GNQAi) |
| 20 | + |
| 21 | + |
14 | 22 | ## Prerequisites |
15 | 23 | It is assumed that |
16 | 24 | - The Arduino IDE has been installed. |
17 | 25 | If not, refer to "Install the Arduino Desktop IDE" on the |
18 | 26 | [Arduino site](https://www.arduino.cc/en/Guide/HomePage). |
19 | | - - The library directory is at its default location. |
20 | | - For me, that is `C:\Users\sciosense\Documents\Arduino\libraries`. |
| 27 | + - Install your board. This library was tested with the ESP32. Here is a step-by-step guide for board installation |
| 28 | +(coming soon). |
| 29 | + |
21 | 30 |
|
22 | 31 | ## Installation |
23 | 32 |
|
24 | | -### Installation via Arduino Library Manager |
25 | | -- In the Arduino IDE, navigate to the Arduino Library Manager on the left side (or, alternatively, select Sketch > Include Library > Manage Libraries...) |
| 33 | +### Installation via Arduino Library Manager (coming soon) |
| 34 | +- In the Arduino IDE, navigate to the Arduino Library Manager on the left side (or, alternatively, select Sketch > |
| 35 | +Include Library > Manage Libraries...) |
26 | 36 | - Search for `ScioSense_ENS21x` |
27 | 37 | - Select the library from the search results and press `Install` |
28 | 38 |
|
29 | 39 | ### Manual installation |
30 | | -- Download the code from this repo via Download ZIP. |
| 40 | +- Download the code from this repository via "Download ZIP". |
31 | 41 | - In Arduino IDE, select Sketch > Include Library > Add .ZIP library... and browse to the just downloaded ZIP file. |
32 | | -- When the IDE is ready this README.md should be located at e.g. `C:\Users\sciosense\Documents\Arduino\libraries\ScioSense_ENS21x\README.md`. |
| 42 | +- When the IDE is ready this README.md should be located at `C:\Users\[your_username]\Documents\Arduino\libraries\ScioSense_ENS21x\README.md`. |
| 43 | + |
| 44 | + |
| 45 | +## Wiring |
| 46 | + |
| 47 | +### General |
| 48 | +Please make sure that you use the correct supply voltage: The ENS21x runs at VDD = 1.71...3.60 V. |
| 49 | + |
| 50 | +### Example with ESP32 (I2C) |
| 51 | +This example shows how to wire a [ESP32DevKitC](https://docs.espressif.com/projects/esp-idf/en/latest/esp32/hw-reference/esp32/get-started-devkitc.html#get-started-esp32-devkitc-board-front) |
| 52 | +with the ENS21x flex foil for I2C communication. |
| 53 | + |
| 54 | +| ENS21x flex foil | ESP32 | |
| 55 | +|:----------------:|:-----:| |
| 56 | +| VDD | 3V3 | |
| 57 | +| GND | GND | |
| 58 | +| SDA | G21 | |
| 59 | +| SCL | G22 | |
| 60 | + |
| 61 | +<img src="images/i2c_pinout_esp32.png" width="1000"> |
33 | 62 |
|
34 | 63 | ## Build an example |
35 | 64 | To build an example sketch |
36 | 65 | - (Re)start Arduino. |
37 | | - - Open File > Examples > Examples from Custom Libraries > ScioSense ENS21x > 01_Basic (or any other of the provided examples you wish to run) |
| 66 | + - Open File > Examples > Examples from Custom Libraries > ScioSense_ENS21x > 01_Basic (or any other of the provided |
| 67 | +examples you wish to run) |
38 | 68 | - Make sure Tools > Board lists the correct board. |
39 | 69 | - Select Sketch > Verify/Compile. |
40 | 70 |
|
| 71 | +## Contributing |
| 72 | +Contributions in the form of issue opening or creating pull requests are very welcome! |
| 73 | + |
41 | 74 | ## Acknowledgements |
42 | 75 | This library is developed for ScioSense by [at² GmbH](https://www.at2-software.com/en/) |
43 | 76 |
|
44 | 77 | @at2software |
45 | 78 |
|
46 | | - |
47 | | -### ScioSense is a Joint Venture of ams AG |
| 79 | +### ScioSense is a Joint Venture of ams AG |
0 commit comments