SlideShare a Scribd company logo
2022
Arduino SenSorS
 Created By - Abhimani Sadeesha
 Grade - 9F
 Date - 2022.02.09
Content
01. What is Arduino?
02. Types of Arduino
03. Arduino Sensors;
 Ultrasonic Sensor
 LDR Sensor
 DHT11 Temperature and Humidity Sensor
 PIR Motion Sensor (Passive Infrared Sensor)
Arduino
Arduino
What is Arduino?
 Arduino is an open-source electronics platform based on
easy-to-use hardware and software.
 Founder of the Arduino - Massimo Banzi.
Types of Arduino Boards
 Arduino Uno
 LilyPad Arduino
 Arduino Mega
 Arduino Leonardo
 Arduino Nano
 Arduino Red Board
Arduino Sensors
 Ultrasonic Sensor
 LDR Sensor
 DHT11 Temperature and Humidity Sensor
 PIR Sensor
01
 Ultrasonic Sensor
 Ultrasonic Sensors measure distance
by using ultrasonic waves.
 Ultrasonic sensors are used primarily
as proximity sensors.
 Parts of the Ultrasonic Sensor
 Diagram of the Ultrasonic Sensor
02 Arduino SenSorS
 GND (Ground) - GND connects to the GND in the Arduino.
 Echo (Signal input pin) - Echo pin connects to a digital pin on the
 Trig (Signal output pin) - Trig pin connects to a digital pin on the
 VCC - VCC connects to the 5V pin on the Arduino.
03
Arduino (pin 3).
Arduino (pin 2).
The way how the pins of the Ultrasonic Sensor connects to the
Arduino;
Programming code of the Ultrasonic sensor
void setup ( ) {
#define trig 2
#define echo 8
pinMode (echo, INPUT);
pinMode (trig, OUTPUT);
pinMode (10, OUTPUT);
Serial.begin (9600);
}
void loop ( ) {
digitalWrite(trig, LOW);
delayMicroseconds (10);
digitalWrite (trig, HIGH);
delayMicroseconds (10);
digitalWrite (trig, LOW);
long t=pulseIn (echo, HIGH);
long cm=t/29/2;
if (cm<10)
digitalWrite(10, HIGH);
else
digitalWrite(10, LOW);
}
04
 LDR (Light Dependent Resistor)
 Parts of the LDR Sensor
 A Light Dependent Resistor (LDR) is a
variable resistor whose resistance decreases
depending on light intensity.
 Light Depending Resistor (LDR) are light
sensitive devices which used to indicate the
presence or absence of light or to measure
the light intensity.
GND
DO (Digital Output) pin
VCC
Sensitivity Adjustment
LDR
05
 GND (Ground) - GND connects to the GND on the Arduino.
 VCC - VCC connects to the 5V pin on the Arduino.
 DO (Digital Output) - DO pin connects to a digital pin on the
06
The way how the pins of the LDR Sensor connects to the
Arduino;
Arduino (Pin 7).
Programming code of the LDR Sensor
void setup ( ) {
pinMode (12, OUTPUT); //LED Pin
pinMode (7, INPUT); //LDR DO Pin
}
void loop ( ) {
if (digitalRead (7) ==1) {
digitalWrite(12, HIGH);
}
else {
digitalWrite(12, LOW);
delay (200);
}
}
07
 DHT11 is a low-cost digital sensor for
sensing temperature and humidity.
 DHT11 Temperature and Humidity
Sensors are the most commonly used
Environmental sensors.
08  DHT11 Temperature and Humidity Sensor
 Parts of the DHT11 Temperature and humidity Sensor
Mounting Hole
GND
DATA pin
VCC
DHT11
 GND (Ground) - GND connects to the GND on the Arduino.
 VCC - VCC connects to the 5V pin on the Arduino.
 DATA pin - DATA pin connects to a digital pin on the Arduino.
- This pin is used to communicate between the sensor
and the Arduino.
08 The way how the pins of the DHT11 Temperature and
Humidity Sensor connects to the Arduino;
09
#include <dht.h>
dht temp;
void setup ( ) {
Serial.begin (9600);
}
void loop ( ) {
int val = temp.read11 (8);
Serial.print ("Temperature =");
Serial.print (temp.temperature); //reading
Serial.print ("/t Humidity =");
Serial.print (temp.humidity); //line
delay (1000);
//Serial.print
Serial.print ("Temperature =");
if (temp.temperature>20)
digitalWrite (10, HIGH);
else
digitalWrite (10, LOW);
10 Programming code of the DHT11 Temperature and
Humidity Sensor
//Serial.print
Serial.print ("/t Humidity =");
if (temp.humidity>60)
digitalWrite (6, HIGH);
else
digitalWrite (6, LOW);
}
 A passive Infrared sensor is an electronic
sensor that measures infrared light radiating
from objects in its field of view.
 PIR Sensors are mostly used
in PIR-based motion detectors.
 Passive Infrared Sensors are commonly
used in Security Alarms and Automatic
Lighting Applications.
 There are three types of motion sensors
that are used frequently;
11  PIR Sensor (Passive Infrared Sensor)
 Passive Infrared (PIR)
 Microwave
 Dual Tech/ Hybrid
Various PIR Sensors
 Parts of the PIR Sensor
Fresnel lens
 GND (Ground) - GND connects to the GND on the Arduino.
 VCC - VCC connects to the 5V pin on the Arduino.
 OUT pin - Output pin connects to a digital pin on the Arduino
12
The way how the pins of the PIR Sensor connects to the
Arduino;
(Pin 5).
#define pir 7
void setup ( ) {
pinMode (pir, INPUT);
pinMode (12, OUTPUT);
}
void loop ( ) {
//pir sensor
int pir = digitalRead (pir);
if (pir = =1) {
digitalWrite (12, HIGH);
delay (100);
}
else {
digitalWrite (12, LOW);
delay (100);
}
}
13 Programming code of the PIR Sensor
Arduino

More Related Content

What's hot

Introduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and ProgrammingIntroduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and Programming
Emmanuel Obot
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to the Arduino
Introduction to the ArduinoIntroduction to the Arduino
Introduction to the Arduino
Wingston
 
Arduino uno
Arduino unoArduino uno
Arduino uno
creatjet3d labs
 
IOTC08 The Arduino Platform
IOTC08 The Arduino PlatformIOTC08 The Arduino Platform
IOTC08 The Arduino Platform
Eoin Brazil
 
Arduino Workshop Day 2 - Advance Arduino & DIY
Arduino Workshop Day 2 - Advance Arduino & DIYArduino Workshop Day 2 - Advance Arduino & DIY
Arduino Workshop Day 2 - Advance Arduino & DIY
Vishnu
 
Arduino
ArduinoArduino
Arduino
candrakur
 
Embedded system architecture.pptx
Embedded system architecture.pptxEmbedded system architecture.pptx
Embedded system architecture.pptx
AltafKaroshi
 
Arduino IDE
Arduino IDE Arduino IDE
Arduino IDE
Mrunal Deshkar
 
Arduino uno lcd display 16x2
Arduino uno lcd display 16x2Arduino uno lcd display 16x2
Arduino uno lcd display 16x2
Robomart India
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
Richard Rixham
 
Wi-Fi Esp8266 nodemcu
Wi-Fi Esp8266 nodemcu Wi-Fi Esp8266 nodemcu
Wi-Fi Esp8266 nodemcu
creatjet3d labs
 
Voice controlled Robot
Voice controlled RobotVoice controlled Robot
Voice controlled Robot
Aditya Kumar Tripathy
 
Arduino
ArduinoArduino
Arduino
vipin7vj
 
Lesson sample introduction to arduino
Lesson sample   introduction to arduinoLesson sample   introduction to arduino
Lesson sample introduction to arduino
Betsy Eng
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
Omer Kilic
 
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
Vidhi Shah
 
Basics of arduino uno
Basics of arduino unoBasics of arduino uno
Basics of arduino uno
Rahat Sood
 
Arduino lcd display
Arduino lcd displayArduino lcd display
Arduino lcd display
Makers of India
 
HUMAN FOLLOWING ROBOT
HUMAN FOLLOWING ROBOTHUMAN FOLLOWING ROBOT
HUMAN FOLLOWING ROBOT
Haris946223
 

What's hot (20)

Introduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and ProgrammingIntroduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and Programming
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
Introduction to the Arduino
Introduction to the ArduinoIntroduction to the Arduino
Introduction to the Arduino
 
Arduino uno
Arduino unoArduino uno
Arduino uno
 
IOTC08 The Arduino Platform
IOTC08 The Arduino PlatformIOTC08 The Arduino Platform
IOTC08 The Arduino Platform
 
Arduino Workshop Day 2 - Advance Arduino & DIY
Arduino Workshop Day 2 - Advance Arduino & DIYArduino Workshop Day 2 - Advance Arduino & DIY
Arduino Workshop Day 2 - Advance Arduino & DIY
 
Arduino
ArduinoArduino
Arduino
 
Embedded system architecture.pptx
Embedded system architecture.pptxEmbedded system architecture.pptx
Embedded system architecture.pptx
 
Arduino IDE
Arduino IDE Arduino IDE
Arduino IDE
 
Arduino uno lcd display 16x2
Arduino uno lcd display 16x2Arduino uno lcd display 16x2
Arduino uno lcd display 16x2
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
Wi-Fi Esp8266 nodemcu
Wi-Fi Esp8266 nodemcu Wi-Fi Esp8266 nodemcu
Wi-Fi Esp8266 nodemcu
 
Voice controlled Robot
Voice controlled RobotVoice controlled Robot
Voice controlled Robot
 
Arduino
ArduinoArduino
Arduino
 
Lesson sample introduction to arduino
Lesson sample   introduction to arduinoLesson sample   introduction to arduino
Lesson sample introduction to arduino
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to 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
 
Basics of arduino uno
Basics of arduino unoBasics of arduino uno
Basics of arduino uno
 
Arduino lcd display
Arduino lcd displayArduino lcd display
Arduino lcd display
 
HUMAN FOLLOWING ROBOT
HUMAN FOLLOWING ROBOTHUMAN FOLLOWING ROBOT
HUMAN FOLLOWING ROBOT
 

Similar to Arduino

Arduino
ArduinoArduino
Arduino projects &amp; tutorials
Arduino projects &amp; tutorialsArduino projects &amp; tutorials
Arduino projects &amp; tutorials
Anshu Pandey
 
Wireless humidity and temperature monitoring system
Wireless humidity and temperature monitoring systemWireless humidity and temperature monitoring system
Wireless humidity and temperature monitoring system
Sagar Srivastav
 
ir sensor.docx
ir sensor.docxir sensor.docx
ir sensor.docx
SuperGirlArshiyah
 
Sensors.pptx
Sensors.pptxSensors.pptx
Sensors.pptx
9731735920
 
sensors.pptx
sensors.pptxsensors.pptx
sensors.pptx
ParthaSarathi208940
 
Robotics and Automation Using Arduino
Robotics and Automation Using ArduinoRobotics and Automation Using Arduino
Robotics and Automation Using Arduino
ABHISHEKJAISWAL282
 
ARDUINO (1).pdf
ARDUINO (1).pdfARDUINO (1).pdf
ARDUINO (1).pdf
SoumikBanerjee43
 
37 en-1-especificaciones
37 en-1-especificaciones37 en-1-especificaciones
37 en-1-especificaciones
IVAN GAVILAN
 
Analog data transmission on rf module using arduino
Analog data transmission on rf module using arduinoAnalog data transmission on rf module using arduino
Analog data transmission on rf module using arduino
Sagar Srivastav
 
FIRE ALARM SYSTEM PPT.pptx
FIRE ALARM SYSTEM PPT.pptxFIRE ALARM SYSTEM PPT.pptx
FIRE ALARM SYSTEM PPT.pptx
RaJYadav196733
 
Physical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digitalPhysical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digital
Tony Olsson.
 
Physical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digitalPhysical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digital
Tony Olsson.
 
Arduino Workshop (3).pptx
Arduino Workshop (3).pptxArduino Workshop (3).pptx
Arduino Workshop (3).pptx
HebaEng
 
Mom presentation_monday_arduino in the physics lab
Mom presentation_monday_arduino in the physics labMom presentation_monday_arduino in the physics lab
Mom presentation_monday_arduino in the physics lab
Annamaria Lisotti
 
INT4073 L07(Sensors and AcutTORS).pdf
INT4073 L07(Sensors and AcutTORS).pdfINT4073 L07(Sensors and AcutTORS).pdf
INT4073 L07(Sensors and AcutTORS).pdf
MSingh88
 
Bidirectional Visitor Counter with Automatic ON-OFF Switch2
Bidirectional Visitor Counter with Automatic ON-OFF Switch2Bidirectional Visitor Counter with Automatic ON-OFF Switch2
Bidirectional Visitor Counter with Automatic ON-OFF Switch2
DIPAN GHOSH
 
Session3
Session3Session3
Session3
Krutarth Patel
 
04 Arduino Peripheral Interfacing
04   Arduino Peripheral Interfacing04   Arduino Peripheral Interfacing
04 Arduino Peripheral Interfacing
Wingston
 
EEE UNIT-2 PPT.pdf
EEE UNIT-2 PPT.pdfEEE UNIT-2 PPT.pdf
EEE UNIT-2 PPT.pdf
VishalPatil57559
 

Similar to Arduino (20)

Arduino
ArduinoArduino
Arduino
 
Arduino projects &amp; tutorials
Arduino projects &amp; tutorialsArduino projects &amp; tutorials
Arduino projects &amp; tutorials
 
Wireless humidity and temperature monitoring system
Wireless humidity and temperature monitoring systemWireless humidity and temperature monitoring system
Wireless humidity and temperature monitoring system
 
ir sensor.docx
ir sensor.docxir sensor.docx
ir sensor.docx
 
Sensors.pptx
Sensors.pptxSensors.pptx
Sensors.pptx
 
sensors.pptx
sensors.pptxsensors.pptx
sensors.pptx
 
Robotics and Automation Using Arduino
Robotics and Automation Using ArduinoRobotics and Automation Using Arduino
Robotics and Automation Using Arduino
 
ARDUINO (1).pdf
ARDUINO (1).pdfARDUINO (1).pdf
ARDUINO (1).pdf
 
37 en-1-especificaciones
37 en-1-especificaciones37 en-1-especificaciones
37 en-1-especificaciones
 
Analog data transmission on rf module using arduino
Analog data transmission on rf module using arduinoAnalog data transmission on rf module using arduino
Analog data transmission on rf module using arduino
 
FIRE ALARM SYSTEM PPT.pptx
FIRE ALARM SYSTEM PPT.pptxFIRE ALARM SYSTEM PPT.pptx
FIRE ALARM SYSTEM PPT.pptx
 
Physical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digitalPhysical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digital
 
Physical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digitalPhysical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digital
 
Arduino Workshop (3).pptx
Arduino Workshop (3).pptxArduino Workshop (3).pptx
Arduino Workshop (3).pptx
 
Mom presentation_monday_arduino in the physics lab
Mom presentation_monday_arduino in the physics labMom presentation_monday_arduino in the physics lab
Mom presentation_monday_arduino in the physics lab
 
INT4073 L07(Sensors and AcutTORS).pdf
INT4073 L07(Sensors and AcutTORS).pdfINT4073 L07(Sensors and AcutTORS).pdf
INT4073 L07(Sensors and AcutTORS).pdf
 
Bidirectional Visitor Counter with Automatic ON-OFF Switch2
Bidirectional Visitor Counter with Automatic ON-OFF Switch2Bidirectional Visitor Counter with Automatic ON-OFF Switch2
Bidirectional Visitor Counter with Automatic ON-OFF Switch2
 
Session3
Session3Session3
Session3
 
04 Arduino Peripheral Interfacing
04   Arduino Peripheral Interfacing04   Arduino Peripheral Interfacing
04 Arduino Peripheral Interfacing
 
EEE UNIT-2 PPT.pdf
EEE UNIT-2 PPT.pdfEEE UNIT-2 PPT.pdf
EEE UNIT-2 PPT.pdf
 

Recently uploaded

Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
Things to Consider When Choosing a Website Developer for your Website | FODUU
Things to Consider When Choosing a Website Developer for your Website | FODUUThings to Consider When Choosing a Website Developer for your Website | FODUU
Things to Consider When Choosing a Website Developer for your Website | FODUU
FODUU
 
Infrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI modelsInfrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI models
Zilliz
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptxOcean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
SitimaJohn
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
IndexBug
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
Zilliz
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
Ivanti
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
shyamraj55
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
panagenda
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
ssuserfac0301
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
tolgahangng
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
Alpen-Adria-Universität
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
Brandon Minnick, MBA
 

Recently uploaded (20)

Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
Things to Consider When Choosing a Website Developer for your Website | FODUU
Things to Consider When Choosing a Website Developer for your Website | FODUUThings to Consider When Choosing a Website Developer for your Website | FODUU
Things to Consider When Choosing a Website Developer for your Website | FODUU
 
Infrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI modelsInfrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI models
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptxOcean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
 

Arduino

  • 1. 2022 Arduino SenSorS  Created By - Abhimani Sadeesha  Grade - 9F  Date - 2022.02.09
  • 2. Content 01. What is Arduino? 02. Types of Arduino 03. Arduino Sensors;  Ultrasonic Sensor  LDR Sensor  DHT11 Temperature and Humidity Sensor  PIR Motion Sensor (Passive Infrared Sensor) Arduino
  • 3. Arduino What is Arduino?  Arduino is an open-source electronics platform based on easy-to-use hardware and software.  Founder of the Arduino - Massimo Banzi. Types of Arduino Boards  Arduino Uno  LilyPad Arduino  Arduino Mega  Arduino Leonardo  Arduino Nano  Arduino Red Board Arduino Sensors  Ultrasonic Sensor  LDR Sensor  DHT11 Temperature and Humidity Sensor  PIR Sensor 01
  • 4.  Ultrasonic Sensor  Ultrasonic Sensors measure distance by using ultrasonic waves.  Ultrasonic sensors are used primarily as proximity sensors.  Parts of the Ultrasonic Sensor  Diagram of the Ultrasonic Sensor 02 Arduino SenSorS
  • 5.  GND (Ground) - GND connects to the GND in the Arduino.  Echo (Signal input pin) - Echo pin connects to a digital pin on the  Trig (Signal output pin) - Trig pin connects to a digital pin on the  VCC - VCC connects to the 5V pin on the Arduino. 03 Arduino (pin 3). Arduino (pin 2). The way how the pins of the Ultrasonic Sensor connects to the Arduino;
  • 6. Programming code of the Ultrasonic sensor void setup ( ) { #define trig 2 #define echo 8 pinMode (echo, INPUT); pinMode (trig, OUTPUT); pinMode (10, OUTPUT); Serial.begin (9600); } void loop ( ) { digitalWrite(trig, LOW); delayMicroseconds (10); digitalWrite (trig, HIGH); delayMicroseconds (10); digitalWrite (trig, LOW); long t=pulseIn (echo, HIGH); long cm=t/29/2; if (cm<10) digitalWrite(10, HIGH); else digitalWrite(10, LOW); } 04
  • 7.  LDR (Light Dependent Resistor)  Parts of the LDR Sensor  A Light Dependent Resistor (LDR) is a variable resistor whose resistance decreases depending on light intensity.  Light Depending Resistor (LDR) are light sensitive devices which used to indicate the presence or absence of light or to measure the light intensity. GND DO (Digital Output) pin VCC Sensitivity Adjustment LDR 05
  • 8.  GND (Ground) - GND connects to the GND on the Arduino.  VCC - VCC connects to the 5V pin on the Arduino.  DO (Digital Output) - DO pin connects to a digital pin on the 06 The way how the pins of the LDR Sensor connects to the Arduino; Arduino (Pin 7).
  • 9. Programming code of the LDR Sensor void setup ( ) { pinMode (12, OUTPUT); //LED Pin pinMode (7, INPUT); //LDR DO Pin } void loop ( ) { if (digitalRead (7) ==1) { digitalWrite(12, HIGH); } else { digitalWrite(12, LOW); delay (200); } } 07
  • 10.  DHT11 is a low-cost digital sensor for sensing temperature and humidity.  DHT11 Temperature and Humidity Sensors are the most commonly used Environmental sensors. 08  DHT11 Temperature and Humidity Sensor  Parts of the DHT11 Temperature and humidity Sensor Mounting Hole GND DATA pin VCC DHT11
  • 11.  GND (Ground) - GND connects to the GND on the Arduino.  VCC - VCC connects to the 5V pin on the Arduino.  DATA pin - DATA pin connects to a digital pin on the Arduino. - This pin is used to communicate between the sensor and the Arduino. 08 The way how the pins of the DHT11 Temperature and Humidity Sensor connects to the Arduino; 09
  • 12. #include <dht.h> dht temp; void setup ( ) { Serial.begin (9600); } void loop ( ) { int val = temp.read11 (8); Serial.print ("Temperature ="); Serial.print (temp.temperature); //reading Serial.print ("/t Humidity ="); Serial.print (temp.humidity); //line delay (1000); //Serial.print Serial.print ("Temperature ="); if (temp.temperature>20) digitalWrite (10, HIGH); else digitalWrite (10, LOW); 10 Programming code of the DHT11 Temperature and Humidity Sensor //Serial.print Serial.print ("/t Humidity ="); if (temp.humidity>60) digitalWrite (6, HIGH); else digitalWrite (6, LOW); }
  • 13.  A passive Infrared sensor is an electronic sensor that measures infrared light radiating from objects in its field of view.  PIR Sensors are mostly used in PIR-based motion detectors.  Passive Infrared Sensors are commonly used in Security Alarms and Automatic Lighting Applications.  There are three types of motion sensors that are used frequently; 11  PIR Sensor (Passive Infrared Sensor)  Passive Infrared (PIR)  Microwave  Dual Tech/ Hybrid Various PIR Sensors  Parts of the PIR Sensor Fresnel lens
  • 14.  GND (Ground) - GND connects to the GND on the Arduino.  VCC - VCC connects to the 5V pin on the Arduino.  OUT pin - Output pin connects to a digital pin on the Arduino 12 The way how the pins of the PIR Sensor connects to the Arduino; (Pin 5).
  • 15. #define pir 7 void setup ( ) { pinMode (pir, INPUT); pinMode (12, OUTPUT); } void loop ( ) { //pir sensor int pir = digitalRead (pir); if (pir = =1) { digitalWrite (12, HIGH); delay (100); } else { digitalWrite (12, LOW); delay (100); } } 13 Programming code of the PIR Sensor