filmov
tv
Create your own App! Control an ESP32 (Arduino) via Bluetooth - Part 1
![preview_player](https://i.ytimg.com/vi/aM2ktMKAunw/sddefault.jpg)
Показать описание
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
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:
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.
Source code on Github:
MIT App Inventor:
Might you have problems programming the ESP32, pls refer to:
Check out part 2 and 3 as well:
Part 2: Bi-directional communication (send info from ESP32 to phone
Part 3: How to make communication reliable
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.
"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
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:
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.
Source code on Github:
MIT App Inventor:
Might you have problems programming the ESP32, pls refer to:
Check out part 2 and 3 as well:
Part 2: Bi-directional communication (send info from ESP32 to phone
Part 3: How to make communication reliable
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.
Комментарии