Skip to main content
4 votes

Connecting a servo via HC05 and HC06

You cannot. You will need an Arduino at the servo end to generate the PWM signal from serial instructions sent over Bluetooth. Since PWM is (typically) 8-bit and serial is (typically) 8-bit you could ...
Majenko's user avatar
  • 105k
4 votes
Accepted

Getting Bluetooth addresses of connected devices via Arduino Uno?

The HC-05 has an AT command, AT+BIND?, that will tell you which slave device it is connected with currently. Since you can connect to one device only at the same time, your array is going to be a very ...
dda's user avatar
  • 1,588
4 votes

Why does SoftwareSerial::read() return int?

The documentation on Arduino's website shows SoftwareSerial::read() as returning a char. No it doesn't. There is nothing in the documentation that tells you the return type. There is only an example ...
Majenko's user avatar
  • 105k
3 votes
Accepted

Why does SoftwareSerial::read() return int?

You'll see in the code just above your third link that the function can return a value of -1 if there is no data present. Thus a 16-bit value is used to cover the range of 8-bit uint8_ts, plus one ...
user85471's user avatar
  • 731
3 votes
Accepted

Bluetooth: sync time from an NTP server via Internet connection shared with Android phone

No, not really. It is possible, but not easily like you want it to be. The HC-06 is a Bluetooth-Serial bridge. In the Bluetooth protocol there are many types of interfaces, that a client device might ...
chrisl's user avatar
  • 16.3k
3 votes
Accepted

Arduino Leonardo RX TX mystery

An Arduino Leonardo has native USB support. Which means that it has separate serial interfaces to the PC and to the hardware pins. Serial is only used for the communication with the PC and is ...
gre_gor's user avatar
  • 1,682
3 votes

Getting Bluetooth addresses of connected devices via Arduino Uno?

You just have to send the above Bluetooth command via serial port to your Bluetooth module using print command. For example yourserial.print("AT+BIND?"); OR yourserial.print("AT+INQ"); if you are ...
Tanmay Yerunkar's user avatar
3 votes

Arduino Pro Mini Serial Monitor garbage

I had the same issue. The problem was solved in an other forum: https://forum.arduino.cc/index.php?topic=434623.0 I copy the solution here: It appears that in fact your board is not running at 8MHz, ...
pvoj's user avatar
  • 193
2 votes

Arduino Pro Mini Serial Monitor garbage

BLK GND GND CTS That looks backwards to me. Connect GND to GND and CTS to BLK. The bluetooth module operates at a predefined baud rate. You need to ensure that your Arduino communicates at that ...
Majenko's user avatar
  • 105k
2 votes

Arduino Pro Mini Serial Monitor garbage

Flip the RX and TX wires of the HC06. This is because this statement : SoftwareSerial BT(10, 11); actually means SoftwareSerial BT(RXpin, TXpin);. Considering this, 10 is your Rx and 11 is your Tx. In ...
Dat Ha's user avatar
  • 2,913
2 votes

String to equation problem

The standard IO library (sscanf) can help you with that: String s = "21+22"; int x; int y; int items = sscanf(s.c_str(), "%d+%d", &x, &y); if (items != 2) /* error handling */ int z = x + y; ...
Mikael Patel's user avatar
  • 7,979
2 votes

String to equation problem

There is no one single function for performing a calculation from a string like you are after in C. Instead you will have to parse and split your string up into chunks and convert the two numbers ...
Majenko's user avatar
  • 105k
1 vote
Accepted

Wrong data receiving in my Arduino by bluetooth

Well, after a lot of research, it seems that my main problem was that I´m receiving and sending information at the same time. And with the library Softwareserial, only 1 can be active at the same time....
PartnerTech's user avatar
1 vote
Accepted

How to connect HC-06 BT module without pins?

The small green PCB is the real HC-06 board. The blue board has 2 functions: It breaks out the contact pads of the HC-06 to the bigger pins. It has a voltage regulator on it so that you can provide ...
chrisl's user avatar
  • 16.3k
1 vote

Arduino AT not working (Arduino UNO and HC-06)

Use a macro like this to send AT commands: #include <SoftwareSerial.h> SoftwareSerial btSerial(2, 3); // RX, TX /* * Connect pin 2 Arduino to pin TX HC-06 * Connect pin 3 Arduino to pin ...
Timoteo's user avatar
  • 11
1 vote

How to connect ESP32 to HC-06?

You can either use a breadboard Or Female to Female Jumber wires. Ofoucrse you can always solder yourself the two modules together with wires. PS. Too low reputation to comment, so i insert this ...
Feronimus's user avatar
1 vote

Connecting HC-06 and LM35

As mentioned by chrisl, you cannot use HC-06 as a master device. Its firmware restricts it to behave only as a slave. So even if you are able to process the analog data from LM 35, you won't be able ...
Sumit Panse's user avatar
1 vote

Bluetooth Modules not communicating correctly

"You are getting 49 and 48 occasionally"? I would expect you to get 49, 48, 48, 49, 48, 48 ... 49 is '1' in ASCII and guess what 48 means :) This is because you are writing and reading bytes not ...
Code Gorilla's user avatar
  • 5,637
1 vote

Bluetooth Modules not communicating correctly

SoftwareSerial.read() returns a single character as an integer. When you print an integer the print() functions convert it to a human readable format. You want to covert (cast) the output of read() ...
Craig's user avatar
  • 2,120
1 vote
Accepted

Issues using HC-06 Bluetooth module with arduino

I assume this wiring is correct, right? Rx > Tx Tx > Rx Gnd > Gnd Vcc > 3.3V Almost. The Arduino's TX should be reduced to 3.3V using a 10k/20k potential divider. How do I read the ...
Majenko's user avatar
  • 105k
1 vote

How to identify connection lost on HC-06?

My first one or couple of HC-06es brought its LED signal out to a pin on the base board, labeled "STATE" on mine. I tested the LED state on every loop and if it was changing regularly, took that to ...
JRobert's user avatar
  • 15.3k
1 vote

DigitalWrite Cannot Power HC-06 Bluetooth

A digital IO pin is only capable of powering an LED or an incredibly low powered device. It is not suitable for powering meaty RF modules. Instead you need to control the power to your module using a ...
Majenko's user avatar
  • 105k
1 vote

HC-06 pairing to arduino

Which you use depends on two factors: the HC-06 carrier board you have, and which Arduino you are using. If your carrier board has (and most do) a 3.3V regulator then you power the board from 5V. If ...
Majenko's user avatar
  • 105k
1 vote
Accepted

HC-06 RX pin usefulness

If you never want to change the configuration of the module either, then no, you don't need to connect the module's RX pin. However many people want bi-directional communication. Not only the ability ...
Majenko's user avatar
  • 105k
1 vote
Accepted

Connect 2 Arduino UNOs via Bluetooth? (HC-05 and HC-06)?

You need to set HC-05 to master, and this done by soldering pin 34 of BT and connecting it to digital pin on Arduino to enter AT command. Then after powering the Arduino, you need to put pin 34 high. ...
safa's user avatar
  • 26
1 vote

Connect 2 Arduino UNOs via Bluetooth? (HC-05 and HC-06)?

For this you just have to pair the both bluetooth modules with each other.! For this use AT commands. You can find those here: https://www.rcscomponents.kiev.ua/datasheets/hc_hc-05-user-instructions-...
Rohit Patil's user avatar
1 vote

Connect 2 Arduino UNOs via Bluetooth? (HC-05 and HC-06)?

Have a look at this for how to pair them http://www.martyncurrey.com/connecting-2-arduinos-by-bluetooth-using-a-hc-05-and-a-hc-06-pair-bind-and-link basically you need to use the AT mode. As far as I ...
Code Gorilla's user avatar
  • 5,637
1 vote

Operating two functions simultaneously

Is it unable to operate two operations simultaneously? The only way you can do two operations simultaneously is to have two Arduinos. An Arduino can only do one thing at a time. In order to make it ...
Majenko's user avatar
  • 105k
1 vote

Having a problem to control digital servo with HC-06 bluetooth module

let have a look at following line of code: int servopos = bluetooth.read(); I think that you are thinking that if you type in 1 in your Bluetooth application. bluetooth.read() will pass that 1 to ...
ARK's user avatar
  • 514
1 vote
Accepted

Send a file from PC to Arduino using HC-06 module

Open the file in rb mode in your Python code. Since the Arduino SoftSerial RX buffer is 64 bytes in size, sending 60 bytes per packet to the Arduino is okay. You basically call out = file.read(60) in ...
SoreDakeNoKoto's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible