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.

Filter by
Sorted by
Tagged with
1 vote
0 answers
15 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
0 answers
147 views

How to get the scan duration below 1sec with ArduinoBLE?

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 ...
  • 101
0 votes
1 answer
37 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
145 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
279 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
366 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
27 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
112 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 ...
  • 111
1 vote
1 answer
200 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 ...
  • 11
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.
  • 242
1 vote
1 answer
178 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 ...
  • 95
0 votes
1 answer
122 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
60 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
443 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
117 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 ...
  • 175
1 vote
1 answer
212 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 ...
  • 121
2 votes
0 answers
504 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
539 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
227 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
97 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
835 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 ...
  • 41
2 votes
0 answers
332 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 ...
  • 21
2 votes
0 answers
754 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 ...
  • 131
1 vote
0 answers
98 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 ...
  • 17
1 vote
1 answer
454 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 ...
  • 131
0 votes
1 answer
52 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
851 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
184 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-...
  • 119
2 votes
0 answers
68 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
223 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 ...
  • 111
1 vote
1 answer
626 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
329 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
109 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, ...
  • 113
0 votes
1 answer
927 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 ...
  • 101
1 vote
1 answer
135 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
321 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. ...
  • 3
1 vote
2 answers
1k 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
131 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 ...
  • 71
1 vote
0 answers
1k 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 ...
1 vote
1 answer
1k views

HM-10 BLE controller is not responding to some AT commands

I have HM-10 BLE controller and it is not responding to some AT commands which I need to use. AT commands which don't work: AT+TYPE2 returns +TYPE=0 AT+VERR? not responding AT+VERS? not ...
1 vote
0 answers
164 views

Subscribing to Bluefruit LE Friend with ArduinoBLE not working

I've been using an Arduino Nano 33 BLE to communicate with my PC over the BlueFruit LE Friend's UART characteristic. Using the default ArduinoBLE library, I'm able to connect to the BlueFruit from the ...
1 vote
0 answers
119 views

Bluetooth multithreading

I'm using my Arduino to make a speaker-like device. Instead of sound, it receives the beat of the song, thus the data comes in an array of floats. Each item in the array is a timestamp, an LED is ...
0 votes
1 answer
2k views

Send/receive data from/to Raspberry Pi to/from Arduino with HM-10 (Bluetooth LE module)

My goal is to send a string from an Arduino via an HM-10 bluetooth module to a Rasperry Pi. I do this today by connecting the HM-10 on the Arduino to another HM-10 module (master/slave) and then from ...
  • 119
0 votes
1 answer
79 views

How to connect RedBearLab BLE shield (Or how to find Nordic_nRF8001.h)?

I am trying to explore the possibilities of connecting an Arduino to Phonegap/Cordova. I have a RedBearLab BLE Shield, which I want to test the connection with. My MVP would be to get the value of a ...
1 vote
0 answers
3k views

Connect more than 4 BLE clients to ESP32 BLE Server

I want to create some buzzers connected via bluetooth for a quiz show. I got several ESP32. One of them is the master (BLE Server), the other ESP32s are the buzzers (BLE Clients) with one big button ...
  • 13
2 votes
0 answers
354 views

Error compiling for board Arduino Nano 33 BLE

I am trying to use pulse sensor with Arduino Nano 33 BLE sense, but when I verify it, it shows Error compiling for board Arduino Nano 33 BLE. The code is from the pulse sensor website. The code works ...
1 vote
0 answers
200 views

How to quit flash mode on HM-10?

I have an HM-10 BLE module connected to Arduino Leonardo. It forwards UART from my computer: #define btSerial Serial1 void setup() { Serial.begin(9600); while (!Serial) { delay(50); ...
  • 71
-1 votes
1 answer
571 views

HM-10 doesn't responde after RENEW

Today I finally got two HM-10 modules. I did flash firmware using this tutorial. It worked until I didn't send AT+RENEW command. Now, LED blinks, I see device in BT terminal(Android phone) but I can't ...
  • 213
1 vote
0 answers
37 views

How do I get my servo to turn using bluetooth, is this a glitch?

I'm very new to coding with arduino so please excuse my naivety, For an electronics assignment I am making a servo turn back and forth using a HM10 BLE however each time I press a button that sends '0'...
  • 11
0 votes
1 answer
930 views

Arduino MKR 1010 WiFi as BLE central/client

I'm trying to use my new Arduino MKR 1010 WiFi as a Bluetooth Low Energy central/client, however I could only find information on how to use it as a peripheral/server (for example with the ArduinoBLE ...
  • 103