Maker.io main logo

Nearby Bluetooth Devices Scanner M5Stack Core ESP32

2023-07-31 | By M5Stack

License: General Public License Bluetooth / BLE Arduino M5Stack

* Thanks for the source code and project information provided by @ronfrtek

2

 

Story

 

In this tutorial we will learn how to make a Bluetooth Scanner using M5Stack Core ESP32 and Visuino, to Scan & Display the Nearby Bluetooth Devices.

Watch the video!

 Step 1: What You Will Need

2

3

Step 2: Start Visuino, and Select the M5 Stack Core Board Type

1

3

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 "M5 Stack Core" as shown on Picture 2

 

Step 3: In Visuino Add & Set Components

2

3

4

4

2

 

  • Add "Digital Multi Source" component
  • Select "M5 Stack Core" and in the properties window expand "Modules" > "Bluetooth LE" > "Operations" and click on the 3 dots button.
  • In "Operations" window drag "Search Bluetooth Devices" to the left side
  • Close the "Operations" window
  • Select "M5 Stack Core" and in the properties window expand "Modules" > "TFT Display" > "Elements" and click on the 3 dots button.
  • In the "Elements" window drag "Fill Screen" to the left side and close the window

 

Step 4: In Visuino Connect Components

2

3

  • Connect "M5 Stack Core" pin Out (B) to "DigitalMultiSource1" pin [In]
  • Connect "DigitalMultiSource1" pin [0] to "M5 Stack Core" > "FillScreen1" pin [Clock]"
  • Connect "DigitalMultiSource1" pin [1] to "M5 Stack Core" > "Search Devices" pin [Scan]"
  • Connect "M5 Stack Core" > pin "Device Name" to "M5 Stack Core" >"TFT Display" pin [In]

 Step 5: Generate, Compile, and Upload the Code

1 

制造商零件编号 K001-V27
ESP32 BASIC CORE IOT DEVELOPMENT
M5Stack Technology Co., Ltd.
Add all DigiKey Parts to Cart
TechForum

Have questions or comments? Continue the conversation on TechForum, DigiKey's online community and technical resource.

Visit TechForum