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

MoThunderz
MoThunderz
128.6 هزار بار بازدید - 3 سال پیش - IMPORTANT UPDATE 30.09.2022: MIT App
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/Esp32B...

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: Create a BLE app for your mobile phon...

Source code on Github:
https://github.com/mo-thunderz/Esp32B...

MIT App Inventor:
https://appinventor.mit.edu/

Might you have problems programming the ESP32, pls refer to:
Programming ESP32: how its done and i...

Check out part 2 and 3 as well:
Part 2: Bi-directional communication (send info from ESP32 to phone
Create your own App! Control an ESP32...

Part 3: How to make communication reliable
Create your own App! Control an ESP32...

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.
3 سال پیش در تاریخ 1400/02/06 منتشر شده است.
128,690 بـار بازدید شده
... بیشتر