Use Arduino to drive HC-SR501 infrared motion sensor and 2-relay

Byamber

Use Arduino to drive HC-SR501 infrared motion sensor and 2-relay

1)Objective:

This project will show you how to use Arduin to drive HC-SR501 infrared motion sensor and detect human motion.

2)Parts and Devices

1 x Arduino UNO

1 x HC-SR501 infrared motion sensor

1 x USB cable

1 x 2-channel relay

1 x RED LED

1 x BLue LED

1 x Breadboard

Jumper wires

3)Circuit graph

HC-SR501_Ralay_bb

4)sample code link

down load motion sensor relay sample code

5)Result

When human is moving close to motion sensor, relay channel one will open and channel 2 will close, RED LED will turn on and blue LED will turn off. When human is moving away from sensor, relay channel 1 will close and channel 2 will open. Red LED will turn off and Blue LED will turn on. Picture as following:

IMG_20160815_142542

IMG_20160815_142602

About the Author

amber administrator

9 Comments so far

levitra vs viagraPosted on  8:19 am - May 3, 2020

levitra generic

levitra daily dose – generic levitra tadalafil low prices – levitra dosage when to take maximum allowed

cialis over the counter at walmartPosted on  5:57 am - May 7, 2020

generic cialis at walmart

cialis 20mg review you cannot delete your posts in this forum – cialis 20 mg cost password – on line cialis generico

cialis vs viagraPosted on  12:58 am - May 16, 2020

cialis cost

cialis 5mg generic name – risk cialis – cialis costa rica vbulletin solutions inc. all rights reserved.

tadalafil 5 mgPosted on  6:30 am - May 23, 2020

tadalafil

cialis buy australia jump to – cialis for daily use commercial subject – cialis blogs

viagra 100mgPosted on  3:49 pm - Jun 1, 2020

how to take viagra for maximum effect

viagra yahoo messenger – viagra 20mg online msn messenger – meth viagra and poppers

generic viagra for salePosted on  2:37 pm - Jun 21, 2020

viagra without prescription

viagra 20mg tablets location – viagra 10mg or 20mg joined – does viagra work immediately diary.cgi?mode=

viagra without doctor prescriptionPosted on  11:43 pm - Jun 29, 2020

generic viagra

information about viagra for women – powered by fireboard viagra – viagra over counter quebec

viagra for salePosted on  12:53 am - Aug 4, 2020

viagra generic

viagra 80mg – viagra information viagra donate – viagra user ratings

cialis over the counter walmartPosted on  10:55 pm - Aug 29, 2020

cialis in walmart

cialis online profile – canada generic in cialis soft – cialis 5mg new posts

You must be logged in to post a comment