กลับไปหน้ารวมไฟล์
wi-fi-multi-meter-d92a75.md

สวัสดีทุกคนนนน

ตอนที่พี่ทำโปรเจกต์โซลาร์เซลล์ชาร์จแบตเตอรี่อยู่น่ะ พี่ต้องคอยจับตาดูกระแสและแรงดันที่วิ่งเข้าแบตฯ แต่จะให้มานั่งถือมัลติมิเตอร์เฝ้าดูข้อมูลตลอดเวลา แล้วยังต้องวิเคราะห์จากระยะไกลอีก มันก็คงไม่ไหวหรอกเนอะ

เลยคิดง่ายๆ ว่าเอาไอเดียหลายๆ อย่างมาผสมกันซะเลย จนสุดท้ายก็มาจบที่การเผยแพร่โปรเจกต์นี้แหละ

ไอเดียงานนี้

สำหรับการจับค่ากำลังไฟฟ้า พี่ใช้เซ็นเซอร์ INA219 นะ มันเป็น Current Shunt และ Power Monitor ที่ใช้ Interface แบบ I2C หรือ SMBUS

แต่ถ้า...

พี่ใช้ [Arduino](https://s.shopee.co.th/7fUgFAWSki) อีกที ก็ต้องคิดถึงการ Monitor ระยะไกล เพราะบอร์ด Arduino มันไม่มี Wi-Fi ในตัวนี่นา เลยเลือกใช้ ESP8266-01 เพราะราคาถูก แถมมี I2C และ Wi-Fi ครบ

ไลบรารีที่ต้องลง

น้องต้องลงไลบรารีข้างล่างนี้ใน [Arduino](https://s.shopee.co.th/7fUgFAWSki) IDE นะ

INA219

https://github.com/adafruit/Adafruit_INA219.git

Firebase [Arduino](https://s.shopee.co.th/7fUgFAWSki)

นี่คือเว็บที่ให้เราเก็บและดึงข้อมูลเรียลไทม์จากคลาวด์ได้เลย มันใช้กับ [Arduino](https://s.shopee.co.th/7fUgFAWSki) ได้สบายๆ

ดึงไลบรารีจากลิงก์นี้ได้เลย

https://github.com/FirebaseExtended/firebase-arduino.git

ตั้งค่า ESP

โหลดไลบรารีสำหรับ ESP8266-01 จากลิงก์ข้างล่างนี้

http://arduino.esp8266.com/stable/package_esp8266com_index.json

วงจรสุดท้าย

connection with ESP

การต่อวงจรง่ายมากๆ แต่ต้องต่อ Ground ทุกจุดให้เป็นจุดเดียวกันนะ เซ็นเซอร์ถึงจะอ่านค่าโหลด Voltage ได้

แอป Android

in Mobile phone

พี่สร้างแอปนี้ด้วยเว็บ MiTAPP inventor มันจะเชื่อมตรงไปที่ Firebase Host และดึงข้อมูลจากนั้นมาแสดงเลย

ปุ่ม Reset จะรีสตาร์ทโมดูล ESP8266-01 แบบ Software Reset ส่วนกราฟนี่พี่พยายามทำให้แสดงลักษณะ VI (โชคไม่ดีที่ไม่มีเวลาทำให้เสร็จสมบูรณ์ แต่ก็ยังโชว์ไว้ให้ดูนะ)

รายละเอียดเทคนิคเพิ่มเติม

Remote Electrical Diagnostics

โปรเจกต์นี้เปลี่ยนมัลติมิเตอร์ธรรมดาให้เป็น IOT Node แบบไร้สาย สำหรับ Monitor ระบบไฟฟ้าจากระยะไกล

  • Voltage/Current Sensing: ใช้ ADS1115 (16-bit ADC) สำหรับวัดแรงดันความละเอียดสูง และเซ็นเซอร์ ACS712 สำหรับวัดกระแส
  • ESP8266 Core: ข้อมูลจะถูกประมวลผลโดย ESP8266 ซึ่งจัดการ WiFi Stack และ Logic การวัด

Android Dashboard

  • Real-Time Streaming: ส่งข้อมูลผ่าน WebSockets หรือ MQTT ไปยังแอปพลิเคชัน Android ที่สร้างขึ้นเอง
  • Data Logging: แอปสามารถพล็อตกราฟการใช้พลังงานตามเวลาได้ ช่วยให้ผู้ใช้ Monitor วงจรการชาร์จแบตเตอรี่หรือการใช้พลังงานของเครื่องใช้ในบ้านจากอีกห้องได้ เพิ่มความปลอดภัยและสะดวกสบาย

ข้อมูล Frontmatter ดั้งเดิม

title: "Wi-Fi Multi-Meter"
description: "Welcome Everyone, Simple Hobby thought come to alive using ESP8266-01 with INA219 (current shunt and power monitor)."
author: "suhaspn007"
category: ""
tags:
  - "embedded"
  - "smart appliances"
  - "communication"
  - "data collection"
  - "internet of things"
  - "monitoring"
views: 4629
likes: 0
price: 1499
difficulty: "Intermediate"
components:
  - "1x Battery, 3.7 V"
  - "1x Arduino UNO"
  - "1x Soldering iron (generic)"
  - "1x Solder Wire, Lead Free"
  - "1x INA219"
  - "1x ESP8266 ESP-01"
tools: []
apps:
  - "1x Andriod App"
downloadableFiles:
  - "https://github.com/kdpy/wifi-mfm.git"
  - "https://github.com/kdpy/wifi-mfm.git"
documentationLinks: []
passwordHash: "47e0b2116339b3f89756ed9aa568c3d3a0d45f8f7f574b062d5462c420d0a54d"
encryptedPayload: "U2FsdGVkX1+r/4nCDSeolJx6XAxrfGoed3TnxYj3O++lButVEGsznSjPI40kX2iS/xT7g+eBSHKmH8ByPGMKrPZqVBgKMPMxNaI3pgnQy3s="
seoDescription: "Build a Wi-Fi Multi-Meter using ESP8266-01 and INA219 for current shunt and power monitoring. A simple and practical hobby project."
videoLinks: []
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/wi-fi-multi-meter-d92a75_cover.jpg"
lang: "th"