Cov txheej txheem:

IR Chaw Taws Teeb Tswj Teeb Meem thiab Pom Duab: 5 Kauj Ruam
IR Chaw Taws Teeb Tswj Teeb Meem thiab Pom Duab: 5 Kauj Ruam

Video: IR Chaw Taws Teeb Tswj Teeb Meem thiab Pom Duab: 5 Kauj Ruam

Video: IR Chaw Taws Teeb Tswj Teeb Meem thiab Pom Duab: 5 Kauj Ruam
Video: Data Science with Python! Extracting Metadata from Images 2024, Hlis ntuj nqeg
Anonim
IR Chaw Taws Teeb Tswj Teeb Meem thiab Pom Kev
IR Chaw Taws Teeb Tswj Teeb Meem thiab Pom Kev

Nov yog lub cuab yeej uas tuaj yeem ntes IR lub teeb liab los ntawm cov chaw taws teeb tswj hwm tshaj plaws thiab xa cov ntaub ntawv ntawm chaw nres nkoj txuas mus rau lub khoos phis tawj rau tso saib. Nws muab tag nrho cov ntaub ntawv tseem ceeb xws li qhib/kaw sijhawm, suav cov mem tes, thiab cov neeg nqa khoom ntau zaus. Cov ntaub ntawv khaws tseg tuaj yeem siv los pab txhim kho microcontoller code los teb lossis xa IR cov lej. Qhov Circuit no ua rau siv LEDs ntau dua uas yog qhov ntsuas. Lawv kuj tseem siv ua tus tswj hluav taws xob thiab ua tus ntsuas IR.

Kauj Ruam 1: Tshooj thiab Schematic

Qhov Chaw thiab Schematic
Qhov Chaw thiab Schematic
Qhov Chaw thiab Schematic
Qhov Chaw thiab Schematic

Qhov xav tau: Blue LED nrog Vf ntawm 3.0 txog 3.3Green LED nrog Vf ntawm 2.0 txog 2.2 (tsis yog ultra-ntsuab lossis tseeb-ntsuab) Liab LED nrog Vf ntawm 1.8 txog 2.0Infrared LED nrog lub nthwv dej ntawm 940 lossis 950 nm1N4148 lossis zoo li diode100 nF (0.1 uF) capacitorMicrochip PIC 12F629 microcontrollerFemale DE9 connectorWire (solid core 20 awg) BreadboardPIC Programmer (PicKit 2 or similar)

Kauj Ruam 2: Lub Hwj Huam Fais Fab

Hwj chim Mov
Hwj chim Mov
Hwj chim Mov
Hwj chim Mov
Hwj chim Mov
Hwj chim Mov

Lub zog siv hluav taws xob siv ob lub LED los ua tus tswj hwm shunt. Qhov tsawg tam sim no ntawm Circuit Court thiab qhov txwv tam sim no ntawm qhov chaw nres nkoj ua rau siv qhov yooj yim shunt tswj kev ua haujlwm rau daim ntawv thov no. Pib kev sib dhos los ntawm kev siv peb qhov khoom siv luv luv 20 awg xov hlau rau tus pin 2, 5 thiab 7 ntawm tus poj niam DE9 txuas. Qhov no yog qhov yuav tsum tau siv nkaus xwb. Xov cov xov hlau rau hauv lub khob cij raws li qhia. Cov xov hlau rau tus pin 5 thiab 2 yuav tsum nyob hauv kab uas nyob ib sab. Cov xaim rau tus pin 7 yuav tsum muaj ntau kab nyob rau sab laug. Lub teeb xiav nrog lub cathode txuas nrog rau xaim los ntawm tus pin 5 ntawm tus DE9 txuas. Lub teeb ntsuab LED nrog cathode txuas nrog rau anode ntawm lub xiav LED. 1N4148 diode nrog cathode txuas nrog anode ntawm ntsuab LED thiab anode txuas nrog xaim los ntawm tus pin 7 ntawm DE9 txuas. Tam sim no lub zog hluav taws xob tau ua tiav. DE9 txuas thiab siv lub davhlau ya nyob twg software (Hyperterminal lossis zoo sib xws) qhib COM chaw nres nkoj. Kab RTS yuav hloov mus rau qhov muaj qhov zoo thiab LEDs yuav tsum ci. Ntsuas qhov hluav taws xob kom paub meej tias nws nyob ze rau 5 volts. Txuas lub xov tooj hluav taws xob thiab txuas mus rau kauj ruam tom ntej.

Kauj Ruam 3: Microcontroller

Microcontroller
Microcontroller
Microcontroller
Microcontroller
Microcontroller
Microcontroller

Ua haujlwm PIC12F629 microcontroller nrog cov lej txuas. Xyuas kom tus oscillator calibration tus nqi raug khaws cia. Tus Pin 8 yuav tsum nyob hauv kab lus tib yam li xaim los ntawm tus pin 5 ntawm DE9. Tus pin 7 yuav tsum nyob hauv kab ib yam nkaus li xaim los ntawm tus pin 2 ntawm DE9. Nruab ib lub xaim jumper luv los ntawm cathode ntawm 1N4148 diode mus rau tus pin 1 ntawm PIC. Nruab 100 nF capacitor hla tus pin 1 thiab 8 ntawm PIC.

Kauj Ruam 4: Qhov Taw Qhia thiab IR Sensor

Qhov Taw Qhia thiab IR Sensor
Qhov Taw Qhia thiab IR Sensor
Qhov Taw Qhia thiab IR Sensor
Qhov Taw Qhia thiab IR Sensor

Nruab ib lub teeb liab liab nrog lub cathode mus rau qhov sib txuas ntawm LEDs xiav thiab ntsuab, thiab qhov anode rau tus pin 6 ntawm PIC. Cov LED no yuav qhia tias IR tau txais los ntawm kev tswj chaw taws teeb. Lub teeb hluav taws xob LED nrog lub anode txuas nrog hauv av thiab cathode rau tus pin 5 ntawm PIC. Cov LED no tau siv los ua IR lub ntsuas hluav taws xob ntau dua li cov emitter. Nws tau thim rov qab los ntawm kev rub tawm tus neeg tawm tsam hauv PIC kom ua haujlwm tau zoo nyob rau hauv hom photoconductive.

Kauj ruam 5: Siv

Pab
Pab
Pab
Pab
Pab
Pab
Pab
Pab

Khiav IR Scope software los ntawm https://www.compendiumarcana.com/irwidget (hauv qab ntawm nplooj ntawv). Xaiv qhov chaw nres nkoj COM raug, thiab nias lub pob nyem. Thaum lub xiav thiab ntsuab LED teeb tsa, nyem lub pob ntawm cov chaw taws teeb tswj uas koj xav ntes. Lub LED liab yuav flicker los qhia tias IR raug kuaj pom. Nws yog ib qho tseem ceeb heev kom ua kom pom IR LED ntawm cov chaw taws teeb nrog IR LED ntawm lub kaw hluav taws xob ntes vim tias qhov tsis zoo ntawm lub LED siv los ua lub ntsuas.

Pom zoo: