IoT ระบบควบคุมแอร์ ด้วย Temp Sensor

บันทึก log project IoT ของผมที่พัฒนาขึ้นมาควบคุมแอร์ 4 ตัว โดยติดตั้ง Temp Sensor ไว้บริเวณกลางห้องเพื่อต้องการควบคุมอุณหภูมิห้อง โดย flow เมื่อถึงอุณหภูมิที่กำหนด Machine กับ Machine จะคุยกันเอง โดย Machine ตัวแรกจะวัดอุหภูมิ แล้วส่ง mqtt ออกไปหา Machine ตัวที่สองจะทำหน้าที่ควบคุม Relay Controller เมื่อ Machine ตัวที่สองเช็คแล้วว่าอุณภูมิสูงเกินกำหนด จะทำการสั่ง Start Air 1 และตั้ง Delay ไว้ 1 นาที Start Air 2 และ 3 ถึง 4 เพื่อไม่ให้กระแสไฟฟ้ากระชาก กรณี Start แอร์พร้อมกันสี่ตัว ในทางกลับกันเมื่อถึงอุณหภูมิที่กำหนด ก็จะ Stop Air 1 delay ห่างกัน 1 นาที

หน้าจอ dashboard

function ส่งแบบ multi message

ใช้ Switch เพื่อส่ง output ออกตาม gpio

หวังว่าจะเป็นไอเดียให้กับเพื่อนๆพี่ๆน้องๆในวันข้างหน้าน่ะครับ

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade