Run-time Error - BLE App For Arduino Nano 33 IoT - Internet Of Things Home » Arduino Nano 33 Ble Battery Monitor » Run-time Error - BLE App For Arduino Nano 33 IoT - Internet Of Things Maybe your like Arduino Nano 33 Ble Board Arduino Nano 33 Ble Board Manager Arduino Nano 33 Ble Eeprom Arduino Nano 33 Ble Example Code Arduino Nano 33 Ble Github Loading Run-time error - BLE app for Arduino Nano 33 IoT Tutorials and Guides Internet of Things arduino, bluetooth cloud May 26, 2021, 7:14am 1 Hi, I am working on a project trying to build a app to read datas from an Arduino. I used MIT appinventor and am working with a Arduino Nano 33 IOT. I have attached the code bellow (used the example code - Battery monitor) > /* Battery Monitor This example creates a BLE peripheral with the standard battery service and level characteristic. The A0 pin is used to calculate the battery level. 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. You can use a generic BLE central app, like LightBlue (iOS and Android) or nRF Connect (Android), to interact with the services and characteristics created in this sketch. This example code is in the public domain. */ #include <ArduinoBLE.h> // BLE Battery Service BLEService batteryService("180F"); // BLE Battery Level Characteristic BLEUnsignedCharCharacteristic batteryLevelChar("2A19", // standard 16-bit characteristic UUID BLERead | BLENotify); // remote clients will be able to get notifications if this characteristic changes int oldBatteryLevel = 0; // last battery level reading from analog input long previousMillis = 0; // last time the battery level was checked, in ms void setup() { Serial.begin(9600); // initialize serial communication while (!Serial); pinMode(LED_BUILTIN, OUTPUT); // initialize the built-in LED pin to indicate when a central is connected // begin initialization if (!BLE.begin()) { Serial.println("starting BLE failed!"); while (1); } /* Set a local name for the BLE device This name will appear in advertising packets and can be used by remote devices to identify this BLE device The name can be changed but maybe be truncated based on space left in advertisement packet */ BLE.setLocalName("BatteryMonitor"); BLE.setAdvertisedService(batteryService); // add the service UUID batteryService.addCharacteristic(batteryLevelChar); // add the battery level characteristic BLE.addService(batteryService); // Add the battery service batteryLevelChar.writeValue(oldBatteryLevel); // set initial value for this characteristic /* Start advertising BLE. It will start continuously transmitting BLE advertising packets and will be visible to remote BLE central devices until it receives a new connection */ // start advertising BLE.advertise(); Serial.println("Bluetooth device active, waiting for connections..."); } void loop() { // wait for a BLE central BLEDevice central = BLE.central(); // if a central is connected to the peripheral: if (central) { Serial.print("Connected to central: "); // print the central's BT address: Serial.println(central.address()); // turn on the LED to indicate the connection: digitalWrite(LED_BUILTIN, HIGH); // check the battery level every 200ms // while the central is connected: while (central.connected()) { long currentMillis = millis(); // if 200ms have passed, check the battery level: if (currentMillis - previousMillis >= 200) { previousMillis = currentMillis; updateBatteryLevel(); } } // when the central disconnects, turn off the LED: digitalWrite(LED_BUILTIN, LOW); Serial.print("Disconnected from central: "); Serial.println(central.address()); } } void updateBatteryLevel() { /* Read the current voltage level on the A0 analog input pin. This is used here to simulate the charge level of a battery. */ int battery = analogRead(A6); int batteryLevel = map(battery, 0, 1023, 0, 100); if (batteryLevel != oldBatteryLevel) { // if the battery level has changed Serial.print("Battery Level % is now: "); // print it Serial.println(batteryLevel); batteryLevelChar.writeValue(batteryLevel); // and update the battery level characteristic oldBatteryLevel = batteryLevel; // save the level for next comparison } } Using the MIT app inventor, I built an app. I've attached screenshots of the app screen and the block code. While using the app, it comes up with a run time error while trying to connect to the Arduino Nano 33 Ito through the bluetooth app that I built. Can someone please help me resolve this issue? Screenshot 2021-05-25 at 10.12.07 PM2380×1616 377 KB Screenshot 2021-05-25 at 10.12.45 PM1824×1256 351 KB ChrisWard May 26, 2021, 12:33pm 2 Hello Cloud We need to see the exact error message. Also: Right-mouse in the Blocks work area and select "Download Blocks as image" ABG May 26, 2021, 1:58pm 3 What is that Arduino101Pins1 component? Where did you get it? cloud May 27, 2021, 3:14am 4 Hi, I downloaded an extension - Arduino 101 and I found the pin there. thought I could use it to read the values at the pins of the Arduino. I am trying to read the value at A6 pin where there is a voltage divider connected. cloud May 27, 2021, 3:18am 5 Hi Chris, Ive attached the image of the blocks b elow.. Also took a screenshot of the error message.. Screenshot_20210527-1316231080×2340 282 KB blocks586×974 112 KB ChrisWard May 27, 2021, 9:00am 6 Well, although we can't see all your Blocks (!) , the Error Message is clear - you are using UUIDs in the App which are not the UUIDs of your Arduino BLE Hardware/Sketch. Mkr nano ble 33 Gustavo_Reynaga November 19, 2021, 4:32pm 7 Hello, I kindly comment that the EXT arduino101pins is to be used only with the Arduino 101 board and is not compatible with the NANO 33 BLE, in this link is a tutorial on how to use the Arduino 101: http://iot.appinventor.mit.edu/#/teachers/tutorials 1 Like Tag » Arduino Nano 33 Ble Battery Monitor Arduino Nano 33 Sense | BLE Battery Level Tutorial Lipo Battery Monitor On Nano 33 BLE Sense - Arduino Forum ArduinoBLE/o At Master · Arduino-libraries ... - GitHub Arduino Nano 33 BLE Sense - Battery Monitor - YouTube New DIY Arduino 10 New Projects: Home Automation, Nano 33 BLE ... New DIY Arduino 10 New Projects: Home Automation, Nano 33 BLE ... New DIY Arduino 10 New Projects: Home Automation, Nano 33 BLE ... BLE Battery Status Example With Arduino Nano 33 BLE Sense - Reddit Easy Very Low Power BLE In Arduino Part 2 - Instructables New DIY Arduino 10 New Projects : Home Automation, Nano 33 ... Arduino .read() Function Interfering With BLE Connection Web Bluetooth | Arduino Nano 33 BLE Guide - Shantam Raj ARDUINO ABX00030 Nano 33 BLE Miniature Sized Module User ...