0% found this document useful (0 votes)
3 views16 pages

Y22EC2664

The document provides an overview of the Arduino IoT project, detailing its history, types of Arduino boards, and features. It includes programming examples and applications in various fields such as robotics and home automation. The conclusion emphasizes Arduino's role in democratizing electronics and fostering innovation.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views16 pages

Y22EC2664

The document provides an overview of the Arduino IoT project, detailing its history, types of Arduino boards, and features. It includes programming examples and applications in various fields such as robotics and home automation. The conclusion emphasizes Arduino's role in democratizing electronics and fostering innovation.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

Project Arduino Iot

Under the supervision of


Mrs.Bhavani
SRC e-solutions,Vijayawada
(15-07-2024 to 19-09-2024)
Name:Pusuluri seetha Department of Electronics
Regd.No:Y22EC2664 and Communication
Engineering
BAPATLA WOMEN’S This Photo by Unknown Author is licensed under CC BY-NC-ND

ENGINEERING COLLEGE
BAPATLA
ANDHRA PRADESH
Introduction to
Arduino

ARDUINO IS AN OPEN-SOURCE ELECTRONICS


PLATFORM BASED ON EASY-TO-USE
HARDWARE AND SOFTWARE.
History of Arduino

 Arduino was developed in 2005


 by Massimo Banzi and team,
 initially aimed for students.
This Photo by Unknown Author is licensed under CC BY-SA-NC
Arduino Board Types

 Common types include Arduino Uno


 Mega
 Nano, and Leonardo.

This Photo by Unknown Author is licensed under CC BY-SA-NC


About Mother board

The motherboard of an Arduino board is a printed


circuit board (PCB) that contains a microcontroller.
The microcontroller is a chip that can read inputs
and turn them into outputs.
Components of Mother board

A motherboard's components include


CPU
RAM
storage, and expansion cards.
It also has connectors for peripherals like
keyboards, mice, and USB devices.
Features of
Arduino

Simple
cost-effective
cross-platform
open-source, and extensible.

This Photo by Unknown Author is licensed under CC BY-SA

This Photo by Unknown Author is licensed under CC BY-NC


Programming Arduino
Uses the Arduino IDE, which is based on C/C++ programming languages

#include "DHT.h“
#include <LiquidCrystal.h>const
int rs = 6, en = 7, d4 = 8, d5 = 9, d6 = 10, d7 = 11;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
#define DHTPIN 4
#define DHTTYPE DHT11
DHT dht(DHTPIN, DHTTYPE);
int smk=A0;
void setup(){
lcd.begin(16,2);
dht.begin();
pinMode(smk,INPUT);
Serial.begin(115200);
lcd.setCursor(0,0);
lcd.print(" WELCOME");
lcd.setCursor(0,1);
lcd.print("TEMP & HUM LOGGER");
delay(500);
wifi_init();
lcd.clear();
lcd.setCursor(0,0);
lcd.print("TEMP: 'C");
lcd.setCursor(0,1);
lcd.print("HUMD: Rh");
}
void loop(){
int h = dht.readHumidity();
int t = dht.readTemperature();
int Sval=analogRead(smk);
lcd.setCursor(5,0);
lcd.print(" ");
lcd.setCursor(5,0);
lcd.print(t);
lcd.setCursor(5,1);
lcd.print(" ");
lcd.setCursor(5,1);
lcd.print(h);
lcd.setCursor(8,1);
lcd.print("S:");
lcd.setCursor(11,1);
lcd.print(Sval);
upload_iot(t,h,Sval);
}
void wifi_init()
{
Serial.println("AT+RST");
delay(4000);
Serial.println("AT+CWMODE=3");
delay(4000);
Serial.print("AT+CWJAP=");
Serial.write('“’);
Serial.print("123"); // ssid/user name
Serial.write('“’);
Serial.write(',’);
Serial.write('“’);
Serial.print("haribabu"); //password
Serial.write('“’);
Serial.println();
delay(1000);
}
void upload_iot(int x, int y,int z) //ldr copied int to - x and gas copied
into –y
{
String cmd = "AT+CIPSTART=\"TCP\",\"";
cmd += "184.106.153.149"; // api.thingspeak.com
cmd += "\",80";
Serial.println(cmd);
delay(1500);
String getStr ="GET /update?api_key=MW6ESOWJ00JZVEC3&field1=";
getStr += String(x);
getStr +="&field2=";
getStr += String(y);
getStr +="&field3=";
getStr += String(z);
getStr += "\r\n\r\n";
cmd = "AT+CIPSEND=";
cmd += String(getStr.length());
Serial.println(cmd);
delay(1500);
Serial.println(getStr);
delay(1500);
}
Arduino programme
#include "DHT.h“
int led=D0;
int gas=A0;
int buz=D1;
int fs=D2;
int cf=D3;
int ef=D4;
int wp=D5;
int hf=D6;
#define DHTPIN 4
#define DHTTYPE DHT11
DHT dht(DHTPIN, DHTTYPE);
void setup() {
dht.begin();
pinMode(fs,INPUT);
pinMode(gas,INPUT);
pinMode(wp,OUTPUT);
pinMode(hf,OUTPUT);
pinMode(cf,OUTPUT);
pinMode(ef,OUTPUT);
pinMode(led,OUTPUT);
pinMode(buz,OUTPUT); Serial.begin(9600);
}
void loop() {
int gval=analogRead(gas);
int fval=digitalRead(fs);
int h = dht.readHumidity();
intdht.readTemperature();
Serial.println("FIRE:"+String(fval));
Serial.println("GAS:"+String(gas));
Serial.println("T:"+String(t));
Serial.println("H:"+String(h));
delay(1000);
if(gval>300)
{
digitalWrite(buz,1);
digitalWrite(ef,1);
Else
{
digitalWrite(ef,0);
digitalWrite(buz,0);
}
if(fval==0)
{
digitalWrite(buz,1);
digitalWrite(wp,1);
}
Else
{
digitalWrite(buz,0);
digitalWrite(wp,0);
}
if(t>35)
{
digitalWrite(cf,1);
digitalWrite(led,1);
}
Else
{
digitalWrite(cf,0);
digitalWrite(led,0);
}
if(h>90)
{
digitalWrite(hf,1);
}
Else
{
digitalWrite(hf,0);
}
}
Applications of Arduino

Used in robotics,
IoT
home automation
and wearable devices.

This Photo by Unknown Author is licensed under CC BY-SA


Advantages of Arduino

Beginner-friendly

Large community support

Highly versatile

Easy to use

Cost-effective.
This Photo by Unknown Author is licensed under CC BY-SA
Conclusion

Arduino democratized
electronics and prototyping,
inspiring innovation worldwide.
THANK YOU

You might also like