filmov
tv
Create your own App! Control an ESP32 (Arduino) via Bluetooth - Part 3
Показать описание
IMPORTANT UPDATE (30.09.2022): MIT App Inventor updated their Bluetooth library without backward compatibility. Might you have downloaded this code from my Github page before 30.09.2022, please download the updated version. Changes only affect the general Bluetooth connection stuff discussed in Part 1.
Part 1 and 2 of this series focused on realization of a bi-directional Bluetooth communication channel between an ESP32 and your phone (using MIT app inventor). However, the length of the communication was limited to a single byte. In part 3 I will show you to send over values larger than 256 values and introduce a simple protocol to send over an ID with an associated value. This is practical for sending over control and/or sensor values. Might you have missed part 1 and 2:
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. Code for this will follow shortly...
If you want to code along, this is the starting point:
For the final code, please refer to:
MIT App Inventor:
Might you have problems programming the ESP32, pls refer to:
Have fun with the code and let me know in the comments below what application you are working on :-)
Part 1 and 2 of this series focused on realization of a bi-directional Bluetooth communication channel between an ESP32 and your phone (using MIT app inventor). However, the length of the communication was limited to a single byte. In part 3 I will show you to send over values larger than 256 values and introduce a simple protocol to send over an ID with an associated value. This is practical for sending over control and/or sensor values. Might you have missed part 1 and 2:
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. Code for this will follow shortly...
If you want to code along, this is the starting point:
For the final code, please refer to:
MIT App Inventor:
Might you have problems programming the ESP32, pls refer to:
Have fun with the code and let me know in the comments below what application you are working on :-)
Комментарии