session 6arduino
session 6arduino
}
int sum(int A,int B){
int y= A+B;
return y;
}
Tinker cad design
infrared sensor(IR)
An infrared sensor is an electronic device, that emits in order to
sense some obstacles of the surroundings. An IR sensor can measure
the heat of an object as well as detects the motion. These types of
sensors measures only infrared radiation.
infrared sensor(IR)
The basic concept of an Infrared Sensor which is used as Obstacle
detector is to transmit an infrared signal, this infrared signal bounces
from the surface of an object and the signal is received at the infrared
receiver.
Can an IR sensor detect humans?
The Passive Infrared (PIR) sensor is used to detect the presence of
human.
It detects the human using the infrared radiation radiated by the
human body. Every human radiates the infrared energy of specific
wavelength range. The absorbed incident radiation changes the
temperature of a material.
code
void setup() {
pinMode(13,OUTPUT);
pinMode(3,INPUT);
Serial.begin(9600); }
void loop() { if (digitalRead(3)== HIGH)
{ digitalWrite(13,HIGH);
delay(10); }
else { digitalWrite(13,LOW);
delay(10); } }
Tinkercad design
Task
design the pervious project in proteus.