SlideShare a Scribd company logo
1 of 126
1
Redwan Ferdous
Loves Robotics, Automobiles, Projects, Tech-Investment
- Professional Project Manager (PRINCE2, PMP)
- Director, FronTech Ltd. & Founder, JRC Board
- Worked for Walton, Aamra & Labaid for past 12 years
- B.Sc. (EEE) from AUST
M.Sc. (IT) from JU
MBA (Finance) from DU
ACMP 4.0 from IBA, DU
- Senior Member, IEEE, Life Member, IEB
- Electrical Supervisor of GoB
- Country Representative of Bangladesh for
- International Robot Olympiad
- World Robot Olympiad
- World Robotics Championship
www.redwanferdous.com | https://frontech.global
redwan@frontech.global
16-Aug-23 2
Ground Rules
• Its an informal session, feel free to ask questions. No matter how silly
or irrelevant you think! Just Ask!
• Please don’t do side talks. You are grown up now!
• Medium of Knowledge sharing: English & Bangla
• You can take snapshots of the PPT! However, all are available on
Slideshare, Github and Internet.
• Today- you come here to get the food of thinking and exploring for
next few weeks. You will not learn everything about IoT and
embedded system today- but you will learn- ‘How to Learn’!
©FronTech Ltd. Contents from Internet for Knowledge Purpose. 3
16-Aug-23
Disclaimer
• You need not to invent wheel all the time, rather its better to create
application using that wheel !!
• Most of the contents of my slides are collected from internet. Credit
mentioned with due respect at the last slide.
• My job is to facilitate the way of learning. Your job is to explore
according to that.
• If you assure me of ‘Practice’, I can assure you of ‘Success’.
4
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23
And, I’m Considering…
• You have knowledge of the followings:
• Basic Electronics (Resistance, Capacitance, Inductance, Transistor, FET, Diode,
AC-DC, Op-Amp, Opto-couplers)
• Basic Analog and Digital circuitry
• Basic Components (LED, LDR, POT, LCD, Motor)
• Basic Example coding experience in Arduino IDE
5
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23
Today’s (or 2 days!) Agenda
• Robotics, IoT, Embedded Systems
• Introducing with ESP8266
• 12 projects with ESP8266 and IoT- Live monitoring and control from
internet!
• Fun and Learn!
6
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23
What is Microcontroller?
16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 7
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 8
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 9
Microcontroller Development
Board
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 10
Embedded System
11
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23
Embedded System
• The difference between embedded systems
designers and software engineers or IT
technicians is the in-depth knowledge of the
hardware that embedded designers possess.
• Embedded designers must have knowledge of
electronics to effectively design embedded
systems.
12
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23
Entry Level Boards
Easy to Use and Ready to Power Your First Creative
Project
8/16/2023 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 13
Enhanced Feature Boards
The Boards with Advanced Functionalities or Faster
Performances for Complex Projects
8/16/2023 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 14
Arduino and Sensors
15
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23
JRC Board
JRC board is a microcontroller board based on the ESP-
WROOM-32. It has 20 digital input/output pins of which
pin 25 and 26 can be used as analog outputs, 12 analog
inputs, an USB type C connection, an ICSP header and a
reset button. It contains everything needed to support
the microcontroller. Simply connect it to a computer
with a USB cable or battery to get started. Keep Up with
the World A Low-Cost Board for Schools in Bangladesh
and Beyond. Powerful System on Chip. An In-House
Development Board for our future products to blend in
the Existing Ecosystem.
ESP32 chip Reset button
Voltage Regulator
USB Type-C port
Uploader Chip
(FT232RL)
Circuit Protection Diode
GPIO pins
I2C pins
UART pins
GPIO pins
Power pins
RESET pin
Reference pin
L293D IC ICSP pins
Specs and Features:
Processors:
● CPU: Xtensa Dual-Core 32-bit LX6 Microprocessor, operating at 240 MHz and performing
at up to 600 DMIPS.
● Ultra-Low Power (ULP) Co-Processor.
Memory:
● 520KB of RAM (expendable up to 8MB externally)
● 1024 locations for EEPROM
● 4MB of flash memory (expandable up to 16 MB externally)
Wireless connectivity:
● Wi-Fi: 802.11 b/g/n
● v4.2 BR/EDR and BLE
Peripheral Interfaces:
● 12-bit SAR ADC up to 18 channels
● 2 × 8-bit DACs (GPIO 25 and 26)
● 18 × PWM pins (Controlled by up to 16 channels)
● 7 × Touch Sensors (Capacitive Sensing GPIOs)
● 1 × SPI
● 1 × I2S Interfaces
● 1 × I2C Interfaces
● 2 × UART
● All digital pins compatible with external interrupt
8/11/2023 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 18
Platforms for developing IoT Solutions:
Hobbyist
• ESP32/ ESP8266
• Arduino
• Raspberry Pi
• Particle
• Intel Edison
• Adafruit Platforms (i.e.Flora)
15-May-20 19
Most of the contents of this presentation file is collected from internet. The sources are mentioned with respect in the end 03 slides. Thank you to the contributors.
Platforms for developing IoT Solutions: IIoT
• STM32 Development Boards (i.e. STM32L4 IoT Discovery Kit)
• ZedBoard
• Nvidia Jetson (For Machine Learning)
• Sti Microcontroller Based Platforms
15-May-20 20
Most of the contents of this presentation file is collected from internet. The sources are mentioned with respect in the end 03 slides. Thank you to the contributors.
Protocols Used in IoT/Smart Devices
• WiFi
• Bluetooth
• ZigBee
• NFC
• Cellular (3G/4G/LTE)
• LoRaWAN
• MQTT (Message Queue Telemetry Transport)
• DDS (Data Distribution Service)
• AMQP
• RFID
• Z-Wave (Low Range-Home appliance usage)
• Sigfox (Cellular +WiFi)
15-May-20 21
Most of the contents of this presentation file is collected from internet. The sources are mentioned with respect in the end 03 slides. Thank you to the contributors.
Basic Electronics
22
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23
About ESP8266
• Tiny but powerful microcontroller
• Very cheap
• Built in Wi-Fi
• IoT enabled
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 23
ESP8266 Board View
16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 24
ESP8266 Pinouts
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 25
16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 26
Arduino IDE
27
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23
Version: 01
Version: 02
Let’s Explore
• Let’s explore Arduino site and find different options with Arduino:
https://www.arduino.cc/
28
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23
Getting started with Programming
29
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Bare minimum code
30
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23
• setup : It is called only when the Arduino is powered on or reset. It is
used to initialize variables and pin modes
• loop : The loop functions runs continuously till the device is powered
off. The main logic of the code goes here. Similar to while (1) for
micro-controller programming.
Bare minimum code
31
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23
• A pin on arduino can be set as input or output by using pinMode
function.
• pinMode(13, OUTPUT); // sets pin 13 as output pin
• pinMode(13, INPUT); // sets pin 13 as input pin
PinMode
32
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23
• digitalWrite(13, LOW); // Makes the output voltage on pin 13 , 0V
• digitalWrite(13, HIGH); // Makes the output voltage on pin 13 , 5V
• int buttonState = digitalRead(2); // reads the value of pin 2 in
buttonState
Reading/writing digital values
33
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23
• What is analog ?
• It is continuous range of voltage values (not just 0 or 5V)
• Why convert to digital ?
• Because our microcontroller only understands digital.
Analog to Digital Coversion
34
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23
Installing ESP8266 Board Manager for Arduino IDE
First Click on “File”,
then “preferences”
A new window should
pop up
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 35
Installing ESP8266 Board Manager for Arduino IDE
In the dialogue box “Additional Board
Manager URL”, Paste the link below and
hit “Okay”
http://arduino.esp8266.com/stable/package_esp8266com_index.json
You can directly find this link by searching this keyword in google:
“what is esp8266 board manager url for arduino ide?”
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 36
Installing ESP8266 Board Manager for Arduino IDE
On Arduino IDE V1, click on
“Tools”, Then “Board”, then
“Boards Manager”
A new window will pop up.
On Arduino IDE V2, directly click on
“Boards Manager” icon.
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 37
Installing ESP8266 Board Manager for Arduino IDE
Search for “ESP8266” on search bar. Whatever shows up on first,
click “Install” for the latest version
16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 38
Know your Components
• ESP 8266
• Four Channel 5v Relay Module
• IR sensor
• Rain Sensor
• Motion Sensor
• BMP280
• MQ135
• HC-SR04-Ultrasonic
• Soil moisture sensor
• L298N motor driver
• Chassis for 4WD car.
16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 39
Know your Components
• We will learn about each devices through ‘Datasheet’
16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 40
Session’s Project List
1. Led Blink
2. Ac line load on off
3. Iot base Fire Notification Alert System
4. Iot Rain Notification Alert System
5. Automatic Thief Detector system
6. IoT Based Home Weather
7. Gas leakage alert system
8. Water level monitoring system
9. IoT based smart irrigation system
10. IoT based smart home automation system
11. IoT based smart 4wd car.
16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 41
First Project
Blink your LED
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 42
Circuit Diagram
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 43
Code
Click on File, then
click on
examples, then
click on basics,
and then Blink. A
new code will pop
up.
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 44
Uploading the Code
Click on Board
selection panel as
the markings
indicated.
Then select other
board and port.
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 45
Uploading the Code
Search for
Generic ESP8266
Module in the
board search
option.
Select the proper
COM Port and
click okay.
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 46
Code
After setting up
the board. Click
on the Upload
Icon.
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 47
2nd Project
Enable your IoT Device
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 48
Circuit Diagram
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 49
IoT Online Platform/ Server
• For the entire session, we will use ‘Blynk’ as IoT Server
• ‘Blynk’ is the common and mostly used IoT server for device control
• Other than, ‘Blynk’, there are ‘Sematext Cloud’, ‘IFTTT’, ‘Mingo’.
‘Scaleway’, ‘Google Cloud IoT’ and others.
• Please go to ‘https://blynk.cloud’
16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 50
Create an account in Blynk
First, go to your browser and search for blynk.cc -> then click on Start Free. A new window will pop up.
Here enter your email address and then click Sign Up.
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 51
A confirmation link will be sent to your mail. Clicking on that link will bring you back to Blynk platform.
Here you will see an option to set your name and create password which will keep your account secure.
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 52
Here you will see some guideline. You can click Next for all of them
1 2 3
4 5 6
7 8
16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 53
Now we will be redirected to a QuickStart guide. Here on this window we will select ESP8266 as device
and Wi-Fi as connectivity type. Then click next
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 54
On next window, we will select Arduino as our IDE and click Next. Then we will be instructed to install
Blynk Library to our Arduino IDE. Install the library following the instructions and then click next.
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 55
On Arduino IDE V2, we can simply select the Library icon and search “Blynk” on the search bar. Finding the
appropriate library, click install.
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 56
Here on this window, write down your Wi-Fi name and password where you want your device to connect.
Then copy the code to use it in your Arduino IDE
1
2
3
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 57
After Copy-Pasting
code to a new
sketch, we are
ready to upload the
code.
But to truly admire
the implementation
of IoT system, we
need to add two
lines of code in our
sketch in order to
pair a LED with
the IoT system.
Follow the Markings
in the image.
After setting up
the code, Upload
the code to your
board.
16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 58
If the device successfully connects with the internet, you will see a confirmation window. Clicking on Go To
Device, we will be introduced with a default dashboard where we can control our built-in LED by clicking on
virtual switch on dashboard.
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 59
Rain Notification in IoT
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 60
Circuit Diagram
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 61
Connect D2 instead of D1
Code
Go to your Code Folder, then search for
“IoT_Based_Rain_Detection”
and Open it.
Remember: do change your template
ID, template name and Authentication
Token according to your blynk
dashboard. Otherwise, the device
won’t connect to your server.
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 62
Focus on this Indicator Panel for Rain Detection
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 63
Gas Leakage Monitoring in IoT
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 64
Circuit Diagram
GND
AO
VCC
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 65
Code
Go to your Code Folder, then search for
“IoT_Based_Gas_Leakage_Detection”
and Open it.
Remember: do change your template
ID, template name and Authentication
Token according to your blynk
dashboard. Otherwise, the device
won’t connect to your server.
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 66
Create a new Data Stream to use a new widget
This is because we can get maximum value
of 1024 in analog reading of JRC Board
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 67
Drag this widget to show
the sensor data
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 68
We can do all sorts of
modification here!
Follow this guide to edit
the last widget we added
and then click save
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 69
Also, edit the Guage Level
Widget and change it
according to virtual pin
value V6
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 70
We can also use chart
widget to accurately
show sensor data
over time
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 71
Edit the widget
according to guideline
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 72
After clicking “Save and Apply” the
dashboard should look like this!
Pretty cool, right?
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 73
IoT based Water Level Monitoring
16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 74
Circuit Diagram
16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 75
Code
Go to your Code Folder, then search for
“IoT_Based_Theft_Detection”
and Open it.
Remember: do change your template ID,
template name and Authentication
Token according to your blynk
dashboard. Otherwise, the device won’t
connect to your server.
16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 76
Function of pulseIn()
• The pulseIn() function reads a HIGH or a LOW pulse on a pin. It
accepts as arguments the pin and the state of the pulse (either HIGH
or LOW). It returns the length of the pulse in microseconds. The pulse
length corresponds to the time it took to travel to the object plus the
time traveled on the way back.
16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 77
Focus on this indicator widget for
Water Pump Status. Sensor Distance
value can be observed in Sensor Value
panel
16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 78
IoT Based Weather Monitoring
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 79
Circuit Diagram
SCL
SDA
SCL
SDA
VCC
GND
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 80
Code
Go to your Code Folder, then search for
“IoT_Based_Weather_Monitoring”
and Open it.
Remember: do change your template ID,
template name and Authentication
Token according to your blynk
dashboard. Otherwise, the device won’t
connect to your server.
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 81
Create 2 New Data Streams for
Temperature and Pressure
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 82
You can edit the DataStream of
the Chart widget to temperature
to show the timewise weather
update
16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 83
We can do all sorts of
modification here!
Follow this guide to edit
the last widget we added
and then click save
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 84
Also, edit the Guage Level
Widget and change it
according to virtual pin
value V9 to show Pressure
Guage
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 85
Temperature value can be observed in Sensor Data and Chart
Pressure can be observed in Pressure Guage
16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 86
Fire Alarm Notification in IoT
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 87
Circuit Diagram
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 88
Code
Go to your Code Folder, then search for
“IoT_Based_Fire_Detection”
and Open it.
Remember: do change your template
ID, template name and Authentication
Token according to your blynk
dashboard. Otherwise, the device
won’t connect to your server.
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 89
Focus on this Indicator Panel for Fire Detection
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 90
IoT Based Appliance Control
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 91
Circuit Diagram
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 92
Code
Go to your Code Folder, then search for
“IoT_Based_Appliance_Control”
and Open it.
Remember: do change your template
ID, template name and Authentication
Token according to your blynk
dashboard. Otherwise, the device
won’t connect to your server.
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 93
First, we need to edit the dashboard
1
2
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 94
We can have a look at the DataStream. Here, we don’t
need the Button Image, so we can delete it.
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 95
As soon as we click
delete button, there
will be a pop-up
window asking for
confirmation. Do the
steps accordingly and
click delete
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 96
To newly insert any wizard, we need to add a DataStream
for each individual appliance control
1
2
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 97
We need to set appropriate variable type for the DataStream
and Name it however we want
1
2
16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 98
We can also edit the existing DataStreams by clicking on it.
Let’s give them all the appropriate name
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 99
We can also duplicate any virtual pin for fast adding using this button
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 100
This is how it looks after editing all the Data Streams
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 101
Now we can focus on web dashboard. We can drag and drop any
free widget at our convenience and resize them in anyways.
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 102
Now, we add two new widgets for controlling two
appliances simultaneously.
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 103
We can edit any widget by hovering mouse cursor to its
corner and then click settings
1
2
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 104
This widget indicates the
feedback status from device end.
We can select appropriate Data
Stream (according to code) and
Name it to our convenience
16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 105
Do the same for Switch widget also!
16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 106
After doing all the necessary steps,
the dashboard should look like this
Click “Save and Apply”
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 107
IoT Based Soil Moisture Monitoring
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 108
Circuit Diagram
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 109
Code
Go to your Code Folder, then search for
“IoT_Based_Soil_Moisture_Monitoring”
and Open it.
Remember: do change your template ID,
template name and Authentication
Token according to your blynk
dashboard. Otherwise, the device won’t
connect to your server.
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 110
Create a new Data Stream to use a new widget
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 111
Now we add a Slider widget to manually adjust
the trigger value for soil moisture sensor
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 112
Edit the widget
according to guideline
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 113
We added a relay to this system to activate pump which can be shown in Indicator_1
Soil Moisture value can be observed in Sensor Data and Chart
The trigger point to activate pump can be set in Threshold slider
©FronTech Ltd. Contents from Internet for Knowledge Purpose.
16-Aug-23 114
IoT based Theft Notification
16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 115
Circuit Diagram
16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 116
Code
Go to your Code Folder, then search for
“IoT_Based_Theft_Detection”
and Open it.
Remember: do change your template ID,
template name and Authentication
Token according to your blynk
dashboard. Otherwise, the device won’t
connect to your server.
16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 117
Focus on this indicator widget for
Theft Alarm Indicator. The theft alarm
can only be turned off from Relay_1
switch.
16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 118
End of Day-1
See you tomorrow!
16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 119
IoT Smart Home
Do combine all the sensors you have and Execute!
16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 120
Wi-Fi Controlled Robot Car
16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 121
Circuit Diagram
16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 122
Code
Go to your Code Folder, then search for
“Wi-
Fi_Controlled_4X4_Wheeled_Robot”
and Open it.
Remember: do check your motor
connection and power connection
properly
16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 123
Activating your Car
Open your Serial Monitor by clicking on the
Serial Monitor Icon
Select Baud Rate to 115200
Press Reset button of your ESP8266 module
(Note that your device should be plugged in
into your pc)
Check the Serial Monitor below for IP Address
1
3 2
16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 124
Connect from your Smartphone
Search exact same IP address from your smartphone. You can use google chrome or any sorts of mobile browser.
Be sure to connect the same Wi-Fi as your ESP8266 device and rotate your phone in landscape mode.
IP Address
Direction Control
Speed
16-Aug-23 125
Thank You.
https://redwanferdous.com
https://frontech.global
redwan@frontech.global
126
17-Aug-23

More Related Content

Similar to Workshop on IoT and Basic Home Automation_BAIUST.pptx

MicroEJ OS and Edje: the software foundation for IoT devices
MicroEJ OS and Edje: the software foundation for IoT devicesMicroEJ OS and Edje: the software foundation for IoT devices
MicroEJ OS and Edje: the software foundation for IoT devices
MicroEJ
 
Eclipse IoT Edje project: the software foundation for IoT devices
Eclipse IoT Edje project: the software foundation for IoT devicesEclipse IoT Edje project: the software foundation for IoT devices
Eclipse IoT Edje project: the software foundation for IoT devices
MicroEJ
 

Similar to Workshop on IoT and Basic Home Automation_BAIUST.pptx (20)

What are the different types of arduino boards
What are the different types of arduino boardsWhat are the different types of arduino boards
What are the different types of arduino boards
 
Interoperability in Internet of Things (IOT)
Interoperability in Internet of Things (IOT)Interoperability in Internet of Things (IOT)
Interoperability in Internet of Things (IOT)
 
IOT WORKSHEET 1.4.pdf
IOT WORKSHEET 1.4.pdfIOT WORKSHEET 1.4.pdf
IOT WORKSHEET 1.4.pdf
 
Practical Introduction to Internet of Things (IoT)
Practical Introduction to Internet of Things (IoT)Practical Introduction to Internet of Things (IoT)
Practical Introduction to Internet of Things (IoT)
 
NodeMCU || Controlling and observing a robotic car with a smartphone through...
NodeMCU || Controlling and observing a robotic car with a  smartphone through...NodeMCU || Controlling and observing a robotic car with a  smartphone through...
NodeMCU || Controlling and observing a robotic car with a smartphone through...
 
Ardunio
ArdunioArdunio
Ardunio
 
4 Introduction to Arduino.pdf
4 Introduction to Arduino.pdf4 Introduction to Arduino.pdf
4 Introduction to Arduino.pdf
 
MicroEJ OS and Edje: the software foundation for IoT devices
MicroEJ OS and Edje: the software foundation for IoT devicesMicroEJ OS and Edje: the software foundation for IoT devices
MicroEJ OS and Edje: the software foundation for IoT devices
 
IRJET- Wi-Fi Control First Person View Robot (FPV)
IRJET- Wi-Fi Control First Person View Robot (FPV)IRJET- Wi-Fi Control First Person View Robot (FPV)
IRJET- Wi-Fi Control First Person View Robot (FPV)
 
Introduction to Arduino
Introduction to Arduino Introduction to Arduino
Introduction to Arduino
 
Introduction to Arduino.pptx
Introduction to Arduino.pptxIntroduction to Arduino.pptx
Introduction to Arduino.pptx
 
Eclipse IoT Edje project: the software foundation for IoT devices
Eclipse IoT Edje project: the software foundation for IoT devicesEclipse IoT Edje project: the software foundation for IoT devices
Eclipse IoT Edje project: the software foundation for IoT devices
 
Intro arduino
Intro arduinoIntro arduino
Intro arduino
 
Home Automation Using Arduino Uno and HC-05
Home Automation Using Arduino Uno and HC-05Home Automation Using Arduino Uno and HC-05
Home Automation Using Arduino Uno and HC-05
 
Arduino blueooth
Arduino blueoothArduino blueooth
Arduino blueooth
 
Industrial Applications of Arduino using Ladder Logic
Industrial Applications of Arduino using Ladder LogicIndustrial Applications of Arduino using Ladder Logic
Industrial Applications of Arduino using Ladder Logic
 
Embedded Hardware Design.pptx
Embedded Hardware Design.pptxEmbedded Hardware Design.pptx
Embedded Hardware Design.pptx
 
IoT Intro and Demo
IoT Intro and DemoIoT Intro and Demo
IoT Intro and Demo
 
Taller IoT en la Actualidad
Taller IoT en la ActualidadTaller IoT en la Actualidad
Taller IoT en la Actualidad
 
WORKING PRINCIPLE OF ARDUINO AND USING IT AS A TOOL FOR STUDY AND RESEARCH
WORKING PRINCIPLE OF ARDUINO AND USING IT AS A TOOL FOR STUDY AND RESEARCHWORKING PRINCIPLE OF ARDUINO AND USING IT AS A TOOL FOR STUDY AND RESEARCH
WORKING PRINCIPLE OF ARDUINO AND USING IT AS A TOOL FOR STUDY AND RESEARCH
 

More from Redwan Ferdous

Cohort: 3 & 4- 2nd Phase Mentoring- 3rd Session: Road to 4IR
Cohort: 3 & 4- 2nd Phase Mentoring- 3rd Session: Road to 4IRCohort: 3 & 4- 2nd Phase Mentoring- 3rd Session: Road to 4IR
Cohort: 3 & 4- 2nd Phase Mentoring- 3rd Session: Road to 4IR
Redwan Ferdous
 
Cohort: 1 & 2- 2nd Phase Mentoring- 3rd Session: Road to 4IR
Cohort: 1 & 2- 2nd Phase Mentoring- 3rd Session: Road to 4IRCohort: 1 & 2- 2nd Phase Mentoring- 3rd Session: Road to 4IR
Cohort: 1 & 2- 2nd Phase Mentoring- 3rd Session: Road to 4IR
Redwan Ferdous
 

More from Redwan Ferdous (20)

Road to 4th Industrial Revolution [for NDC Science Club]
Road to 4th Industrial Revolution [for NDC Science Club]Road to 4th Industrial Revolution [for NDC Science Club]
Road to 4th Industrial Revolution [for NDC Science Club]
 
Amazing IoT (Maker Lab, EMK Center)
Amazing IoT (Maker Lab, EMK Center)Amazing IoT (Maker Lab, EMK Center)
Amazing IoT (Maker Lab, EMK Center)
 
Smart life: Hands on training on property automation design and commissioning...
Smart life: Hands on training on property automation design and commissioning...Smart life: Hands on training on property automation design and commissioning...
Smart life: Hands on training on property automation design and commissioning...
 
Opportunities In Robotics for High School Students
Opportunities In Robotics for High School StudentsOpportunities In Robotics for High School Students
Opportunities In Robotics for High School Students
 
Cohort: 3 & 4- 2nd Phase Mentoring- 4th (final) Session: Road to 4IR
Cohort: 3 & 4- 2nd Phase Mentoring- 4th (final) Session: Road to 4IR Cohort: 3 & 4- 2nd Phase Mentoring- 4th (final) Session: Road to 4IR
Cohort: 3 & 4- 2nd Phase Mentoring- 4th (final) Session: Road to 4IR
 
Cohort: 3 & 4- 2nd Phase Mentoring- 3rd Session: Road to 4IR
Cohort: 3 & 4- 2nd Phase Mentoring- 3rd Session: Road to 4IRCohort: 3 & 4- 2nd Phase Mentoring- 3rd Session: Road to 4IR
Cohort: 3 & 4- 2nd Phase Mentoring- 3rd Session: Road to 4IR
 
Cohort: 3 & 4- 2nd Phase Mentoring- 2nd Session: Road to 4IR
Cohort: 3 & 4- 2nd Phase Mentoring- 2nd Session: Road to 4IRCohort: 3 & 4- 2nd Phase Mentoring- 2nd Session: Road to 4IR
Cohort: 3 & 4- 2nd Phase Mentoring- 2nd Session: Road to 4IR
 
Cohort: 3 & 4- 2nd Phase Mentoring: Road to 4IR (1st Session)
Cohort: 3 & 4- 2nd Phase Mentoring: Road to 4IR (1st Session)Cohort: 3 & 4- 2nd Phase Mentoring: Road to 4IR (1st Session)
Cohort: 3 & 4- 2nd Phase Mentoring: Road to 4IR (1st Session)
 
Cohort: 1 & 2- 2nd Phase Mentoring- 4th (Final) Session: Road to 4IR
Cohort: 1 & 2- 2nd Phase Mentoring- 4th (Final) Session: Road to 4IRCohort: 1 & 2- 2nd Phase Mentoring- 4th (Final) Session: Road to 4IR
Cohort: 1 & 2- 2nd Phase Mentoring- 4th (Final) Session: Road to 4IR
 
Cohort: 1 & 2- 2nd Phase Mentoring- 3rd Session: Road to 4IR
Cohort: 1 & 2- 2nd Phase Mentoring- 3rd Session: Road to 4IRCohort: 1 & 2- 2nd Phase Mentoring- 3rd Session: Road to 4IR
Cohort: 1 & 2- 2nd Phase Mentoring- 3rd Session: Road to 4IR
 
Cohort: 1 & 2- 2nd Phase Mentoring- 2nd Session: Road to 4IR
Cohort: 1 & 2- 2nd Phase Mentoring- 2nd Session: Road to 4IRCohort: 1 & 2- 2nd Phase Mentoring- 2nd Session: Road to 4IR
Cohort: 1 & 2- 2nd Phase Mentoring- 2nd Session: Road to 4IR
 
Cohort: 1 & 2- 2nd Phase Mentoring: Road to 4IR (1st Session)
Cohort: 1 & 2- 2nd Phase Mentoring: Road to 4IR (1st Session)Cohort: 1 & 2- 2nd Phase Mentoring: Road to 4IR (1st Session)
Cohort: 1 & 2- 2nd Phase Mentoring: Road to 4IR (1st Session)
 
Introduction to Digital Citizenship
Introduction to Digital CitizenshipIntroduction to Digital Citizenship
Introduction to Digital Citizenship
 
Introduction to 4th Industrial Revolution
Introduction to 4th Industrial RevolutionIntroduction to 4th Industrial Revolution
Introduction to 4th Industrial Revolution
 
Career as Project Manager for Electrical Engineer_PUC_Redwan Ferdous
Career as Project Manager for Electrical Engineer_PUC_Redwan FerdousCareer as Project Manager for Electrical Engineer_PUC_Redwan Ferdous
Career as Project Manager for Electrical Engineer_PUC_Redwan Ferdous
 
Fundamentals of Arduino: Day-02
Fundamentals of Arduino: Day-02Fundamentals of Arduino: Day-02
Fundamentals of Arduino: Day-02
 
IoT and 5G: Future Career
IoT and 5G: Future CareerIoT and 5G: Future Career
IoT and 5G: Future Career
 
Fundamentals of Arduino: Day-01
Fundamentals of Arduino: Day-01Fundamentals of Arduino: Day-01
Fundamentals of Arduino: Day-01
 
Robotics: Future Career
Robotics: Future CareerRobotics: Future Career
Robotics: Future Career
 
Fourth Industrial Revolution in Food Industry_Redwan Ferdous_HULT Prize
Fourth Industrial Revolution in Food Industry_Redwan Ferdous_HULT PrizeFourth Industrial Revolution in Food Industry_Redwan Ferdous_HULT Prize
Fourth Industrial Revolution in Food Industry_Redwan Ferdous_HULT Prize
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Recently uploaded (20)

Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Quantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingQuantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation Computing
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 
Simplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptxSimplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptx
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
API Governance and Monetization - The evolution of API governance
API Governance and Monetization -  The evolution of API governanceAPI Governance and Monetization -  The evolution of API governance
API Governance and Monetization - The evolution of API governance
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 
Navigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern EnterpriseNavigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern Enterprise
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 

Workshop on IoT and Basic Home Automation_BAIUST.pptx

  • 1. 1
  • 2. Redwan Ferdous Loves Robotics, Automobiles, Projects, Tech-Investment - Professional Project Manager (PRINCE2, PMP) - Director, FronTech Ltd. & Founder, JRC Board - Worked for Walton, Aamra & Labaid for past 12 years - B.Sc. (EEE) from AUST M.Sc. (IT) from JU MBA (Finance) from DU ACMP 4.0 from IBA, DU - Senior Member, IEEE, Life Member, IEB - Electrical Supervisor of GoB - Country Representative of Bangladesh for - International Robot Olympiad - World Robot Olympiad - World Robotics Championship www.redwanferdous.com | https://frontech.global redwan@frontech.global 16-Aug-23 2
  • 3. Ground Rules • Its an informal session, feel free to ask questions. No matter how silly or irrelevant you think! Just Ask! • Please don’t do side talks. You are grown up now! • Medium of Knowledge sharing: English & Bangla • You can take snapshots of the PPT! However, all are available on Slideshare, Github and Internet. • Today- you come here to get the food of thinking and exploring for next few weeks. You will not learn everything about IoT and embedded system today- but you will learn- ‘How to Learn’! ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 3 16-Aug-23
  • 4. Disclaimer • You need not to invent wheel all the time, rather its better to create application using that wheel !! • Most of the contents of my slides are collected from internet. Credit mentioned with due respect at the last slide. • My job is to facilitate the way of learning. Your job is to explore according to that. • If you assure me of ‘Practice’, I can assure you of ‘Success’. 4 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23
  • 5. And, I’m Considering… • You have knowledge of the followings: • Basic Electronics (Resistance, Capacitance, Inductance, Transistor, FET, Diode, AC-DC, Op-Amp, Opto-couplers) • Basic Analog and Digital circuitry • Basic Components (LED, LDR, POT, LCD, Motor) • Basic Example coding experience in Arduino IDE 5 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23
  • 6. Today’s (or 2 days!) Agenda • Robotics, IoT, Embedded Systems • Introducing with ESP8266 • 12 projects with ESP8266 and IoT- Live monitoring and control from internet! • Fun and Learn! 6 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23
  • 7. What is Microcontroller? 16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 7
  • 8. ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 8
  • 9. ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 9
  • 10. Microcontroller Development Board ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 10
  • 11. Embedded System 11 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23
  • 12. Embedded System • The difference between embedded systems designers and software engineers or IT technicians is the in-depth knowledge of the hardware that embedded designers possess. • Embedded designers must have knowledge of electronics to effectively design embedded systems. 12 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23
  • 13. Entry Level Boards Easy to Use and Ready to Power Your First Creative Project 8/16/2023 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 13
  • 14. Enhanced Feature Boards The Boards with Advanced Functionalities or Faster Performances for Complex Projects 8/16/2023 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 14
  • 15. Arduino and Sensors 15 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23
  • 16. JRC Board JRC board is a microcontroller board based on the ESP- WROOM-32. It has 20 digital input/output pins of which pin 25 and 26 can be used as analog outputs, 12 analog inputs, an USB type C connection, an ICSP header and a reset button. It contains everything needed to support the microcontroller. Simply connect it to a computer with a USB cable or battery to get started. Keep Up with the World A Low-Cost Board for Schools in Bangladesh and Beyond. Powerful System on Chip. An In-House Development Board for our future products to blend in the Existing Ecosystem.
  • 17. ESP32 chip Reset button Voltage Regulator USB Type-C port Uploader Chip (FT232RL) Circuit Protection Diode GPIO pins I2C pins UART pins GPIO pins Power pins RESET pin Reference pin L293D IC ICSP pins
  • 18. Specs and Features: Processors: ● CPU: Xtensa Dual-Core 32-bit LX6 Microprocessor, operating at 240 MHz and performing at up to 600 DMIPS. ● Ultra-Low Power (ULP) Co-Processor. Memory: ● 520KB of RAM (expendable up to 8MB externally) ● 1024 locations for EEPROM ● 4MB of flash memory (expandable up to 16 MB externally) Wireless connectivity: ● Wi-Fi: 802.11 b/g/n ● v4.2 BR/EDR and BLE Peripheral Interfaces: ● 12-bit SAR ADC up to 18 channels ● 2 × 8-bit DACs (GPIO 25 and 26) ● 18 × PWM pins (Controlled by up to 16 channels) ● 7 × Touch Sensors (Capacitive Sensing GPIOs) ● 1 × SPI ● 1 × I2S Interfaces ● 1 × I2C Interfaces ● 2 × UART ● All digital pins compatible with external interrupt 8/11/2023 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 18
  • 19. Platforms for developing IoT Solutions: Hobbyist • ESP32/ ESP8266 • Arduino • Raspberry Pi • Particle • Intel Edison • Adafruit Platforms (i.e.Flora) 15-May-20 19 Most of the contents of this presentation file is collected from internet. The sources are mentioned with respect in the end 03 slides. Thank you to the contributors.
  • 20. Platforms for developing IoT Solutions: IIoT • STM32 Development Boards (i.e. STM32L4 IoT Discovery Kit) • ZedBoard • Nvidia Jetson (For Machine Learning) • Sti Microcontroller Based Platforms 15-May-20 20 Most of the contents of this presentation file is collected from internet. The sources are mentioned with respect in the end 03 slides. Thank you to the contributors.
  • 21. Protocols Used in IoT/Smart Devices • WiFi • Bluetooth • ZigBee • NFC • Cellular (3G/4G/LTE) • LoRaWAN • MQTT (Message Queue Telemetry Transport) • DDS (Data Distribution Service) • AMQP • RFID • Z-Wave (Low Range-Home appliance usage) • Sigfox (Cellular +WiFi) 15-May-20 21 Most of the contents of this presentation file is collected from internet. The sources are mentioned with respect in the end 03 slides. Thank you to the contributors.
  • 22. Basic Electronics 22 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23
  • 23. About ESP8266 • Tiny but powerful microcontroller • Very cheap • Built in Wi-Fi • IoT enabled ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 23
  • 24. ESP8266 Board View 16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 24
  • 25. ESP8266 Pinouts ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 25
  • 26. 16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 26
  • 27. Arduino IDE 27 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 Version: 01 Version: 02
  • 28. Let’s Explore • Let’s explore Arduino site and find different options with Arduino: https://www.arduino.cc/ 28 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23
  • 29. Getting started with Programming 29 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23
  • 30. void setup() { // put your setup code here, to run once: } void loop() { // put your main code here, to run repeatedly: } Bare minimum code 30 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23
  • 31. • setup : It is called only when the Arduino is powered on or reset. It is used to initialize variables and pin modes • loop : The loop functions runs continuously till the device is powered off. The main logic of the code goes here. Similar to while (1) for micro-controller programming. Bare minimum code 31 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23
  • 32. • A pin on arduino can be set as input or output by using pinMode function. • pinMode(13, OUTPUT); // sets pin 13 as output pin • pinMode(13, INPUT); // sets pin 13 as input pin PinMode 32 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23
  • 33. • digitalWrite(13, LOW); // Makes the output voltage on pin 13 , 0V • digitalWrite(13, HIGH); // Makes the output voltage on pin 13 , 5V • int buttonState = digitalRead(2); // reads the value of pin 2 in buttonState Reading/writing digital values 33 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23
  • 34. • What is analog ? • It is continuous range of voltage values (not just 0 or 5V) • Why convert to digital ? • Because our microcontroller only understands digital. Analog to Digital Coversion 34 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23
  • 35. Installing ESP8266 Board Manager for Arduino IDE First Click on “File”, then “preferences” A new window should pop up ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 35
  • 36. Installing ESP8266 Board Manager for Arduino IDE In the dialogue box “Additional Board Manager URL”, Paste the link below and hit “Okay” http://arduino.esp8266.com/stable/package_esp8266com_index.json You can directly find this link by searching this keyword in google: “what is esp8266 board manager url for arduino ide?” ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 36
  • 37. Installing ESP8266 Board Manager for Arduino IDE On Arduino IDE V1, click on “Tools”, Then “Board”, then “Boards Manager” A new window will pop up. On Arduino IDE V2, directly click on “Boards Manager” icon. ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 37
  • 38. Installing ESP8266 Board Manager for Arduino IDE Search for “ESP8266” on search bar. Whatever shows up on first, click “Install” for the latest version 16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 38
  • 39. Know your Components • ESP 8266 • Four Channel 5v Relay Module • IR sensor • Rain Sensor • Motion Sensor • BMP280 • MQ135 • HC-SR04-Ultrasonic • Soil moisture sensor • L298N motor driver • Chassis for 4WD car. 16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 39
  • 40. Know your Components • We will learn about each devices through ‘Datasheet’ 16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 40
  • 41. Session’s Project List 1. Led Blink 2. Ac line load on off 3. Iot base Fire Notification Alert System 4. Iot Rain Notification Alert System 5. Automatic Thief Detector system 6. IoT Based Home Weather 7. Gas leakage alert system 8. Water level monitoring system 9. IoT based smart irrigation system 10. IoT based smart home automation system 11. IoT based smart 4wd car. 16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 41
  • 42. First Project Blink your LED ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 42
  • 43. Circuit Diagram ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 43
  • 44. Code Click on File, then click on examples, then click on basics, and then Blink. A new code will pop up. ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 44
  • 45. Uploading the Code Click on Board selection panel as the markings indicated. Then select other board and port. ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 45
  • 46. Uploading the Code Search for Generic ESP8266 Module in the board search option. Select the proper COM Port and click okay. ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 46
  • 47. Code After setting up the board. Click on the Upload Icon. ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 47
  • 48. 2nd Project Enable your IoT Device ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 48
  • 49. Circuit Diagram ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 49
  • 50. IoT Online Platform/ Server • For the entire session, we will use ‘Blynk’ as IoT Server • ‘Blynk’ is the common and mostly used IoT server for device control • Other than, ‘Blynk’, there are ‘Sematext Cloud’, ‘IFTTT’, ‘Mingo’. ‘Scaleway’, ‘Google Cloud IoT’ and others. • Please go to ‘https://blynk.cloud’ 16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 50
  • 51. Create an account in Blynk First, go to your browser and search for blynk.cc -> then click on Start Free. A new window will pop up. Here enter your email address and then click Sign Up. ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 51
  • 52. A confirmation link will be sent to your mail. Clicking on that link will bring you back to Blynk platform. Here you will see an option to set your name and create password which will keep your account secure. ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 52
  • 53. Here you will see some guideline. You can click Next for all of them 1 2 3 4 5 6 7 8 16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 53
  • 54. Now we will be redirected to a QuickStart guide. Here on this window we will select ESP8266 as device and Wi-Fi as connectivity type. Then click next ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 54
  • 55. On next window, we will select Arduino as our IDE and click Next. Then we will be instructed to install Blynk Library to our Arduino IDE. Install the library following the instructions and then click next. ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 55
  • 56. On Arduino IDE V2, we can simply select the Library icon and search “Blynk” on the search bar. Finding the appropriate library, click install. ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 56
  • 57. Here on this window, write down your Wi-Fi name and password where you want your device to connect. Then copy the code to use it in your Arduino IDE 1 2 3 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 57
  • 58. After Copy-Pasting code to a new sketch, we are ready to upload the code. But to truly admire the implementation of IoT system, we need to add two lines of code in our sketch in order to pair a LED with the IoT system. Follow the Markings in the image. After setting up the code, Upload the code to your board. 16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 58
  • 59. If the device successfully connects with the internet, you will see a confirmation window. Clicking on Go To Device, we will be introduced with a default dashboard where we can control our built-in LED by clicking on virtual switch on dashboard. ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 59
  • 60. Rain Notification in IoT ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 60
  • 61. Circuit Diagram ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 61 Connect D2 instead of D1
  • 62. Code Go to your Code Folder, then search for “IoT_Based_Rain_Detection” and Open it. Remember: do change your template ID, template name and Authentication Token according to your blynk dashboard. Otherwise, the device won’t connect to your server. ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 62
  • 63. Focus on this Indicator Panel for Rain Detection ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 63
  • 64. Gas Leakage Monitoring in IoT ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 64
  • 65. Circuit Diagram GND AO VCC ©FronTech Ltd. Contents from Internet for Knowledge Purpose. ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 65
  • 66. Code Go to your Code Folder, then search for “IoT_Based_Gas_Leakage_Detection” and Open it. Remember: do change your template ID, template name and Authentication Token according to your blynk dashboard. Otherwise, the device won’t connect to your server. ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 66
  • 67. Create a new Data Stream to use a new widget This is because we can get maximum value of 1024 in analog reading of JRC Board ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 67
  • 68. Drag this widget to show the sensor data ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 68
  • 69. We can do all sorts of modification here! Follow this guide to edit the last widget we added and then click save ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 69
  • 70. Also, edit the Guage Level Widget and change it according to virtual pin value V6 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 70
  • 71. We can also use chart widget to accurately show sensor data over time ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 71
  • 72. Edit the widget according to guideline ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 72
  • 73. After clicking “Save and Apply” the dashboard should look like this! Pretty cool, right? ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 73
  • 74. IoT based Water Level Monitoring 16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 74
  • 75. Circuit Diagram 16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 75
  • 76. Code Go to your Code Folder, then search for “IoT_Based_Theft_Detection” and Open it. Remember: do change your template ID, template name and Authentication Token according to your blynk dashboard. Otherwise, the device won’t connect to your server. 16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 76
  • 77. Function of pulseIn() • The pulseIn() function reads a HIGH or a LOW pulse on a pin. It accepts as arguments the pin and the state of the pulse (either HIGH or LOW). It returns the length of the pulse in microseconds. The pulse length corresponds to the time it took to travel to the object plus the time traveled on the way back. 16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 77
  • 78. Focus on this indicator widget for Water Pump Status. Sensor Distance value can be observed in Sensor Value panel 16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 78
  • 79. IoT Based Weather Monitoring ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 79
  • 80. Circuit Diagram SCL SDA SCL SDA VCC GND ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 80
  • 81. Code Go to your Code Folder, then search for “IoT_Based_Weather_Monitoring” and Open it. Remember: do change your template ID, template name and Authentication Token according to your blynk dashboard. Otherwise, the device won’t connect to your server. ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 81
  • 82. Create 2 New Data Streams for Temperature and Pressure ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 82
  • 83. You can edit the DataStream of the Chart widget to temperature to show the timewise weather update 16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 83
  • 84. We can do all sorts of modification here! Follow this guide to edit the last widget we added and then click save ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 84
  • 85. Also, edit the Guage Level Widget and change it according to virtual pin value V9 to show Pressure Guage ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 85
  • 86. Temperature value can be observed in Sensor Data and Chart Pressure can be observed in Pressure Guage 16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 86
  • 87. Fire Alarm Notification in IoT ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 87
  • 88. Circuit Diagram ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 88
  • 89. Code Go to your Code Folder, then search for “IoT_Based_Fire_Detection” and Open it. Remember: do change your template ID, template name and Authentication Token according to your blynk dashboard. Otherwise, the device won’t connect to your server. ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 89
  • 90. Focus on this Indicator Panel for Fire Detection ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 90
  • 91. IoT Based Appliance Control ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 91
  • 92. Circuit Diagram ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 92
  • 93. Code Go to your Code Folder, then search for “IoT_Based_Appliance_Control” and Open it. Remember: do change your template ID, template name and Authentication Token according to your blynk dashboard. Otherwise, the device won’t connect to your server. ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 93
  • 94. First, we need to edit the dashboard 1 2 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 94
  • 95. We can have a look at the DataStream. Here, we don’t need the Button Image, so we can delete it. ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 95
  • 96. As soon as we click delete button, there will be a pop-up window asking for confirmation. Do the steps accordingly and click delete ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 96
  • 97. To newly insert any wizard, we need to add a DataStream for each individual appliance control 1 2 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 97
  • 98. We need to set appropriate variable type for the DataStream and Name it however we want 1 2 16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 98
  • 99. We can also edit the existing DataStreams by clicking on it. Let’s give them all the appropriate name ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 99
  • 100. We can also duplicate any virtual pin for fast adding using this button ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 100
  • 101. This is how it looks after editing all the Data Streams ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 101
  • 102. Now we can focus on web dashboard. We can drag and drop any free widget at our convenience and resize them in anyways. ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 102
  • 103. Now, we add two new widgets for controlling two appliances simultaneously. ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 103
  • 104. We can edit any widget by hovering mouse cursor to its corner and then click settings 1 2 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 104
  • 105. This widget indicates the feedback status from device end. We can select appropriate Data Stream (according to code) and Name it to our convenience 16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 105
  • 106. Do the same for Switch widget also! 16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 106
  • 107. After doing all the necessary steps, the dashboard should look like this Click “Save and Apply” ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 107
  • 108. IoT Based Soil Moisture Monitoring ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 108
  • 109. Circuit Diagram ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 109
  • 110. Code Go to your Code Folder, then search for “IoT_Based_Soil_Moisture_Monitoring” and Open it. Remember: do change your template ID, template name and Authentication Token according to your blynk dashboard. Otherwise, the device won’t connect to your server. ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 110
  • 111. Create a new Data Stream to use a new widget ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 111
  • 112. Now we add a Slider widget to manually adjust the trigger value for soil moisture sensor ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 112
  • 113. Edit the widget according to guideline ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 113
  • 114. We added a relay to this system to activate pump which can be shown in Indicator_1 Soil Moisture value can be observed in Sensor Data and Chart The trigger point to activate pump can be set in Threshold slider ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 16-Aug-23 114
  • 115. IoT based Theft Notification 16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 115
  • 116. Circuit Diagram 16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 116
  • 117. Code Go to your Code Folder, then search for “IoT_Based_Theft_Detection” and Open it. Remember: do change your template ID, template name and Authentication Token according to your blynk dashboard. Otherwise, the device won’t connect to your server. 16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 117
  • 118. Focus on this indicator widget for Theft Alarm Indicator. The theft alarm can only be turned off from Relay_1 switch. 16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 118
  • 119. End of Day-1 See you tomorrow! 16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 119
  • 120. IoT Smart Home Do combine all the sensors you have and Execute! 16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 120
  • 121. Wi-Fi Controlled Robot Car 16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 121
  • 122. Circuit Diagram 16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 122
  • 123. Code Go to your Code Folder, then search for “Wi- Fi_Controlled_4X4_Wheeled_Robot” and Open it. Remember: do check your motor connection and power connection properly 16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 123
  • 124. Activating your Car Open your Serial Monitor by clicking on the Serial Monitor Icon Select Baud Rate to 115200 Press Reset button of your ESP8266 module (Note that your device should be plugged in into your pc) Check the Serial Monitor below for IP Address 1 3 2 16-Aug-23 ©FronTech Ltd. Contents from Internet for Knowledge Purpose. 124
  • 125. Connect from your Smartphone Search exact same IP address from your smartphone. You can use google chrome or any sorts of mobile browser. Be sure to connect the same Wi-Fi as your ESP8266 device and rotate your phone in landscape mode. IP Address Direction Control Speed 16-Aug-23 125