Bluetoorh module

Bluetoorh module

มี 13 ชิ้น

รายละเอียดอุปกรณ์

โมดูลบลูทูธ HC-05 สำหรับการสื่อสารไร้สาย ใช้ในโปรเจคควบคุมระยะไกลและ IoT

วิดีโอตัวอย่าง

Technical Resources

Sample Code

#include <SoftwareSerial.h>

SoftwareSerial bluetooth(2, 3); // RX, TX

void setup() {
  Serial.begin(9600);
  bluetooth.begin(9600);
  Serial.println("Bluetooth ready!");
}

void loop() {
  if (bluetooth.available()) {
    char data = bluetooth.read();
    Serial.print("Received: ");
    Serial.println(data);
  }
  
  if (Serial.available()) {
    char data = Serial.read();
    bluetooth.print(data);
  }
}

แชร์โค้ดของคุณ

ต้องการแชร์โค้ดโปรเจคของคุณ? อัปโหลดโค้ดพร้อมคำอธิบายในส่วนโปรเจ็คต์ของนักเรียน

ไปที่หน้าอัปโหลดโปรเจค

โปรเจ็คต์ของนักเรียน

ดูโปรเจคที่นักเรียนสร้างด้วยอุปกรณ์นี้

ยังไม่มีโปรเจคที่ใช้อุปกรณ์นี้

แชร์โปรเจคของคุณ