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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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,...
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, ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 (...
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 ...
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 ...
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 @...
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)
2
votes
Using Bluetooth module HC-05 when Arduino is powered using a battery
6F22 (PP3) batteries are among the wimpiest of batteries available. They are not a good choice for anything except extreme low power applications, and anything involving radio transmitters is ...
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/...
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 ...
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(...
2
votes
What is the worst time case for Arduino Mega?
Yes.
(For better guidance than that, we'd need to know more.)
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 ...
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 (...
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.
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 ...
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 ...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
hc-05 × 169bluetooth × 96
arduino-uno × 63
arduino-nano × 25
softwareserial × 21
serial × 19
arduino-mega × 11
android × 9
hc-06 × 7
c++ × 6
servo × 6
esp8266 × 5
battery × 5
hardware × 5
arduino-pro-micro × 5
led × 4
communication × 4
arduino-pro-mini × 4
power × 3
motor × 3
relay × 3
uart × 3
wireless × 3
l298n × 3
baud-rate × 3