In this episode, Mark guides us through creating a network monitor using the ESP32 microcontroller. The project addresses two key needs: firstly, identifying the IP addresses of devices connected to the network, and secondly, tracking network access for security. Mark's motivation stems from the necessity to quickly access the IP address assigned to microcontrollers connected via Wi-Fi. Traditionally, obtaining this information required connecting the device to a computer, but Mark's solution eliminates this hassle.
Watch the Video:
The project's objectives are clear: design a user-friendly device that sends real-time notifications via Telegram whenever a device connects to the network. The ESP32's Wi-Fi capability makes it possible to configure the device without reprogramming it. Additionally, Mark explores the web browser programming feature, which allows users to program the ESP32 by simply connecting it to a computer and pointing their browser to a specific address. Mark also explains that the hardware for this project is minimal, requiring only an ESP32 module, power cable, and adapter.
Mark delves into the software aspects, detailing the setup of the Arduino sketch and essential libraries. The ESP32 framework's Espressif library is a prerequisite, along with specific libraries such as Arduino JSON for data handling. Mark walks us through the sketch's functions, including setup and loop functions, network monitoring, and message parsing. He then covers how to handle incoming messages from Telegram.
The video also showcases how to integrate Telegram notifications. Mark guides viewers through creating a Telegram bot using BotFather, obtaining a unique token key and user ID for authentication. He emphasizes the convenience of the Wi-Fi Manager, which facilitates network reconfiguration without the need for reprogramming. By grounding pin 13 during bootup, users can access the Wi-Fi Manager to enter credentials, making the device highly adaptable for different networks.
The result is an accessible network monitor that automatically sends notifications about connected devices through Telegram. Mark's clear and methodical explanations, coupled with the ESP32's versatile features, make this project a valuable addition to any maker's toolkit. With applications ranging from home network management to security enhancement, this element14 presents episode showcases the power of DIY technology in simplifying everyday tasks.
Bonus Content:
- GitHub: https://github.com/donnersm/NetworkMonitor
- ESP32 board library: https://donnersm.github.io/NetworkMonitor/flash.html
- Download Code
- Episode 572: How to Use an ESP32 & Camera to Know You've Got Mail!
Bill of Material:
Product Name | Manufacturer | Quantity | Buy Kit |
---|---|---|---|
Battery Retainer Clip | Bud Industries | 1 | Buy Now |
Additional Parts:
9V Battery PP3 format |
Top Comments