Questions tagged [bluetooth]
Bluetooth enables short-range wireless communication between devices.
616
questions
1
vote
0
answers
43
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 ...
0
votes
0
answers
53
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-...
1
vote
0
answers
66
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 ...
0
votes
1
answer
186
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 ...
1
vote
0
answers
87
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: "...
3
votes
1
answer
303
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 ...
3
votes
1
answer
139
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 (...
2
votes
0
answers
37
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 ...
1
vote
0
answers
142
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 ...
1
vote
0
answers
128
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+...
2
votes
1
answer
104
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 ...
0
votes
0
answers
89
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 ...
3
votes
0
answers
236
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 ...
1
vote
0
answers
283
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 ...
1
vote
1
answer
879
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 ...
0
votes
0
answers
125
views
Which Bluetooth mode to use to wake up, send a message (to any listener) and go to deep sleep?
I'd like to wake up an ESP32 (on battery) when a pin changes from low to high, send a message via Bluetooth, and go to deep sleep again.
What Bluetooth mode should I use:
Broadcast mode?
Bluetooth ...
0
votes
2
answers
110
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 ...
0
votes
1
answer
68
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 ...
0
votes
1
answer
457
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.
...
-1
votes
2
answers
161
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 ...
0
votes
1
answer
489
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:
[...
-1
votes
1
answer
41
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 ...
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 ...
1
vote
0
answers
162
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 ...
0
votes
1
answer
108
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 ...
1
vote
1
answer
287
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 ...
0
votes
1
answer
877
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 ...
1
vote
0
answers
52
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 ...
2
votes
1
answer
326
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 ...
2
votes
0
answers
156
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 ...
3
votes
0
answers
620
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.
...
1
vote
0
answers
127
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 ...
1
vote
2
answers
2k
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.
1
vote
0
answers
410
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 ...
1
vote
0
answers
144
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 ...
1
vote
1
answer
297
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 ...
0
votes
1
answer
413
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.
...
1
vote
0
answers
87
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 ...
1
vote
1
answer
397
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 ...
1
vote
2
answers
89
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 ...
1
vote
1
answer
91
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 ...
2
votes
2
answers
114
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 ...
1
vote
0
answers
63
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 ...
1
vote
1
answer
244
views
Can’t send string from arduino to processing via hc05
I’m trying to send and receive data from my laptop to arduino nano via hc05 Bluetooth for a rocket flight computer. For some reasons which I don’t know, I can send data from processing software using ...
2
votes
0
answers
231
views
HC-05 bluetooth module stops working when blinking
I'm using this HC-05 Bluetooth module to communicate between my Arduino mega 2560 and my laptop. I am using processing to send the data from my computer to the Arduino.
The module connects nicely and ...
1
vote
0
answers
49
views
My bluetooth module keeps sending out constant exports
So I have a bluetooth module hooked up to my arduino to control an LED light, something simple to turn on and off. But the app im using constantly is either sending something or receiving. This causes ...
1
vote
0
answers
800
views
Set Value for a characteristic fails using BLE ESP32
I'm working on a project that uses a Raspberry pi to trigger a microcontroller to read data from an accelerometer for some amount time then have that data available for the RPi to read it over BLE. I ...
1
vote
0
answers
728
views
Bluetooth module with lowest latency to communicate with PC
I am making a haptic feedback glove using Arduino and HC-05 bluetooth module to communicate with PC.
There are rotary encoders on the finger which send value to PC through Arduino mega. The PC returns ...
1
vote
1
answer
375
views
BLE library for Beetle Bluno BLE with AVR architecture (Atmega328)
When I try to #include <ArduinoBLE.h> in my Arduino program, I get the error:
WARNING: library ArduinoBLE claims to run on samd, megaavr, mbed, apollo3, mbed_nano, mbed_portenta architecture(s) ...
2
votes
0
answers
242
views
Arduino Nano 33 BLE Sense TFlite inference hangs when using bluetooth
I'm running into an issue where when I try to set up a BLE service my tflite inference seems to hang/crash. I used https://experiments.withgoogle.com/tiny-motion-trainer to train a model to recognize ...