Bluetooth

Produtos visualizados

HC-06 Bluetooth

BE15000135

Novo produto

The HC-05 or HC-06 Bluetooth Module (Master/Slave) provides a wireless communication link between your Arduino and any bluetooth capable device. 

Mais detalhes

Esse produto já não se encontra disponível

9,99 € com IVA

Adicionar à Lista de desejos

Mais informação

It's ideal replacement to your wired serial connection. It enables a circuit to communicate to another circuit through wireless connectivity. Sending and Receiving of data can be achieved within a range of 10 meters. Has a standard 2-pin UART connection (Tx & Rx) which makes it very easy to connect to your microcontroller board like the Arduino.

The module board has signal conditioning circuit (5V and 3.3V compatible) to easily connect the signal pins directly to Arduino boards or any 5V powered device. No need for a (3.3v signal line) voltage divider or voltage switching circuitry.

 

Download! BLUETERM - an android app for bluetooth comminucation with Arduino+HC-06 kit.

 

Example of conection:

Library and Code:

SoftwareSerial

 

#include <SoftwareSerial.h>
SoftwareSerial mySerial(3, 2); // RX, TX

String command = ""; // Stores response of the HC-06 Bluetooth device


void setup() {
// Open serial communications:
Serial.begin(9600);
Serial.println("Type AT commands!");

// The HC-06 defaults to 9600 according to the datasheet.
mySerial.begin(9600);
}

void loop() {
// Read device output if available.
if (mySerial.available()) {
while(mySerial.available()) { // While there is more to be read, keep reading.
command += (char)mySerial.read();
}

Serial.println(command);
command = ""; // No repeats
}

// Read user input if available.
if (Serial.available()){
delay(10); // The delay is necessary to get this working!
mySerial.write(Serial.read());
}
}

 

AT command list:

 

COMMANDRESPONSECOMMENT
AT OK Used to verify communication
AT+NAMExyz OKsetname Sets the module name to “xyz”
AT+PIN1234 OKsetPIN Sets the module PIN to 1234
AT+BAUD1 OK1200 Sets the baud rate to 1200
AT+BAUD2 OK2400 Sets the baud rate to 2400
AT+BAUD3 OK4800 Sets the baud rate to 4800
AT+BAUD4 OK9600 Sets the baud rate to 9600
AT+BAUD5 OK19200 Sets the baud rate to 19200
AT+BAUD6 OK38400 Sets the baud rate to 38400
AT+BAUD7 OK57600 Sets the baud rate to 57600
AT+BAUD8 OK115200 Sets the baud rate to 115200
AT+BAUD9 OK230400 Sets the baud rate to 230400
AT+BAUDA OK460800 Sets the baud rate to 460800
AT+BAUDB OK921600 Sets the baud rate to 921600
AT+BAUDC OK1382400 Sets the baud rate to 1382400

 

If you want, feel free to try the next project, we give the inspiration and the code is up to you!

Acessórios

Clientes que compraram este produto também compraram: