So I read the new Bluetooth provisioning for the R4. I own a genuine Arduino R4 wifi.
I cannot get the board to connect via Bluetooth via sketch, phone, computer etc.
It doesn't even appear as a device.
However it does work connecting to the Arduino cloud.
Where do I proceed to troubleshoot the problem?
I have various Esp32 and Esp32S3 boards that work no problem.
Any help would be greatly appreciated
Couple quick points, post the code in code tags, and which kind of Bluetooth is the code for vs what you have which is Bluetooth LE 5. If the code is for Bluetooth Classic it won't work.
Its basically simple example code from Arduino BLE library. I cant get the device to show as discoverable or even wake up apparently. Firmware is 0.6
I'll post the code if needed but I noticed when I upload sketch t board the orange led stops blinking
BUT is it supposed to work with that board?
Yes, please post the code in code tags, and I will try with my R4.
Will do. Yes it's supposed to work. Right now it's 'updating the board' as soon as ts done I'll post the code. Although through the cloud from the documentation provided a sketch isn't needed.
Right now I'm running it from USB connection
Scan
This example scans for Bluetooth® Low Energy peripherals and prints out their advertising details:
address, local name, advertised service UUID's.
The circuit:
- Arduino MKR WiFi 1010, Arduino Uno WiFi Rev2 board, Arduino Nano 33 IoT,
Arduino Nano 33 BLE, or Arduino Nano 33 BLE Sense board.
This example code is in the public domain.
*/
#include <ArduinoBLE.h>
void setup() {
Serial.begin(9600);
while (!Serial);
// begin initialization
if (!BLE.begin()) {
Serial.println("starting Bluetooth® Low Energy module failed!");
while (1);
}
Serial.println("Bluetooth® Low Energy Central scan");
// start scanning for peripheral
BLE.scan();
}
void loop() {
// check if a peripheral has been discovered
BLEDevice peripheral = BLE.available();
if (peripheral) {
// discovered a peripheral
Serial.println("Discovered a peripheral");
Serial.println("-----------------------");
// print address
Serial.print("Address: ");
Serial.println(peripheral.address());
// print the local name, if present
if (peripheral.hasLocalName()) {
Serial.print("Local Name: ");
Serial.println(peripheral.localName());
}
// print the advertised service UUIDs, if present
if (peripheral.hasAdvertisedServiceUuid()) {
Serial.print("Service UUIDs: ");
for (int i = 0; i < peripheral.advertisedServiceUuidCount(); i++) {
Serial.print(peripheral.advertisedServiceUuid(i));
Serial.print(" ");
}
Serial.println();
}
// print the RSSI
Serial.print("RSSI: ");
Serial.println(peripheral.rssi());
Serial.println();
}
}
Not working for me. Thank you.
Must be the board unfortunately
And I haven't done anything to harm it
Seems to be a common issue looking through the forums.
And during config my device froze
What does that mean?
Do not mark it solved.
Why does your board look so strange?
Its doing a USB configuration for the cloud and it's updating the board. Right now it's stuck on the screen says it should take a couple minutes.
I'm tired of messing with it. Two to three hours of my time I can't get back messing with this. They need to send me a board the Bluetooth actually works on.
And the board has a cover on it, made by sunfounder
If you did not allow the process to complete the FIRST time, then the board is in an unknown state now. You will need to reset the board. I don;t know how to do that off the top of my head, but often it is a double tap of the reset button.
I allowed it to complete, it froze and said 'device timeout'. It works perfectly unless I start messing with Bluetooth. Evidently it does not like the ESP32 S3 mini. Something isn't right there
It is an R4
It has a ESP32 S3 mini on board beside the Renesas RA4M1. The ESP32s3 is the co processor
I know that, but it isn't relevant for this exercise. Did you select UNO R4 in the drop down board selector or no?
Yes I did
Sorry I can't comment further without risking a timeout. Good luck.
Thanks for your help




