Control LED Via Phone App – Arduino ESP32 Home Automation Using Matter Protocol

by RonFrtek in Circuits > Arduino

162 Views, 2 Favorites, 0 Comments

Control LED Via Phone App – Arduino ESP32 Home Automation Using Matter Protocol

Arduino ESP32 Home Automation Using Matter Protocol

In this easy Visuino tutorial, you’ll learn how to use the Matter protocol to control an LED on your Arduino Nano ESP32 directly from your smartphone — creating a simple and powerful smart home automation setup.

With Visuino’s visual programming, you can quickly connect your Arduino Nano ESP32 to a Matter network and control your LED with just a tap on your phone.

This tutorial will show you how to:

  1. Connect an Arduino Nano ESP32 to a Matter network for smart home automation
  2. Control an LED from your smartphone using the RainMaker app
  3. Use Visuino to set up IoT devices easily without coding
  4. Understand pairing codes, on/off control, and status feedback
  5. Build real, practical smart home projects in minutes

💡 Works with Google and other Matter-supported smart home systems!

Download the Visuino project file at the bottom and

🎥 Watch the full video to see it in action!

What You Will Need

FUR8ZHTLPQX8PCT.jpg
Screenshot_202510 RainMaker.jpg
VisuinoAdvrtisemen_ArduinoMatter-s.png
  1. Arduino Nano ESP32 (or any other ESP32 board)
  2. ESP RainMaker App Download
  3. Visuino program: Download Visuino



Start Visuino, and Select the Arduino Nano ESP32 Board Type

F5YMF5OLPQX8PFH.jpg
FY9P0TBLPQX8PF6.jpg

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 "Arduino Nano ESP32" as shown on Picture 2

In Visuino Set WiFi

FYM6N04LDEJBN64.jpg
FPV4C6VLDEJBN68.jpg
2025-10-31_16-08-04.jpg
  1. Select Arduino Nano ESP32 board and in the properties window expand "Modules>WiFi>Connect To Access Points
  2. Click on the Connect To Access Points 3 Dots
  3. In the AccessPoints window drag "WiFi Access Point" to the left side
  4. In the properties window set SSID (name of your WiFi hotspot or router)
  5. In the properties window set Password (password of your WiFi hotspot or router)
  6. Close AccessPoints window


In Visuino Set Matter

2025-10-31_16-11-25.jpg
2025-10-31_16-11-55.jpg

Now lets set the Matter

Select Arduino Nano ESP32 board and in the properties window expand

"Modules>Matter Click on the "End Points" 3 Dots button In the "End Points" window drag "On/Off Plugin" to the left side Close the "End Points" window

In Visuino Add & Connect Components

2025-10-31_16-18-49.jpg
2025-10-31_16-18-30.jpg
ArduinoMatter.jpeg

  1. Connect Arduino > On/Off Plugin1> Pin [Out] to Arduino Digital (LED) pin 13
  2. Connect Arduino > Matter> ManualPairingCode to to Arduino > Serial USB pin p[In]

Generate, Compile, and Upload the Project

F0001NYLPQX8PWH.jpg
  1. 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.


Getting the Code

2025-10-30_18-58-29.jpg

After Uploading the project to the board, switch to the serial tab select the correct port and click Connect button you should see the Matter pairing code displayed.

ESP RainMaker App

ESP RainMaker App logo.png
Screenshot_20251031-141552_ESP RainMaker.jpg
Screenshot_20251030-183811_ESP RainMaker.jpg
Screenshot_20251030-183824_ESP RainMaker.jpg
Screenshot_20251030-183837_ESP RainMaker.jpg
Screenshot_20251030-183845_Google Play services.jpg
Screenshot_20251030-183857_Google Play services.jpg
Screenshot_20251030-183922_Google Play services.jpg
Screenshot_20251030-185914_Google Play services.jpg
Screenshot_20251030-183930_Google Play services.jpg
Screenshot_20251030-185921_Google Play services.jpg
Screenshot_20251030-185935_Google Play services.jpg
Screenshot_20251030-185945_ESP RainMaker.jpg

Install the App and Add Your Device

On your smartphone, go to the Google Play Store or Apple App Store and search for “ESP RainMaker.”

Download and install the app, then open it and create an account (or log in if you already have one).

With your Arduino Nano ESP32 flashed with the Visuino Matter project and connected via the serial monitor, you’ll see a pairing code displayed.


Make sure your phone is connected to the same Wi-Fi network as your Arduino board.

Open the RainMaker app, go to the home screen, and tap “Add Device” (or the + icon) to start adding your device.

Select “I don’t have a QR code.”

Then choose Provisioning Transport → Matter.

Select your group, and then choose “Set up without QR code.”

Enter the Matter pairing code from the serial window,

tap “I’m ready,” and wait for the app to connect to the Arduino board.

When it’s successfully connected, you’ll see your new device appear in the app —

ready to control the LED!

💡 Tip: Make sure your phone is on the same Wi-Fi network as the ESP32. If the app can’t find your device, try reconnecting Wi-Fi or restarting the RainMaker app.

You can also in Visuino set "Erase All Flash Before Sketch Upload" to Enabled when you upload the project.


More about ESP RainMaker App

Play

After uploading the project to the Arduino Nano ESP32 board and setting the ESP RainMaker App you should be able to control the LED on the Arduino Nano ESP32 board from the App.

Congratulations! You have completed your LED project with Visuino.

Also attached is the Visuino project, that I created for this Tutorial. You can download and open it in Visuino: https://www.visuino.com