Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Project Documentation

ESP32 and NRF24L01 Based Wireless Control System

Image of ESP32 and NRF24L01 Based Wireless Control System

Circuit Documentation

Summary

This circuit appears to be designed for wireless communication using NRF24L01 transceiver modules, controlled by ESP32 microcontrollers. The circuit includes user input interfaces in the form of pushbuttons and visual feedback through LEDs. Power management is handled by AMS1117 voltage regulators, and a relay module is included for controlling higher power loads. The circuit is powered by a combination of a 12V power supply and 18650 Li-ion batteries. Additionally, there are provisions for sound output through a piezo speaker and user control via rocker switches.

Component List

Microcontrollers

  • ESP32 Devkit V1: A microcontroller with Wi-Fi and Bluetooth capabilities, used for controlling various components and handling wireless communication.

Communication Modules

  • NRF24L01: A 2.4GHz wireless transceiver module for communication between devices.

Power Components

  • AMS1117: A voltage regulator used to step down voltage to a stable output.
  • 18650 Li-ion Battery x 2: Rechargeable batteries providing power to the circuit.
  • 12v power supply: Provides power to the circuit.
  • Micro USB to Cable (2 Pin): Used for power input through a micro USB connector.

User Interface Components

  • Pushbutton: A momentary switch used for user input.
  • Rocker Switch: A switch used to control power flow in the circuit.
  • LED: Two Pin (red/green): Light Emitting Diodes used as visual indicators.

Passive Components

  • Resistor: Used to limit current and voltage in the circuit.
  • Electrolytic Capacitor: Used for filtering and stabilizing voltage.

Output Components

  • 5v relay: An electromechanical switch used for controlling high power devices.
  • Piezo Speaker: An electronic device that emits sound when an electric signal is applied.

Miscellaneous

  • Comment: Textual annotations for additional information or instructions.

Wiring Details

ESP32 Devkit V1

  • 3V3: Connected to NRF24L01 VCC (3V) and AMS1117 Volt Out.
  • GND: Common ground with NRF24L01, Pushbutton, Resistor, and AMS1117.
  • D15, D2, RX2, TX2, D5, D18, D19, D21, RX0, TX0, D22, D23, EN, VP, VN, D34, D35, D25, D26, D27, D14, D12, D13, VIN: Various GPIOs used for interfacing with other components.

NRF24L01

  • MOSI, CSN, CE, SCK, MISO: SPI interface connected to corresponding ESP32 Devkit V1 pins.
  • VCC (3V): Power input from ESP32 Devkit V1 3V3 pin.
  • GND: Ground connection shared with ESP32 Devkit V1.

Pushbutton

  • Pin 1: Connected to ground through a resistor.
  • Pin 2: Not connected.
  • Pin 3: Connected to an ESP32 Devkit V1 GPIO for input detection.
  • Pin 4: Not connected.

LED: Two Pin (red/green)

  • Anode: Connected to ESP32 Devkit V1 GPIOs through resistors.
  • Cathode: Connected to ground.

Resistor

  • Pin1, Pin2: Connected in series with LEDs and pushbuttons to limit current.

AMS1117

  • Volt Out: Provides regulated voltage to ESP32 Devkit V1 and other components.
  • GND: Common ground connection.
  • Volt In: Connected to 12v power supply and 18650 Li-ion Battery x 2.

Electrolytic Capacitor

  • +: Connected to the positive side of the power supply and AMS1117 Volt In.
  • -: Connected to the negative side of the power supply and AMS1117 GND.

5v relay

  • Normally Open, Common terminal, Normally Closed: Used for switching external devices.
  • In: Control input from ESP32 Devkit V1 or other logic signals.
  • GND: Ground connection.
  • VCC: Power input from AMS1117 Volt Out.

Piezo Speaker

  • Pin1, Pin2: Connected to ESP32 Devkit V1 GPIO for sound output.

Rocker Switch

  • 1, 2: Used to control the connection between the power source and the circuit.

Documented Code

No code was provided for the microcontrollers in the circuit. The code would typically include initialization of the GPIO pins, setup of the SPI interface for communication with the NRF24L01 modules, handling of button presses, and control logic for the LEDs, relay, and piezo speaker.