Step 10Testing
When you are finished you can make a few tests to make sure that everything is ok.
Connect Vcc and gnd either through the red connector or on the Vcc/gnd
pins of the 2x3 connector.
Tests:
1. Insert a female connector with wires into the black socket. Touch the two
wires together. The green LED on the module should light up. Touch the L
pin of the 2x3 connector to the gnd pin and the LED should light up again.
2. Insert a female connector with wires into the white socket. Connect a LED and
series resistor between the two wires. Make sure the LED has its cathode
towards ground. Short the Sd and R connection points in the 2x3 connector.
Now the LED should be on whenever the sensor is not detecting motion.
3. If you have a oscilloscope, you can connect a probe to Sa or Sd and watch
the sensor react to motion. Sa will drift to ~Vcc/2 if there is no motion for a
period of time. Motion will drive it off that bias point either in the positive or
negative direction depending on which way the PIR is upset.
If you pass these 3 tests you are good to go. This project turned out to be a lot of fun.
Do not forget to keep the Fresnel lens to cover the sensor, it improves the sensor's sight. Position the lens over the sensor. You will find that it fits one way very well. To keep it in place, hot glue the tab that sticks over the PCB to the board. You might want to trim the long part that fits over the top of the board.
| « Previous Step | Download PDFView All Steps | Next Step » |
















































Tnks for this bright idea.
Zen