|
1 | | -# ScioSense ENS21x Arduino Library |
2 | | -Arduino library for the ENS21x temperature & humidity sensor family with I2C interface from ScioSense. |
3 | | - |
4 | | -<img src="images/ens21x.png" width="400"> |
5 | | - |
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. |
13 | | - |
14 | | -## Links |
15 | | -* [Further information about the ENS21x](https://www.sciosense.com/ens21x-family-of-high-performance-digital-temperature-and-humidity-sensors/) |
16 | | -* [Datasheet](https://www.sciosense.com/wp-content/uploads/2023/12/ENS21x-Datasheet.pdf) |
17 | | -* Buy the ENS210 on [Mouser](https://mou.sr/3P3DWmK) or [Digikey](https://www.digikey.nl/en/products/detail/sciosense/ENS210-LQFM/6490747) |
18 | | -* Buy the ENS210 evaluation kit on [Mouser](https://mou.sr/44GNQAi) |
19 | | - |
20 | | - |
21 | | -## Prerequisites |
22 | | -It is assumed that |
23 | | - - The Arduino IDE has been installed. |
24 | | - If not, refer to "Install the Arduino Desktop IDE" on the |
25 | | - [Arduino site](https://www.arduino.cc/en/Guide/HomePage). |
26 | | -- The library directory is at its default location. Normally this is `C:\Users\[your_username]\Documents\Arduino\libraries`. |
27 | | - |
28 | | -You might need to add your board to the Arduino IDE. This library was tested with the [Espressif ESP32](https://www.espressif.com/en/products/socs/esp32). |
29 | | -For the installation of the ESP32 in the Arduino IDE, see [Arduino ESP32 Installation](https://docs.espressif.com/projects/arduino-esp32/en/latest/installing.html) |
30 | | - |
31 | | - |
32 | | -## Installation |
33 | | - |
34 | | -### Installation via Arduino Library Manager (coming soon) |
35 | | -- In the Arduino IDE, navigate to the Arduino Library Manager on the left side (or, alternatively, select Sketch > |
36 | | -Include Library > Manage Libraries...) |
37 | | -- Search for `ScioSense_ENS21x` |
38 | | -- Select the library from the search results and press `Install` |
39 | | - |
40 | | -### Manual installation |
41 | | -- Download the code from this repository via "Download ZIP". |
42 | | -- In Arduino IDE, select Sketch > Include Library > Add .ZIP library... and browse to the just downloaded ZIP file. |
43 | | -- When the IDE is ready this README.md should be located at `C:\Users\[your_username]\Documents\Arduino\libraries\ScioSense_ENS21x\README.md`. |
44 | | - |
45 | | - |
46 | | -## Wiring |
47 | | - |
48 | | -### General |
49 | | -Please make sure that you use the correct supply voltage: The ENS21x runs at VDD = 1.71...3.60 V. |
50 | | - |
51 | | -### Example with ESP32 (I2C) |
52 | | -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) |
53 | | -with the ENS21x flex foil for I2C communication. |
54 | | - |
55 | | -| ENS21x flex foil | ESP32 | |
56 | | -|:----------------:|:-----:| |
57 | | -| VDD | 3V3 | |
58 | | -| GND | GND | |
59 | | -| SDA | G21 | |
60 | | -| SCL | G22 | |
61 | | - |
62 | | -<img src="images/i2c_pinout_esp32.png" width="1000"> |
63 | | - |
64 | | -## Build an example |
65 | | -To build an example sketch |
66 | | - - (Re)start Arduino. |
67 | | - - Open File > Examples > Examples from Custom Libraries > ScioSense_ENS21x > 01_Basic (or any other of the provided |
68 | | -examples you wish to run) |
69 | | - - Make sure Tools > Board lists the correct board. |
70 | | - - Select Sketch > Verify/Compile. |
71 | | - |
72 | | -## Contributing |
73 | | -Contributions in the form of issue opening or creating pull requests are very welcome! |
74 | | - |
75 | | -## Acknowledgements |
76 | | -This library is developed for ScioSense by [at² GmbH](https://www.at2-software.com/en/) |
77 | | - |
78 | | -@at2software |
79 | | - |
80 | | -### ScioSense is a Joint Venture of ams AG |
| 1 | +# ScioSense ENS21x Arduino Library |
| 2 | +Arduino library for the ENS21x temperature & humidity sensor family with I2C interface from ScioSense. |
| 3 | + |
| 4 | +<img src="images/ens21x.png" width="400"> |
| 5 | + |
| 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. |
| 13 | + |
| 14 | +## Links |
| 15 | +* [Further information about the ENS21x](https://www.sciosense.com/ens21x-family-of-high-performance-digital-temperature-and-humidity-sensors/) |
| 16 | +* [Datasheet](https://www.sciosense.com/wp-content/uploads/2024/04/ENS21x-Datasheet.pdf) |
| 17 | +* Buy the ENS210 on [Mouser](https://mou.sr/3P3DWmK) or [Digikey](https://www.digikey.nl/en/products/detail/sciosense/ENS210-LQFM/6490747) |
| 18 | +* Buy the ENS210 evaluation kit on [Mouser](https://mou.sr/44GNQAi) |
| 19 | + |
| 20 | + |
| 21 | +## Prerequisites |
| 22 | +It is assumed that |
| 23 | + - The Arduino IDE has been installed. |
| 24 | + If not, refer to "Install the Arduino Desktop IDE" on the |
| 25 | + [Arduino site](https://www.arduino.cc/en/Guide/HomePage). |
| 26 | +- The library directory is at its default location. Normally this is `C:\Users\[your_username]\Documents\Arduino\libraries`. |
| 27 | + |
| 28 | +You might need to add your board to the Arduino IDE. This library was tested with the [Espressif ESP32](https://www.espressif.com/en/products/socs/esp32). |
| 29 | +For the installation of the ESP32 in the Arduino IDE, see [Arduino ESP32 Installation](https://docs.espressif.com/projects/arduino-esp32/en/latest/installing.html) |
| 30 | + |
| 31 | + |
| 32 | +## Installation |
| 33 | + |
| 34 | +### Installation via Arduino Library Manager (coming soon) |
| 35 | +- In the Arduino IDE, navigate to the Arduino Library Manager on the left side (or, alternatively, select Sketch > |
| 36 | +Include Library > Manage Libraries...) |
| 37 | +- Search for `ScioSense_ENS21x` |
| 38 | +- Select the library from the search results and press `Install` |
| 39 | + |
| 40 | +### Manual installation |
| 41 | +- Download the code from this repository via "Download ZIP". |
| 42 | +- In Arduino IDE, select Sketch > Include Library > Add .ZIP library... and browse to the just downloaded ZIP file. |
| 43 | +- When the IDE is ready this README.md should be located at `C:\Users\[your_username]\Documents\Arduino\libraries\ScioSense_ENS21x\README.md`. |
| 44 | + |
| 45 | + |
| 46 | +## Wiring |
| 47 | + |
| 48 | +### General |
| 49 | +Please make sure that you use the correct supply voltage: The ENS21x runs at VDD = 1.71...3.60 V. |
| 50 | + |
| 51 | +### Example with ESP32 (I2C) |
| 52 | +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) |
| 53 | +with the ENS21x flex foil for I2C communication. |
| 54 | + |
| 55 | +| ENS21x flex foil | ESP32 | |
| 56 | +|:----------------:|:-----:| |
| 57 | +| VDD | 3V3 | |
| 58 | +| GND | GND | |
| 59 | +| SDA | G21 | |
| 60 | +| SCL | G22 | |
| 61 | + |
| 62 | +<img src="images/i2c_pinout_esp32.png" width="1000"> |
| 63 | + |
| 64 | +## Build an example |
| 65 | +To build an example sketch |
| 66 | + - (Re)start Arduino. |
| 67 | + - Open File > Examples > Examples from Custom Libraries > ScioSense_ENS21x > 01_Basic (or any other of the provided |
| 68 | +examples you wish to run) |
| 69 | + - Make sure Tools > Board lists the correct board. |
| 70 | + - Select Sketch > Verify/Compile. |
| 71 | + |
| 72 | +## Contributing |
| 73 | +Contributions in the form of issue opening or creating pull requests are very welcome! |
| 74 | + |
| 75 | +## Acknowledgements |
| 76 | +This library is developed for ScioSense by [at² GmbH](https://www.at2-software.com/en/) |
| 77 | + |
| 78 | +@at2software |
| 79 | + |
| 80 | +### ScioSense is a Joint Venture of ams AG |
0 commit comments