Cov txheej txheem:

Portable Motion Sensor: 4 Kauj Ruam
Portable Motion Sensor: 4 Kauj Ruam

Video: Portable Motion Sensor: 4 Kauj Ruam

Video: Portable Motion Sensor: 4 Kauj Ruam
Video: If someone puts a PLASTIC BOTTLE on your TIRE, call the police IMMEDIATELY 🤯💥 2024, Kaum ib hlis
Anonim
Portable Tsab ntawv tsa suab Sensor
Portable Tsab ntawv tsa suab Sensor

Nyob zoo, Kuv tau ua lub roj teeb nqa tau lub zog ntsuas lub suab uas kuv xav qhia rau koj.

Koj yuav xav tau dab tsi:

  • Arduino Ib
  • Keyes tsab ntawv tsa suab sensor
  • Hlau
  • LEDs (liab, ntsuab xiav)
  • Cov qhob cij

Kauj Ruam 1: Txuas lub Motion Sensor

Txuas Motion Sensor
Txuas Motion Sensor
Txuas Motion Sensor
Txuas Motion Sensor

Koj yuav pom tias lub suab txav txav muaj peb tus pin. Cov pins no tau cim ua +, -, s. Tsis tas yuav tsum tau xaim hluav taws xob rau lub khob cij kom txuas rau + ntawm lub ntsuas hluav taws xob mus rau 5V ntawm arduino, - ntawm lub ntsuas hluav taws xob mus rau ib ntawm peb ntawm GNDs ntawm arduino, thiab txuas s ntawm lub sensor mus rau tus lej pin peb ntawm arduino, raws li qhia hauv daim duab.

Kauj ruam 2: Txuas Leds

Txuas Leds
Txuas Leds

Txuas tus liab coj mus rau tus lej digital 12, ntsuab coj mus rau digital 11, thiab xiav coj mus rau digital 10. Txhua tus nrog 220 ohm resistor txuas nrog nws raws li qhia hauv daim duab.

Kauj Ruam 3: Txuas 9V Roj Teeb

Txuas lub roj teeb 9V
Txuas lub roj teeb 9V

Txuas qhov zoo ntawm lub roj teeb rau VIN ntawm arduino thiab sab tsis zoo rau thaj av seem ntawm arduino. Ntxiv qhov hloov pauv yog tias koj xav tau kom nws qhib thiab tua. Kuv tau ua, raws li qhia hauv daim duab.

Kauj Ruam 4: Yuav Siv Li Cas

Yuav Siv Li Cas
Yuav Siv Li Cas

Nws yuav ua dab tsi: Yog tias nws pom cov lus taw qhia lub teeb liab yuav qhib thiab nyob twj ywm yog li koj tuaj yeem tso nws nyob hauv tsev lossis nyob qhov twg puas tau thiab yog tias koj rov qab los thiab lub teeb liab tau nyob … TUS NEEG YUAV TSUM muaj !!!!! !!!!!!!!!!!!!!!!! Txwv tsis pub, ntsuab yuav nyob, koj nyob zoo. Yog tias ntsuab thiab liab nyob, TUS NEEG YUAV TSUM muaj !!!!!!!!!!!!!!!!!!!!!! Koj tuaj yeem muab nws tso rau hauv ib lub thawv rau saib. Kuv muab kuv tus kheej tso rau hauv lub thawv khau.

Pom zoo: