IoT Journal
IoT Journal
Signature of
Sr.No Index Date
Teacher
Study of
1. Raspberry Pi
1.
2.Arduino
3.Node MCU
1
Practical No. 01
Raspberry Pi
The Raspberry Pi launched in 2012, and there have been several iterations and variations
released since then. The original Pi had a single-core 700MHz CPU and just 256MB RAM, and
the latest model has a quad-core CPU clocking in at over 1.5GHz, and 4GB RAM. The price
point for Raspberry Pi has always been under $100 (usually around $35 USD), most notably the
Pi Zero, which costs just $5.
All over the world, people use the Raspberry Pi to learn programming skills, build hardware
projects, do home automation, implement Kubernetes clusters and Edge computing, and even use
them in industrial applications.
The Raspberry Pi is a very cheap computer that runs Linux, but it also provides a set of GPIO
(general purpose input/output) pins, allowing you to control electronic components for physical
computing and explore the Internet of Things (IoT).
2
Arduino UNO
The Arduino UNO is a standard board of Arduino. Here UNO means 'one' in Italian. It was
named as UNO to label the first release of Arduino Software. It was also the first USB board
released by Arduino. It is considered as the powerful board used in various projects. Arduino.cc
developed the Arduino UNO board.
The Arduino UNO includes 6 analog pin inputs, 14 digital pins, a USB connector, a power jack,
and an ICSP (In-Circuit Serial Programming) header. It is programmed based on IDE, which
stands for Integrated Development Environment. It can run on both online and offline platforms.
3
Let's discuss each component in detail.
NodeMCU
NodeMCU is an open-source LUA based firmware developed for the ESP8266 wifi chip. By exploring functionality with
the ESP8266 chip, NodeMCU firmware comes with the ESP8266 Development board/kit i.e. NodeMCU Development
board.
4
Since NodeMCU is an open-source platform, its hardware design is open for edit/modify/build.
NodeMCU Dev Kit/board consist of ESP8266 wifi enabled chip. The ESP8266 is a low-cost Wi-
Fi chip developed by Espressif Systems with TCP/IP protocol. For more information about
ESP8266, you can refer to the ESP8266 WiFi Module.
There is Version2 (V2) available for NodeMCU Dev Kit i.e. NodeMCU Development Board
v1.0 (Version2), which usually comes in black colored PCB.
For more information about NodeMCU Boards available in the market refer to NodeMCU
Development Boards
NodeMCU Dev Kit has Arduino like Analog (i.e. A0) and Digital (D0-D8) pins on its board.
It supports serial communication protocols i.e. UART, SPI, I2C, etc.
Using such serial protocols we can connect it with serial devices like I2C enabled LCD display,
Magnetometer HMC5883, MPU-6050 Gyro meter + Accelerometer, RTC chips, GPS modules,
touch screen displays, SD cards, etc.
5
Practical No. 02
IoT sensors are pieces of hardware that detect changes in an environment and collect data. They‟re the
pieces of an IoT ecosystem that bridge the digital world to the physical world. IoT sensors may detect
things like temperature, pressure, and motion, and if they are connected to a network, they share data with
the network.
There are many different types of sensors, and they come in different shapes and sizes. Here are 14 of the
most common types and uses of sensors.
1. Temperature Sensors
Temperature sensors measure the amount of heat generated from an area or an object. They detect a
temperature change and convert the findings to data. Temperature sensors are used in various industries,
including manufacturing, healthcare, and agriculture. Some examples are thermistors, thermocouples, and
resistor temperature detectors (RTD).
2. Proximity Sensors
Proximity sensors detect the presence or absence of objects near the sensor without physical contact. They
often emit a beam of radiation like infrared or an electromagnetic field. They can be used for process
6
monitoring and control, object counting, assembly lines, and determining available space. Proximity
sensors are common in retail settings, industrial complexes, and parking lots. Some examples are
photoelectric, magnetic, capacitive, inductive, and ultrasonic.
3. Pressure Sensors
These sensors detect changes in a gas or liquid. When the pressure range is beyond a set threshold,
pressure sensors alert to the problem. They are used for leak testing, water systems, vehicles, and aircraft.
For example, the BMP180 is a digital pressure sensor found in cell phones and GPS navigation devices.
And some vehicles use a tire pressure monitoring system (TPMS) to alert when tire pressure is low and
potentially unsafe.
6. Infrared Sensors
Some sensors either detect or emit infrared radiation to sense characteristics and changes in the
surrounding area. They‟re useful for measuring heat emissions from an object. Infrared sensors are used
in remote controls, healthcare settings, and even by art historians authenticating artwork.
7. Smoke Sensors
Most people are familiar with smoke detectors, as they have protected our homes and businesses for a
long time. However, with improvements based on IoT, smoke detectors are now more user-friendly,
convenient, and wire-free.
8. Motion Sensors
Motion sensors detect physical movement in an area. Of course, these sensors play a significant role in
the security industry, but they are used in nearly every industry. Applications include automated sinks and
toilet flushers, automatic door controls, energy management systems, and automated parking systems.
Standard motion sensors include ultrasonic, microwave, and passive infrared (PIR).
9. Level Sensors
Level sensors detect the level of various substances, including powder, granular material, and liquids.
Industries that use them include water treatment, food and beverage manufacturing, oil manufacturing,
7
and waste management. They can detect the level of liquid in a container and can even determine the
amount of waste in a dumpster.
8
Practical No. 03
Buzzer
Buzzer is a kind of voice device that converts audio model into sound signal. It is
mainly used to prompt or alarm. According to different design and application, it
can produce music sound, flute sound, buzzer, alarm sound, electric bell and other
different sounds.
Typical applications include siren, alarm device, fire alarm, air defense alarm,
burglar alarm, timer, etc. It is widely used in household appliances, alarm system,
automatic production line, low-voltage electrical equipment, electronic toys, game
machines and other products and industries.
9
Breadboard
The breadboard is a white rectangular board with small embedded holes to insert electronic
components. It is commonly used in electronics projects. We can also say that breadboard is a
prototype that acts as a construction base of electronics.
A breadboard is derived from two words bread and board. The word breadboard was initially
used to slice the bread pieces. But, it was further named as a breadboard for its use in electronics
around the 1970s. Hence, the term breadboard refers to these boards only and provides a quick
electrical connection.
A breadboard is also categorized as a Solderless board. It means that the component does not
require any soldering to fit into the board. Thus, we can say that breadboard can be reused. We
can easily fit the components by plugging their end terminal into the board. Hence, a breadboard
is often called a plugboard.
10
Relay
A relay is an electrically operated electronic switch that is commonly used in circuits and
systems to control higher power signals with lower power inputs. The term "relay" comes from
the French word "relais" which means to pass on. In simple terms, a relay allows a small
electrical circuit to switch a separate high-powered circuit. The relay is a type of an electronic
switch that opens or close the circuit contacts by using electronic component without any
mechanical operation. In this relay, the current carrier pilot relaying scheme is used for the
protection of the transmission line.
This article focuses on what is relay, its working, types, applications and testing in detail through
different sections.The information in this article helps you extensively in your SSC JE
Electrical and GATE Electrical preparation journey.
Construction of Relay
A basic electromechanical relay consists of an electromagnet, armature, and set of contacts. The
electromagnet is made up of a coil that receives input signals and a soft iron core. When voltage
is applied to the coil, it gets magnetized due to electric current flowing through the coil windings.
The armature is a movable piece of soft iron attracted by the magnetic field created by the
electromagnet. A set of normally open (NO) and normally closed (NC) contacts are attached to
the armature which opens or closes depending on the armature's position.
Component Description
Electromagnet Generates magnetic field upon energization
Armature Movable piece that responds to the magnetic field
Contacts Conductors that open/close the electrical circuit
Spring Returns the armature to its original position
11
Seven Segment Displays
Seven segment displays are the output display device that provides a way to display information
in the form of images or text or decimal numbers which is an alternative to the more complex dot
matrix displays. It is widely used in digital clocks, basic calculators, electronic meters, and other
electronic devices that display numerical information. It consists of seven segments of light-
emitting diodes (LEDs) which are assembled like numerical 8.
12
Practical No. 04
What is a Display?
A display is a screen that shows pictures and words from a computer or other device. It has
many tiny bright dots called pixels that light up to create the images we see. The display has
multiple layers that allow it to show these images. Different displays may have slightly
different layers, based on how they work. Displays let us interact with computers, phones,
TVs, etc. by showing us information like text and graphics. We use keyboards, touchscreens,
or other inputs along with the display.
In laptops and tablets, the display is already built into the device itself. But for desktops and
computers, the display is usually a separate screen called a monitor that connects to the
computer. The words “display” and “monitor” mean similar things and are often used in place
of each other. But not all displays are monitors some are just screens without being a separate
monitor device.
LED
A light-emitting diode (LED) is a semiconductor device that emits light when an electric current
flows through it. When current passes through an LED, the electrons recombine with holes
13
emitting light in the process. LEDs allow the current to flow in the forward direction and blocks
the current in the reverse direction.
Light-emitting diodes are heavily doped p-n junctions. Based on the semiconductor material used
and the amount of doping, an LED will emit coloured light at a particular spectral wavelength
when forward biased. As shown in the figure, an LED is encapsulated with a transparent cover so
that emitted light can come out.
Read More: Diodes
LED Symbol
The LED symbol is the standard symbol for a diode, with the addition of two small arrows
denoting the emission of light.
Uses of LED
LEDs find applications in various fields, including optical communication, alarm and security
systems, remote-controlled operations, robotics, etc. It finds usage in many areas because of its
long-lasting capability, low power requirements, swift response time, and fast switching
capabilities. Below are a few standards LED uses:
Types of LED
Below is the list of different types of LED that are designed using semiconductors:
Miniature LEDs
High-Power LEDs
Flash LED
Bi and Tri-Colour
Red Green Blue LEDs
Alphanumeric LED
Lighting LED
14
LED Matrix Module
This is a common cathode 8x8 dot matrix module driven by MAX7219, the module operating
voltage is 5V, the size is 50mmx32mmx15mm, the left side is input port, the right side is output
port, support multiple modules cascade.
The MAX7219 is a compact, serial input/output common-cathode display drivers that interface
microprocessors (µPs) to 7-segment numeric LED displays of up to 8 digits, bar-graph displays,
or 64 individual LEDs. Included on-chip are a BCD code-B decoder, multiplex scan circuitry,
segment and digit drivers, and an 8x8 static RAM that stores each digit.
Only one external resistor is required to set the segment current for all LEDs. The MAX7221 is
compatible with SPI™, QSPI™, and MICROWIRE™, and has slewrate-limited segment drivers
to reduce EMI.
A convenient 4-wire serial interface connects to all common µPs. Individual digits may be
addressed and updated without rewriting the entire display. The MAX7219/MAX7221 also allow
the user to select codeB decoding or no-decode for each digit.
15
Universal Serial Bus (USB)
USB was designed to standardize the connection of peripherals like pointing devices, keyboards,
digital images and video cameras. But some devices such as printers, portable media players,
disk drives, and network adaptors to personal computers used USB to communicate and to
supply electric power. It is commonplace to many devices and has largely replaced interfaces
such as serial ports and parallel ports. USB connectors have replaced other types of battery
chargers for portable devices with themselves.
16
USB Connector Types
USB connectors have different shapes and sizes. Most of the USB connectors are the standard
USB, Mini-USB, and Micro-USB, which have two or more variations of connectors. Information
on each type are shown below.
Mini USB
Mini USB is available in three different types A type, B type, and AB type. It is used with
computer peripherals and digital cameras. The most common kind of interface is this one, that is
referred to as mini B. Micro USB and USB-C cables basically take the place of mini USB on the
latest devices. It uses coaxial cable to transmit data and power between two devices. it applies to
mobile hard drives, digital cameras, and MP3 players. One end of a micro USB cable has a much
smaller quadrilateral hub, and the other end has a regular USB hub with a flat head. It can be
easily plugged into mobile devices. Although the tiny USB is mainly designed for, it can also be
used to transfer data between computers having at least one USB port for charging device.
Micro USB
A reduced version of the USB (Universal Serial Bus), the micro-USB. It was created for
connecting small and mobile devices including digital cameras, smartphones, GPS components,
MP3 players, and photo printers and was first announced in 2007 as a replacement for mini USB.
The three different types of Micro-USB are Micro A, Micro B, and Micro USB 3. The connector
size for the type Micro-A and Micro-B is 6.85 x 1.8 mm, while the Micro-A connector has a
larger maximum overmild size. Because it has more pins on the side for twice as many wires
than micro B, USB 3 micro is more comparable to micro B yet has faster speed. Micro USB and
normal USB versions are both plug-and-play and hot-swappable is still widely used with
electronic devices.
USB Type-C
A USB Type-C port is a relatively new type of connector that may be found on the majority of
contemporary newer Android smartphones and other USB-connected devices. Data and power
are delivered to computing machines using it. In contrast to traditional USB connections, USB-C
cables can be connected into devices in either direction, including upside down.
GPS
GPS module receivers are generally used in smartphones, fleet management systems, military,
etc. for tracking or finding a location.
17
Global Positioning System (GPS) is a satellite-based system that uses satellites and ground
stations to measure and compute its position on Earth.
GPS is also call as Navigation System with Time and Ranging (NAVSTAR) GPS.
GPS receiver gives output in standard (National Marine Electronics Association) NMEA string
format. It provides output serially on the TX pin with default 9600 Baud rate.
This NMEA string output from the GPS receiver contains different parameters like longitude,
latitude, altitude, time, etc. which are separates by commas. Each string starts with „$‟ and ends
with a carriage return/line feed sequence. For e.g
18
Practical No. 05
Jumper Wires
Wires that connect two terminals are called jumper wires. There are various kinds of jumper
wires. Here we focus on those used in breadboard. Among others, they are used to transfer
electrical signals from anywhere on the breadboard to the input/output pins of a microcontroller.
Jump wires are fitted by inserting their “end connectors” into the slots provided in the
breadboard, beneath whose surface there are a few sets of parallel plates that connect the slots in
groups of rows or columns depending on the area. The “end connectors” are inserted into the
breadboard, without soldering, in the particular slots that need to be connected in the specific
prototype.
There are three types of jumper wire: Female-to-Female, Male-to-Male, and Male-to-Female.
The reason we call it Male-to-Female is because it has the outstanding tip in one end as well as a
sunk female end. Male-to-Male means both side are male and Female-to-Female means both
ends are female.
19
More than one type of them may be used in a project. The color of the jump wires is different but
it doesn‟t mean their function is different accordingly; it‟s just designed so to better identify the
connection between each circuit.
20