Create your own App! Control an ESP32 (Arduino) via Bluetooth - Part 1

MoThunderz April 26, 2021
Video Thumbnail
MoThunderz Logo

MoThunderz

View Channel

About

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

Video Description

IMPORTANT UPDATE 30.09.2022: MIT App inventor updated the BluetoothClient without backward compatibility. As a result, the .aia file gave an error when loaded into MIT app inventor: "A problem occurred while loading this project. No upgrade strategy exists for BluetoothClient from version 6 to 7". I updated to the new BluetoothClient, but then I got the following error "need android.permission.BLUETOOTH_CONNECT permission". It turned out that the code now needs to ask for permission to use Bluetooth. Both problems are now fixed on my Github page. Please download the source code from my Github page to see how this is done. The rest of the video with the communication to the ESP32 is still accurate: https://github.com/mo-thunderz/Esp32BluetoothApp Summary: In this video I show you how to create your own Android App to control an ESP32 (Arduino platform) through Bluetooth (not suitable for IOS). Please make sure your ESP32 has Bluetooth to make this work. I used the ESP32-WROOM-32D. For creation of the app I use the MIT app inventor in combination with the MIT AI2 Companion. Note that this code will only work on Android. The reason is that BluetoothSerial does not work on an Iphone. For an Iphone only BLE works: https://youtu.be/RvbWl8rZOoQ Source code on Github: https://github.com/mo-thunderz/Esp32BluetoothApp MIT App Inventor: https://appinventor.mit.edu/ Might you have problems programming the ESP32, pls refer to: https://youtu.be/xQkE0eDImkE Check out part 2 and 3 as well: Part 2: Bi-directional communication (send info from ESP32 to phone https://youtu.be/OvWd_xZ12E4 Part 3: How to make communication reliable https://youtu.be/eP35zgZnQY4 Have fun with the code and let me know in the comments below what application you are working on :-) Correction: 09:33 NOTE that MIT App inventor updated the BluetoothClient without backward compatibility. As a result, the blocks will look slightly different in the current implementation. See the top of the comments of this video for more details.

You May Also Like

Master ESP32 Projects Today

AI-recommended products based on this video

Loading...
LISEN USB C to USB C Cable 240W, [6.6ft 2Pack]Nylon Braided Type C Cable Fast Charge for iPhone 17 Pro Max USBC Fast Charging Cord for iPhone 17 16 Pro Air Samsung Macbook iPad Air 4/5 Xbox, Midnight
Best Seller

LISEN USB C to USB C Cable 240W, [6.6ft 2Pack]Nylon Braided Type C Cable Fast Charge for iPhone 17 Pro Max USBC Fast Charging Cord for iPhone 17 16 Pro Air Samsung Macbook iPad Air 4/5 Xbox, Midnight

(4,565)
$17.99
Prime
1K+ bought in past month
Loading...
Syntech Link Cable 16FT for PCVR Compatible with Oculus/Quest 3/Meta Quest 3S, Quest2/Pro/Pico 4/Ultra Accessories and PC/SteamVR, High Speed PC Data Transfer, USB 3.0 to USB C Cable for VR Headset
Best Seller

Syntech Link Cable 16FT for PCVR Compatible with Oculus/Quest 3/Meta Quest 3S, Quest2/Pro/Pico 4/Ultra Accessories and PC/SteamVR, High Speed PC Data Transfer, USB 3.0 to USB C Cable for VR Headset

(19,554)
$24.99
FREE delivery Tue, Jun 17 on your first order
300+ bought in past month
Loading...
USB to USB C Cable for iPhone 16/15 [MFi Certified] Carplay Cable Car Charger Cord 6FT/4Pack Compatible with iPhone 16/16 Plus/16 Pro/16 Pro Max, iPhone 15/15 Plus/15 Pro/15 Pro Max,iPad Air/Mini

USB to USB C Cable for iPhone 16/15 [MFi Certified] Carplay Cable Car Charger Cord 6FT/4Pack Compatible with iPhone 16/16 Plus/16 Pro/16 Pro Max, iPhone 15/15 Plus/15 Pro/15 Pro Max,iPad Air/Mini

(1,176)
$16.97
FREE delivery Sat, Jun 14 on your first order
100+ bought in past month
Loading...
Car Carplay Cable for iPhone 16/16 Pro Max/16 Plus/15 Pro Max Plus, 3.3ft USB to USB C Cable Compatible with Apple Car Play iPhone 16 15 Cord, USB A to USB C Car Charger Cable Cord (Black)

Car Carplay Cable for iPhone 16/16 Pro Max/16 Plus/15 Pro Max Plus, 3.3ft USB to USB C Cable Compatible with Apple Car Play iPhone 16 15 Cord, USB A to USB C Car Charger Cable Cord (Black)

(2)
$8.99
FREE delivery Sun, Jun 15 on your first order
Loading...
Demon Mechanic Elite X Ski Tuning Kit & Snowboard Tuning Kit with Ski Wax Iron, Ski and Snowboard Wax & Demon Elite X Ski and Snowboard Edge Tuner w/Diamond Files

Demon Mechanic Elite X Ski Tuning Kit & Snowboard Tuning Kit with Ski Wax Iron, Ski and Snowboard Wax & Demon Elite X Ski and Snowboard Edge Tuner w/Diamond Files

(181)
$243.64
FREE delivery Aug 26 - 29
Loading...
17 in 1 Complete Drinking Water Testing Kit - 100 Strips + 4 Bacteria Tests - Tap and Well Water Test Kit, Easy to Test and Read for Hardness, Lead, Iron, Fluoride, pH, Copper, Bacteria and More

17 in 1 Complete Drinking Water Testing Kit - 100 Strips + 4 Bacteria Tests - Tap and Well Water Test Kit, Easy to Test and Read for Hardness, Lead, Iron, Fluoride, pH, Copper, Bacteria and More

(46)
$27.99
Prime
500+ bought in past month
Loading...
Water Testing Kits for Drinking Water: 125 Strips 16 in 1 Drinking Water Test Kit, TESPERT Water Test Strips with Hardness, PH, Mercury, Lead, Iron, Copper, Chlorine, Cyanuric Acid

Water Testing Kits for Drinking Water: 125 Strips 16 in 1 Drinking Water Test Kit, TESPERT Water Test Strips with Hardness, PH, Mercury, Lead, Iron, Copper, Chlorine, Cyanuric Acid

(1,158)
$29.57
FREE delivery Thu, Aug 14 on your first order
50+ bought in past month
Loading...
AstroAl Digital Multimeter 2000, Multimeter Tester with Volt Amp Ohm, Multi Meter Measures Voltage, Current, Resistance, Continuity and Diode, Electrical Tester with Test Leads, Backlight LCD Display
Best Seller

AstroAl Digital Multimeter 2000, Multimeter Tester with Volt Amp Ohm, Multi Meter Measures Voltage, Current, Resistance, Continuity and Diode, Electrical Tester with Test Leads, Backlight LCD Display

(48,000)
$19.54
FREE delivery Mon, Aug 25 on your first order
2K+ bought in past month
Loading...
OVERTURE PLA Filament 1.75mm PLA 3D Printer Filament, 1kg Cardboard Spool (2.2lbs), Dimensional Accuracy +/- 0.02mm, Fit Most FDM Printer (White 1-Pack)

OVERTURE PLA Filament 1.75mm PLA 3D Printer Filament, 1kg Cardboard Spool (2.2lbs), Dimensional Accuracy +/- 0.02mm, Fit Most FDM Printer (White 1-Pack)

(18,255)
$26.99
FREE delivery Sat, Jun 14 on your first order
200+ bought in past month
Loading...
SUNLU High Speed PLA Meta Filament, 4KG PLA 3D Printer Tougher Filament 1.75mm, Dimensional Accuracy +/- 0.02 mm, 4kg Total, 1kg per Spool, Pack of 4, Sky Blue+Mint Green+Sunny Orange+Lemon Yellow

SUNLU High Speed PLA Meta Filament, 4KG PLA 3D Printer Tougher Filament 1.75mm, Dimensional Accuracy +/- 0.02 mm, 4kg Total, 1kg per Spool, Pack of 4, Sky Blue+Mint Green+Sunny Orange+Lemon Yellow

(2,468)
$62.99