IOT Using Arduino
IOT Using Arduino
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
Making-robots-with-arduino.pdf
What is the Arduino
todbot.com/blog/bionicarduino
Getting Started
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
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