IOT
Mars Robots
What is IOT
The Internet of Things (IoT) is the network of physical objects
devices, vehicles, buildings and other items embedded with
electronics, software, sensors, and network connectivity that
enables these objects to collect and exchange data.
………..In a single Sentense ANY THING @ ANY WHERE
Mars Robots
Information Security
What is IOT
Office of Budget and Finance
Education – Partnership –
Solutions
Everywhere like electricity
Ex: On your campus…
Information Security
Office of Budget and Finance
Education – Partnership –
Solutions
Applications
Safety & Security
Connected Cars
Traffic management
Smart Home/Smart Lifestyle
E-umbrella weather forecasting
Machine 2 Machine
Welcome
WELCOMEto
TOnew
NEW“ERA”
“ERA”
Opportunities
PROJECT AREAS
ARDUINO
The Arduino Development Board
Making-robots-with-arduino.pdf
What is the Arduino
todbot.com/blog/bionicarduino
Getting Started
• Check out: http://arduino.cc/en/Guide/HomePage
1. Download & install the Arduino environment (IDE)
2. Connect the board to your computer via the UBS
cable
3. If needed, install the drivers (not needed in lab)
4. Launch the Arduino IDE
5. Select your board
6. Select your serial port
7. Open the blink example
8. Upload the program
Arduino IDE
See: http://arduino.cc/en/Guide/Environment for more information
Select Serial Port and Board
Status Messages
todbot.com/blog/bionicarduino
A Little Bit About Programming
• Code is case
sensitive
• Statements are
commands and
must end with a
semi-colon
• Comments follow
a // or begin
with /* and end
with */
• loop and setup
Our First Program
Digital I/0
pinMode(pin, mode)
Sets pin to either INPUT or OUTPUT
digitalRead(pin)
Reads HIGH or LOW from a pin
digitalWrite(pin, value)
Writes HIGH or LOW to a pin
analogRead(pin)
Reads HIGH or LOW to a pin
Arduino Timing
• delay(ms)
– Pauses for a few milliseconds
• delayMicroseconds(us)
– Pauses for a few microseconds
• More commands: arduino.cc/en
/Reference/HomePage
Digital? Analog?
• Digital has two values: on and off
• Analog has many (infinite) values
• Computers don’t really do analog, they
quantize
• Remember the 6 analog input pins---here’s
how they work
todbot.com/blog/bionicarduino
NODE MCU
Jul 3, 2025
• NodeMCU is an open source IoT platform.
• It includes firmware which runs on the
ESP8266 Wi-Fi SoC
Developer ESP8266 Opensource Community
Type Single-board microcontroller
Operating system XTOS
CPU ESP8266[1](LX106[2])
Memory 128kBytes
Storage 4MBytes[3]
Power USB
Website www.nodemcu.com, API reference:
nodemcu.readthedocs.io
PIN CONFIGURATION
SETTING UP NODEMCU IN ARDUINO IDE
Step 1: add the additional board manager URL to
files>preference>additional board URL
URL:
http://arduino.esp8266.com/stable/
package_esp8266com_index.json
Step 2: install board manager in IDE
Tools>boards>board manager
There search for ESP board manager
LED BLINKING
Void setup()
{
pinMode(13,OUTPUT);
}
Void loop()
{
digitalWrite(13,HIGH);
delay(1000);
digitalWrite(13,HIGH);
delay(1000);
}
CONNECTIONS
ULTRASONIC SENSOR
PIN DIAGRAM
WORKING
TIMING DIAGRAM
IR SENSOR
PIN DIAGRAM
ARDUINO IR SENSOR INTERFACING
PROGRAMMING
pinMode(pin_no,INPUT);
digitalRead(pin_no);
DHT11
DHT11 pinout
WIFI PROGRAMMING
#include <ESP8266WiFi.h> //WIFI LIBRARY
#define ssid “SSID OF YOUR WIFI”
#define psk “PASSWORD OF YOUR WIFI”
WiFi.begin(STASSID, STAPSK); //FUNCTION TO CONNECT
TO WIFI
WiFi.status() = WL_CONNECTED //STATUS TO CHECK
CONNECTION
Thingspeak
This Photo by Unknown Author is licensed
under CC BY-SA-NC
CONTROLLING LED WITH WEBPAGE
LED CONTROLLING
Step 1: interface LED with nodemcu and test it,
check functionality
Step 3: combine led program with led webpage
program
Step 4: connect nodemcu upload the program and
find IP and load the webpage