Project 7 : Connecting ESP32 and our smartphone with bluetooth connection
๐๐๐๐๐๐ ๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐
Starting a project is no small feat,
It takes a plan and lots of heat.
Gather ideas and get them neat,
Then put them down, don't miss a beat.
With every step, keep moving forward,
Don't let obstacles make you cornered.
Stay focused and you'll be rewarded,
A successful project is what's ordered.
๐๐๐ ๐ก๐ข๐ฃ๐ค๐ฅ๐ฆ๐ง๐จ๐ฉ๐ช๐ซ๐ฌ๐ญ๐ฎ๐ฏ๐ฐ๐ฑ๐ฒ๐ณ๐ด๐ต๐ถ๐ธ๐ท๐น๐บ๐ป
๐๐๐ Hallo guys, welcome back to my blogspot. This time we will create an ESP32 project with bluetooth. There are two project variations that will be discussed, the first is ESP32 Bluetooth Classic with Arduino IDE and ESP32 Bluetooth Low Energy (BLE) on Arduino IDE. These two projects are quite interesting projects because we can do many things with a Bluetooth connection between our ESP32 and our device (in this project, our smartphone). To make a connection between the ESP32 and our smartphone, we need an intermediary application, namely the Serial Bluetooth Terminal application, which we can download in the playstore. For that without lingering any longer we just go into the project! ๐
▀▄▀▄▀▄========================================================▀▄▀▄▀▄
๐SET UP๐
1.ESP32 Bluetooth Classic with Arduino IDE
๐ฃ STEP BY STEP ๐ฃ
11.Then, go back to the Serial Bluetooth Terminal. Click the icon at the top to connect to the ESP32. You should get a “Connected” message.
15.You should instantly receive that message in the Serial Bluetooth Terminal App (In this case i send "Hello from PC" twice).
Exchange Data using Bluetooth Serial
๐ฃSTEP BY STEP๐ฃ
5.When you receive the following message on your serial monitor on Tools > Serial Monitor with baud 115200, you can go to your smartphone and connect with the ESP32.
๐ MODIFIED PROJECT ๐
๐ฃSTEP BY STEP๐ฃ
2.ESP32 Bluetooth Low Energy (BLE) Project
【๏ผฅ๏ผณ๏ผฐ๏ผ๏ผ ๏ผข๏ผฌ๏ผฅ ๏ผณ๏ฝ ๏ฝ๏ฝ๏ฝ ๏ฝ】
๐ฃSTEP BY STEP๐ฃ
【๏ผด๏ฝ ๏ฝ๏ฝ๏ฝ๏ฝ๏ฝ ๏ฝ๏ฝ๏ฝ ๏ผฅ๏ผณ๏ผฐ๏ผ๏ผ ๏ผข๏ผฌ๏ผฅ ๏ผณ๏ฝ ๏ฝ๏ฝ๏ฝ ๏ฝ ๏ฝ๏ฝ๏ฝ๏ฝ ๏ผณ๏ฝ๏ฝ๏ฝ๏ฝ๏ฝ๏ฝ๏ฝ๏ฝ๏ฝ 】
๐ฃSTEP BY STEP๐ฃ
3.ESP32 BLE Scanner
๐ฃSTEP BY STEP๐ฃ
From the red boxed image above, we can see that our ESP32 (with BLE_scan sketch) is scanning and searching to make connections with other devices to our ESP32. In this case, it can be seen that another ESP32 (with BLE_server) that functions as a server is detected by our ESP32 (with BLE_scan) with a device name that matches the name we have previously setup, namely "another ESP32 device".





Comments
Post a Comment