VsQOs7add

ESP8266 Apple HomeKit DHT11 Thermometer/Thermo-Hygrometer

 
Overview

Material cost:
ESP-01/01S or ESP8266-12E/F: 5~7 yuanPCB
: free proofing0805
package: 10K resistor, 100nf capacitor, 10uf capacitor, three-pin button on the side for one or two
yuanAMS1117-3.3V voltage regulator IC: 1.2 yuan/pieceDHT11
temperature and humidity sensor: 2.5 yuanWiFi
 
direct connection to Apple home, the firmware comes from the open source firmware HAA Releases · RavenSystem/haa (github.com)
[Arduino program comes from Mixiaoxiao Wang Xiaocai - Jia Li Chuang EDA Open Source Hardware Platform (oshwhub.com) open source library. Sometimes the Arduino program I wrote does not burn properly, so I won’t put it here]
Burning tool: Lexin burning toolTools | Espressif SystemsFirmware
 
burning:
rboot.bin burns to 0x0000
blankconfig.bin burns to 0x1000
haamain.bin Burn to 0x2000
 
Burning tool: ESP8266 download tool 3.8.5. Some versions I use will report errors when burning.
 
For configuration tutorials,
burning programs and configuring HAA, please refer to B station UP host: Homekit switch and sensor DIY detailed explanation, no pit version (ESP HomeKit Devices)_bilibili_bilibili
HAA firmware JSON generation online tool: haajc v0.6 (glumb.github.io)
 
Device connection:
① After flashing the firmware, a hotspot named HAA-xxxxxx will be generated, where x represents the last six digits of the mac address
② After connecting to the hotspot, manually access 192.168.4.1:4567
③ Enter the configuration interface, json Enter the following code in config
{"c":{"o":0},"a":[{"t":24,"b":[],"g":2,"j":5,"n":1}]}
Use this
{"c":{"o":0},"a":[{"t":24,"b":[],"g":2,"j":15,"n":1},{"t":1,"b":[],"s":0}]}
to add a virtual switch. Switch it on and off 8 times in a row in Apple Home to enter the configuration mode
to adjust the frequency of temperature and humidity uploads. Just modify the value of j. The minimum value is 3, which means uploading the sensor value every 3 seconds④Select
Wi-Fi and fill in the password,
⑤Click save to save⑥Enter
the Apple Home app, click Add Device to see the HAA-xxxxxx device, select Enter Code to add, the pairing code is 02182017
⑧ Start enjoying it.
 
Reset device operation.
Check the IP address of the HAA-xxx device through the router management page, such as 192.168.31.225
or directly visit http://haa-xxxxxx:4567. 
❶ Device reset: quickly power it on and off, or press the RST key several times to quickly power it on and off, or turn on and off the virtual switch 8 times in Apple Home.
❷ Browser access 192.168.xx:4567 or http://haa-xxxxxx:4567 to reset it
. ❸ If reset wifi is checked, the network link will be cleared and the HAA hotspot will be reopened
. ❹ To change the network or home, you need to check reset homekit ID to clear the Apple Home pairing information.
 
参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-05-22 03:25:05

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号