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

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
ATOKUsed to verify communication
AT+NAMExyzOKsetnameSets the module name to “xyz”
AT+PIN1234OKsetPINSets the module PIN to 1234
AT+BAUD1OK1200Sets the baud rate to 1200
AT+BAUD2OK2400Sets the baud rate to 2400
AT+BAUD3OK4800Sets the baud rate to 4800
AT+BAUD4OK9600Sets the baud rate to 9600
AT+BAUD5OK19200Sets the baud rate to 19200
AT+BAUD6OK38400Sets the baud rate to 38400
AT+BAUD7OK57600Sets the baud rate to 57600
AT+BAUD8OK115200Sets the baud rate to 115200
AT+BAUD9OK230400Sets the baud rate to 230400
AT+BAUDAOK460800Sets the baud rate to 460800
AT+BAUDBOK921600Sets the baud rate to 921600
AT+BAUDCOK1382400Sets 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: