15 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 ...
st2000's user avatar
  • 7,343
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 ...
anewsome's user avatar
  • 141
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 ...
usamazf's user avatar
  • 196
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, ...
chrisl's user avatar
  • 16.3k
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 -...
AMADANON Inc.'s user avatar
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

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 ...
Squats's user avatar
  • 129
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 ...
naiello's user avatar
  • 91
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) ...
jimhark's user avatar
  • 141
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 ...
Coffeeholic's user avatar
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.
Dat Ha's user avatar
  • 2,913
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

One of the LEDs on my Arduino is very dim

You need to add this line for the other LED pin: pinMode(ledPin2, OUTPUT);
CrossRoads's user avatar
  • 2,415
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
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 ...
chrisl's user avatar
  • 16.3k
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
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() ...
Edgar Bonet's user avatar
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 ...
Jim Harman's user avatar
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 ...
Majenko's user avatar
  • 105k
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 ...
KIIV's user avatar
  • 4,742
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.
Majenko's user avatar
  • 105k
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....
Mostafa Khattab's user avatar
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

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
Accepted

Can I share the VCC (5V) on my Arduino Pro mini with multiple modules?

Yes, you can do that as long as the total current draw of the modules you attach to VCC doesn't exceed the on-board regulator maximum current output. The Arduino Pro Mini has a MIC5205 regulator ...
Enric Blanco's user avatar
  • 2,114
3 votes

Multiple connections on the same pin

No, you cannot use one pin (or set of pins) for two functions like that. To communicate with two serial devices you will need two serial ports. It's possible to (just about) emulate one in software ...
Majenko's user avatar
  • 105k
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

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