[go: up one dir, main page]

0% found this document useful (0 votes)
98 views3 pages

Experiment - 2.1

The document summarizes an experiment using an ESP32 microcontroller board to control an LED by blinking it on and off. It explains that the ESP32 has WiFi and Bluetooth capability making it suitable for IoT applications. The code written in the Arduino IDE toggles the state of the LED connected to pin 2 of the ESP32 each second by setting the pin to HIGH or LOW. The student observed the LED blinking and learned about programming the ESP32 board and basics of IoT.

Uploaded by

Ozzy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
98 views3 pages

Experiment - 2.1

The document summarizes an experiment using an ESP32 microcontroller board to control an LED by blinking it on and off. It explains that the ESP32 has WiFi and Bluetooth capability making it suitable for IoT applications. The code written in the Arduino IDE toggles the state of the LED connected to pin 2 of the ESP32 each second by setting the pin to HIGH or LOW. The student observed the LED blinking and learned about programming the ESP32 board and basics of IoT.

Uploaded by

Ozzy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

University Institute of Engineering

Department of Computer Science & Engineering

Disruptive Technologies – II (22ECH-103)

Student Name: Gurojaspreet Kaur UID: 22BAI70101


Branch: Computer Science & Engineering Section/Group: 22AML-101/A
Semester: 2nd Date of Performance: 6/March/2023
Subject Name: Disruptive Technologies – II

Subject Code: (22ECH-103)

Experiment No.: 2.1

1. Aim of the practical: Introduction to open-source IoT Platform and basic interfacing Hands-on.

2. Tool Used: ESP32, LED, Resistor, Breadboard, Arduino.

3. Basic Concept/ Command Description: The Internet of Things (IoT) describes the network of physical
objects – “things” - that are embedded with sensors, software, and other technologies for the purpose of
connecting and exchanging data with other devices and systems over the internet. These devices range from
ordinary household objects to sophisticated industrial tools.

The ESP-32 has a dual-core 32-bit processor running at up to 240 MHz, which provides significant processing
power compared to its predecessor. It also includes a Wi-Fi and Bluetooth radio, making it an ideal choice for
building IoT devices that require wireless connectivity.

It is an integrated antenna and RF balun, power amplifier, low-noise amplifiers, filters, and power management
module. The entire solution takes up the least amount of printed circuit board area. This board is used with 2.4
GHz dual-mode Wi-Fi and Bluetooth chips by TSMC 40nm low power technology, power and RF properties
best, which is safe, reliable, and scale-able to a variety of applications. ESP32 is created and developed by
Espressif Systems, a Shanghai-based Chinese company, and is manufactured by TSMC using their 40 nm process.
University Institute of Engineering
Department of Computer Science & Engineering

4. Code/ Process:

void setup()
{
pinMode(2,OUTPUT);
}
void loop()
{
digitalWrite(LED, HIGH);
// LED is on
delay(1000); // wait for one second
digitalWrite(LED, LOW); // LED is off
delay(1000);

5. Observations, Simulation Screen Shots and Discussions:

The code demonstrates how to use an ESP32 board to control an LED connected to a digital pin. The LED
blinks on and off repeatedly, creating a simple blinking effect.

The setup() function is called once at the start of the program and initializes the board's digital output pin 2 as
an output.
University Institute of Engineering
Department of Computer Science & Engineering

The loop() function is then called repeatedly and consists of two statements: digitalWrite(LED, HIGH) and
delay(1000). The first statement turns the LED on by setting the voltage level on digital pin 2 to a logic HIGH,
and the second statement pauses the program execution for 1 second. After the delay, the LED is turned off by
calling digitalWrite(LED, LOW), and the program execution is paused for another 1 second before the process
is repeated. Overall, this code shows a simple and effective way to control an LED using an ESP32 board, and
the blinking effect can be easily customized by adjusting the delay time or adding more code to the loop()
function.

6. Result and Summary: The ESP32 boards can be programmed using many different programming
languages. For example, you can program your ESP32 board in C++ language (like the Arduino) or
MicroPython. And to make use of all of the ESP32 features Espressif has officially provided the Expressif IoT
Development Framework.

•For beginners, Arduino IDE is the easiest way to get started in programming the ESP32

board.

•Using an Arduino Uno board, we were able to write a HIGH or LOW value to a digital pin.

7. Additional Creative Inputs (If Any): NA

Learning outcomes (What I have learnt):

1. Introduction to IOT

2. Introduction to ESP32

3. Using Arduino IDE

4. Basics of programming an ESP32 board to control an LED.

You might also like