Wifi Connection Status Monitor ATOM Matrix ESP32 M5Stack

by RonFrtek in Circuits > Arduino

185 Views, 1 Favorites, 0 Comments

Wifi Connection Status Monitor ATOM Matrix ESP32 M5Stack

Wifi Connection Status Monitor ATOM Matrix ESP32 M5Stack

In this tutorial I will show you how to make a wifi connection status monitor using the atom matrix esp32.

If the connection to your wifi hotspot is active you will see a green light and as soon as the connection drops a red light will show.

This can be applied to any microcontroler board (ESP8266,ESP32,NodeMCU,etc) with the wifi. And the project can be very useful for environment where monitoring of the wifi connection is critical.

What You Will Need

images (10).jpg
2022-07-27_11-05-19.jpg
VisuinoAdvrtisementPortentaH7.jpg
Wifi-1-icon.png


Start Visuino, and Select the Atom Matrix Board Type

2022-07-27_11-15-03.jpg
2022-07-27_11-14-14.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 "Atom Matrix" as shown on Picture 2

In Visuino Add Components

2022-08-22_7-39-48.jpg
2022-08-22_7-39-29.jpg
  • Add "Detect Edge" component
  • Add "Timer (Single Pulse/Clock to Digital)" component

In Visuino Set Components

2022-08-22_7-41-39.jpg
2022-08-22_7-41-24.jpg
2022-08-22_7-43-53.jpg
2022-08-22_7-44-11.jpg
2022-08-22_7-44-29.jpg
2022-08-22_7-44-43.jpg
  • Select "Timer1" and in the properties window set "Interval (uS)" to 3000000
  • Select "DetectEdge1" and in the properties window set "Rising" to False
  • Select "M5 Stack ATOM Matrix" board in the properties window expand "Modules">"RGB Matrix">"Elements" and click on the 3 dots button
  • In the "Elements" window drag "Fill Screen" to the left side and in the Properties window set "Color" to aclGreen
  • In the "Elements" window drag another "Fill Screen" to the left side and in the Properties window set "Color" to aclRed
  • Close the "Elements" window




In Visuino Set the WiFi

2022-08-22_7-48-14.jpg
2022-08-22_7-48-28.jpg
2022-08-22_7-51-21.jpg
2022-08-22_7-51-34.jpg
2022-08-22_7-52-06.jpg
  • Select "M5 Stack ATOM Matrix" board in the properties window expand "Modules">"WiFi">"Operations" and click on the 3 dots button
  • In the "Operations" window drag "WiFi Reconnect" to the left side and close the window
  • Close the window
  • Select "M5 Stack ATOM Matrix" board in the properties window expand "Modules">"WiFi">Connect To Access Points and click on the 3 dots button
  • In the AccessPoints window drag "WiFi Access Point" to the left side
  • In the properties window set SSID (name of your WiFi hotspot or router)
  • In the properties window set Password (password of your WiFi hotspot or router)
  • Close AccessPoints window



In Visuino Connect Components

2022-08-22_7-54-09.jpg
  • Connect "M5 Stack ATOM Matrix" > "WiFi" pin [Remote Connected] to "M5 Stack ATOM Matrix" > "Fill Screen1" pin [Clock]
  • Connect "M5 Stack ATOM Matrix" > "WiFi" pin [Remote Connected] to "DetectEdge1" pin [In]
  • Connect "DetectEdge1" pin[Out] to "M5 Stack ATOM Matrix" > "Fill Screen2" pin [Clock]
  • Connect "DetectEdge1" pin[Out] to "Timer1" pin [Start]
  • Connect "Timer1" pin[Out] to "M5 Stack ATOM Matrix" > "WiFi" pin [Reconnect]

Generate, Compile, and Upload the Arduino Code

F24Q49GL626WFXY.jpg

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 ATOM Matrix module, The Display will show the Green color if the connection to the WiFi hotspot is Active or Red color if the connection dropped. As soon as the connection is established a Green light will show.

Congratulations! You have completed your project with Visuino. Also attached is the Visuino project, that I created for this tutorial, you can download it and open it in Visuino: https://www.visuino.eu