Questions tagged [ble]
Stands for "Bluetooth Low Energy." BLE (also "Bluetooth LE") is a variation of the Bluetooth wireless standard designed for low power consumption. It was introduced by the Bluetooth Special Interest Group (Bluetooth SIG) in December 2009 as part of the Bluetooth 4.0 specification.
64 questions
0
votes
1
answer
97
views
Connecting two Arduinos via BLE 5.0
I have this issue where I'm transmitting sensor data from Nano Sense Rev 2 (transmitter) board to Nano 33 BLE rev 2 (receiver). The receiver keep failing to detect and connect to the transmitter and ...
-1
votes
1
answer
108
views
Can't connect to Arduino Nano 33 BLE while MicroPython file is running
I am using a Arduino Nano 33 BLE and I'm using MicroPython to write code for my board using Arduino Lab for MicroPython. I uploaded a file with the name main.py to my Arduino to test if it would work ...
1
vote
0
answers
91
views
Reading from Analog Mic and Transmitting over BLE (Nano 33 BLE)
I'm trying to read from an analog mic with a sampling frequency of 10 kHz and transmitting the data over BLE on Arduino Nano 33 BLE Sense Rev 2. The MCU reaches that sampling rate with no problem but ...
0
votes
0
answers
82
views
Arduino bluefruit nrf52 - check if softdevice is "busy"
I'm using a Bluefruit nRF52 with Arduino framework, and using Bluefruit library. It's connected to the Bluefruit connect app, but also acting as an SPI slave for another device (an stm32).
I'm having ...
2
votes
0
answers
954
views
Send large file over BLE with ESP32 Wrover B
I have been able to get a large file to be sent in packages over BLE to a characteristic on my ESP32-Wrover-B module (yay!). However, these files can be large (+300kb) so I need to repackage them ...
5
votes
1
answer
373
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 (...
1
vote
1
answer
318
views
MKR 1010 WIFI Built-in RGB LED not working with BLE
in addition to the standard LED_BUILTIN, MKR 1010 WIFI comes with a built-in RGB LED.
This RGB LED fails when used along the on-board BLE, no matter what program sequence I test.
To reproduce the ...
1
vote
0
answers
143
views
how to config size USB mass storage arduino nano ble 33?
I see that they arduino nano ble 33 support USB 2.0. Is there a way for us to create a USB mass storage of about 200kb for convenient storage of configuration files and history files?
I see example ...
1
vote
0
answers
441
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
0
answers
101
views
BLE disconnect during code "pause"
I have a code that should pause the script for a specific time (x_time). if x_time is above 30-40 sec the BLE connection to the android phone is lost. Any suggestions on how to avoid the lost ...
1
vote
1
answer
876
views
ESP32 - BLE does not connect/restart after light sleep
noob in arduino here.
I'm trying to connect via BLE after the ESP32 wakeups from light sleep. I have tried many different things, but none of them work. Everything works fine before the device sleeps ...
1
vote
0
answers
91
views
Connecting HM-10 and relay to Arduino Uno
I have an 8 channel relay, an Arduino Uno, and this HM-10 bluetooth module: https://www.amazon.com/dp/B06WGZB2N4
The Goal
Send a number (1-8) from my Android phone via bluetooth to turn a relay on.
...
0
votes
2
answers
1k
views
How to get the scan duration below 1 sec with Arduino BLE?
I want to scan continuously for other Bluetooth devices with my ESP32 using BLE. The scan method only accepts integers larger than 0, such as scan->start(1, false). However I want the results to be ...
0
votes
1
answer
164
views
How does a callback function get revoke itself eg. Connect function get revoked when there is new connection
Further to my previous question here
Can anyone help me understand how the callback function gets revoked itself? The connect function, disconnect function.
BLE custom UUID code source here
Another ...
1
vote
1
answer
775
views
nRF52832 BLE "conn_handle" to disconnect the current connected devices
I'm working on nRF52832 Bluefruit Adafruit Module. I want the BLE connection to disconnect using a function and can call whenever required. But the issue is the disconnect function needs "...
0
votes
0
answers
746
views
String of raw data to Char Hex Array for Bitmap
I'm trying to transfer a monochrome ~4kb image file over WebBT to an ESP32 via BLE.
The EPD display looks for an unsigned char array to represent a bitmap. So..it should be in the format of something ...
0
votes
1
answer
2k
views
How to get the name of connected device over BLE?
I am implementing a BLE peripheral in my firmware with Arduino ESP32.
When the central gets connected to it, I'd like to log the name of the central & its address.
How can I do that?
#include <...
1
vote
0
answers
55
views
How do I use BLE module and RFM69 module together?
I am trying to use an Adafruit BLE module and an RFM69 module on the same Arduino.
The higher-level functions in each included library (Adafruit_BLE.h, RFM69.h) both use the SPI.h library to talk to ...
1
vote
0
answers
291
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 ...
1
vote
1
answer
439
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 ...
1
vote
2
answers
6k
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
1
answer
448
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
231
views
Leonardo with hm-10 doesn't work
I have a hm-10 module attached to Arduino Leonardo board, I'm using a bluetooth terminal app to send some text.
The problem is I can send data from the Serial monitor to my phone but when I send from ...
1
vote
0
answers
147
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
0
answers
1k
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
169
views
How to get the value of a measurement transmitted by a BLE device?
I would like to use a BLE temperature sensor (such as the Inkbird IBS-TH1 Mini BLE Sensor), however, I want to be able to display the temperature measurements in my own website. To do this I am ...
2
votes
1
answer
514
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
1k
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
1k
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 <...
1
vote
1
answer
596
views
AT 09 BLE module not transmitting data
I have recently started working with the Arduino Pro Mini 5v/16Mhz and an AT 09 BLE module for an IoT project. I am controlling the BLE module using Software Serial and am leaving the hardware serial ...
1
vote
0
answers
192
views
Arduino 33 Nano BLE Sense not compatible with pulseIn()?
Preface
Currently, I'm making an application on a Arduino 33 Nano BLE Sense. I'm trying to measure the current humidity and send it via BLE to another device. The target is to send a precise value ...
1
vote
1
answer
1k
views
Problems with Hardware Serial (UART) on Nano 33 BLE Sense
my new Nano 33 BLE Sense arrived today. I'm working on a project to send data from the the Nano via an Xbee S2C module to a receiver module connected to a Nano 33 IoT. I had the project working ...
2
votes
0
answers
734
views
Send sensor data through GATT with Adafruit Bluefruit
I have the BLE Module Adafruit ItsyBitsy nRF52840 Express and I want to send sensor values from a Hallsensor to my computer. I was able to have the right data checking with the Serial monitor.
int ...
3
votes
0
answers
2k
views
BLE HM10 - Set Password - Android Pairing Problem
I have developed an application on Android, which connects to a Bluetooth HM10, launches commands, and turns LEDs on and off through my Arduino. All of this works properly.
So, I want to make ...
1
vote
0
answers
145
views
Problem with sending sound sensor data to app using ESP32 over BLE_UART
I was working on Adafruit Electret Microphone Amplifier - MAX4466 with Adjustable Gain
and ESP32.
I want to send data to an app using BLE UART
I have printed data to the serial monitor or serial ...
1
vote
1
answer
835
views
Arduino Mega 2560 + BLE HM-10 - I cannot execute AT commands
I have an Arduino Mega 2560 and a HM10 Bluetooth module (this one)
I have connected the Bluetooth according to the manufacturer's specifications:
VCC -> 5v
GND -> GND
TXD and RXD of the ...
0
votes
1
answer
80
views
What are the Arduino hardware options for experimenting with IoT?
Just starting to learn about Arduino and IoT. I'd like to know what the Arduino hardware options are to try the following:
Use FreeRTOS as SO
WiFi and BLE connectivity
Solderless board
Test OTA ...
0
votes
2
answers
2k
views
Arduino nano IoT antenna broke
I have an Arduino Nano 33 IoT and have used it for a good time now. I was using it when the antenna snapped off. Is there any way to fix it by either an external antenna or some other method? I tried ...
1
vote
0
answers
396
views
Unable to correctly read CSC GATT data with ArduinoBLE on a Arduino Nano 33 IOT
I've set up a Nano 33 IOT as a central device and I'm attempting to read the data from a Cycling speed and cadence BLE device.
The spec for the CSC Gatt service I want is: https://www.bluetooth.com/wp-...
2
votes
0
answers
119
views
How can I rewrite my Bluetooth Classic Arduino code into Bluetooth Low Energy Arduino code (and have everything working the same)
My original code for BT Classic
My Work in Progress BLE Code
I am trying to take all I did in BT Classic and have it working exacly the same in BLE but the Rssi keeps returning 0's in the BLE code and ...
1
vote
1
answer
522
views
How to use HM-10 as client, and send messages to specific services/characteristics?
I have been messing around with this module, unfortunately i bought a fake one, but got the original firmware running inside it (V550).
So far i can set the HM-10 up as client/master and by using an ...
1
vote
1
answer
942
views
Raspberry Pi 3B+ BLE communication to Arduino Nano 33 IOT
I have an Arduino Nano 33 IOT and it uses BLE. I want it to talk to my Pi 3B+ and send all of its sensor data. I cannot figure out a way to do it using Python for the Pi and ArduinoBLE library for my ...
1
vote
0
answers
666
views
CC2541 Bluetooth AT Commands not work for any Commands sended from Serial
i bought the HM 10 Bluetooth controller (CC2541), i got connect on this device through Serial Bluetooth Terminal (Android App) with Serial BLE menu this method not requires any pass and "...
1
vote
0
answers
329
views
Get client information on BLE
So I'm working on a personal project using bluetooth abilities to start a BLE server and want to automatically retrieve a client's information after it's connected: ID so I can keep track of clients, ...
0
votes
2
answers
2k
views
ESP32 start BLE after deep sleep
I'm new to using the esp32 as a microcontroller. I'm currently working on a so-to-say remote control. Since I want to use the esp32 with an external battery I need to put it in deep-sleep after I ...
1
vote
1
answer
217
views
Sending Strings from NRF24L01 to app
I want to send pushbutton status from the nrf24l01 module to the app named nrfConnect. I could only find libraries that allow me to send float values. How could I send String values to the app? Thank ...
0
votes
1
answer
682
views
Write a Struct using ArduinoBLE library
Hello I'm trying to send some Structs such as:
typedef struct __attribute__ ((__packed__)) myohw_command_set_mode {
myohw_command_header_t header; ///< command == myohw_command_set_mode. ...
2
votes
2
answers
2k
views
Antenna for ESP32-pico-d4
I am currently playing a bit around with the esp32-pico-4d, it does not have an onboard antenna, so an external antenna is needed, tho I don't know a lot about it so a little help would be appreciated....
1
vote
1
answer
197
views
Arduino Atmega32U with nRF51 BLE by Adafruit limited to 5 second update rate?
Would like to ask for assistance with the code below. It's the Adafruit Bluefruit Atmega32U LE module with Adafruit's Arduino IDE example "heart-rate monitor" sketch. The code uses the hardware SPI ...
1
vote
0
answers
2k
views
HM-10 controller is not responding to AT commands
I recently purchased new HM-10 module, because old one was clone and it lacks AT+TYPE command. I connected it to my Arduino and I don't know why but I cant see any response in SerialMonitor.
I even ...