Adafruit trinket hc-05
Serial.print("Setting up Bluetooth link") //For debugging, Comment this line if not requiredīlueToothSerial.begin(38400) //Set BluetoothBee BaudRate to default baud rate 38400 Serial.print("14CORE BLuetooth XBEE Test Code") You can write you BT communication logic here Serial.begin(9600) //Serial port for debugging,īlueToothSerial.println("You are connected to Bluetooth Bee")
ADAFRUIT TRINKET HC 05 SERIAL
#define TxD 3 //Optional if you want to used software serial #define RxD 2 //Optional if you want to used software serial #include // Software Serial Port D2 and D3 Short the key pin to give ground to P-IO-11 Reboot and remove the KEY connection which is connected to 3.3vġ. When using the address on AT command you should replace the color with a comma 14,2,110007 Confirm with AT+PSWD?īy connecting the device you should know the address to make it pair with another. Type AT Command from the CollTerm / Arduino IDE Serial Monitor at baud rate NL/CR – 38400ĪT+ NAME? (Getting the name of the device)ĪT+NAME=14CORE-BL-SLAVE (Naming for slave option)ĪT+NAME=14CORE-BL-MASTER (Naming for master option) Open the key pin to give 3.3v to P-IO-11 / Connect the KEY Pin to 3.3vģ. The P-IO-11/Pin-19 & 20 KEY is for mode selection, by default the module is in AT COMMAND MODE and the default baud rate is 38400, on this mode you can change the Bluetooth Name, Baud Rate, Pass Key, and Master and Slave or Auto Connect Etc.ġ. Wiring Bluetooth Bee/XBEE Type Module with UART Bridge / Enabling AT-COMMAND Pair LED: Glows when connection is established with another Bluetooth module.Paired Mode (LED double flicker per second): Pairing is finished and module can communicate. Unpaired Mode (LED blinks two times a second): When the module is powered and PIN34 (Key) is given low level or floating, Status LED flickers quickly indicating that the module is in pair-able mode. It indicates that the module is in AT mode, and the baud rate is 38400. AT Mode (LED blinks once a second): When the module is powered and PIN34 (Key) is given high level, Status LED flickers slowly once a second. Status LED: Indicates status of the module.Power LED: When the module is powered, Blue LED will glow.Auto-connect to the last device on power as default.Data bits:8, Stop bit:1,Parity:No parity.Security: Authentication and encryption.Speed: Asynchronous: 2.1Mbps(Max) / 160 kbps, Synchronous: 1Mbps/1Mbps.The Data Communication Mode, you can drive this device as per the settings previously defined by the user in AT command mode and can communicate to other devices.This mode you cannot communicate to other devices. AT command mode, you can configure in different control parameters which finally determine the working of the module.The module also has two modes of operation namely AT command more and Data Communication Mode. Any serial stream from 9600 to 460800 bps can be passed seamlessly from your PC/PDA/MOBILE PHONES goes to your target devices.
ADAFRUIT TRINKET HC 05 PC
You can use it simply for serial port replacement to stablish connection between the MCU and GPS, PC to your embedded project and robotics, etc. The module is a replacement for wired serial connections, transparent usage. So there is no command required for normal operation. The HC05 have 3 works roles a MASTER, SLAVE and LOOPBACK in data communication mode.Īs the manufacturer release the item it is configured in transparent mode.
AT Command mode to configure the Bluetooth control parameters and data communication mode to communication with other devices. The HC02/05 module can be used with any host with an UART interface powered at 3.3v such as PIC, AVT, Arduino including Raspberry Pi, Bagel Bone any popular microcontroller and packet size open source pc. The HC03/05 is a compact Bluetooth Module, It uses CSR Bluetooth 04 External single chip Bluetooth System with CMOS technology and AFH (Adaptive Frequency Hopping).
This module has been tested will all Bluetooth adapter on the market matching to use. This module has integrates an onboard antenna that provides better signal quality transparent serial port which works with a variety of Bluetooth adapter and Bluetooth phones and pc. This module uses AT command to set the baud rate. In this illustration we will going to wire the HC05 XBEE like Bluetooth Module, This Bluetooth module adapt the XBEE design compact communication, it has the pinout that compatible with the XBEE shields all kinds of microcontroller system, who uses 3.3v power out.