Board That You Can Upload Programs Through Bluetooth
The ESP32 comes with Wi-Fi, Bluetooth Depression Free energy and Bluetooth Classic. In this tutorial, you'll acquire how to use ESP32 Bluetooth Classic with Arduino IDE to exchange information between an ESP32 and an Android smartphone.
We'll control an ESP32 output, and ship sensor readings to an Android smartphone using Bluetooth Classic.
Notation: this project is only compatible with Android smartphones.
Watch the Video Tutorial
You can watch the video tutorial or keep reading this page for the written instructions.
Bluetooth Classic with ESP32
At the moment, using Bluetooth Classic is much more simpler than Bluetooth Low Energy. If you've already programmed an Arduino with a Bluetooth module similar the HC-06, this is very similar. It uses the standard series protocol and functions.
In this tutorial, we'll start by using an instance that comes with the Arduino IDE. So, we'll build a simple project to exchange data betwixt the ESP32 and your Android smartphone.
Parts Required
To follow this tutorial, you need the following parts:
- ESP32 DOIT DEVKIT V1 Board (read Best ESP32 evolution boards)
- Android Smartphone with Bluetooth
- 5mm LED
- 330 Ohm resistor
- DS18B20 temperature sensor
- 4.7k Ohm resistor
- Jumper wires
- Breadboard
Yous can employ the preceding links or go direct to MakerAdvisor.com/tools to find all the parts for your projects at the best price!
Bluetooth Terminal Awarding
To proceed with this tutorial, you lot need a Bluetooth Terminal application installed in your smartphone.
We recommend using the Android app "Serial Bluetooth Final" available in the Play Store.
Serial to Series Bluetooth
We'll program the ESP32 using Arduino IDE, so brand certain y'all have the ESP32 add-on installed earlier proceeding:
- Windows: instructions – ESP32 Board in Arduino IDE
- Mac and Linux: instructions – ESP32 Board in Arduino IDE
Open your Arduino IDE, and get to File > Examples > BluetoothSerial > SerialtoSerialBT.
The following code should load.
//This example code is in the Public Domain (or CC0 licensed, at your pick.) //Past Evandro Copercini - 2018 // //This example creates a span between Serial and Classical Bluetooth (SPP) //and also demonstrate that SerialBT accept the same functionalities of a normal Serial #include "BluetoothSerial.h" #if !defined(CONFIG_BT_ENABLED) || !divers(CONFIG_BLUEDROID_ENABLED) #fault Bluetooth is not enabled! Please run `make menuconfig` to and enable it
0 Response to "Board That You Can Upload Programs Through Bluetooth"
Post a Comment