Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 15
INTERNET OF THINGS (IOT)
DLD (SPRING 2024)
By H.M Faisal INTERNET OF THINGS
• Network of Physical Objects/things
• Embedded with Sensors • Software and other technologies • Purpose of connecting and exchanging Data • With other devices and systems • Over the Internet ARDUINO (MICRO CONTROLLER) • Arduino is an open-source electronics platform • https://www.arduino.cc • Latest: Arduino IDE 2.3.2 (https://www.arduino.cc/en/software) • arduino-ide_2.3.2_Windows_64bit.exe (162MB)
• Examples: • Arduino UNO • Arduino Mega • Arduino Nano • Arduino NodeMCU ARDUINO UNO
Name: Arduino UNO R3
(ATmega328P) Flash Memory: 32 KB 0.5 KB used by bootloader SRAM: 2 KB EEPROM: 1 KB Price: Rs. 700 Operating Voltage: 5V Digital I/O pins: 14 PWM output pins (VDD or 0V): 6 Analog input pins: 6 ARDUINO MEGA
• Goto Aurdino File —>Preferences—>URL: (Copy paste following link) http://arduino.esp8266.com/stable/package_esp8266com_index.json • And press ok. • Quit and open Arduino again. • Then search in board manager, select esp8266 and install LAB1: BLINK ON-BOARD LED AND EXTERNAL LED Components Required: • NodeMCU • LED Bulb (White and Red) • Resistor 200 ohm (for red bulb 2V) • Micro USB cable • Bread board • Plug Pin Jumper connecting wires (preferably one red and other black) LAB1: BLINK ON-BOARD LED AND EXTERNAL LED Steps: • Connect NodeMCU on bread board • Connect laptop usb port with NodeMCU using micro usb cable • Arduino->Select port (Tools>Port) [if port not selected then goto Device Manager] • Anode pin (+ve/longer) of the LED to the pin D7(or any pin D1-D7) of NodeMCU. • Cathode pin (-ve/shorter) of the LED to the any GND pin of NodeMCU. LAB-1 CODE //////////////////////////// List of Header Files ////////////////////////////////////////////////// //////////////////////////// List of variables and objects defined ////////////////////////////////////
#define LED D1
void setup() { // Setup function to run once
pinMode(LED, OUTPUT); //For external LED
void loop() { // loop function having main code here