ESP32 TTGO Bluetooth Device Scanner

by RonFrtek in Circuits > Arduino

3635 Views, 8 Favorites, 0 Comments

ESP32 TTGO Bluetooth Device Scanner

2021-05-06_18-15-54.jpg

In this project we will learn how to make a Bluetooth Scanner using a ESP32 TTGO to Display the Bluetooth devices around.

What You Will Need

download (1).jpg
VisuinoAdvrtisementVersion8.jpg
smart-bracelet-droy.jpg

  • TTGO ESP32
  • Some Bluetooth device that you will try to locate like a smart bracelet ,etc
  • Visuino program: Download Visuino

Start Visuino, and Select the Arduino TTGO T-Display ESP32 Board Type

FRWQB80K1RVKKV9.LARGE.jpg
2020-12-07_1-41-57.jpg

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

In Visuino Set Bluetooth LE

FLZNEQFKMULQEDY.jpg
FVKMUIOKMULQEDM.jpg
FXBBSPJKMULQEDL.jpg

  • 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

In Visuino Set Display

2021-05-02_22-05-21.jpg

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

In Visuino Add & Connect Components

2021-05-02_22-07-54.jpg
2021-05-02_22-09-28.jpg

  • 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]

Generate, Compile, and Upload the Code

ttgo.png

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.

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