gbod_souuce

所属分类:工具条
开发工具:C++
文件大小:11KB
下载次数:1
上传日期:2017-08-20 17:44:44
上 传 者QLbtbyo%252B49407
说明:  This source is 2 to learn is a good choice esp8266 - dht11_22

文件列表:
include\driver\dht22.h (1420, 2098-01-01)
include\driver\uart.h (2027, 2098-01-01)
include\driver\uart_register.h (4624, 2098-01-01)
include\user_config.h (60, 2098-01-01)
driver\dht22.c (4441, 2098-01-01)
driver\uart.c (6349, 2098-01-01)
user\user_main.c (1465, 2098-01-01)
LICENSE (1084, 2098-01-01)
Makefile (4036, 2098-01-01)
P.cproject (7184, 2098-01-01)
Makefile.linux (4020, 2098-01-01)
f.project (809, 2098-01-01)
Makefile.windows (4036, 2098-01-01)
include\driver (0, 2017-07-30)
driver (0, 2017-07-30)
include (0, 2017-07-30)
user (0, 2017-07-30)

ESP8266 - Driver for the temperature and humidity sensor DHT11 and DHT22 ======================================================================== Схема подключения DHT22 к ESP-01:
Вывод 1 DHT22 (Vcc) подключен к Vcc (3.3 Вольта) ESP-01
Вывод 2 DHT22 (DATA_OUT) подключен к GPIO2 ESP-01
Вывод 3 DHT22 (NC) не используется
Вывод 4 DHT22 (GND) подключен к GND ESP-01
Между выводом Vcc и DATA_OUT необходимо подключить подтягивающии резистор 10 кОм.
Сборка под Windows:
1. Скачаите и установите компилятор и SDK.
2. Скачаите и установите MinGW. Запускаем mingw-get-setup.exe, в процессе установки выберите режим без GUI, то есть уберите галочку "...also install support for the graphical user interface".
3. Скачаите (84Mb) набор моих скриптов для автоматизации установки дополнительных модулеи для MinGW.
4. Запустите из моего набора фаил install-mingw-package.bat. Он установит основные модули для MinGW, установка должна проити без ошибок.
5. Установите Git for Windows (после установки потребуется перезагрузить компьютер).
6. Запускаем консоль C:\MinGW\msys\1.0\msys.bat
7. В консоле выполните:
``` cd /c/Espressif/examples git clone https://github.com/CHERTS/esp8266-dht11_22 cd esp8266-dht11_22 make make flash ``` -- For a single device, connect as follows DHT22 to ESP-01:
DHT22 1 (Vcc) to Vcc (3.3 Volts) ESP-01
DHT22 2 (DATA_OUT) to GPIO2 ESP-01
DHT22 3 (NC)
DHT22 4 (GND) to GND ESP-01
Between the terminal Vcc and DATA_OUT need to connect a pullup resistor of 10 ohms. Building on Windows:
1. Download and install compiler and SDK.
2. Download and install MinGW. Run mingw-get-setup.exe, the installation process to select without GUI, ie uncheck "... also install support for the graphical user interface".
3. Download (84Mb) set my scripts to automate the installation of additional modules for MinGW.
4. Run the file from my set of install-mingw-package.bat. He will establish the basic modules for MinGW, installation should proceed without error.
5. Install Git for Windows (after installation to restart the computer).
6. Run the console C:\MinGW\msys\1.0\msys.bat
7. In the console, run:
``` cd /c/Espressif/examples git clone https://github.com/CHERTS/esp8266-dht11_22 cd esp8266-dht11_22 make make flash ```

近期下载者

相关文件


收藏者