1. 程式人生 > >HIgrow(ESP32 Rev1 WiFi 藍芽電池 DHT11土壤溫度溼度感測器模組)使用指南

HIgrow(ESP32 Rev1 WiFi 藍芽電池 DHT11土壤溫度溼度感測器模組)使用指南

Higrow使用指南

作者:coolwaterld

郵箱:[email protected]

安裝arduino (windows)

https://downloads.arduino.cc/arduino-1.8.7-windows.exe

 

安裝ESP32擴充套件

https://randomnerdtutorials.com/installing-the-esp32-board-in-arduino-ide-windows-instructions/

1) Open the preferences window from the Arduino IDE. Go to File> Preferences

https://i2.wp.com/randomnerdtutorials.com/wp-content/uploads/2016/12/arduino-ide-open-preferences.png?resize=196%2C340&ssl=1

2) Enter https://dl.espressif.com/dl/package_esp32_index.jsoninto the “Additional Board Manager URLs” field as shown in the figure below. Then, click the “OK” button:

https://i1.wp.com/randomnerdtutorials.com/wp-content/uploads/2018/06/preferences.png?resize=722%2C607&ssl=1

Note: if you already have the ESP8266 boards URL, you can separate the URLs with a comma as follows:

https://dl.espressif.com/dl/package_esp32_index.json, 
http://arduino.esp8266.com/stable/package_esp8266com_index.json

3) Open boards manager. Go to Tools > Board > Boards Manager…

https://i1.wp.com/randomnerdtutorials.com/wp-content/uploads/2018/06/boardsManager.png?resize=628%2C568&ssl=1

4) Search for ESP32 and press install button for the “ESP32 by Espressif Systems“:

https://i1.wp.com/randomnerdtutorials.com/wp-content/uploads/2018/06/installing.png?resize=786%2C443&ssl=1

5) That’s it. It should be installed after a few seconds.

(國內download github內容可能會失敗,隔一段時間再試試即可)

Higrow硬體介紹

用於ESP32 Rev1 WiFi&藍芽電池和DHT11開發板的土壤溫度檢測模組和溼度感測器模組

 

https://img.alicdn.com/imgextra/i2/858075507/TB2aPojxkomBKNjSZFqXXXtqVXa_!!858075507.jpg

https://img.alicdn.com/imgextra/i1/858075507/TB2BLwIxljTBKNjSZFDXXbVgVXa_!!858075507.jpg

1)介紹

https://www.higrow.tech/

https://hackaday.io/project/25253-higrow-plants-monitoring-sensor

https://github.com/lucafabbri/HiGrow-Arduino-Esp(原版)

https://github.com/LilyGO/higrowopen(改良版)

 

2)購買

https://item.taobao.com/item.htm?spm=a1z09.2.0.0.24252e8dxhxZus&id=577384707552&_u=6lou1pbc76(土壤感測器不需要飛線)

https://it.aliexpress.com/item/ESP32-WIFI-Bluetooth-battery-soil-Moisture-Senson-DHT/32815782900.html

 

 

連線裝置到PC

用micro USB線連線裝置到PC,micro USB既做供電也做通訊(注意higrow的開關需要撥到ON上),在windows裝置管理器上COM埠顯示出USB to UART Brindge

 

 

下載Higrow程式

https://github.com/LilyGO/higrowopen(改良版)

修改程式:

新增你的wifi的名稱和密碼

const char* ssid     = "名稱";

const char* password = "密碼";

 

下載DHT的庫檔案

搜尋DHT,選擇DHT sensor Library

注意版本不要選擇v1.3.0,可以選1.2.3

按鍵Install

關於arduino的硬體引數配置

關於燒寫

Connecting…..時按住higrow 的boot鍵才能正確燒寫

燒寫完成的標誌:

 

串列埠監測程式

串列埠波特率115200

獲得IP地址192.168.3.41,在瀏覽器中黏貼改地址