Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
Skip to content
World desk3 min

Two ESP32 Microcontrollers Can Communicate Using One LED Each

SecurePair uses one LED on each ESP32 board for visible-light pairing and messaging, with PacketLED handling the optical link and SecurePair providing encryption.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Two ESP32 boards can exchange data through visible light using one ordinary LED on each board. In the SecurePair demonstration, each LED both emits and detects light: the boards blink at one another to pair, then use the same optical link to send messages. SecurePair handles pairing and encrypted messaging; PacketLED provides the LED communication path.

How do two ESP32s communicate using one LED?

An LED is usually treated as an output, but it can also respond to incoming light and act as a simple light sensor. PacketLED uses that two-way behavior: an LED on one board sends a signal by blinking, while the other board’s LED detects the changing light. Each board has its own LED, and the LEDs face each other across a clear line of sight.

This is visible-light communication, not a wireless radio link. The underlying idea has earlier published precedent: a 2003 Mitsubishi Electric Research Laboratories report, “Very Low-Cost Sensing and Communication Using Bidirectional LEDs”, describes bidirectional LED sensing and communication. That history does not mean SecurePair uses the same implementation.

How the pairing demonstration works

  1. Start pairing on both ESP32 boards.
  2. Point the LEDs toward each other, a few centimeters apart, and watch the synchronized code: a sequence of 20 short and long blinks.
  3. Compare the codes shown by the two boards. Confirm on both if they match; reject the pairing if they differ.

The comparison gives the people operating the boards a chance to spot a mismatch before accepting the pairing. The project says the resulting key is saved across resets and that encrypted, authenticated messages include replay protection.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
ESP-WROOM-32 ESP32 ESP-32S Development Board 2.4GHz Dual-Mode WiFi + Bluetooth Dual Cores Microcontroller Processor Integrated with Antenna RF AMP Filter AP STA Compatible with Arduino IDE (3PCS)
  • 2.4GHz Dual Mode WiFi + Bluetooth Development Board
  • Support LWIP protocol, Freertos
  • SupportThree Modes: AP, STA, and AP+STA
  • Ultra-Low power consumption, Compatible with Arduino IDE
  • ESP32 is a safe, reliable, and scalable to a variety of applications

What SecurePair does—and what it does not establish

SecurePair is the pairing and encrypted-message library; PacketLED is one way to carry its communication. The project describes its implementation as using X25519 for key agreement, HKDF-SHA256 for key derivation, AES-256-GCM for message encryption and authentication, and replay protection. These are claims in the project documentation, not independently validated findings.

The project states: “The protocol has not yet been reviewed by an independent cryptographer.” That is a significant limitation: the documentation describes a security design, but readers should not treat the demonstration as an independently audited or production-ready security system.

Rank #2
ELEGOO 3PCS ESP-32 Dev Boards, ESP-WROOM-32, USB-C, WiFi Bluetooth 4.2
  • Dual-Core Performance Up to 240 MHz: Run sensor processing, wireless communication, automation logic and connected-device tasks on a 32-bit dual-core ESP32 platform designed for responsive embedded and IoT projects
  • Built-in Wi-Fi and Bluetooth 4.2: Connect to 2.4 GHz Wi-Fi networks or use Bluetooth Classic and BLE for wireless sensors, smart devices, remote controls, home automation and other connected projects
  • Flexible Power-Saving Modes: ESP32 power-management features support dynamic clock scaling and low-power operating modes, helping developers reduce energy use in compatible sensing, monitoring and connected-device applications, suitable for battery-powered Internet of Things (IoT) devices.
  • USB-C Programming with CP2102: Connect through USB-C for power, sketch uploads and serial monitoring, while GPIO, UART, SPI and I2C interfaces support sensors, displays, motor drivers and other modules (USB-C cable not included)
  • Over-the-Air Update Support: Configure OTA functionality through a compatible ESP-32 software framework to update deployed firmware over Wi-Fi without reconnecting the board by USB for every revision

LED, ESP-NOW, and LoRa transports compared

The SecurePair README lists three transport options and the following documented specifications. The figures are project-stated values, not independently measured benchmarks.

Transport Project-stated range Message size Notes
PacketLED over visible light A few centimeters to 2 m, line of sight 35 bytes For pairing, the README recommends placing the LEDs a few centimeters apart; achievable distance depends on the LEDs.
ESP-NOW Tens of meters 217 bytes Boards use a Wi-Fi channel shared by the devices.
LoRa Kilometers 216 bytes The README lists an SX1276/78 module, but says LoRa has not yet been tried on hardware.

These options are not interchangeable in every setup. LED communication requires alignment and line of sight; ESP-NOW uses radio and a shared Wi-Fi channel; LoRa is an optional radio transport whose hardware operation the project had not tested according to its documentation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
ESP-WROOM-32 ESP32 ESP-32S Development Board 2.4GHz Dual-Mode WiFi + Bluetooth Dual Cores Microcontroller Processor Integrated with Antenna RF AMP Filter AP STA Compatible with Arduino IDE (1 PCS)
  • 2.4GHz Dual Mode WiFi + Bluetooth Development Board
  • Support LWIP protocol, Freertos;ESP32 is a safe, reliable, and scalable to a variety of applications
  • SupportThree Modes: AP, STA, and AP+STA
  • Ultra-Low power consumption, Compatible with Arduino IDE
  • 1PCS 30Pin ESP32 Development Board 2.4GHz WiFi Dual Cores Microcontroller Integrated with Antenna RF Low Noise Amplifiers Filters

What hardware and software are required?

For the LED-pairing example, the SecurePair README calls for an ESP32 board running Arduino-ESP32 core 3.x, one LED and resistor per board, a button or other yes/no input per board, and PacketLED version 1.1.0 or later. The button supplies the human confirmation step. Avoid assigning it to a boot-strapping pin: holding such a pin during reset can put the board into download mode.

The repository reports hardware testing on ESP32, ESP32-C3, and ESP32-C6 boards with Arduino-ESP32 core 3.3.12. It also identifies ESP32-S2, S3, C3, C5, C6, H2, and P4 as having the HMAC peripheral required for its encrypted-storage option. These are project-documentation statements, so check the current README and board details before choosing hardware.

Rank #4
Arduino Nano ESP32 with Headers [ABX00083] - ESP32-S3, USB-C, Wi-Fi, Bluetooth, HID Support, MicroPython Compatible for IoT & Embedded Projects
  • Powerful ESP32-S3 Microcontroller: The Arduino Nano ESP32 is powered by the ESP32-S3 chip, featuring a dual-core Xtensa 32-bit LX7 processor running at up to 240 MHz. This high-performance microcontroller offers excellent computational power for IoT, wireless communication, and advanced embedded applications like real-time data processing, voice recognition, and machine learning at the edge.
  • Comprehensive Wireless Connectivity: The board supports both Wi-Fi and Bluetooth 5.0, enabling seamless communication with other devices, networks, and cloud platforms. Whether you're building a smart home system, wearable tech, or remote sensors, the Nano ESP32 offers reliable and high-speed connectivity for wireless data transfer and control.
  • USB-C for Power and Programming: With the modern USB-C port, the Nano ESP32 ensures faster programming, better power delivery, and a more stable connection compared to traditional micro-USB boards. This makes it easier to work with, especially in development and prototyping stages.
  • HID Support for Advanced Applications: The board supports Human Interface Device (HID) profiles, making it ideal for projects that require integration with keyboards, mice, or other HID peripherals. This feature allows you to create custom input devices, virtual controllers, or even USB-based projects that interact directly with computers and other devices.
  • MicroPython Compatible: The Arduino Nano ESP32 is compatible with MicroPython, a streamlined version of Python designed for embedded systems. This makes the board perfect for rapid prototyping, educational projects, and developers who prefer Python over C/C++ for ease of use and faster development cycles.

The smallest listed example pairs over light without sending messages. Other examples send messages over the LED or ESP-NOW, and one adds an SX1276/78 LoRa module. The README labels LoRa hardware testing as not yet done. The library is documented as beta version 0.5.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Where the project stands

Hackaday’s Jenny List reported on the demonstration on October 5, 2026. The project README, accessed October 7, 2026, describes hardware tests of LED pairing, ESP-NOW pairing, LED and ESP-NOW messaging, pairing with a button held at startup, and encrypted storage on ESP32, ESP32-C3, and ESP32-C6 boards. It does not report independent cryptographic review, and its LoRa transport remains untested on hardware.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
ELEGOO ESP-32 Super Starter Kit with Tutorial Compatible with Arduino IDE
  • Powerful ESP-32 Board: Unlock the world of Internet of Things (IoT) and advanced electronics with the heart of this kit: the ESP-32 board. It features a powerful dual-core processor, integrated Wi-Fi and Bluetooth 4.2, making it perfect for building connected, smart devices that communicate with your phone or the cloud. It's fully compatible with the Arduino IDE for easy programming.
  • Super Starter Kit: This kit contains over 35 different modules and electronic components, including sensors, displays, motors, and input devices. From LEDs and buttons to an OLED screen, servo motor, and keypad, you have everything needed to explore a vast range of projects in one box.
  • Step by Step Online Tutorial: Jump right in with our detailed, beginner-friendly tutorial. Access 30+ projects with complete code, clear circuit diagrams, and step-by-step instructions. Learn the fundamentals of electronics, coding, and how to utilize the ESP-32's unique capabilities without any prior experience.
  • Hands-on Learning for All Skill Levels: Perfect for students, makers, engineers, and hobbyists. Start with basic circuits and coding, then progress to intermediate and advanced IoT applications. Build practical projects like weather stations, smart home controllers, remote-controlled devices, and interactive gadgets. The skills you learn are the foundation for real-world innovation.
  • Quality & Great Support: Elegoo is committed to quality. We provide a clear, detailed tutorial guide, refined code, and a well-organized component kit. All modules are carefully selected for reliability and ease of use. Our dedicated technical support team and active online community are ready to help you succeed in your learning journey.

For the project’s implementation details and examples, see the SecurePair repository.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.