In this project we will learn how to make a Bluetooth Scanner using a ESP32 TTGO to Display the Bluetooth devices around.
Step 1: What You Will Need
- TTGO ESP32
- Some Bluetooth device that you will try to locate like a smart bracelet ,etc
- Visuino program: Download Visuino
Step 2: Start Visuino, and Select the Arduino TTGO T-Display ESP32 Board Type
The Visuino: https://www.visuino.eu needs to be installed. Start Visuino as shown in the first picture Click on the “Tools” button on the Arduino component (Picture 1) in Visuino When the dialog appears, select “TTGO T-Display ESP32” as shown on Picture 2
Step 3: In Visuino Set Bluetooth LE
- Select TTGO T-Display ESP32 board and in the properties window expand “Modules>Bluetooth LE>Operations
- Click on the Operations 3 Dots
- In the Operations window drag “Search Bluetooth Devices” to the left side and in the properties window set “Active” to true
- Close the Operations window
Step 4: In Visuino Set Display
Select TTGO T-Display ESP32 board and in the properties window expand “Modules>Display>Orientation
- Set Orientation to:goRight
expand “Modules>Display>Text
- Set Size to 2
Step 5: In Visuino Add & Connect Components
- Add “Clock Generator” component
- Connect “ClockGenerator1” pin [Out] to “TTGO T-Display ESP32” > Search Devices pin [Scan]
- Connect “TTGO T-Display ESP32″ > Search Devices pin [Device Name] to “TTGO T-Display ESP32” > Display pin [In]
Step 6: Generate, Compile, and Upload the Code
In Visuino, at the bottom click on the “Build” Tab, make sure the correct port is selected, then click on the “Compile/Build and Upload” button.
Step 7: Play
If you power the TTGO ESP32 module it will scan for the Bluetooth devices, once it finds the devices it will display them on the LCD.
Congratulations! You have completed your project with Visuino. Also attached is the Visuino project, that I created for this Instructable, you can download it and open it in Visuino: https://www.visuino.eu
Download BLE-Scanner.zip