Questions tagged [bluetooth]
Bluetooth enables short-range wireless communication between devices.
609
questions
-2
votes
0
answers
16
views
we are trying this code for controlling 1 master to 2 slave from using this library https://github.com/angeloc/simplemodbusng
I am trying to use an Arduino Uno to control two slaves with one master, but I am encountering issues with the code. Although I have attempted to connect the master to one slave, it is not working ...
3
votes
0
answers
44
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
votes
1
answer
48
views
I am receiving the wrong message when sending a message between 2 Arduinos
What I'm trying to do is fairly simple
I want to encode a flag and numerical value into a message and transmit it to another arduino using the HC-05.
I am receiving the numerical value on the other ...
1
vote
0
answers
29
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
96
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
43
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
61
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
35
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
219
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
76
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
313
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
35
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
787
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
113
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
83
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
205
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
498
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
45
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
215
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
123
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
452
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
102
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 ...
0
votes
1
answer
1k
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
324
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
82
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
189
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
216
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
61
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
108
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
78
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
80
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
101
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
55
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
169
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
149
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
44
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
465
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
516
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
214
views
BLE library for Beetle Bluno BLE with AVR architecture (Atmega328)
When I try #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) and ...
2
votes
0
answers
186
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 ...
2
votes
0
answers
517
views
Send/Stream BLE (Bluetooth Low Energy) data with high data rate with Arduino
My project is to transfer an image wirelessly via BLE from my Sparkfun EDGE board using the Arduino IDE to another laptop. In the following, for simplicity, I have reduced the program to transmit ...
1
vote
0
answers
553
views
ESP32 sending data of type uint16_t(or anything except for uint8_t and char*) over bluetooth(classic) serial
I'm making a custom gamepad with an ESP32 and the joystick output is read by an ADC using uint16_t analogRead(uint8_t pin);. Now that I want to send the data and receive and parse it, I ran into a ...
1
vote
0
answers
74
views
Problem sending data via Bluetooth
I have an HM-11 BT module that I am configuring as a Master/Central and attempting to connecting to a SH-M08 BT slave module.
I can connect to the slave successfully but I cant send data.
I found this ...
1
vote
0
answers
552
views
Using BLE via NRF24L01 to communicate with Android phone
I have been going through a tutorial about this, based on the example code for the "BTLE" Arduino Library.
This is my program:
#include <SPI.h>
#include <RF24.h>
#include <...
2
votes
3
answers
95
views
Issue with bluetooth and a large number LED strip
I want to be able to control multiple LED strip via bluetooth with one arduino.
I coded my own android app and everything work fine with one or two led strip with few pixel. But as soon as I had to ...
1
vote
1
answer
69
views
I need help with my final year project
I am building a project using bluetooth control as well as an ir sensor. The logic behind my program is when I press a key I want my robot to execute a series of program and while the program is ...
1
vote
0
answers
37
views
Make a Jack-Bluetooth Module for the car
I'm making a Jack-Bluetooth module so that I can send music to the car (or other devices w/ Jack plug) without an internal Bluetooth module in the car.
https://habr.com/en/post/456182/ says that I ...
1
vote
0
answers
182
views
Problem with ESP32 bluetooth
I am trying to connect ESP32 via bluetooth classic to my PC to transfer some data from a sensor.
As a first step, I am simply trying to send some random data over bluetooth serial. The code is at ...
1
vote
1
answer
92
views
Brushless Motor "twitches" on its own when connected to battery
I've been trying to make a Bluetooth slider app that can control the spin speed of a brushless motor. The transmitter I am using is Arduino Mega. The problem I'm having is that my motor will start ...
1
vote
0
answers
100
views
Trouble using bluetooth module with the ESP32s2 feather board
I am trying to use an ESP32-S2 feather board with a separate bluetooth module, the Adafruit BLuefruit LE UART Friend. I previously used this bluetooth module with the Feather M0 Adalogger through UART ...