Getting Started With ESP 32 Board +LED

Introduction: Getting Started With ESP 32 Board +LED

About: pursuing Bachelors in Electronics and Communication at Chandigarh University

I am using ESP 32 devkit board for my projects. ESP 32 board have a dual processor chip WROOM 32 which have inbuilt bluetooth and wifi modules in it. I bought ESP 32 at a very low price from amazon of around 600 rupees. Link to buy components for making this project is given next to each components in the Components required section.

Components required: -

1. ESP32 board : - https://amzn.to/3iXIcCV

2. Resistor of 220 ohms :- https://amzn.to/2ZuPNRN

3. LED :- https://amzn.to/3472iEP

4. Jumper wires : - https://amzn.to/3iqdBxM

5.Breadboard(optional) - https://amzn.to/3kdp4Rt

6. Arduino IDE software installed in your PCs

Setting up your Arduino IDE before uploading code in ESP32 is very important : - https://www.instructables.com/id/Setting-Up-Arduino-IDE-for-ESP32-Board/

Step 1: Circuit Schematic for Connecting LED With ESP 32

GPIO23 - - > LED anode

GND - - > LED cathode

After connecting all components next step is to upload code to ESP32 board

Step 2: How to Upload Code in ESP 32 Board

1. Click on upload.

2. If no error. At the bottom of Arduino IDE, when we get message Connecting ...,...,

3. Press Boot button on ESP 32 board till you get the message done uploading.

4. After you code is uploaded successfully. Press enable button to restart or start code uploaded on ESP32 board.

Step 3: Code for LED and ESP32 Board

/*

Blink *

/ ledPin refers to ESP32 GPIO 23

const int ledPin = 23;

// the setup function runs once when you press reset or power the board

void setup()

{

// initialize digital pin ledPin as an output. pinMode(ledPin, OUTPUT);

}

// the loop function runs over and over again forever

void loop()

{

digitalWrite(ledPin, HIGH); // turn the LED on (HIGH is the voltage level)

delay(1000); // wait for a second

digitalWrite(ledPin, LOW); // turn the LED off by making the voltage LOW

delay(1000); // wait for a second

}

Be the First to Share

    Recommendations

    • DIY Summer Camp Contest

      DIY Summer Camp Contest
    • Metal Contest

      Metal Contest
    • First Time Author Contest

      First Time Author Contest

    Comments