Week 1 – 2 Motion Sensor Project – Personel project

PIR Motion Sensor (Three Pin) project. Personal project

motion pic

Fritzig Diagram of Motion Sensor

 

 

SAKBULUT_Circuit diagram_MOTION_SENSOR_bb

P.S.  As there WAS NOT a motion sensor image in fritzig menu I used a diffirent availabe sensor on the diagram.

 

Three photo captures of Motion sensor

SAKBULUT_Motion_sensor_photo3SAKBULUT_Motion_sensor_photo2SAKBULUT_Motion_sensor_photo1

Adruino code of the Motion Sensor project

int motion_1 = 2;
int light_1 = 13;
void setup(){
pinMode (motion_1, INPUT);
pinMode (light_1, OUTPUT);
}
void loop (){
digitalWrite (light_1, LOW);
delay(1000); //this delay is to let the sensor settle down before taking a reading
int sensor_1 = digitalRead(motion_1);
if (sensor_1 == LOW){
digitalWrite(light_1, HIGH);
delay(500);
}
}

Flow Chart

Personel Chart code

 

 

The Video capture of working motion sensor project

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s