Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

ESP32 Wi-Fi Controlled Blinking LED

View and Edit Project In Cirkit DesignerImage of ESP32 Wi-Fi Controlled Blinking LED

Circuit Documentation

Summary

This circuit consists of an ESP32 microcontroller and a red LED. The ESP32 controls the LED, making it blink at regular intervals. The LED's anode is connected to one of the GPIO pins of the ESP32, while the cathode is connected to the ground (GND) pin of the ESP32.

Component List

LED: Two Pin (red)

ESP32 (30 pin)

Wiring Details

LED: Two Pin (red)

ESP32 (30 pin)

Code Documentation

ESP32 Code

int led = 34;

void setup() {
  // put your setup code here, to run once:
  pinMode(led, OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
  digitalWrite(led, HIGH);
  delay(500);
  digitalWrite(led, LOW);
  delay(500);
}

This code initializes pin D34 as an output and toggles it between HIGH and LOW states with a delay of 500 milliseconds, causing the LED to blink on and off at a 1-second interval.