Professional Documents
Culture Documents
T.E E & TC
Internship Report
on
Internal Supervisor
Prof. A. K. Mishra, Department of E & TC, SIEM, Nashik.
External Supervisor
Mr. Ravi Ghumare, Director, SkyTouch Computers, Nashik
Sandip Foundation’s
Sandip Institute of Engineering and Management Nashik
Department of Electronics & Telecommunication
CERTIFICATE
This is to certify that, the Internship on “Embedded System Design and IoT”
done by Pooja P. Khairnar (Exam Seat No. ) at SkyTouch Computers, Nashik
under third year syllabus, course name “304199-Internship” of Electronics and
Telecommunication Branch of Savitribai Phule Pune University for the award
of Bachelor of Engineering Degree.
Date:
Place: Sandip Institute of Engineering and Management Nashik
ii
—————————————————————————————————-
Director
(Sky-Touch Computers)
iii
Acknowledgements
First I would like to thank Mr. Ravi Ghumare, SkyTouch Computers, Nashik for
giving me the opportunity to do an internship within the organization. I also would
like all the people that worked along with me Sandip Institute Of Engineering Man-
agement, Nashik with their patience and openness they created an enjoyable working
environment. It is indeed with a great sense of pleasure and immense sense of grati-
tude that I acknowledge the help of these individuals.
I would like to thank to Prof. Amit Mishra internship coordinator Department
of Electronics and Telecommunication (E&TC) for their support and advices to get
and complete internship in above said organization.
I am extremely great full to my department staff members and friends who helped
me in successful completion of this internship.
Pooja P. Khairnar
iv
Contents
Certificate ii
Acknowledgements iv
2 Study of Sensors 5
2.1 Humidity and Temperature Sensor . . . . . . . . . . . . . . . . . . . 5
2.2 Ultrasonic Sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.3 Infrared sensors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.4 Motion Sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3 Introdution to Microcontroller 10
3.1 What’s an Arduino? . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.2 Project: Design a 3x3x3 LED CUBE . . . . . . . . . . . . . . . . . . 13
3.2.1 Components Required . . . . . . . . . . . . . . . . . . . . . . 13
3.2.2 Building the Arduino 3x3x3 LED Cube . . . . . . . . . . . . . 13
v
4 Internet of Things 15
4.1 IoT Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
4.2 What is ThingSpeak? . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.3 What is NodeMCU? . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.4 NodeMCU Pinout and Functions . . . . . . . . . . . . . . . . . . . . 18
4.5 Project- DHT11 Humidity Temperature Monitor with NodeMCU on
ThingSpeak . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.6 Compoenents Required . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.7 Setting Thingspeak & Getting API Key . . . . . . . . . . . . . . . . 21
5 Conclusion 22
References 23
vi
List of Figures
vii
Chapter 1
1.1 Introduction
An embedded system can be thought of as a computer hardware system
having software embedded in it.An embedded system can be an independent system
or it can be a part of a large system.An embedded system is a microcontroller or
microprocessor-based system which is designed to perform aspecific task. For exam-
ple, a fire alarm is an embedded system; it will sense only smoke.An embedded system
has three components
–It has hardware.
–It has application software.
1
enough to process data inreal time and consume minimum power to extend
battery life.
Reactive and Real time - Many embedded systems must continually react to
changes in the system’senvironment and must compute certain results in real
time without any delay. Consider an example of a carcruise controller; it contin-
ually monitors and reacts to speed and brake sensors. It must compute accelera-
tion orde-accelerations repeatedly within a limited time; a delayed computation
can result in failure to control of thecar.
Connected -It must have connected peripherals to connect input and output
devices.
HW-SW systems - Software is used for more features and flexibility. Hardware
is used for performance and security.
2
1.4 Applications of Embedded Systems
Embedded systems are used in different applications like automobiles, telecommuni-
cations,smart cards, missiles, satellites, computer networking and digital consumer
electronic.
Banking & Retail: Automatic teller machines (ATM) and currency counters,
point of sales (POS)
Card Readers: Barcode, smart card readers, hand held devices etc
3
1.5 Types of Embedded System
4
Chapter 2
Study of Sensors
Temperature and humidity sensors are among the most commonly used environ-
mental sensors. Humidity sensors are also sometimes referred to as hygrometers.
These devices are used to provide the actual humiditycondition within the air at any
given point or in any given place. Such devices are commonly used in situations in
which air conditions may be extreme or where air conditions need to be controlled due
to varying reasons.Humidity is the presence of water within the air. The amount of
water vapor that is present in the air can affect not only personal comfort but can also
5
affect various manufacturing processes within industrial applications. For instance, in
the semiconductor industry, moisture or humidity levels must be properly controlled
and monitored to ensure proper wafer processing. Humidity control is also frequently
important for incubators, respiratory equipment, sterilizers, and biological products.
In addition, the presence of water vapour may also influence various other chemical,
biological, and physical processes.
The DHT11 is a basic, ultra-low-cost digital temperature and humidity sensor. It
uses a capacitive humiditysensor and a thermistor to measure the surrounding air,
and spits out a digital signal on the data pin (noanalog input pins needed).
6
ultrasonic sound. Our ultrasonicsensors, like many others, use a single transducer to
send a pulse and to receive the echo. The sensordetermines the distance to a target
by measuring time lapses between the sending and receiving of theultrasonic pulse.
The working principle of this module is simple. It sends an ultrasonic pulse out
at 40kHz which travelsthrough the air and if there is an obstacle or object, it will
bounce back to the sensor. By calculating thetravel time and the speed of sound, the
distance can be calculated.Ultrasonic sensors are a great solution for the detection
of clear objects. For liquid level measurement,applications that use infrared sensors,
for instance, struggle with this particular use case because of targettranslucence.For
presence detection, ultrasonic sensors detect objects regardless of the color, surface,
or material (unlessthe material is very soft like wool, as it would absorb sound.) To
detect transparent and other items where optical technologies may fail, ultrasonic
sensors are a reliable choice.
An infrared (IR) sensor is an electronic device that measures and detects in-
frared radiation in its surroundingenvironment. Infrared radiation was accidentally
7
discovered by an astronomer named William Herchel in1800. While measuring the
temperature of each color of light (separated by a prism), he noticed that thetemper-
ature just beyond the red light was highest. IR is invisible to the human eye, as its
wavelength islonger than that of visible light (though it is still on the same electro-
magnetic spectrum). Anything that emitsheat (everything that has a temperature
above around five degrees Kelvin) gives off infrared radiation.There are two types of
infrared sensors: active and passive. Active infrared sensors both emit and detect-
infrared radiation. Active IR sensors have two parts: a light emitting diode (LED)
and a receiver. When anobject comes close to the sensor, the infrared light from the
LED reflects off of the object and is detected bythe receiver. Active IR sensors act as
proximity sensors, and they are commonly used in obstacle detectionsystems (such
as in robots).
8
three major components: a sensor unit, an embedded computer, and hardware (or the
mechanicalcomponent). These three parts vary in size and configuration, as motion
sensors can be customized toperform highly specific functions. For example, motion
sensors can be used to activate floodlights, triggeraudible alarms, activate switches,
and even alert the police. There are two types of motion sensors: active motion
sensors and passive motion sensors. Active sensorshave both a transmitter and a
receiver. This type of sensor detects motion by measuring changes in theamount of
sound or radiation reflecting back into the receiver. When an object interrupts or
alters thesensor’s field, an electric pulse is sent to the embedded computer, which
in turn interacts with themechanical component. The most common type of active
motion detector uses ultrasonic sensor technology;these motion sensors emit sound
waves to detect the presence of objects. There are also microwave sensors(which emit
microwave radiation), and tomographic sensors (which transmit and receive radio
waves).
9
Chapter 3
Introdution to Microcontroller
Power USB
Arduino board can be powered by using the USB cable from your computer. All you
need to do is connect the USB cable to the USB connection (1).
10
Power (Barrel Jack)
Arduino boards can be powered directly from the AC mains power supply by con-
necting it to the Barrel Jack (2).
Voltage Regulator
The function of the voltage regulator is to control the voltage given to the Arduino
board and stabilize the DC voltages used by the processor and other elements.
Crystal Oscillator
The crystal oscillator helps Arduino in dealing with time issues. How does Arduino
calculate time? The answer is, by using the crystal oscillator. The number printed on
top of the Arduino crystal is 16.000H9H. It tells us that the frequency is 16,000,000
Hertz or 16 MHz.
Arduino Reset
You can reset your Arduino board, i.e., start your program from the beginning. You
can reset the UNO board in two ways. First, by using the reset button (17) on the
board. Second, you can connect an external reset button to the Arduino pin labelled
RESET (5).
Pins
Pins (3.3, 5, GND, Vin)
3.3V (6) -Supply 3.3 output volt
5V (7) - Supply 5 output volt
Most of the components used with Arduino board works fine with 3.3 volt and 5 volt.
GND (8)(Ground) -There are several GND pins on the Arduino, any of which can be
used to ground your circuit.
Vin (9) - This pin also can be used to power the Arduino board from an external
power source, like AC mains power supply.
Analog pins
The Arduino UNO board has six analog input pins A0 through A5. These pins can
read the signal from an analog sensor like the humidity sensor or temperature sensor
and convert it into a digital value that can be read by the microprocessor.
Main microcontroller
Each Arduino board has its own microcontroller (11). You can assume it as the brain
11
of your board. The main IC (integrated circuit) on the Arduino is slightly different
from board to board. The microcontrollers are usually of the ATMEL Company.
You must know what IC your board has before loading up a new program from the
Arduino IDE. This information is available on the top of the IC. For more details
about the IC construction and functions, you can refer to the data sheet.
ICSP pin
Mostly, ICSP (12) is an AVR, a tiny programming header for the Arduino consisting
of MOSI, MISO, SCK, RESET, VCC, and GND. It is often referred to as an SPI
(Serial Peripheral Interface), which could be considered as an ”expansion” of the
output. Actually, you are slaving the output device to the master of the SPI bus.
Power LED indicator
This LED should light up when you plug your Arduino into a power source to indicate
that your board is powered up correctly. If this light does not turn on, then there is
something wrong with the connection.
TX and RX LEDs
On board, you will find two labels: TX (transmit) and RX (receive). They appear in
two places on the Arduino UNO board. First, at the digital pins 0 and 1, to indicate
the pins responsible for serial communication. Second, the TX and RX led (13).
The TX led flashes with different speed while sending the serial data. The speed of
flashing depends on the baud rate used by the board. RX flashes during the receiving
process.
Digital I/O
The Arduino UNO board has 14 digital I/O pins (15) (of which 6 provide PWM
(Pulse Width Modulation) output. These pins can be configured to work as input
digital pins to read logic values (0 or 1) or as digital output pins to drive different
modules like LEDs, relays, etc. The pins labeled “ ” can be used to generate PWM.
AREF
AREF stands for Analog Reference. It is sometimes, used to set an external reference
voltage (between 0 and 5 Volts) as the upper limit for the analog input pins.
12
Figure 3.2: The Word Arduino Can mean 3 Things
The breadboard wire and peel the layer off the conductor
13
Mark nine points on paper (distance2cm)
Place a LED in one of the hole and bend the positive terminal
Take two conductors wires which we stripped and place them as shown in the
figure and solder the six joints of conductor forming a complete matrix
14
Chapter 4
Internet of Things
Perception/Sensing Layer
The first layer of any IoT system involves “things” or endpoint devices that serve
as a conduit between the physical and the digital worlds. Perception refers
to the physical layer, which includes sensors and actuators that are capable
of collecting, accepting, and processing data over the network. Sensors and
15
Figure 4.1: IoT Architecture
Network Layer
Network layers provide an overview of how data is moved throughout the
application. This layer contains Data Acquiring Systems (DAS) and Inter-
net/Network gateways. A DAS performs data aggregation and conversion func-
tions (collecting and aggregating data from sensors, then converting analog data
to digital data, etc.). It is necessary to transmit and process the data collected
by the sensor devices. That’s what the network layer does. It allows these
devices to connect and communicate with other servers, smart devices, and
network devices. As well, it handles all data transmissions for the devices.
Processing Layer
The processing layer is the brain of the IoT ecosystem. Typically, data is
analyzed, pre-processed, and stored here before being sent to the data center,
where it is accessed by software applications that both monitor and manage the
data as well as prepare further actions. This is where Edge IT or edge analytics
enters the picture.
16
Application Layer
User interaction takes place at the application layer, which delivers application-
specific services to the user. An example might be a smart home application
where users can turn on a coffee maker by tapping a button in an app or a
dashboard that shows the status of the devices in a system. There are many
ways in which the Internet of Things can be deployed such as smart cities, smart
homes, and smart health.
17
4.4 NodeMCU Pinout and Functions
Power Pins There are four power pins. VIN pin and three 3.3V pins.
VIN can be used to directly supply the NodeMCU/ESP8266 and its peripherals.
Power delivered on VIN is regulated through the onboard regulator on the
NodeMCU module – you can also supply 5V regulated to the VIN pin
3.3V pins are the output of the onboard voltage regulator and can be used to
supply power to external components.
I2C Pins are used to connect I2C sensors and peripherals. Both I2C Master and
I2C Slave are supported. I2C interface functionality can be realized program-
matically, and the clock frequency is 100 kHz at a maximum. It should be noted
that I2C clock frequency should be higher than the slowest clock frequency of
the slave device.
18
internal pull-up or pull-down, or set to high impedance. When configured as
an input, it can also be set to edge-trigger or level-trigger to generate CPU
interrupts.
ADC Channel The NodeMCU is embedded with a 10-bit precision SAR ADC.
The two functions can be implemented using ADC. Testing power supply voltage
of VDD3P3 pin and testing input voltage of TOUT pin. However, they cannot
be implemented at the same time.
SPI Pins NodeMCU/ESP8266 features two SPIs (SPI and HSPI) in slave and
master modes. These SPIs also support the following general-purpose SPI fea-
tures:
PWM Pins The board has 4 channels of Pulse Width Modulation (PWM). The
PWM output can be implemented programmatically and used for driving digital
motors and LEDs. PWM frequency range is adjustable from 1000µs to 10000
µs (100 Hz and 1 kHz).
Control Pins are used to control the NodeMCU/ESP8266. These pins include
Chip Enable pin (EN), Reset pin (RST) and WAKE pin.
19
EN: The ESP8266 chip is enabled when EN pin is pulled HIGH. When pulled
LOW the chip works at minimum power.
RST: RST pin is used to reset the ESP8266 chip.
WAKE: Wake pin is used to wake the chip from deep-sleep.
20
4.7 Setting Thingspeak & Getting API Key
1. Go to https://thingspeak.com/ and create an account if you do not have one.
Login to your account.
2. Create a new channel by clicking on the button. Enter the basic details of the
channel. Then Scroll down and save the channel. You can follow the video guide
below.
3. Then go to API keys copy and paste this key to a separate notepad file. You will
need it later while programming.
21
Chapter 5
Conclusion
22
Bibliography
[1] https://electronicsforu.com/iot-projects-ideas
[3] https://www.arduino.cc/
23