Experiment - 2.1
Experiment - 2.1
1. Aim of the practical: Introduction to open-source IoT Platform and basic interfacing Hands-on.
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);
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.
1. Introduction to IOT
2. Introduction to ESP32