Create a BLE app for your mobile phone! Control an ESP32 with BLE

MoThunderz March 31, 2023
Video Thumbnail
MoThunderz Logo

MoThunderz

@mothunderz

About

Music, programming, Arduino, ESP32, analog synths (Roland, Arp, etc) and other fun stuff Have fun! Sander

Video Description

Summary: In this video I show you how to create your own Bluetooth Low Energy (BLE) App to control an ESP32 (Arduino platform). For creation of the app I use the MIT app inventor in combination with the MIT AI2 Companion. I have tested this on an Android phone. I have heard in the meantime that unfortunately MIT App Inventor does not support BLE for the Iphone yet. Please make sure your ESP32 has Bluetooth to make this work. Note that some older ESP32 will not work with MIT App Inventor. Confirmed to work on: ESP32-WROOM-32D ESP32-WROOM-32 (Mini D1 ESP32) Does not work on (will not connect): ESP32-WROOM-32 (some of the older versions) NOTE: In order for the App to work as compiled .apk file, the "BluetoothClient" element needs to be added to the MIT App Inventor project (can be found in the "Connectivity" section). I forgot to mention this in the video. Starting point for coding along for the Arduino is: https://github.com/mo-thunderz/Esp32BlePart1 Final code: https://github.com/mo-thunderz/BleMobileAppMitAppInventor MIT App Inventor: https://appinventor.mit.edu/ MIT App Inventor BLE extension: https://mit-cml.github.io/extensions/ BLE on ESP32 Tutorial: https://youtu.be/0Yvd_k0hbVs https://youtu.be/s3yoZa6kzus Might you have problems programming the ESP32, pls refer to: https://youtu.be/xQkE0eDImkE Have fun with the code and let me know in the comments below what application you are working on :-) Correction: 6:36 Under "Connectivity" add also the "BluetoothClient" to the project. This is needed so that the app can ask for the appropriate permissions when compiled. 32:06 I mis-spoke here. The correct number to multiply the third byte with is 65536 (2^16).

ESPs & Accessories: Your BLE Project Starter Kit

AI-recommended products based on this video

Loading...
DUEDUE Lenovo Tab M10 HD Case-Kickstand Heavy Duty Cover Shockproof Full Body Protective Tablet Case for Lenovo Tab M10 HD 2nd Gen 10.1 Inch 2020(TB-X306X/TB-X306F), Black

DUEDUE Lenovo Tab M10 HD Case-Kickstand Heavy Duty Cover Shockproof Full Body Protective Tablet Case for Lenovo Tab M10 HD 2nd Gen 10.1 Inch 2020(TB-X306X/TB-X306F), Black

(49)
$16.99
FREE delivery Tue, Jun 17 on your first order
Loading...
Magnetic Nasal Strips Starter Kit: Comfortable Nasal Breathing Support for Sleep, Helps Reduce Snoring Noise, Includes 60 Tabs (30 Uses) with 4 Sizes

Magnetic Nasal Strips Starter Kit: Comfortable Nasal Breathing Support for Sleep, Helps Reduce Snoring Noise, Includes 60 Tabs (30 Uses) with 4 Sizes

(40)
$17.99
FREE delivery Wed, Mar 18 on your first orderOnly 7 left in stock.
1K+ bought in past month
Loading...
Environet Hydroponic Growing Kit, Self-Watering Mason Jar Herb Garden Starter Kit Indoor, Windowsill Herb Garden, Grow Your Own Herbs from Organic Seeds (Basil)

Environet Hydroponic Growing Kit, Self-Watering Mason Jar Herb Garden Starter Kit Indoor, Windowsill Herb Garden, Grow Your Own Herbs from Organic Seeds (Basil)

(786)
$69.15$33.51
FREE delivery Jun 13 - 17
Loading...
Herb Garden Planter Indoor Kit 21Pcs Kitchen Herb Garden Starter Kit Growing Kit Including Wooden Box Burlap Pots Soil Discs Gardening Tools Unique Easter Birthday Christmas Gift Ideas for Women Mom

Herb Garden Planter Indoor Kit 21Pcs Kitchen Herb Garden Starter Kit Growing Kit Including Wooden Box Burlap Pots Soil Discs Gardening Tools Unique Easter Birthday Christmas Gift Ideas for Women Mom

(0)
$30.99
FREE delivery Jun 19 - Jul 3
Loading...
Bonsai Starter Kit – 1x Bonsai Tree | Complete Indoor Starter Kit for Growing Plants with Bonsai Seeds, Tools & Planters – Gardening Gifts for Women & Men
Best Seller

Bonsai Starter Kit – 1x Bonsai Tree | Complete Indoor Starter Kit for Growing Plants with Bonsai Seeds, Tools & Planters – Gardening Gifts for Women & Men

(243)
$19.99
FREE delivery Sat, Jun 14 on your first order
300+ bought in past month
Loading...
HAUSOURCE Full Bed Frame with 4 Storage Drawers Bed Frame Full Size with Headboard LED Lights Charging Station Metal Slats Platform Heavy-Duty Support No Box Spring Needed White

HAUSOURCE Full Bed Frame with 4 Storage Drawers Bed Frame Full Size with Headboard LED Lights Charging Station Metal Slats Platform Heavy-Duty Support No Box Spring Needed White

(1,086)
$329.99
Only 5 left in stock.
Loading...
VASAGLE LED Bed Frame Full Size, Storage Headboard and Charging Station, Full Bed Frame with 2 AC Outlets, 1 USB Port, 1 Type-C Port, No Box Spring Needed, Dove Gray and Camel Brown URMB842G01

VASAGLE LED Bed Frame Full Size, Storage Headboard and Charging Station, Full Bed Frame with 2 AC Outlets, 1 USB Port, 1 Type-C Port, No Box Spring Needed, Dove Gray and Camel Brown URMB842G01

(108)
$1,543.78
FREE delivery Jun 20 - Jul 2Only 3 left in stock.
Loading...
VASAGLE LED Bed Frame Full Size with Headboard and 4 Drawers, 1 USB Port and 1 Type C Port, Adjustable Upholstered Headboard, No Box Spring Needed, Dark Grey URMB822G71

VASAGLE LED Bed Frame Full Size with Headboard and 4 Drawers, 1 USB Port and 1 Type C Port, Adjustable Upholstered Headboard, No Box Spring Needed, Dark Grey URMB822G71

(655)
$269.99
FREE delivery Jul 2 - 9
Loading...
AGARTT Upholstered Platform Bed Frame Full Size with Headboard and Footboard/Wooden Slats Support/No Box Spring Needed/Easy Assembly,White Linen

AGARTT Upholstered Platform Bed Frame Full Size with Headboard and Footboard/Wooden Slats Support/No Box Spring Needed/Easy Assembly,White Linen

(1,030)
$188.99
FREE delivery Thu, Jun 19