{"id":24807,"date":"2021-06-22T13:25:52","date_gmt":"2021-06-22T11:25:52","guid":{"rendered":"https:\/\/botland.com.pl\/blog\/?p=24807"},"modified":"2023-05-24T10:01:56","modified_gmt":"2023-05-24T08:01:56","slug":"esp32-polaczenie-z-dht11-i-wyswietlaniem-danych-na-ekranie-oled","status":"publish","type":"post","link":"https:\/\/botland.com.pl\/blog\/esp32-polaczenie-z-dht11-i-wyswietlaniem-danych-na-ekranie-oled\/","title":{"rendered":"ESP32 &#8211; po\u0142\u0105czenie z DHT11 i wy\u015bwietlanie danych na ekranie OLED"},"content":{"rendered":"<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Czas czytania:<\/span> <span class=\"rt-time\"> 1<\/span> <span class=\"rt-label rt-postfix\">min.<\/span><\/span>\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"24807\" class=\"elementor elementor-24807\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-4eea1e9 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"4eea1e9\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-849c149\" data-id=\"849c149\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-bb7fd8e elementor-widget elementor-widget-text-editor\" data-id=\"bb7fd8e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>W <b><a href=\"https:\/\/botland.com.pl\/blog\/esp32-polaczenie-z-czujnikiem-temperatury-ds18b20\/\" data-wpel-link=\"internal\">poprzednim artykule<\/a><\/b> po\u0142\u0105czyli\u015bmy ESP32 z prostym czujnikiem temperatury DS18B20 oraz wy\u015bwietlaczem OLED, kt\u00f3ry r\u00f3wnie\u017c wy\u015bwietla\u0142 dane otrzymane z czujnika. Stworzyli\u015bmy r\u00f3wnie\u017c prosty serwer WWW, kt\u00f3ry wy\u015bwietla\u0142 dane z czujnika temperatury. W tym tutorialu wykorzystamy wiedz\u0119 zdobyt\u0105 w poprzednich artyku\u0142ach i stworzymy projekt, kt\u00f3ry b\u0119dzie wy\u015bwietla\u0142 dane z czujnika temperatury i wilgotno\u015bci DHT11 na wy\u015bwietlaczu OLED oraz na stronie internetowej.\u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-614fb8b elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"614fb8b\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6c75f16\" data-id=\"6c75f16\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-dc71b3a elementor-widget elementor-widget-heading\" data-id=\"dc71b3a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Co b\u0119dzie potrzebne do stworzenia projektu?<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-f57c528 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"f57c528\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-f254efb\" data-id=\"f254efb\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-0d5bd41 elementor-widget elementor-widget-text-editor\" data-id=\"0d5bd41\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>W celu wykonania projektu b\u0119dzie nam potrzebny modu\u0142 ESP32, czujnik DHT11 oraz wy\u015bwietlacz OLED. Wszystkie niezb\u0119dne elementy mo\u017cna znale\u017a\u0107 w specjalnie przygotowanym\u00a0<a href=\"https:\/\/botland.com.pl\/moduly-wifi\/19291-esp32-starter-kit-zestaw-startowy-z-modulem-wifi-esp32-5903351242950.html\" target=\"_blank\" rel=\"noopener\" data-wpel-link=\"internal\"><b>zestawie z modu\u0142em ESP32<\/b><\/a>.<br \/>Pe\u0142na lista wykorzystanych element\u00f3w poni\u017cej:<\/p><ul style=\"font-size: 16px; background-color: #ffffff; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;\"><li style=\"font-size: 16px;\"><a href=\"https:\/\/botland.com.pl\/moduly-wifi\/8893-esp32-wifi-bt-42-platforma-z-modulem-esp-wroom-32-zgodny-z-esp32-devkit.html\" target=\"_blank\" rel=\"noopener nofollow external noreferrer\" data-wpel-link=\"external\"><b>Modu\u0142 ESP32<\/b><\/a><\/li><li style=\"font-size: 16px;\"><a href=\"https:\/\/botland.com.pl\/wyswietlacze-oled\/8867-wyswietlacz-oled-niebieski-graficzny-13-128x64px-i2c-v2-niebieskie-znaki-sh1106-5903351241182.html\" target=\"_blank\" rel=\"nofollow external noopener noreferrer\" data-wpel-link=\"external\"><b>Wy\u015bwietlacz OLED 1,3\u2033<\/b><\/a><\/li><li style=\"font-size: 16px;\"><a href=\"https:\/\/botland.com.pl\/czujniki-multifunkcyjne\/9301-czujnik-temperatury-i-wilgotnosci-dht11-60c.html\" target=\"_blank\" rel=\"noopener nofollow external noreferrer\" data-wpel-link=\"external\"><b>Czujnik DHT11<\/b><\/a><\/li><li style=\"font-size: 16px;\"><a href=\"https:\/\/botland.com.pl\/rezystory-przewlekane\/3973-rezystor-tht-cf-weglowy-14w-47k-30szt.html\" target=\"_blank\" rel=\"noopener nofollow external noreferrer\" data-wpel-link=\"external\"><b>Rezystor 4,7 k\u03a9<\/b><\/a><\/li><li style=\"font-size: 16px;\"><a href=\"https:\/\/botland.com.pl\/53-plytki-stykowe\" target=\"_blank\" rel=\"noopener nofollow external noreferrer\" data-wpel-link=\"external\"><b>P\u0142ytka stykowa<\/b><\/a><\/li><li style=\"font-size: 16px;\"><a href=\"https:\/\/botland.com.pl\/przewody-polaczeniowe\/1022-przewody-polaczeniowe-mesko-meskie-65szt.html\" target=\"_blank\" rel=\"noopener nofollow external noreferrer\" data-wpel-link=\"external\"><b>Przewody po\u0142\u0105czeniowe m\u0119sko-m\u0119skie<\/b><\/a><\/li><li style=\"font-size: 16px;\"><a href=\"https:\/\/botland.com.pl\/476-przewody-microusb-20\" target=\"_blank\" rel=\"noopener nofollow external noreferrer\" data-wpel-link=\"external\"><b>Przew\u00f3d microUSB<\/b><\/a><\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-f84fef8 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"f84fef8\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-84a71a8\" data-id=\"84a71a8\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-92f555d elementor-widget elementor-widget-heading\" data-id=\"92f555d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Pod\u0142\u0105czenie element\u00f3w do p\u0142ytki stykowej<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-d2f8aaa elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"d2f8aaa\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-78ec9b7\" data-id=\"78ec9b7\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-2ade1f0 elementor-widget elementor-widget-text-editor\" data-id=\"2ade1f0\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Wy\u015bwietlacz OLED do komunikacji wykorzystuje interfejs I2C, zosta\u0142 pod\u0142\u0105czony do pin\u00f3w 21 (SDA) oraz 22 (SCK) modu\u0142u ESP32, natomiast czujnik DHT11 pod\u0142\u0105czony zosta\u0142 do pinu 18 z wykorzystaniem rezystora 4,7 k<span style=\"color: #4f5b62; font-size: 17px;\">\u03a9. Poni\u017cej znajduje si\u0119 schemat pod\u0142\u0105czenia modu\u0142\u00f3w z ESP32.<\/span><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-1a118a9 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"1a118a9\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6e4f1cb\" data-id=\"6e4f1cb\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-dc8cff5 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"dc8cff5\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-535349c\" data-id=\"535349c\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-f38da32 elementor-widget elementor-widget-image\" data-id=\"f38da32\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/06\/IMG-2226-scaled.jpg\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"IMG-2226\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MjQ4MTIsInVybCI6Imh0dHBzOlwvXC9ib3RsYW5kLmNvbS5wbFwvYmxvZ1wvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyMVwvMDZcL0lNRy0yMjI2LXNjYWxlZC5qcGcifQ%3D%3D\" data-wpel-link=\"internal\">\n\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"800\" height=\"600\" src=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/06\/IMG-2226-1024x768.jpg\" class=\"attachment-large size-large wp-image-24812\" alt=\"\" srcset=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/06\/IMG-2226-1024x768.jpg 1024w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/06\/IMG-2226-300x225.jpg 300w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/06\/IMG-2226-768x576.jpg 768w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/06\/IMG-2226-1536x1152.jpg 1536w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/06\/IMG-2226-2048x1536.jpg 2048w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-06fefcf\" data-id=\"06fefcf\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-70f1740 elementor-widget elementor-widget-image\" data-id=\"70f1740\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/06\/ESP32_DHT11_OLED_bb.jpg\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"ESP32_DHT11_OLED_bb\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MjQ4MTEsInVybCI6Imh0dHBzOlwvXC9ib3RsYW5kLmNvbS5wbFwvYmxvZ1wvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyMVwvMDZcL0VTUDMyX0RIVDExX09MRURfYmIuanBnIn0%3D\" data-wpel-link=\"internal\">\n\t\t\t\t\t\t\t<img decoding=\"async\" width=\"800\" height=\"395\" src=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/06\/ESP32_DHT11_OLED_bb-1024x506.jpg\" class=\"attachment-large size-large wp-image-24811\" alt=\"\" srcset=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/06\/ESP32_DHT11_OLED_bb-1024x506.jpg 1024w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/06\/ESP32_DHT11_OLED_bb-300x148.jpg 300w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/06\/ESP32_DHT11_OLED_bb-768x380.jpg 768w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/06\/ESP32_DHT11_OLED_bb-1536x759.jpg 1536w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/06\/ESP32_DHT11_OLED_bb.jpg 1797w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-d022c38 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"d022c38\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e0da6b0\" data-id=\"e0da6b0\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-83a01f6 elementor-widget elementor-widget-heading\" data-id=\"83a01f6\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Wymagane biblioteki dla OLED oraz DHT11<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-f7483f2 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"f7483f2\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-df6e095\" data-id=\"df6e095\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-24301c1 elementor-widget elementor-widget-text-editor\" data-id=\"24301c1\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>W celu poprawnej obs\u0142ugi wy\u015bwietlacza ze sterownikiem SH1106 oraz czujnika DHT11 nale\u017cy zainstalowa\u0107 odpowiednie biblioteki w \u015brodowisku Arduino IDE. Wymagane biblioteki mo\u017cna znale\u017a\u0107 pod linkami:<\/p><ul><li><a href=\"https:\/\/github.com\/nhatuan84\/esp32-sh1106-oled\" data-wpel-link=\"external\" target=\"_blank\" rel=\"nofollow external noopener noreferrer\">https:\/\/github.com\/nhatuan84\/esp32-sh1106-oled<\/a><\/li><li><a href=\"https:\/\/github.com\/adafruit\/Adafruit-GFX-Library\" data-wpel-link=\"external\" target=\"_blank\" rel=\"nofollow external noopener noreferrer\">https:\/\/github.com\/adafruit\/Adafruit-GFX-Library<\/a><\/li><li><a href=\"https:\/\/github.com\/adafruit\/DHT-sensor-library\" data-wpel-link=\"external\" target=\"_blank\" rel=\"nofollow external noopener noreferrer\">https:\/\/github.com\/adafruit\/DHT-sensor-library<\/a><\/li><\/ul><p>Dodatkowo potrzebne b\u0119d\u0105 biblioteki do stworzenia serwera ESP32:<\/p><ul><li><a href=\"https:\/\/github.com\/me-no-dev\/ESPAsyncWebServer\/archive\/master.zip\" data-wpel-link=\"external\" target=\"_blank\" rel=\"nofollow external noopener noreferrer\">https:\/\/github.com\/me-no-dev\/ESPAsyncWebServer\/archive\/master.zip<\/a><\/li><li><a href=\"https:\/\/github.com\/me-no-dev\/AsyncTCP\/archive\/master.zip\" data-wpel-link=\"external\" target=\"_blank\" rel=\"nofollow external noopener noreferrer\">https:\/\/github.com\/me-no-dev\/AsyncTCP\/archive\/master.zip<\/a><\/li><\/ul><p>Pobrane w formie paczki .zip biblioteki instalujemy w \u015brodowisku Arduino IDE.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-11bcf00 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"11bcf00\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6797e74\" data-id=\"6797e74\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-12d7dcc elementor-widget elementor-widget-image\" data-id=\"12d7dcc\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"800\" height=\"726\" src=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/05\/javaw_78cfw3Gesh.png\" class=\"attachment-large size-large wp-image-22893\" alt=\"\" srcset=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/05\/javaw_78cfw3Gesh.png 826w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/05\/javaw_78cfw3Gesh-300x272.png 300w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/05\/javaw_78cfw3Gesh-768x697.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-b787d09 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"b787d09\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-219f68e\" data-id=\"219f68e\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-b5c3944 elementor-widget elementor-widget-text-editor\" data-id=\"b5c3944\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Pojawi si\u0119 okno, gdzie nale\u017cy wyszuka\u0107 lokalizacj\u0119 pobranych paczek, a\u00a0nast\u0119pnie wybra\u0107 bibliotek\u0119 .zip i\u00a0wybra\u0107 przycisk Otw\u00f3rz.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-87b5e42 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"87b5e42\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4555bee\" data-id=\"4555bee\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-6fc3235 elementor-widget elementor-widget-heading\" data-id=\"6fc3235\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Programowanie modu\u0142u ESP32<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-48fc1ac elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"48fc1ac\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-8cb0675\" data-id=\"8cb0675\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-1567a9a elementor-widget elementor-widget-text-editor\" data-id=\"1567a9a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Po odpowiednim pod\u0142\u0105czeniu modu\u0142\u00f3w do ESP32 i wgraniu bibliotek dla wy\u015bwietlacza OLED, DHT11 oraz serwera ESP32. Poni\u017cszy kod wy\u015bwietli na ekranie OLED dane z czujnika DHT11 oraz stworzy prosty serwer web, r\u00f3wnie\u017c z danymi z czujnika.\u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-cc740aa elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"cc740aa\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-95129c9\" data-id=\"95129c9\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-a47fdbf elementor-widget elementor-widget-code-highlight\" data-id=\"a47fdbf\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-csharp line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-csharp\">\n\t\t\t\t\t<xmp>#include <SPI.h>\r\n#include <Wire.h>\r\n#include <Adafruit_GFX.h>\r\n#include <Adafruit_SH1106.h>\r\n#include \"WiFi.h\"\r\n#include \"ESPAsyncWebServer.h\"\r\n#include <Adafruit_Sensor.h>\r\n#include <DHT.h>\r\n\r\n\/\/Wprowad\u017a dane sieci WiFi, do kt\u00f3rej chcesz si\u0119 pod\u0142\u0105czy\u0107\r\nconst char* ssid = \"Twoje_SSID\";\r\nconst char* password = \"Twoje_has\u0142o\";\r\n\r\n\/\/Definiujemy piny ESP, do kt\u00f3rych pod\u0142\u0105czony jest wy\u015bwietlacz\r\n#define OLED_SDA 21\r\n#define OLED_SCL 22\r\nAdafruit_SH1106 display(21, 22);\r\n\r\n\/\/Definiujemy pin ESP, do kt\u00f3rego pod\u0142\u0105czony jest czujnik DH11\r\n#define DHTPIN 18\r\n\r\n\/\/Wybieramy typ wykorzystanego czujnik (DHT11)\r\n#define DHTTYPE    DHT11\r\nDHT dht(DHTPIN, DHTTYPE);\r\n\r\n\/\/Tworzymy objekt AsyncWebServer na porcie 80\r\nAsyncWebServer server(80);\r\n\r\n\/\/Odczytujemy temperature z czujnika DHT11\r\nString readDHTTemperature() {\r\n  float t = dht.readTemperature();\r\n  if (isnan(t)) {\r\n    Serial.println(\"B\u0142\u0105d pomiaru temperatury\");\r\n    return \"--\";\r\n  }\r\n  else {\r\n    Serial.println(t);\r\n    return String(t);\r\n  }\r\n}\r\n\r\n\/\/Odczytujemy wilgotno\u015b\u0107 z czujnika DHT11\r\nString readDHTHumidity() {\r\n  float h = dht.readHumidity();\r\n  if (isnan(h)) {\r\n    Serial.println(\"B\u0142\u0105d pomiaru wilgotno\u015bci\");\r\n    return \"--\";\r\n  }\r\n  else {\r\n    Serial.println(h);\r\n    return String(h);\r\n  }\r\n}\r\n\r\n\/\/Tworzymy wygl\u0105d strony HTML\r\nconst char index_html[] PROGMEM = R\"rawliteral(\r\n<!DOCTYPE HTML><html>\r\n<head>\r\n  <meta name=\"vewport\" content=\"width=device-width, initial-scale=1\">\r\n  <link rel=\"stylesheet\" href=\"https:\/\/use.fontawesome.com\/releases\/v5.7.2\/css\/all.css\" integrity=\"sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr\" crossorigin=\"anonymous\">\r\n  <style>\r\n    html {\r\n     font-family: Arial;\r\n     display: inline-block;\r\n     margin: 0px auto;\r\n     text-align: center;\r\n    }\r\n    h2 {font-size: 3.0rem;}\r\n    p {font-size: 3.0rem;}\r\n    .units {font-size: 1.2rem;}\r\n    .dht-labels{\r\n     font-size: 1.5rem;\r\n     vertical-align: middle;\r\n     padding-bottom: 15px;\r\n    }\r\n    <\/style>\r\n<\/head>\r\n<body>\r\n  <h2>Serwer ESP32<\/h2>\r\n  <p>\r\n    <i class=\"fas fa-thermometer-three-quarters\" style=\"color:#666;\"><\/i>\r\n    <span class=\"dht-labels\">Temperatura<\/span>\r\n    <span id=\"temperature\">%TEMPERATURE%<\/span>\r\n    <sup class=\"units\">&deg;C<\/sup>\r\n  <\/p>\r\n  <p>\r\n    <i class=\"fas fa-tint\" style=\"color:#666;\"><\/i>\r\n    <span class=\"dht-labels\">Wilgotnosc<\/span>\r\n    <span id=\"humidity\"%HUMIDITY%><\/span>\r\n    <sup class=\"units\">&percnt;<\/sup>\r\n  <\/p>\r\n<\/body>\r\n<script>\r\nsetInterval(function ( ) {\r\n  var xhttp = new XMLHttpRequest();\r\n  xhttp.onreadystatechange = function() {\r\n    if (this.readyState == 4 && this.status == 200) {\r\n      document.getElementById(\"temperature\").innerHTML = this.responseText;\r\n    }\r\n  };\r\n  xhttp.open(\"GET\", \"\/temperature\", true);\r\n  xhttp.send();\r\n}, 10000 ) ;\r\n\r\nsetInterval(function ( ) {\r\n  var xhttp = new XMLHttpRequest();\r\n  xhttp.onreadystatechange = function() {\r\n    if (this.readyState == 4 && this.status == 200) {\r\n      document.getElementById(\"humidity\").innerHTML = this.responseText;\r\n    }\r\n  };\r\n  xhttp.open(\"GET\", \"\/humidity\", true);\r\n  xhttp.send();\r\n}, 10000 ) ;\r\n<\/script>\r\n<\/html>)rawliteral\";\r\n\r\nString processor(const String& var) {\r\n  if (var == \"TEMPERATURE\") {\r\n    return readDHTTemperature();\r\n  }\r\n  else if (var == \"HUMIDITY\") {\r\n    return readDHTHumidity();\r\n  }\r\n  return String();\r\n}\r\n\r\nvoid setup() {\r\n  Serial.begin(115200);\r\n  display.begin(SH1106_SWITCHCAPVCC, 0x3C);\r\n  display.clearDisplay();\r\n  display.display();\r\n  dht.begin();\r\n\r\n  \/\/\u0141\u0105czenie z WiFi\r\n  WiFi.begin(ssid, password);\r\n  while (WiFi.status() != WL_CONNECTED) {\r\n    delay(1000);\r\n    Serial.println(\"\u0141\u0105czenie z WiFi...\" );\r\n  }\r\n\r\n  \/\/Wy\u015bwietlenie lokalnego adresu IP modu\u0142u ESP32\r\n  Serial.println(WiFi.localIP());\r\n\r\n  server.on(\"\/\", HTTP_GET, [](AsyncWebServerRequest * request) {\r\n    request->send_P(200, \"text\/html\", index_html, processor);\r\n  });\r\n  server.on(\"\/temperature\", HTTP_GET, [](AsyncWebServerRequest * request) {\r\n    request->send_P(200, \"text\/plain\", readDHTTemperature().c_str());\r\n  });\r\n  server.on(\"\/humidity\", HTTP_GET, [](AsyncWebServerRequest * request) {\r\n    request->send_P(200, \"text\/plain\", readDHTHumidity().c_str());\r\n  });\r\n\r\n  server.begin();\r\n}\r\nvoid loop() {\r\n  float t = dht.readTemperature();\r\n  float h = dht.readHumidity();\r\n  \/\/Wypisanie danych na ekranie OLED\r\n  display.setTextColor(WHITE);\r\n  display.setCursor(0, 0);\r\n  display.setTextSize(1);\r\n  display.println(\"Temperatura:\");\r\n  display.print(t);\r\n  display.cp437(true);\r\n  display.write(167);\r\n  display.println(\"C\");\r\n  display.display();\r\n  display.setCursor(0, 30);\r\n  display.setTextSize(1);\r\n  display.println(\"Wilgotnosc\");\r\n  display.setTextSize(1);\r\n  display.print(h);\r\n  display.println(\"%\");\r\n  display.display();\r\n  display.clearDisplay();\r\n  delay(5000);\r\n}<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-c2decfc elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"c2decfc\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-fd703bd\" data-id=\"fd703bd\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-652ac6b elementor-widget elementor-widget-text-editor\" data-id=\"652ac6b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Po poprawnym wgraniu kodu na modu\u0142 ESP32 w monitorze szeregowym pojawi si\u0119 adres IP Twojego serwera ESP32, a na wy\u015bwietlaczu pokarz\u0105 si\u0119 dane pomiarowe z czujnika.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-ff3034c elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"ff3034c\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-340cc35\" data-id=\"340cc35\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-0d09338 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"0d09338\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-db1c03c\" data-id=\"db1c03c\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-a19c574 elementor-widget elementor-widget-image\" data-id=\"a19c574\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"1920\" height=\"1040\" src=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/06\/chrome_aCxS4ICYyz.png\" class=\"attachment-full size-full wp-image-24813\" alt=\"\" srcset=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/06\/chrome_aCxS4ICYyz.png 1920w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/06\/chrome_aCxS4ICYyz-300x163.png 300w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/06\/chrome_aCxS4ICYyz-1024x555.png 1024w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/06\/chrome_aCxS4ICYyz-768x416.png 768w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/06\/chrome_aCxS4ICYyz-1536x832.png 1536w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-da07c81\" data-id=\"da07c81\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-677a883 elementor-widget elementor-widget-image\" data-id=\"677a883\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/06\/IMG-2226-scaled.jpg\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"IMG-2226\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MjQ4MTIsInVybCI6Imh0dHBzOlwvXC9ib3RsYW5kLmNvbS5wbFwvYmxvZ1wvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyMVwvMDZcL0lNRy0yMjI2LXNjYWxlZC5qcGcifQ%3D%3D\" data-wpel-link=\"internal\">\n\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"800\" height=\"600\" src=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/06\/IMG-2226-1024x768.jpg\" class=\"attachment-large size-large wp-image-24812\" alt=\"\" srcset=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/06\/IMG-2226-1024x768.jpg 1024w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/06\/IMG-2226-300x225.jpg 300w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/06\/IMG-2226-768x576.jpg 768w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/06\/IMG-2226-1536x1152.jpg 1536w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/06\/IMG-2226-2048x1536.jpg 2048w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-990c624 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"990c624\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-27dc9ff\" data-id=\"27dc9ff\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-646c71b elementor-widget elementor-widget-text-editor\" data-id=\"646c71b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><b>Wkr\u00f3tce pojawi\u0105 si\u0119 kolejne artyku\u0142y dotycz\u0105ce ESP32!<\/b><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Prosty poradnik z ESP32, DHT11 i ekranem OLED w roli g\u0142\u00f3wnej. Przygotowali\u015bmy wszystko do wzi\u0119cia i wdro\u017cenia od r\u0119ki. <\/p>\n","protected":false},"author":5,"featured_media":62071,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[7,20],"tags":[],"class_list":["post-24807","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-elektronika","category-porady"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>ESP32 - po\u0142\u0105czenie z DHT11 i wy\u015bwietlanie danych na ekranie OLED - Botland<\/title>\n<meta name=\"description\" content=\"Prosty poradnik z ESP32, DHT11 i ekranem OLED w roli g\u0142\u00f3wnej. Przygotowali\u015bmy wszystko do wzi\u0119cia i wdro\u017cenia od r\u0119ki.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/botland.com.pl\/blog\/esp32-polaczenie-z-dht11-i-wyswietlaniem-danych-na-ekranie-oled\/\" \/>\n<meta property=\"og:locale\" content=\"pl_PL\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ESP32 - po\u0142\u0105czenie z DHT11 i wy\u015bwietlanie danych na ekranie OLED - Botland\" \/>\n<meta property=\"og:description\" content=\"Prosty poradnik z ESP32, DHT11 i ekranem OLED w roli g\u0142\u00f3wnej. Przygotowali\u015bmy wszystko do wzi\u0119cia i wdro\u017cenia od r\u0119ki.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/botland.com.pl\/blog\/esp32-polaczenie-z-dht11-i-wyswietlaniem-danych-na-ekranie-oled\/\" \/>\n<meta property=\"og:site_name\" content=\"Botland\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/Botland\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-06-22T11:25:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-05-24T08:01:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2023\/05\/new2023-zestaw-esp32_okladka-nr3.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1510\" \/>\n\t<meta property=\"og:image:height\" content=\"755\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Grzegorz Galuba\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Napisane przez\" \/>\n\t<meta name=\"twitter:data1\" content=\"Grzegorz Galuba\" \/>\n\t<meta name=\"twitter:label2\" content=\"Szacowany czas czytania\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minut\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/esp32-polaczenie-z-dht11-i-wyswietlaniem-danych-na-ekranie-oled\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/esp32-polaczenie-z-dht11-i-wyswietlaniem-danych-na-ekranie-oled\\\/\"},\"author\":{\"name\":\"Grzegorz Galuba\",\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#\\\/schema\\\/person\\\/320f225a4bee757f7d030c49aea2a072\"},\"headline\":\"ESP32 &#8211; po\u0142\u0105czenie z DHT11 i wy\u015bwietlanie danych na ekranie OLED\",\"datePublished\":\"2021-06-22T11:25:52+00:00\",\"dateModified\":\"2023-05-24T08:01:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/esp32-polaczenie-z-dht11-i-wyswietlaniem-danych-na-ekranie-oled\\\/\"},\"wordCount\":401,\"publisher\":{\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/esp32-polaczenie-z-dht11-i-wyswietlaniem-danych-na-ekranie-oled\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/new2023-zestaw-esp32_okladka-nr3.jpg\",\"articleSection\":[\"Elektronika\",\"Porady\"],\"inLanguage\":\"pl-PL\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/esp32-polaczenie-z-dht11-i-wyswietlaniem-danych-na-ekranie-oled\\\/\",\"url\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/esp32-polaczenie-z-dht11-i-wyswietlaniem-danych-na-ekranie-oled\\\/\",\"name\":\"ESP32 - po\u0142\u0105czenie z DHT11 i wy\u015bwietlanie danych na ekranie OLED - Botland\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/esp32-polaczenie-z-dht11-i-wyswietlaniem-danych-na-ekranie-oled\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/esp32-polaczenie-z-dht11-i-wyswietlaniem-danych-na-ekranie-oled\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/new2023-zestaw-esp32_okladka-nr3.jpg\",\"datePublished\":\"2021-06-22T11:25:52+00:00\",\"dateModified\":\"2023-05-24T08:01:56+00:00\",\"description\":\"Prosty poradnik z ESP32, DHT11 i ekranem OLED w roli g\u0142\u00f3wnej. Przygotowali\u015bmy wszystko do wzi\u0119cia i wdro\u017cenia od r\u0119ki.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/esp32-polaczenie-z-dht11-i-wyswietlaniem-danych-na-ekranie-oled\\\/#breadcrumb\"},\"inLanguage\":\"pl-PL\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/botland.com.pl\\\/blog\\\/esp32-polaczenie-z-dht11-i-wyswietlaniem-danych-na-ekranie-oled\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pl-PL\",\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/esp32-polaczenie-z-dht11-i-wyswietlaniem-danych-na-ekranie-oled\\\/#primaryimage\",\"url\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/new2023-zestaw-esp32_okladka-nr3.jpg\",\"contentUrl\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/new2023-zestaw-esp32_okladka-nr3.jpg\",\"width\":1510,\"height\":755},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/esp32-polaczenie-z-dht11-i-wyswietlaniem-danych-na-ekranie-oled\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Strona g\u0142\u00f3wna\",\"item\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ESP32 &#8211; po\u0142\u0105czenie z&nbsp;DHT11 i&nbsp;wy\u015bwietlanie danych na&nbsp;ekranie OLED\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/\",\"name\":\"Botland\",\"description\":\"Blog Raspberry Pi, Arduino, elektronika i robotyka - Botland\",\"publisher\":{\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pl-PL\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#organization\",\"name\":\"Botland\",\"url\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pl-PL\",\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/botland.store\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/04\\\/logo_kolor_WP_2-1.png\",\"contentUrl\":\"https:\\\/\\\/botland.store\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/04\\\/logo_kolor_WP_2-1.png\",\"width\":250,\"height\":57,\"caption\":\"Botland\"},\"image\":{\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/facebook.com\\\/Botland\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#\\\/schema\\\/person\\\/320f225a4bee757f7d030c49aea2a072\",\"name\":\"Grzegorz Galuba\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pl-PL\",\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/logo_kolor_WP_3-1-150x150.png\",\"url\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/logo_kolor_WP_3-1-150x150.png\",\"contentUrl\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/logo_kolor_WP_3-1-150x150.png\",\"caption\":\"Grzegorz Galuba\"},\"description\":\"GG nie ma czasu na gadu-gadu - jest zawsze na bie\u017c\u0105co z nowo\u015bciami z oferty, wybiera tylko najlepsze i dba, aby pojawia\u0142y si\u0119 na czas. Jego rozleg\u0142a wiedza o specyfikacjach technicznych produkt\u00f3w to nieocenione wsparcie dla ca\u0142ej ekipy. Do pracy przyje\u017cd\u017ca rowerem i ju\u017c najwy\u017csza pora, aby wszyscy zacz\u0119li bra\u0107 z niego przyk\u0142ad. Oaza spokoju.\",\"url\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/author\\\/grzegorz\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ESP32 - po\u0142\u0105czenie z DHT11 i wy\u015bwietlanie danych na ekranie OLED - Botland","description":"Prosty poradnik z ESP32, DHT11 i ekranem OLED w roli g\u0142\u00f3wnej. Przygotowali\u015bmy wszystko do wzi\u0119cia i wdro\u017cenia od r\u0119ki.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/botland.com.pl\/blog\/esp32-polaczenie-z-dht11-i-wyswietlaniem-danych-na-ekranie-oled\/","og_locale":"pl_PL","og_type":"article","og_title":"ESP32 - po\u0142\u0105czenie z DHT11 i wy\u015bwietlanie danych na ekranie OLED - Botland","og_description":"Prosty poradnik z ESP32, DHT11 i ekranem OLED w roli g\u0142\u00f3wnej. Przygotowali\u015bmy wszystko do wzi\u0119cia i wdro\u017cenia od r\u0119ki.","og_url":"https:\/\/botland.com.pl\/blog\/esp32-polaczenie-z-dht11-i-wyswietlaniem-danych-na-ekranie-oled\/","og_site_name":"Botland","article_publisher":"https:\/\/facebook.com\/Botland\/","article_published_time":"2021-06-22T11:25:52+00:00","article_modified_time":"2023-05-24T08:01:56+00:00","og_image":[{"width":1510,"height":755,"url":"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2023\/05\/new2023-zestaw-esp32_okladka-nr3.jpg","type":"image\/jpeg"}],"author":"Grzegorz Galuba","twitter_card":"summary_large_image","twitter_misc":{"Napisane przez":"Grzegorz Galuba","Szacowany czas czytania":"6 minut"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/botland.com.pl\/blog\/esp32-polaczenie-z-dht11-i-wyswietlaniem-danych-na-ekranie-oled\/#article","isPartOf":{"@id":"https:\/\/botland.com.pl\/blog\/esp32-polaczenie-z-dht11-i-wyswietlaniem-danych-na-ekranie-oled\/"},"author":{"name":"Grzegorz Galuba","@id":"https:\/\/botland.com.pl\/blog\/#\/schema\/person\/320f225a4bee757f7d030c49aea2a072"},"headline":"ESP32 &#8211; po\u0142\u0105czenie z DHT11 i wy\u015bwietlanie danych na ekranie OLED","datePublished":"2021-06-22T11:25:52+00:00","dateModified":"2023-05-24T08:01:56+00:00","mainEntityOfPage":{"@id":"https:\/\/botland.com.pl\/blog\/esp32-polaczenie-z-dht11-i-wyswietlaniem-danych-na-ekranie-oled\/"},"wordCount":401,"publisher":{"@id":"https:\/\/botland.com.pl\/blog\/#organization"},"image":{"@id":"https:\/\/botland.com.pl\/blog\/esp32-polaczenie-z-dht11-i-wyswietlaniem-danych-na-ekranie-oled\/#primaryimage"},"thumbnailUrl":"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2023\/05\/new2023-zestaw-esp32_okladka-nr3.jpg","articleSection":["Elektronika","Porady"],"inLanguage":"pl-PL"},{"@type":"WebPage","@id":"https:\/\/botland.com.pl\/blog\/esp32-polaczenie-z-dht11-i-wyswietlaniem-danych-na-ekranie-oled\/","url":"https:\/\/botland.com.pl\/blog\/esp32-polaczenie-z-dht11-i-wyswietlaniem-danych-na-ekranie-oled\/","name":"ESP32 - po\u0142\u0105czenie z DHT11 i wy\u015bwietlanie danych na ekranie OLED - Botland","isPartOf":{"@id":"https:\/\/botland.com.pl\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/botland.com.pl\/blog\/esp32-polaczenie-z-dht11-i-wyswietlaniem-danych-na-ekranie-oled\/#primaryimage"},"image":{"@id":"https:\/\/botland.com.pl\/blog\/esp32-polaczenie-z-dht11-i-wyswietlaniem-danych-na-ekranie-oled\/#primaryimage"},"thumbnailUrl":"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2023\/05\/new2023-zestaw-esp32_okladka-nr3.jpg","datePublished":"2021-06-22T11:25:52+00:00","dateModified":"2023-05-24T08:01:56+00:00","description":"Prosty poradnik z ESP32, DHT11 i ekranem OLED w roli g\u0142\u00f3wnej. Przygotowali\u015bmy wszystko do wzi\u0119cia i wdro\u017cenia od r\u0119ki.","breadcrumb":{"@id":"https:\/\/botland.com.pl\/blog\/esp32-polaczenie-z-dht11-i-wyswietlaniem-danych-na-ekranie-oled\/#breadcrumb"},"inLanguage":"pl-PL","potentialAction":[{"@type":"ReadAction","target":["https:\/\/botland.com.pl\/blog\/esp32-polaczenie-z-dht11-i-wyswietlaniem-danych-na-ekranie-oled\/"]}]},{"@type":"ImageObject","inLanguage":"pl-PL","@id":"https:\/\/botland.com.pl\/blog\/esp32-polaczenie-z-dht11-i-wyswietlaniem-danych-na-ekranie-oled\/#primaryimage","url":"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2023\/05\/new2023-zestaw-esp32_okladka-nr3.jpg","contentUrl":"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2023\/05\/new2023-zestaw-esp32_okladka-nr3.jpg","width":1510,"height":755},{"@type":"BreadcrumbList","@id":"https:\/\/botland.com.pl\/blog\/esp32-polaczenie-z-dht11-i-wyswietlaniem-danych-na-ekranie-oled\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Strona g\u0142\u00f3wna","item":"https:\/\/botland.com.pl\/blog\/"},{"@type":"ListItem","position":2,"name":"ESP32 &#8211; po\u0142\u0105czenie z&nbsp;DHT11 i&nbsp;wy\u015bwietlanie danych na&nbsp;ekranie OLED"}]},{"@type":"WebSite","@id":"https:\/\/botland.com.pl\/blog\/#website","url":"https:\/\/botland.com.pl\/blog\/","name":"Botland","description":"Blog Raspberry Pi, Arduino, elektronika i robotyka - Botland","publisher":{"@id":"https:\/\/botland.com.pl\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/botland.com.pl\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pl-PL"},{"@type":"Organization","@id":"https:\/\/botland.com.pl\/blog\/#organization","name":"Botland","url":"https:\/\/botland.com.pl\/blog\/","logo":{"@type":"ImageObject","inLanguage":"pl-PL","@id":"https:\/\/botland.com.pl\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/botland.store\/blog\/wp-content\/uploads\/2018\/04\/logo_kolor_WP_2-1.png","contentUrl":"https:\/\/botland.store\/blog\/wp-content\/uploads\/2018\/04\/logo_kolor_WP_2-1.png","width":250,"height":57,"caption":"Botland"},"image":{"@id":"https:\/\/botland.com.pl\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/facebook.com\/Botland\/"]},{"@type":"Person","@id":"https:\/\/botland.com.pl\/blog\/#\/schema\/person\/320f225a4bee757f7d030c49aea2a072","name":"Grzegorz Galuba","image":{"@type":"ImageObject","inLanguage":"pl-PL","@id":"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2019\/03\/logo_kolor_WP_3-1-150x150.png","url":"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2019\/03\/logo_kolor_WP_3-1-150x150.png","contentUrl":"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2019\/03\/logo_kolor_WP_3-1-150x150.png","caption":"Grzegorz Galuba"},"description":"GG nie ma czasu na gadu-gadu - jest zawsze na bie\u017c\u0105co z nowo\u015bciami z oferty, wybiera tylko najlepsze i dba, aby pojawia\u0142y si\u0119 na czas. Jego rozleg\u0142a wiedza o specyfikacjach technicznych produkt\u00f3w to nieocenione wsparcie dla ca\u0142ej ekipy. Do pracy przyje\u017cd\u017ca rowerem i ju\u017c najwy\u017csza pora, aby wszyscy zacz\u0119li bra\u0107 z niego przyk\u0142ad. Oaza spokoju.","url":"https:\/\/botland.com.pl\/blog\/author\/grzegorz\/"}]}},"_links":{"self":[{"href":"https:\/\/botland.com.pl\/blog\/wp-json\/wp\/v2\/posts\/24807","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/botland.com.pl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/botland.com.pl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/botland.com.pl\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/botland.com.pl\/blog\/wp-json\/wp\/v2\/comments?post=24807"}],"version-history":[{"count":0,"href":"https:\/\/botland.com.pl\/blog\/wp-json\/wp\/v2\/posts\/24807\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/botland.com.pl\/blog\/wp-json\/wp\/v2\/media\/62071"}],"wp:attachment":[{"href":"https:\/\/botland.com.pl\/blog\/wp-json\/wp\/v2\/media?parent=24807"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/botland.com.pl\/blog\/wp-json\/wp\/v2\/categories?post=24807"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/botland.com.pl\/blog\/wp-json\/wp\/v2\/tags?post=24807"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}