Không có sản phẩm trong giỏ hàng!
Automatic Doorbell with PIR Motion Sensor
INTRODUCTION
Have you ever noticed that when you entered 7E there is a ding dong sound? Or when you enter a toilet, then suddenly the lamp turned on by itself? It’s actually using a Passive Infra-red (PIR) Motion Sensor. A sensor where it detects any heat that occurred to trigger the sensor. Let’s scroll down to get more info.
HARDWARE PREPARATION
This tutorial use :
You can make the hardware connection based on the diagram and table below.
CONNECTION | |
---|---|
PIR Sensor : VCC | Maker UNO: 5V |
PIR Sensor : GND | Maker UNO: GND |
PIR Sensor : Out | Maker UNO: pin 5 |
SAMPLE CODE
This is the sample code used for this tutorial. Try it!
[gist https://gist.github.com/atifahsuad/619e062e602e6a17b0e112af461a94ec/]
Thank you
Thank you for reading this tutorial and we hope it helps your project development. If you have any technical inquiry, please post at Cytron Technical Forum.