Cov txheej txheem:

PIR Senor cuam tshuam nrog Pic Microocntroller: 5 Kauj Ruam
PIR Senor cuam tshuam nrog Pic Microocntroller: 5 Kauj Ruam

Video: PIR Senor cuam tshuam nrog Pic Microocntroller: 5 Kauj Ruam

Video: PIR Senor cuam tshuam nrog Pic Microocntroller: 5 Kauj Ruam
Video: Часы G Shock до 100 долларов-15 лучших часов Casio G Shock до 100 дол... 2024, Kaum ib hlis
Anonim
Image
Image

PIR sensor cuam tshuam nrog pic microcontroller thiab cov lus qhia ib qib zuj zus

Kauj Ruam 1: Tsab Ntawv Motion

Motion Detection Sensor yog siv los txheeb xyuas cov lus tsa suab nws yuav yog tib neeg li lwm yam. Lub hauv paus tseem ceeb ntawm txoj haujlwm no yog PIR sensor aka Passive Infrared Sensor. Nws kuj tseem hu ua Pyroelectric lossis IR tsab ntawv tsa suab sensor.

Lub PIR sensor pom lub teeb infrared tawg los ntawm cov khoom sov. Nws suav nrog cov ntsuas hluav taws xob pyro uas qhia txog kev hloov pauv ntawm lawv qhov kub thiab txias (vim qhov teeb meem hluav taws xob hluav taws xob) mus rau hluav taws xob teeb liab. Thaum lub teeb infrared tsoo ib qho siv lead ua, nws tsim hluav taws xob. Hauv phau ntawv qhia no microcontroller, kuv tau tsim lub tshuab ntsuas suab siv pic microcontroller.

Kauj ruam 2: Cheebtsam

Cov Cheeb Tsam Yuav Tsum Tau:

· PIC 16F887: MCU no muaj zog thiab yooj yim-rau-txoj haujlwm. Nws yog CMOS FLASH-based 8-ntsis microcontroller. Nws muaj 40- lossis 44-pin pob. PIC16F887 nta 256 bytes ntawm EEPROM cov ntaub ntawv nco, tus kheej lub cajmeem. Kev ua haujlwm Voltage ntau yog nruab nrab ntawm 2v txog 5.5v.

Nws kuj tseem muaj 2 Tus Sib Piv, 14 raws ntawm 10-ntsis Analog-to-Digital (A/D) hloov pauv, 1 ntes/sib piv/PWM thiab 1 txhim kho kev ntes/sib piv/PWM kev ua haujlwm. Nws yog qhov yooj yim heev los siv nrog LCD thiab cov ntsuas.

· LCD 16x2: LCD siv los qhia cov cim lej lej. Nws muaj tag nrho 16 tus pin. 10K ohm potentiometer txuas nrog tus pin peb los teeb qhov sib piv ntawm LCD. Nws kuj tseem muaj lub teeb ci LED. Hauv qhov haujlwm LCD no peb siv yog 16x2 uas txhais tau tias peb tuaj yeem tso tawm 16 tus cim hauv ob kab. Hauv qhov haujlwm no LCD tau siv los qhia seb lub suab pom zoo lossis tsis yog.

· PIR senor: Lub hlwb ntawm lub ntsuas cua no yog BISS0001 PIR nti. PIR sensors me me, pheej yig, siv hluav taws xob tsawg thiab siv tau yooj yim. Nws muaj peb tus pin

1. Vcc: Tus pin no txuas nrog DC voltage ntawm 3V txog 5V.

2. OUTPUT: Tus pin no txuas nrog lub microcontroller. Tus pin no muaj lub cim ntsuas pom txog li 3 volts.

3. Gnd: Tus pin no txuas nrog hauv av.

3. PIR sensors tso cai rau koj nkag siab lub zog, yuav luag ib txwm siv los tshuaj xyuas seb tib neeg tau txav mus los lossis tawm ntawm cov ntsuas ntau.

Qee qhov tshwj xeeb ntawm PIR sensor yog Dual Element Sensor nrog Tsawg Qis thiab Siab Zoo. Nws Cov Khoom Siv Hluav Taws Xob yog 5V. Nws muaj Lub Sijhawm Sijhawm Hloov Kho thiab tus qauv TTL tso tawm. Lub Fresnel lens ua kom pom lub teeb, muab ntau yam ntawm IR rau lub ntsuas.

· Lwm tus: Buzzer, LED nrog tus tiv thaiv tsim nyog, Breadboard, 5v Dc muab khoom thiab qee lub xov hlau txuas.

Kauj Ruam 3: PIR Ua Haujlwm Li Cas

PIR ua haujlwm li cas

PIR cov cuab yeej nyuab dua los piav qhia tom qab lwm qhov kev ntsuas xws li photocells, qaij hloov thiab lwm yam vim tias muaj ntau qhov sib txawv uas cuam tshuam rau cov tswv yim nkag thiab tso tawm. Thaum lub cev sov sov zoo li tib neeg lossis tsiaj hla los, nws xub cuam tshuam ib nrab ntawm PIR sensor, uas ua rau muaj qhov txawv txav zoo ntawm ob qho tib si. Thaum lub cev sov tawm ntawm qhov chaw hnov, qhov rov qab tshwm sim, qhov twg lub sensor tsim qhov hloov pauv tsis zoo. Cov kev hloov pauv pauv no yog yam uas tau kuaj pom.

PIR sensors yog qhov dav thiab feem ntau sib txawv hauv tus nqi thiab kev nkag siab. Feem ntau ntawm cov khawv koob tiag tshwm sim nrog kev kho qhov muag. Lub Fresnel lens ua kom pom lub teeb, muab ntau yam ntawm IR rau lub ntsuas. Nov yog lub tswv yim zoo nkauj rau kev tsim khoom: lub PIR sensor thiab Circuitry tau teeb tsa. Lub lens tus nqi tsuas yog ob peb rupees tab sis nws hloov qhov dav, ntau yam, kev paub txog tus qauv. Muaj ob qhov sib txawv potentiometer los hloov qhov ntau thiab qhov kev paub zoo. peb tseem tuaj yeem tsim qauv kev nyab xeeb hauv tsev siv PIR sensor.

Kauj Ruam 4: Siv PIR SENSOR

PIR sensor yog cov cuab yeej muaj txiaj ntsig zoo nyob rau niaj hnub no. Nws tuaj yeem siv tau txhua qhov chaw los ntawm kev lag luam mus rau cov chaw tsim khoom, kev lag luam mus rau cov khw yuav khoom thiab nws tseem yog cov cuab yeej siv tau yooj yim hauv tsev automation.

Tsis Siv Neeg Qhov Rooj Qhib Qhov System.

Lub Hom Phiaj Ruaj Ntseg.

Chaw Nres Tsheb

Txhua Qhov Txheej Txheem.

Siv Hauv Tsheb.

Ntau Chav Tsev Nyuaj Siab

Cov theem ntaiv

Kauj Ruam 5: Daim duab Circuit Court

Nov yog daim duab qhia chaw ntawm PIR sensor cuam tshuam nrog arduino

Pom zoo: