ขาย HM-10 Bluetooth 4.0 iBeacon BLE Module ราคาที่ดีที่สุด
5
6
การให้คะแนน
9
ขายแล้ว
฿210
เรือจาก | จังหวัดกรุงเทพมหานคร |
---|
รายละเอียดสินค้า
HM-10 Bluetooth 4.0 iBeacon BLE Module
HM-10 Bluetooth 4.0 iBeacon BLE Module Description
โมดูล Bluetooth 4.0 ใช้ชิฟ CC2541 สามารถนำไปเปลี่นยแทนรุ่น HC-05 , HC-06 , HC-07 และอื่น ๆ
รุ่นนี้เป็น Bluetooth 4.0 เป็น Bluetooth รุ่นใหม่ มีฟังก์ชันประหยัดไฟ และความสามารถใหม่ ๆ ที่ดีกว่า Bluetooth รุ่นก่อนนี้เช่น รองรับฟังก็ชัน iBeacon จาก iPhone สามารถวัดความแรงของสัญญาณออกมาคำนวนเป็นระยะห่างจากอุปกรณ์ได้
ด้วยความสามารถใหม่ ๆ ที่มีใน Bluetooth 4.0 นี้ ก่อนซื้อไปใช้งาน ควรตรวจสอบอุปกรณ์ที่ใช้งานด้วยว่า อุปกรณ์ที่นำไปใช่งานร่วมกับโมดูล Bluetooth 4.0 นี้ รองรับการใช้งานร่วมกับ Bluetooth 4.0 ถ้าเป็น Android คือรุ่น 4.3 ขึ้นไป สำหรับ IOS คือรุ่น IOS7 ขึ้นไป
โค้ดตัวอย่าง HM-10 Bluetooth 4.0
// arduino>>bluetooth
// D11 >>> Rx
// D10 >>> Tx
#include
SoftwareSerial bt(10, 11); // RX, TX
int ledpin = 13;
int ledState = LOW;
void setup() {
bt.begin(9600);
bt.println("BT4.0 Connect....");
pinMode(ledpin, OUTPUT);
Serial.begin(9600);
}
void loop() {
if (bt.available() > 0) {
int msg = bt.read();
if (msg == 1) {
digitalWrite(ledpin, 1);
} else if (msg == 0) {
digitalWrite(ledpin, 0);
}else{
Serial.print("receive : ");
Serial.println(msg);
}
}
}
HM-10 Bluetooth 4.0
HM-10 Bluetooth 4.0 Specification:
- +2.5v to +3.3v
- Requires up to 50mA
- Uses around 9mA when in an active state
- Use 50-200uA when asleep
- RF power: -23dbm, -6dbm, 0dbm, 6dbm
- Bluetooth version 4.0 BLE
- Default baud rate for the serial connection is 9600
- Default PIN is 000000
- Default name is HMSoft
- Based on the CC2540 or the CC2541 chip
ข้อมูลเพิ่มเติม HM-10 Bluetooth 4.0
Datasheet
ตัวอย่างการใช้งาน