HIgrow(ESP32 Rev1 WiFi 藍芽電池 DHT11土壤溫度溼度感測器模組)使用指南
Higrow使用指南
作者:coolwaterld
安裝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
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:
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…
4) Search for ESP32 and press install button for the “ESP32 by Espressif Systems“:
5) That’s it. It should be installed after a few seconds.
(國內download github內容可能會失敗,隔一段時間再試試即可)
Higrow硬體介紹
用於ESP32 Rev1 WiFi&藍芽電池和DHT11開發板的土壤溫度檢測模組和溼度感測器模組
1)介紹
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(土壤感測器不需要飛線)
連線裝置到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,在瀏覽器中黏貼改地址