Cov txheej txheem:

Arduino Tswj Ntau PI.R Sensor ntawm Tib Tus Cwj Pwm: 3 Kauj Ruam
Arduino Tswj Ntau PI.R Sensor ntawm Tib Tus Cwj Pwm: 3 Kauj Ruam

Video: Arduino Tswj Ntau PI.R Sensor ntawm Tib Tus Cwj Pwm: 3 Kauj Ruam

Video: Arduino Tswj Ntau PI.R Sensor ntawm Tib Tus Cwj Pwm: 3 Kauj Ruam
Video: PIR motion sensor | How do they Work? 2024, Hlis ntuj nqeg
Anonim
Image
Image
Arduino Tswj Ntau PI. R Sensor ntawm Tib Qaum
Arduino Tswj Ntau PI. R Sensor ntawm Tib Qaum
Arduino Tswj Ntau PI. R Sensor ntawm Tib Qaum
Arduino Tswj Ntau PI. R Sensor ntawm Tib Qaum
Arduino Tswj Ntau PI. R Sensor ntawm Tib Qaum
Arduino Tswj Ntau PI. R Sensor ntawm Tib Qaum

Hnub no kuv yuav qhia koj yuav ua li cas txuas ntau PIR Sensors nrog tib Arduino Bord

ntawm no kuv kuj tau siv 4 channel relay module rau qee qhov ua haujlwm tau zoo.

ARDUINO + 4 Channel Relay Module + 4 PIR Sensor (LOS YOG Koj tuaj yeem siv ntau tus pin koj arduino muaj)

Kauj ruam 1: Yuav tsum kho vajtse

Yuav tsum tau kho vajtse
Yuav tsum tau kho vajtse
Yuav tsum tau kho vajtse
Yuav tsum tau kho vajtse
Yuav tsum tau kho vajtse
Yuav tsum tau kho vajtse
  1. Arduino Uno (lossis Koj puas muaj bord koj muaj)
  2. PI. R Sensor Hc-SR501
  3. Cov qhob cij
  4. Jumper Hlau
  5. 12 V-2 A DC Cov Khoom Siv Hluav Taws Xob

Kauj Ruam 2: Kev Kho Vajtse Txuas

Kho vajtse txuas
Kho vajtse txuas

Arduino_TO_PIR SENSORS (PIR1, PIR2, PIR3, PIR4)

Arduino PIN 3 …………………………………. PIR1-tus pin tso tawm

Arduino PIN 4 …………………………………. PIR2-tus pin tso tawm

Arduino PIN 5 …………………………………. PIR3-tus pin tso zis

Arduino PIN 6 …………………………………. PIR3-tus pin tso zis

Arduino 5v ………………………………………. PIR1, PIR2, PIR3, PIR4 (VCC) // txuas txhua Vcc tus pin ntawm pir1, pir2, pir3, pir4

// rau Arduino 5 v

Arduino GND …………………………………… PIR1, PIR2, PIR3, PIR4 (GND)

ARDUINO _ MODULE tiag

Arduino PIN 9 ………………………………………………………….. IN1 RELAY

Arduino PIN 10 ………………………………………………………….. IN2 RELAY

Arduino PIN 11 ……………………………………………………… IN3 RELAY

Arduino PIN 12 …………………………………………………………. IN4 RELAY

Arduino GND …………………………………………………………………… Relay GND

Arduino Vin ……………………………………………………………………… Relay VCC

12 v -2A Cov Khoom Siv Hluav Taws Xob ………………………………………….to ……………………………………. Relay Model 12v Input & GND (Qee Qhov Kev Tshaj Tawm Tsis Zoo muaj 12 v lub zog tawm tswv yim yog li koj xav tau 12 v rau 5 v hloov pauv …… lossis koj tuaj yeem faib lub zog los ntawm koj tus kheej

Kauj Ruam 3: Tshooj Lus Qhia

Ntawm no Programming yog qhov tseem ceeb tshaj plaws

thaum nyob hauv txoj haujlwm no kuv ntsib ntau qhov teeb meem hauv kev ua haujlwm nkaus xwb.

  • ntawm no kuv tau siv Arduino sab hauv rub tawm tus tiv thaiv
  • Kuv siv (IF-Statement) Tsis muaj nqe lus ntxiv rau kev ruaj ntseg

Pom zoo: