Skip to main content
5 votes
Accepted

How do I make a proper long string scanner to detect specific tags in a stream of characters?

Another option is to not save the characters in buffer but instead check each one as they arrive to see if the character is the next in the tag sequence. This has the advantage that you don't need a ...
Craig's user avatar
  • 2,120
4 votes

What is a flag in programming Arduino?

I've always used flag to indicate a boolean logic value. I would also suggest this is an archaic term. Was going to come up with my own explanation but found the following at In C language, what does ...
linhartr22's user avatar
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
Accepted

SPP-C and HC-05 are they the same thing or something else?

In theory they are the same and have the same capabilities. Practically they are not. With SPP-C you get twice the headache for half the price as for HC-05. In had to find it out the hard way Sending ...
Kwasmich's user avatar
  • 1,513
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

Can you help me trim my code?

The documentation for the MCUFRIEND_kbv project has a file describing how to use. This document has the statement: Most of these controllers are #define SUPPORT_xxxx by default. You can save Flash ...
jose can u c's user avatar
  • 6,974
4 votes

HC-05 Module not receiving commands and not pairing

You have seen contradictory statements, because there are many variables here, that might be different for each of the tutorials. some connect the RX and TX pins in reverse to the Arduino, some don't,...
chrisl's user avatar
  • 16.3k
3 votes
Accepted

How to setup HC05 Module to be distinguishable

Your options are: As you guessed, you could set the name with AT+NAME=, and only use the names matching some pattern. It would work if you're only user so you just want to ignore other BT devices, ...
Matija Nalis's user avatar
3 votes
Accepted

Will I be able to control stuff from anywhere in the world if I use a wifi shield like ESP8266?

answer on your comment on Majenko's answer: (cannot comment due to reputation) build a simple web server on your device and make sure it is accessible from a local network node (e.g. a PC).To do this ...
foivaras's user avatar
  • 337
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

How do I connect through a HC-05 to PS4 Controller?

The HC-05 uses the Bluetooth Serial Port profile (SPP). The PS4 controller doesn't. Hence you need something that is capable of using the same profile that the PS4 controller uses (HID?). And to ...
Majenko's user avatar
  • 105k
3 votes
Accepted

Can you help me trim my code?

I assume you mean that are running short of flash memory, rather than RAM. I base this assumption on the fact that you say that it's 99% full, and that this “is not very troublesome”. Filling 99% of ...
Edgar Bonet's user avatar
  • 43.1k
3 votes
Accepted

ESP8266 + HC-05 on same arduino

You can (just about) use any combination of two of: Serial to PC, HC-05 ESP-03 You have, basically, a hardware UART (pins 0/1), and a software UART (any pins of your choice). Only the hardware UART ...
Majenko's user avatar
  • 105k
3 votes

Transmit/Receive data Nodemcu(V3) + Bluetooth Module HC-05

I had the exact same problem and got it to work doing these changes: I had to add this under my library include statements #ifndef D5 #if defined(ESP8266) #define D5 (14) #define D6 (12) #define D7 (...
Jacob Pasqualoni's user avatar
3 votes

My HC-05 Bluetooth Module is not working

Few Points that you might want to Look into. Where exactly are you connecting Bluetooth Module with Uno. Make sure you are connecting it with Rx and Tx Pin Only. First make Simple Program to send ...
HallMark's user avatar
3 votes
Accepted

Bluetooth module vs wireless module Arduino

what is the main difference between HC-05 Bluetooth module and NRF24L0 wireless module? The main difference is the protocol they use. While some attempts have been made with varying success to get ...
Majenko's user avatar
  • 105k
3 votes

Arduino with HC-05 Bluetooth Module | No data will be transmitted

The TX signal coming from either the Arduino or HC-05 should be connected to the RX of the other as I understand it, because both are labeled from the perspective of their respective chips Like @...
Verilyzed's user avatar
2 votes

Configure HC-05

You are missing the line termination you must send '\n' after your data in order to receive the data or use conexion.println(entrada) rather then conexion.write(entrada)
Muhammad Hassaan Bashir's user avatar
2 votes

Controlling HC-05 from a sketch

Unless you've manually set the btSerial speed, you need to be at the default for AT commands which is 38400 -> btSerial.begin(38400); If you want to read regular Serial communication, you'll need to ...
Robert Cole's user avatar
2 votes
Accepted

Problems running several Arduinos off of one HC-05 Tx pin

first of all just to clarify some things. softwareSerial library sets PinMode for rx,tx declared pins internally so it should not have any impact on voltages you measure if you include pinMode(...
foivaras's user avatar
  • 337
2 votes

What is the worst time case for Arduino Mega?

Yes. (For better guidance than that, we'd need to know more.)
Dave X's user avatar
  • 2,332
2 votes

Problems connecting reliably using HC-05 (as bluetooth master)

I am using a "BIND" between the PAIR and LINK: AT+PAIR=98D3,31,FC2D54,5 AT+BIND=98D3,31,FC2D54 AT+LINK=98D3,31,FC2D54 That seems to work for me. See the docs here: ftp://imall.iteadstudio.com/...
Dan McCreary's user avatar
2 votes

is it possible to write two threads in arduino & switch between data & AT command mode dynamically?

You can switch between command and "online" modes, but you cannot use both at once. While in command mode you can't be receiving data, and while in online mode you can't be sending commands. You ...
Majenko's user avatar
  • 105k
2 votes

is it possible to write two threads in arduino & switch between data & AT command mode dynamically?

Receiving serial characters is partially done in hardware and partially in the Arduino firmware. The only thing you need to do here is: - check if you've received a full message. - handle the message (...
aaa's user avatar
  • 2,695
2 votes

HC-05 emit data without pairing

No. The HC-05 has to be paired. It runs on Bluetooth 2.x which requires pairing. What you want is BLE (or Bluetooth 4.x) which has various "beacon" facilities.
Majenko's user avatar
  • 105k
2 votes

HC-05 module short circuit

I suppose you're referring to the HC05 module, already soldered on a board, with the 6-pin header. The regulator is on that board. Online you'll find several versions of that board, therefore you ...
next-hack's user avatar
  • 401
2 votes

Arduino 4wd rover

You need more power! The formula for power is Volts * Amps. A PP3 has about 500mAh, which means its can (in theory) output 9V at 500mA for an hour, which means you have about 4.5 watts. So what ...
Code Gorilla's user avatar
  • 5,637
2 votes
Accepted

HC-05 and p-channel mosfet

That's not a good choice of MOSFET I'm afraid. The on resistance is quoted as 14Ω when the gate is at -10V - however, you are only able to get -5V, so it will be considerably worse. That massive on ...
Majenko's user avatar
  • 105k
2 votes

HC-05 Bluetooth module got virus

It is unlikely this module got a virus. It sounds more like a data rate mismatch or a noisy connection. If you get ONLY the strange characters and nothing that you would expect, even in part, then ...
jose can u c's user avatar
  • 6,974
2 votes

Text send via HC-05 is broken up by first character on the receiving end?

I did something similar (multiBT) using HC-05 and PC BT, with the same App. Results: all the incoming data from the PC_BT to the phone are right, but with the HC-05 sometimes is chunked as @deostrol ...
DSalomon's user avatar

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