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 ...
st2000's user avatar
  • 7,255
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
  • 15.8k
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); //...
Nick Gammon's user avatar
  • 37.9k
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
  • 119
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 ...
Sackhorn's user avatar
  • 143
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
  • 81
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,583
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,407
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
  • 15.8k
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
  • 15.8k
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
  • 42.2k
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 ...
Mirosław Drdzeń's user avatar
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 (...
eccker's user avatar
  • 109
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.
jogco's user avatar
  • 273
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

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