Products from Elec2rak Store
WiFi MQTT ESP-01 with AHT21 Industrial Grade Temperature and Humidity Sensors

WiFi MQTT ESP-01 with AHT21 Industrial Grade Temperature and Humidity Sensors

ขั้นตอนวิธีการทำอุปกรณ์  IoT เพื่อทำการค่าวัดอุณหภูมิและความชื้นแบบ Real-time แล้วทำการส่งข้อมูลที่วัดได้แบบไร้สายผ่าน WiFi ออก Internet ไปยัง MQTT Server เพื่อนำค่าที่ได้ไปแสดงผล เก็บบันทึก หรือประมวลผล ต่างๆ ได้ตามที่ต้องการ

Code:  


อุปกรณ์:

เครื่องมือ:

ขั้นตอนการทำ:

  • ติดตั้ง Adafruit AHTX0 library ให้ Arduino IDE
  • Download ไฟล์ โปรแกรมด้านบน แก้ไข ชื่อและรหัสผ่าน ของ WiFi และ MQTT Server ให้ตรงกับที่ใช้งานอยู่ แล้วทำการ Flash EPS-01S ตามวิธีการ > How to Flash ESP-01 With HW-305 Programmer 
  • ทำการต่อวงจรตามผังไดอแกรมด้านล่าง

Screenshot 20260522 121819

การประยุกต์ใช้งาน:

รับค่าจาก MQTT ด้วย Node-red นำมาประมวลผล เพื่อใช้งานในรูปแบบอื่นได้อีกไม่รู้จบ อาทิเช่น Real-time Dashboard, API, Line Bot, Line Notifly

  • Webservice with HTTP Javascript HTML page
  • Webservice with Ajax HTML page

 

 

Refernece:

Complete Kit for this DIY project: WiFi MQTT Temperature and Humidity Sensor

20231114_093601
20231114_093601
AHT21 Enclosure Case
AHT21 Enclosure Case
AHT21 Enclosure Case
AHT21 Enclosure Case
Installation and Working
Installation and Working
 Enlarge Image 	AHT21 Enclosure Case
Enlarge Image AHT21 Enclosure Case
Assembly them all
Assembly them all

 

 

Phone: +669 4004 5061
Line ID: elec2rak
Social icon

We have 465 guests and 0 members online

  • Articles View Hits 1569795
  • Web Links 12