ESP32, SunDuino – temperature/humidity Si7021 sensor and OLED 128x64px (I2C)

Other article about ESP32. We again connect ESP32 to temperature/humidity sensor Si7021 (HTU21), but today we also connect OLED where will be showed data from sensor. The OLED has 128x64px resolution and communication bus is I2C as well as Si7021.

Thank dfrobot.com for ESP32.

I thank designer of SunDuino ESP32 board.

Other parts with ESP32:
ESP32 and Arduino IDE
ESP32, SunDuino and temperature/humidity sensor Si7021 (HTU21)
ESP32, SunDuino – temperature/humidity Si7021 sensor and OLED 128x64px (I2C)

I can choose what bus I will use, because my OLED display has SPI and I2C bus as well.

If you have OLED display with I2C you have to know what is OLED address. In my case, the address of OLED is 0x3C
The arduino library for OLED is on adafruit.

The arduino library for Si7021 is available on https://learn.sparkfun.com/tutorials/si7021-humidity-and-temperature-sensor-hookup-guide.

Connecting of Si7021 sensor, OLED with SunDuino ESP32 is easy .

You have to connect 3V3, GND, SDA of Si7021, OLED to SDA of ESP32 (21 pin) and SCL to SCL of ESP32 (22 pin).

OLED display needs RESET pin, the RESET pin of OLED is connected to 19th pin of SunDuino ESP32.

The code is available on https://github.com/petus/ESP32_SunDuino_Si7021_OLED_128x64px

Working ESP32, Si7021 and OLED.



Share the article:
Show your
Maker soul!
Buy a T-Shirt
Coffee for Chiptron
Give a boost to the next article

Related Articles

Other article about ESP32, with using of development board of SunDuino ESP32 and temperature/humidity sensor Si7021 (HTU21). I recommend the first article about ESP32 and SunDuino ESP32 which is available on https://time4ee.com/articles.php?article_id=43 Thank dfrobot.com for ESP32. I thank designer of…

The fourth part of STM32duino tutorial we will check the I2C bus. We connect the temperature and humidity sensor Si7021 to default I2C and also to alternative connection of I2C bus. Note: I2C on STM32(G071) was tested on 12.6.2023 with…

Finally, I can write you a short tutorial how to play with ESP32 (more powerful than ESP8266). On the internet is a lot of tutorials how to do it, but this is a little bit different. I don’t have LoLin32,…

BigClown, popular IoT platform, offers a lot of TAGs (board with sensor) and modules, but I still had missed versatile board for connection of cheap sensors from ebay and aliexpress – e.g. BMP280, Si7021 or SHT31. Notice: HARDWARIO s.r.o. doesn’t…

Do you have any own weather station? Check this article. Here is a short list of interesting sensors. What kind of sensor do you use? Temperature, humidity ot pressure sensor? You can improve your weather station (meteostation). Sensor of temperature,…