Experiment 4 How to Use PIR

Share for us
Share on facebook
Share on twitter
Share on pinterest
Share on whatsapp

Overview:

In this experiment, you will use an LED to indicate the state value of PIR. When people pass by, the LED will light up; or elso it stays out.

Components:

-1 * SunFounder Mega 2560

-1 * PIR

-1 * USB Cable

-1 * LED (Red)

-1 * Resistor (220ohm)

– Several jumper wires

-1 * Breadboard

Experimental Procedures

Step1: Build the circuit

Step2: Program

Step3: Compile

Step4: Burn the program into the SunFounder Mega 2560 board (Pay attention to select the correct board and port)