กลับไปหน้ารวมไฟล์
wireless-serial-monitor-7b4b58.md

โปรเจกต์: Wireless Serial Monitor

วันนี้เราจะมาทำ Serial monitor ให้มันไร้สายกัน! ทำไมต้องไร้สายล่ะ? ก็เพราะหลายๆ งานมันจำเป็นไงน้อง อย่างเช่นถ้าพี่ทำวงจรแบบนี้ขึ้นมา

งานแบบนี้พี่จะใช้สาย USB ปกติที่ใช้โปรแกรม Arduino ไม่ได้เลย แล้วถ้าอยากได้ข้อมูลจากวงจรนี้ล่ะ จะทำไง? นั่นแหละคือเหตุผลที่เราต้องทำให้ Serial monitor มันไร้สายซะ!

หลักการทำงาน: Module Bluetooth นี่มันมีขาสำคัญอยู่ 2 ขานะน้อง คือ Rx (Receiver) กับ Tx (Transmitter) ขาเหล่านี้มันส่งและรับข้อมูลได้ ปกติเราก็ส่งข้อมูลจากมือถือหรือแท็บเล็ตไปหา Arduino ใช่มั้ย?

แต่คราวนี้เราจะทำตรงกันข้าม! ให้ Arduino ส่งข้อมูลมาที่มือถือเราแทน เพื่อให้ข้อมูลโผล่มาในมือถือได้ เราต้องมีแอปช่วยนั่นคือ 'Bluetooth Serial monitor' ไปโหลดมาเลยจ้า

วิดีโอประกอบ


รายละเอียดเทคนิคแบบจัดเต็ม

Remote Debugging Telemetry Hub

โปรเจกต์นี้ช่วยให้เราไม่ต้องพึ่งสาย USB อีกต่อไป โดยสร้างช่องทาง Serial ไร้สายความเร็วสูงสำหรับ Debug งานแบบเรียลไทม์

  • Serial-to-WiFi Bridge (ESP8266): ใช้ ESP8266 เป็นตัวกลางส่งข้อมูลแบบ Transparent Serial ข้อมูล Serial ปกติจาก Arduino จะถูก ESP8266 ส่งออกไปเป็นสตรีม Telnet หรือ WebSocket ไปยังคอมพิวเตอร์ใดก็ได้ในเครือข่าย
  • Interactive Command Console: รองรับการสื่อสารสองทาง ให้นักพัฒนาสามารถส่งคำสั่งจาก Terminal ในคอมพิวเตอร์กลับไปหา Arduino เพื่อเรียกใช้ Routine เฉพาะหรือรีเซ็ตระบบได้

Performance

  • 115200 Baud Transparency: ออกแบบมาให้รักษาความเร็ว 115200 baud ได้เต็มที่โดยไม่เสียข้อมูลแม้แต่แพ็กเก็ตเดียว ทำให้มั่นใจได้ว่า Debug log ที่วิ่งเร็วๆ จะถูกจับมาครบถ้วน

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

title: "Wireless Serial Monitor"
description: "We cannot use wire connection for Arduino to get data from sensor. for example any circuit from Arduino IC(ATmega328p)"
author: "soicalwork12"
category: ""
tags:
  - "serial monitor"
  - "how to make wire less serial m"
  - "how to make wireless serial mo"
  - "blutooth module"
  - "wireless"
views: 4799
likes: 0
price: 1499
difficulty: "Intermediate"
components:
  - "1x Arduino UNO"
  - "10x Male/Male Jumper Wires"
  - "1x Ultrasonic Sensor - HC-SR04 (Generic)"
  - "1x HC-05 Bluetooth Module"
tools: []
apps:
  - "1x Arduino IDE"
downloadableFiles:
  - "https://projects.arduinocontent.cc/cac3dadd-ad1a-4650-bf96-772872bb98a5.ino"
  - "https://projects.arduinocontent.cc/cac3dadd-ad1a-4650-bf96-772872bb98a5.ino"
documentationLinks: []
passwordHash: "22ea34c0c4b00339fae863558391511d184104d15c1106a1a6fa0901295abaea"
encryptedPayload: "U2FsdGVkX1/KBaBYfoMQoJ/znHRrr65vVArwHKTxj0SgteWqA7alzp2Ei1aIgPKYOgfpPxwIoEjSjpfHbMSzbCogTjcq1jn+zXznBptA1qk="
seoDescription: "Create a Wireless Serial Monitor for Arduino to get sensor data without wire connection. Perfect for Arduino IC(ATmega328p) projects."
videoLinks:
  - "https://www.youtube.com/embed/FCnQZ-Yr5ro"
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/wireless-serial-monitor-7b4b58_cover.jpg"
lang: "th"