14
votes
Accepted
Want to create bluetooth audio control (volume up/down, play, pause, etc.) for smartphone
Bluetooth supports multiple protocols for multiple purposes. There is low latency low quality monorail bi-directional communication with a little bit of bandwidth for control for Bluetooth phone ...
8
votes
Anyone have example code for ESP32 as media controller for Android/iPhone Media Apps
Well after I posted this question, I kept googling. Literally hours of googling at this point. Then I stumbled across this example:
https://github.com/T-vK/ESP32-BLE-Keyboard
I wrote that sketch to my ...
6
votes
Accepted
Can I measure velocity from an accelerometer? How accurately?
The sensor in itself can't provide you the velocity. I have used it accelerometers in a couple of projects the easiest way to get the velocity is to constantly monitor acceleration changes and ...
6
votes
Accepted
What is the difference between Bluetooth module HC-05 and HC-42 for Arduino?
It's different technology. the HC-05 uses the old Bluetooth 2.0 standard. The HC-42 in contrast uses BLE (Bluetooth Low Energy) in version 5.0.
So you have to decide what technology you want to use, ...
5
votes
Accepted
Is it possible to create an electromagnetic wave using PWM?
I had a toy project a while ago that generated AM radio.
Code
Code for Uno or any Atmega328 based boards:
const byte ANTENNA = 9;
void setup()
{
// set up Timer 1
TCCR1A = bit (COM1A0); //...
5
votes
Accepted
Will enabling parity bit actually decrease corruption?
Parity doesn't, and was never intended to, decrease corruption.
All parity does is allow you to DETECT errors. If you detect errors, you still have to handle them.
Parity in memory is usually fatal -...
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
Choosing wireless tech for lowest possible lag
Have you considered using real time clocks? You could synchornise them all ahead of time and then use any wireless protocol. Once a button is pressed, you'll look for the unit that reports the ...
4
votes
Arduino Pro Micro, get data out of Tx pin?
So I stumbled upon this thread while having similar problem, but with HC-05 module. So because I have too much free time on my hands during finals (no I don't) I decided to create a small github repo ...
4
votes
Can I measure velocity from an accelerometer? How accurately?
I work with Arduino-based autopilot modules, which usually use similar sensors in addition to GPS data to maintain a reasonable estimate of its position/velocity/acceleration. If you were to add ...
4
votes
Want to create bluetooth audio control (volume up/down, play, pause, etc.) for smartphone
I can add something to @st2000's excellent answer (in a better format than our discussion in the comments there).
The original question is vague. Does Bluetooth mean Classic or is Low Energy (BLE) ...
4
votes
Accepted
How to make a Smart Light Bulb?
You could use an ESP8266 NODEMCU. There is an example for making it emulate a Hue bridge ( https://github.com/probonopd/ESP8266HueEmulator ).
To have the official bridge control your lights would ...
4
votes
Why is there a plastic sleeve on my HC-05 bluetooth module
It is to protect it. You should keep it so that the modules lasts longer.
If you remove it, just don't do anything stupid.
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
One of the LEDs on my Arduino is very dim
You need to add this line for the other LED pin:
pinMode(ledPin2, OUTPUT);
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
Accepted
SoftwareSerial read until available is empty only works with delay
Serial does not transmit data as one bunch, but byte by byte. There can easily be some little delays introduced, especially, when transmitted via a packaged protocol like bluetooth, long enough, for ...
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,...
4
votes
Accepted
Arduino IDE equivalent to DataView?
There is no use for a DataView in the Arduino environment. In the
JavaScript language, a string and an array of bytes are two very
different things. That's why you need something like this str2DV()
...
3
votes
Bluetooth HID module
HC-05 HC-06 and, for example, RN-42 HID are the same looking on hardware design.
Only difference is in firmware.
For educational purposes you can dump firmware from RN42HID and flash HC-05/06 module ...
3
votes
Accepted
How Master and Slave concept works with Bluetooth?
Well, master/slave concept for Bluetooth resides on the protocol, not in the communications. On few words, this means Bluetooth Master is who has the ability to initiate connection with a peripheral (...
3
votes
Accepted
Connect Bluetooth remote control with Arduino
This should be a comment, but..
For starters, you'll need to do the pairing from the Arduino with the HC-05 in master mode.
Check this out.
3
votes
Will enabling parity bit actually decrease corruption?
Parity by itself does not reduce the error rate, it is used to detect errors. It is up to higher level protocols to determine what to do when the error is detected.
To answer your question about stop ...
3
votes
Audio Input into A0?
Depending on how loud your audio signal is, you may be able to do it with just one capacitor and two resistors:
If your signal is quite quiet, though, you may need to amplify it using an op-amp. For ...
3
votes
Accepted
Relay switching problem with ATmega328P + 10 relays
I can see lot of problems.
No decoupling capacitors on ATMega.
Capacitors on both sides voltage regulators are usualy essential for regulator stability.
Big voltage drop on regulator - if it's ...
3
votes
Why is there a plastic sleeve on my HC-05 bluetooth module
To protect it against ham fisted newbies from causing short circuits.
Yes, you can remove it, as long as you're not a ham fisted newbie that is going to cause short circuits.
3
votes
Identify UUID of HC-06
In Android, I used this UUID to connect to HC-06,
socket = device.createInsecureRfcommSocketToServiceRecord(UUID.fromString("00001101-0000-1000-8000-00805F9B34FB"));
inputStream = socket....
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
bluetooth × 616arduino-uno × 200
hc-05 × 96
serial × 92
arduino-nano × 40
esp32 × 40
softwareserial × 39
android × 37
wifi × 28
ble × 28
arduino-mega × 27
arduino-ide × 27
programming × 24
wireless × 21
led × 19
hc-06 × 19
communication × 16
adafruit × 16
c++ × 14
shields × 13
arduino-leonardo × 13
sensors × 12
servo × 11
motor × 9
pins × 9