Questions tagged [bluetooth]

Bluetooth enables short-range wireless communication between devices.

Filter by
Sorted by
Tagged with
-2 votes
0 answers
25 views

Arduino keeps disconnecting when trying to connect through bluetooth [closed]

I am trying to see if my arduino connects through bluetooth with the lightblue app. One problem is that when trying to connect the attempt keeps failing because the arduino keeps disconnecting. We've ...
Tali Mosley's user avatar
0 votes
0 answers
22 views

Unable to play audio on ESP32 speaker that receives audio from phone via Bluetooth

I have the following code that I am using to receive audio from phone via Bluetooth Classic and sending it to the internal DAC of the ESP32 which is connected to headphones. When I run this code on ...
Shweta Kiran's user avatar
-1 votes
0 answers
11 views

HM-10 Doesn't show on COM port - MacOS [closed]

I'm trying to communicate with a HM-10 over bluetooth, however, when I connect to the device using the third-party app ''LightBlue', I can't see any COM port open for the bluetooth connection when I ...
Matthew's user avatar
1 vote
1 answer
29 views

Slider servo doesn't give the right output

#include <HCPCA9685.h> #include <Wire.h> #define I2CAdd 0x40 HCPCA9685 HCPCA9685(I2CAdd); String state = ""; int servo5Pos; int servo5PPos; void setup() { Wire.begin(); ...
Bern's user avatar
  • 11
-1 votes
0 answers
32 views

ESP32 pseudo hardware flow control for Bluetooth SPP

I'm using an ESP32 as a Bluetooth SPP to USB-serial null modem between a MacBook Pro (via SPP) and a laptop running Windows 11. The ESP32 program logic is about as simple as it gets: int nextByte; ...
Bitbang3r's user avatar
  • 541
0 votes
0 answers
114 views

Find MAC address of client connected to ESP32 Bluetooth SPP via esp32-Arduino Bluetooth serial library

Let's suppose I'm using Espressif's Arduino-esp32 Bluetooth Serial library with code similar to the following: #include "BluetoothSerial.h" // snip BluetoothSerial bts; bool firstTime = ...
Bitbang3r's user avatar
  • 541
0 votes
0 answers
26 views

Adafruit Datalogger and Bluefruit LE issues

I'm having issues using the Adafruit Bluefruit LE shield at the same time as the Adafruit Datalogger shield. I can use either shield independently without issue. When I stack the two, I can talk with ...
JoeBob_OH's user avatar
  • 109
-2 votes
1 answer
114 views

Matter protocol with Arduino Mega/Giga

I would like to try matter protocol with Arduino mega or Arduino giga. But I don't find any sample or library. I have only found libraries compatibles with ESP32. Do you know how I can work with ...
Bob5421's user avatar
  • 87
0 votes
0 answers
72 views

How do I control a BLDC with greater precision using bluetooth?

I am building a quadcopter drone and I have 4 BLDC motors that I can control using an HM10 Bluetooth module and the "Dabble" application. My problem is that when I use a virtual joystick in ...
gabe29's user avatar
  • 9
0 votes
0 answers
84 views

Setting flag for sending data through advertisements using hm-10 mlt bt05 and arduino uno

I have succesfully connected to my hm-10 device and started configuring it using AT commands. I would like to know if it is possible to modify the data sent in advertisement and read it on another hm-...
stamley's user avatar
1 vote
0 answers
86 views

Bluetooth (HC_06) on the Attiny85

I'm trying to make a hc_06 Bluetooth controller work on the attiny85-20pu. In the end, I want to control a stepper motor through Bluetooth. But for now to keep it simple I'm searching for a working ...
Sudras Elagor's user avatar
0 votes
1 answer
468 views

Control esp32 via keyboard keys

I'm making a project in which I have to control a mini car and get sensor information via bluetooth. I'd like to be able to control the mini car with the computers keyboard (w,a,s,d), but I was not ...
Matrodsilver's user avatar
1 vote
0 answers
134 views

ESP32 - resetting BT(classic)-Discovery variables ends in memory chaos

I want to search for bt devices in each loop(), store them and query them one by one. This works fine so far. However, when I try to reset the corresponding variables, I get the following error: "...
Ted Mosby's user avatar
3 votes
1 answer
310 views

Arduino IDE equivalent to DataView?

I am working on a project with Bluetooth commands between various devices. I would like to try and convert a string to a DataView Object on Arduino, so I can send it over BLE, much like this function ...
NRav's user avatar
  • 225
4 votes
1 answer
201 views

MacBook + BLE Microcontroller Incompatibility?

I've programmed an Adafruit Feather nRF52840 board to send MIDI signals to my computer via BLE. I can confirm that the board pairs successfully with an Android phone and a Windows PC, but my laptop (...
carsoap's user avatar
  • 41
2 votes
0 answers
52 views

HC-08 Compatibility issues with iPhone

I am trying to connect my IPhone to an HC-08 Bluetooth module on an Arduino. The HC-08 is showing up in the new device section of android devices but it does not show up on an IPhone's Bluetooth ...
Ethan Naugle's user avatar
1 vote
0 answers
196 views

Arduino Nano 33 BLE power consumption optimization

I am working on building a sensor using Arduino Nano 33 BLE that will measure temperature using two thermistors and angle changes. The measured values will be transmitted over Bluetooth to a ...
Arseniy Tretyak's user avatar
1 vote
0 answers
228 views

How to query data from my ELM327 via BLE?

I have a HM-10 module connected to my Arduino Nano that I want to use to get data from a ELM327 OBDII. I have been able to successfully connect to the ELM327 via: AT AT+RESET AT+BAUD2 AT+ROLE1 AT+...
leopardxpreload's user avatar
2 votes
1 answer
179 views

How do I make the Arduino print on my Mac's Arduino IDE through Bluetooth?

This is a basic question, but I really have tried my best to find a solution on the internet to no avail. I have a fairly normal setup. HC05 module connected to an Arduino. The HC05 is also connected ...
iceninja21's user avatar
0 votes
0 answers
113 views

HC-05 Disconnects Underwater(predictably). How to make it reconnect by itself?

So I have an application where I send a Bluetooth module underwater(in a waterproof case). I have the Arduino+module sending my computer on-land a constant stream of numbers. Predictably, when the ...
iceninja21's user avatar
3 votes
0 answers
299 views

HC05 and ELM327 NODATA sending PID codes

I am working on a project where I am using an HC05 connected to an Arduino to connect to an ELM327 Bluetooth scanner. I am using the SoftwareSerial Arduino library to send and read information from ...
Fletcher Dares's user avatar
1 vote
0 answers
481 views

Bluetooth Serial is unavailable `SerialBT.available()` returns False on Macbook after a successful bluetoooth connection

I am trying to send and receive messages between my mac and esp32 board. I am currently using the Bluetooth classic interface. After a successful connection. I however have observed that there is no ...
Yohan Infinity's user avatar
1 vote
1 answer
2k views

Arduino + HC-05 Problem: AT Commands are not working

Device: Laptop, HC-05, Resistor 2.2k and 4.7k, Arduino Uno R3 So im trying to rename and change password of my HC-05. for full detail schematic diagram. Here(the difference is, i also used the STATE ...
FaizTact's user avatar
0 votes
2 answers
127 views

Bluetooth Arduino Data Type Error

In my code I want to send some float values from my phone to the Arduino's Bluetooth which I will then split using the substring function. it will then print that split value to the serial monitor. I ...
CodeStuff's user avatar
0 votes
1 answer
83 views

"Cast" BluetoothSerial to HardwareSerial

I have a function that accept an HardwareSerial class as argument: void ProcessLine(HardwareSerial *serial, char *line) { // do something serial->write("blablabla"); } In my code ...
Mark's user avatar
  • 393
0 votes
1 answer
554 views

CRC8 code not working properly

I need to send a string followed by its CRC8, 0x31 polynomial (= X^8 + X^5 + X^4 + 1), I've coded this successfully after some troubles, but it doesn't seem to work properly when I check the results. ...
Myst's user avatar
  • 11
-1 votes
2 answers
225 views

Robot car not working

My robot car won’t respond to my command. The code below worked before however, this time there is no response. I’ve tried experimenting with the code in the first while loop. I’ve tried different ...
user17247218's user avatar
0 votes
1 answer
561 views

ESP32-C3 - undefined reference to `esp_ble_gap_start_advertising'

I have a Bluetooth project for an ESP32 devkit and want to compile it for an ESP32-C3. I use the newest ESP32 Arduino core as a component with esp-idf and the following configuration for PlatformIO: [...
Kampi's user avatar
  • 103
-1 votes
1 answer
43 views

Servo retaining its position every time I send some value

I wanted to control my servo with a Bluetooth module. I gave certain values for rotating it. When I press those values the servo rotates, but then retains its original position and the PC also makes ...
Rathore Brothers's user avatar
3 votes
1 answer
1k views

What is the difference between Bluetooth module HC-05 and HC-42 for Arduino?

I am looking for differences between HC-05 and HC-42 Bluetooth modules for Arduino. I could not find an answer by searching google. Both products have 6 pins and accept master and slave but I could ...
Devindu's user avatar
  • 41
1 vote
0 answers
188 views

Is there any way to secure Esp32 BLE server?

I've got a project in which currently I am using Bluetooth classic (with SSP - Simple secure pairing) to communicate to my esp32 board with my android app, but Bluetooth classic serial communication ...
Piyush's user avatar
  • 111
0 votes
1 answer
121 views

How to execute programs based on received bluetooth value - wake-up-light (ESP32)

I'm trying to execute programs on my arduino based on values received via bluetooth. Although I've experimented a lot, I'm unable to get the code to work. I have build a simple android app with three ...
Raptor452's user avatar
1 vote
1 answer
323 views

ESP32 stack error when reading from BLE device

I'm using this code here to read data from a BLE thermometer using an ESP32. The code sometimes works fine and i can get the data: + Connect : a4:c1:38:69:0c:ff * Connected a4:c1:38:69:0c:ff + Found ...
teemo96's user avatar
  • 11
0 votes
1 answer
1k views

Continuous servo motor won't stop rotating

I want to use Bluetooth to control my continuous servo motor to rotate 360° once, and I used MIT app inventor for the UI to control it. My continuous servo motor won't stop rotating even though I ...
grace728's user avatar
1 vote
0 answers
66 views

LightBlue to Arduino connection log does not display serial monitor printed data

I'm writing code so that, every time a hall monitor senses, my code additively measures 5 liters of volume as it prints each detection. Then, this data is sent via Bluetooth to a phone. (This is for a ...
Anne Murray's user avatar
2 votes
1 answer
429 views

HC-05 Bluetooth module; two serial ports, COM4 and COM5

I'm learning how to use the Arduino HC-05 Bluetooth module. After pairing to it with my laptop I saw that I was getting two serial links, COM4 and COM5, as can be seen from the picture below. On COM4 ...
Kennerdol's user avatar
2 votes
0 answers
178 views

Issues with the TX pins for recieving data from the HM19 and HC05

I bought a hm19 (link 2), 2 hc05s, an Arduino micro, and an Arduino due. I'm trying to turn an led on and off using my phone over Bluetooth. I verified that all modules work by themselves. So here's ...
Shreyan J's user avatar
3 votes
0 answers
689 views

ESP32 Bluetooth Master does not connect

I want to connect an ESP32 to a SMA Sunny Boy SB5000-TL Solar convertor over Bluetooth, but I cannot establish a connection and I'm kind of stuck. I use the internal bluetooth module of the ESP32. ...
mvermand's user avatar
  • 407
1 vote
0 answers
130 views

Bluetooth Upload is Hanging

I am trying to program my Arduino via bluetooth and have been following this tutorial very closely in order to do so: https://www.instructables.com/Program-an-Arduino-Wireless-Over-Bluetooth/ I have ...
Alex88's user avatar
  • 21
1 vote
2 answers
3k views

Arduino library or code for ESP32 to scan for Bluetooth devices?

Is there some code or library that would allow me to scan for nearby Bluetooth devices using a common ESP32 board ? I only found similar code for actual Arduino boards.
adrianTNT's user avatar
  • 252
1 vote
0 answers
545 views

ESP32 Classic Bluetooth Set Password

I am using ESP32 classic Bluetooth Feature for data transfer. I am using the SerialToSerialBT example. I am able to scan and discover the Bluetooth device from my smartphone. But the pairing is ...
power machines's user avatar
1 vote
0 answers
146 views

Need help with Bluetooth component for TinyCircuit

I am looking to get some assistance to learn how to program the Bluetooth module for TinyCircuits. I am currently using the UARTPassThrough.ino example to try and learn BlueNRG's functions. I see that ...
needHelpDigesting's user avatar
1 vote
1 answer
368 views

ESP32 BLE service not visible to Node-RED

I've been trying to host a BLE-server on my ESP32 with a custom service. I'm trying to read the service data in NodeRED, but the service IDs and custom characteristics don't show up in NodeRED ...
Boyfinn's user avatar
  • 115
0 votes
1 answer
519 views

avrdude: stk500v2_ReceiveMessage(): timeout error for bluetooth arduino

I am trying to link the Bluetooth module to my arduino UNO in order to wirelessly program a robot. The only issue that I am having is that the bluetooth module does not seem to pick up the arduino. ...
DigitalRookie4's user avatar
1 vote
0 answers
96 views

configuring characteristics to communicate data on the Arduino bluetooth low enegy module

I have the HM-10 Arduino BLE module. I am also building an app to send and read characteristics on the BLE module. On the Arduino BLE side of things though, how do I set up which characteristic ...
Ahmed Anwer's user avatar
1 vote
1 answer
589 views

ESP32 SerialBluetooth disconnects within a second after connecting but not BLEDevice/BLEServer

Code using BluetoothSerial api disconnects immediately after establishing connection with my laptop running Ubuntu 18.04. If instead of BluetoothSerial BLEDevice api is used, the connection stays ...
alex's user avatar
  • 111
1 vote
2 answers
96 views

Problem with first two samples of serial data received by RPi

I'm trying to receive a string from an Arduino to a Raspberry Pi via a Bluetooth socket connection (RFCOMM). I'm using an HC-06 Bluetooth module, an Arduino UNO R3, and an RPi 4 Model B. For the ...
phosphorescent's user avatar
1 vote
1 answer
93 views

Incorrect values arriving from Arduino to RPi over serial communication

I am trying to write four values relating to energy (current, power, energy, and peak demand) via a SoftwareSerial connection from my Arduino UNO to my Raspberry Pi 4. However, two things are ...
phosphorescent's user avatar
2 votes
2 answers
119 views

arduino acclerometer with servo motor

I'm currently working on project to operate three motors while sending accelerometer value to computer via bluetooth module. I want the motor operation and value transmission to work seperatly. But ...
John Cho's user avatar
1 vote
0 answers
68 views

Program a mega2560 from a different Serial port

I want to be able to use my HC-05, currently on Serial3 to download code to on my 2560 from a connected android tablet. I'm currently running MegaCore, which has optiboot on it. I've looked for ...
Thom's user avatar
  • 173

1
2 3 4 5
13