Keep reading from HC-05 and send to Arduino Serial Monitor PinMode(9, OUTPUT) // this pin will pull the HC-05 pin 34 (key pin) HIGH to switch module to AT modeīTSerial.begin(38400) // HC-05 default speed in AT command more SoftwareSerial BTSerial(10, 11) // RX | TX LICENSE: Public domain (use at your own risk)ĬONTACT: techbitar at gmail dot com () SoftwareSerial ports while the Arduino communicates with the user via The Arduino communicates with the HC-05 using the Terminal emulator such as Tera Term instead of the Arduino Serial The program then reads the output of the HC-05Īnd displays it on the Arduino IDE Serial Monitor. It takes the ATĬommands you enter from the Arduino IDE Serial Monitor and sends thoseĬommands to the HC-05.
This Arduino program (HC_05.ino) does two things. IĪdvise you to use voltage dividers whenever you connect the HC-05 pins I decided to skip the voltage dividers which I use to drop 5V to 3.3V. The HC-05 connected to the 5V Arduino Uno pins, for this short exercise The HC-05 is a 3.3V system but the breakout board offers current This guide only covers the HC-05 module with the breakout board. Add to the mixĪll the variations of the HC Bluetooth module family and the various HC-05, involves a few wiring and software acrobatics. Transmission mode to configuration mode, to send AT commands to the Searching the web I realized many people are having a hard time changing You can use an AT command to change the device name. Having two or more of those devices in the same area can beĬonfusing. Also, the HC-05 has a default device name of The HC-05 can go as high as 1382400 baud rate according to For example, theĭefault baud rate on the HC-05 is 9600. Where I needed to change the defaults for the module. In the process of using the HC-05 for a project, I ran into a situation In both cases, the default settings for the HC-05 were fine. The second is an Android app that simplifies controlling Arduino from your smart phone over Bluetooth using the HC-05.
Arduino simulator with hc 05 how to#
The first guide explains how to use the HC-05 with the Arduino. I have published two guides based on the HC-05īluetooth module. It costs less than MYR 40.57 ( MYR 40.57 ( $10)) on ebay and The HC-05 Bluetooth module and its siblings are by far the most popularĪnd inexpensive Bluetooth modules used for RF communications by