keyestudio Bluetooth Transmission Module for Arduino with Bottom hc-05 Master and Slave Bluetooth transmission module can enable you to get rid of using cable for a serial port device and realize wireless serial communication within Introduction:
10 meters. Using the module doesn't require knowing the complex Bluetooth bottom protocol. A few simple steps can get you to enjoy the convenience of wireless communication. Bluetooth transmission module has only 4 AT command. Respectively are communication testing, name changing, baud rate changing, matching www.keyestudio.cc keyestudio password changing. AT command must be set from TXD, RXD signal pins, not via Bluetooth channel. Device sending the AT command can be various types of MCU
(for example, 51, avr, PIC, msp430, arm, etc.). It can also be a computer sending via serial port (PC serial port connected to MAX232 or USB serial port). Specification 1. core module uses HC-05 slave module, pins include VCC, GND, TXD, RXD, KEY, Bluetooth state pin (STATE), output low if not connected, high if connected. 2. LED indicates the connection status of Bluetooth, quick flash means no connectivity, slow flash means entering AT mode, double flash means Bluetooth is connected and the port is open. 3. Bottom plate has anti-reverse diode,with 3.3V LDO. Input volt is 3.6~6V; current about 30mA with no pairing, current about 10mA after pairing. Input volt should be within 7V!
4. Pin level is 3.3V. It can be directly connected with various MCUs (51, AVR, PIC, ARM, MSP43 etc.) , also 5V MCUs, no need for MAX232 and cannot be connected with MAX232!
5. In open area, effective range is 10m (power level is CLASS 2). Its possible to be more than 10m. But the connecting quality cannot be www.keyestudio.cc keyestudio guaranteed. 6. After paring, it can be used as full duplex serial port. No need for knowing any Bluetooth protocol. It supports 8-bit data bits, 1 stop bit; can set odd-even check communication format, which is the most common communication format; do not support other formats. 7. Can access AT command to set parameters, and query information by pulling high pin 34. 8. Small size (3.57cm*1.52cm), SMD production, ensure quality; with transparent heat shrinkable film for dust-proof and anti-static function. 9. Use AT-command to switch from master or slave mode, and to connect to specific devices. 10. Support standard baud rate of 4800bps~1382400bps. www.keyestudio.cc keyestudio Connection Diagram:
Sample Code int val;
int ledpin=13;
void setup()
Serial.begin(9600);
pinMode(ledpin,OUTPUT);
} void loop()
{ val=Serial.read();
www.keyestudio.cc keyestudio digitalWrite(ledpin,HIGH);
digitalWrite(ledpin,LOW);
Serial.println("keyestudio");
if(val=='a')
delay(250);
delay(250);
www.keyestudio.cc keyestudio FCC WARNING This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference in a residential installation. This equipment generates, uses and can radiate radio frequency energy and, if not installed and used in accordance with the instructions, may cause harmful interference to radio communications. However, there is no guarantee that interference will not occur in a particular installation. If this equipment does cause harmful interference to radio or television reception, which can be determined by turning the equipment off and on, the user is encouraged to try to correct the interference by one or more of the following measures:
Reorient or relocate the receiving antenna. Increase the separation between the equipment and receiver. Connect the equipment into an outlet on a circuit different from that to which the receiver is connected. Consult the dealer or an experienced radio/TV technician for help. Caution: Any changes or modifications to this device not explicitly approved by manufacturer could void your authority to operate this equipment. This device complies with part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) This device may not cause harmful interference, and (2) this device must accept any interference received, including interference that may cause undesired operation. The device has been evaluated to meet general RF exposure requirement. www.keyestudio.cc