Cov txheej txheem:

Tsab ntawv tsa suab Sensor qhib LED Sawb Nrog Timer: 6 Cov Kauj Ruam (nrog Duab)
Tsab ntawv tsa suab Sensor qhib LED Sawb Nrog Timer: 6 Cov Kauj Ruam (nrog Duab)

Video: Tsab ntawv tsa suab Sensor qhib LED Sawb Nrog Timer: 6 Cov Kauj Ruam (nrog Duab)

Video: Tsab ntawv tsa suab Sensor qhib LED Sawb Nrog Timer: 6 Cov Kauj Ruam (nrog Duab)
Video: Мужская Casio G-Shock Magma Ocean Золотой Rangeman | 35-летие GPRB1000TF-1 Обз... 2024, Hlis ntuj nqeg
Anonim
Image
Image
Tsab ntawv tsa suab Sensor qhib LED Sawb Nrog Timer
Tsab ntawv tsa suab Sensor qhib LED Sawb Nrog Timer

Nyob zoo sawv daws! Kuv zoo siab heev tau sau lwm cov ntawv qhia tam sim no. Txoj haujlwm no tau los thaum kuv raug hu los ntawm ib tus neeg qhia qhia-er (?!) (David @dducic) ob peb lub hlis dhau los thov kom qee qhov kev pab tsim qauv.

Yog li ntawm no yog qhov tshwj xeeb tshwj xeeb: "Kuv tuaj yeem siv qee qhov kev pab nrog lub teeb pom kev hauv qab kuv tau ua rau kuv niam thiab txiv laus. Hauv qhov tseeb, kuv xav siv ob lub PIR sensors thiab ob lub teeb LED teeb-ib txheej rau txhua sab ntawm lub txaj-uas tig rau thaum qhov sib txawv ntawm PIR sensor tau poob. Thiab los ntawm peb taug qab kev sib tham: "Kuv xav tau yooj yim zoo nkauj nrog txoj haujlwm - hauv qhov yooj yim: - Thaum twg kuv niam lossis txiv tso lawv txhais taw rau hauv av los ntawm lub txaj, nws yuav qhib lub suab txav los ntawm lawv ib sab ntawm lub txaj, tig lub teeb. Kuv xav txog lub kaw lus uas yuav muaj ib lub sensor ntawm txhua sab ntawm lub txaj thiab ib qho LED sawb hauv qab ntawm txhua sab ntawm lub txaj uas txuas nrog nws lub sensor. - Kuv xav kom lub teeb nyob rau tsawg kawg 5 feeb yog li lawv muaj sijhawm sawv, ua lawv li, thiab rov qab mus rau lub txaj nrog lub teeb tseem nyob. - Hais txog cov LEDs, Kuv tau yuav qee qhov sov sov dawb yooj yim (3000K) thiab tsis txhob cia siab tias yuav tsum muaj LEDs hloov xim. " Los ntawm qhov no, kuv tau tsim thiab ua qauv kab hluav taws xob uas tuaj yeem ua tiav cov lus qhia tshwj xeeb saum toj no thiab David tau ua haujlwm ntawm kev hloov pauv qhov Circuit Court ntawm nws ib sab ntawm lub ntiaj teb thiab ua qhov kev teeb tsa zaum kawg ntawm nws niam txiv qhov chaw! Vam tias koj txhua tus nyiam qhov no! Txheeb tawm cov vis dis aus txuas rau kuv qhov kev xeem zaum kawg nrog lub sijhawm ntawm 12 vib nas this thiab David qhov kev teeb tsa zaum kawg tau qhib ntawm nws niam nws txiv qhov chaw.

Kauj Ruam 1: Sau Koj Cov Khoom

Yuav tsum tau cov cuab yeej:

Soldering Hlau

Cov hlua hlau

Sab txiav

Tus kav hlau

Riam riam

Multimeter

Yam Yuav Tsum Tau:

1 * 555 timer

1 * TIP 102 transistor

1 * Capacitor 5600 uF

1 * Capacitor 10 nF

1 * Resistor 10 kohm

1 * Resistor 5.1 kohm

1 * Resistor 47 kohm

1 * PIR Sensor

1 * 3 tus pin JST txuas rau lub sensor mus rau lub rooj tsavxwm

2 * 2 tus pin JST txuas rau lub zog rau board thiab LED sawb rau board

2 * 2 tus pin JST txuas rau LED sawb thaiv thiab txuas hluav taws xob

7 * ua ntej crimped JST xov hlau (xaiv qhov ntev - ob kab rau lub zog, ob qho rau LED sawb, 3 rau PIR sensor) https://www.digikey.com/products/en/cable-assembli… - lossis yog tias koj rov ua ke nrog ua koj tus kheej cov xov hluav taws xob thiab muaj cov txuas sib txuas thiab crimps, ua rau koj tus kheej!

1 * Veroboard

1 * 12V tib xim LED sawb ntawm koj xaiv (piv txwv li https://www.ebay.com.au/itm/5M-3528-SMD-Cool-Warm …

1 * 12V cov khoom siv hluav taws xob nrog MALE lub tog raj txuas txuas, lub zog ntsuas yuav sib txawv nyob ntawm seb cov hlua LED thiab qhov ntev koj siv (piv txwv li https://www.ebay.com.au/itm/5M-3528-SMD-Cool-Warm …

Hlau rau soldering

Solder

Thaum tshav kub kub ntsws

1* chim jack ntsia hlau davhlau ya nyob twg MALE

2 * chim jack ntsia hlau davhlau ya nyob twg FEMALE

Kauj Ruam 2: Xeem LED Sawb

Xeem LED Sawb
Xeem LED Sawb

Nws yog kev xyaum zoo los ntsuas tias txhua yam ntawm koj cov khoom siv hluav taws xob ua haujlwm ua ntej muab txhua yam ua ke. Yog li coj tus coj sawb thiab txuas nws mus rau koj lub zog hloov pauv los ntawm kev siv lub thawv txuas txuas (yog tias koj tau txais ib qho nrog LED sawb) thiab cia siab tias LEDs yuav ci. Nws mus yam tsis tau hais, tab sis nco ntsoov tias koj txuas qhov zoo rau qhov zoo thiab tsis zoo rau qhov tsis zoo …

Kauj Ruam 3: Kuaj PIR Sensor

Kuaj PIR Sensor
Kuaj PIR Sensor
Kuaj PIR Sensor
Kuaj PIR Sensor

Ib zaug ntxiv, sim koj cov khoom ua ntej koj siv lawv hauv lawv daim ntawv thov kawg yog lub tswv yim zoo. Hauv cov kauj ruam no, koj yuav tsum tau npaj lub ntsuas kom koj tuaj yeem txuas tau yooj yim rau nws siv cov ntu uas kuv tau teev tseg hauv cov kauj ruam dhau los. Qhov 3 tus pin txuas uas PIR sensor los nrog yog qhov sib txawv rau qhov kuv ib txwm nyiam siv, yog li kuv xav qhia qhov hloov pauv no los ntawm desoldering cov xov hlau muab thiab rov muag dua ntawm 3 pre-crimped JST sawv daws yuav. Tom qab ntawd siv 3 tus pin JST lub taub hau txhawm rau nrhiav JST crimp sab ntawm cov xov hlau. Kev sib dhos tag nrho yuav tsum zoo li cov duab txuas. Nco tseg tias ntawm no, QHOV TSEEB yog SIGNAL, BROWN yog puag ncig, Liab yog +12V.

Txhawm rau ntsuas lub ntsuas, tsuas yog nqes lub zog thiab hauv av thiab siv lub ntsuas ntsuas los ntsuas lub teeb liab. Thaum pib nws yuav tsum tau rub mus rau hauv av. Thaum tsis ua, koj yuav tsum pom qhov voltage piv txwv li tsis yog hauv av. Thaum koj ua kom muaj zog ntawm cov ntsuas no, koj yuav tsum tau tos ob peb feeb los tso cai rau lub ntsuas kom tau txais lub hauv paus nyeem ntawm chav tseem nyob. Yog tias muaj dab tsi txav tom qab lub sijhawm "ntsuas ntsuas", tom qab ntawd lub ntsuas pa yuav ua rau pom thiab cov teeb liab tso tawm yuav qis qis (hauv av).

Kauj Ruam 4: Teeb Lub Circuit Court ntawm Breadboard Ua Ntej

Image
Image
Teem Lub Circuit Court ntawm Breadboard Ua Ntej
Teem Lub Circuit Court ntawm Breadboard Ua Ntej
Teem Lub Circuit Court ntawm Breadboard Ua Ntej
Teem Lub Circuit Court ntawm Breadboard Ua Ntej

Ua ntej koj mus tom ntej thiab ua kom zoo dua koj lub rooj tsavxwm tsab ntawv, koj yuav tsum ntsuas txhua yam ntawm daim ntawv tais. Qhov no yog qhov muaj txiaj ntsig tshwj xeeb yog li koj tuaj yeem xaiv koj qhov txiaj ntsig ntawm R3 thiab C2 uas txhais lub sijhawm "sijhawm" thiab yog li ntev npaum li cas cov hlua LED yuav nyob twj ywm rau.

Qee cov ntaub ntawv keeb kwm yav dhau los ntawm yuav ua li cas kev ua tiav hauv kev ua haujlwm feem ntau cuam tshuam nrog 555 lub sijhawm ua haujlwm ua lub tshuab ua kom muaj suab nrov. Yog tias koj tsis paub nrog 555 timer thiab xav paub ntau ntxiv, nplooj ntawv muaj txiaj ntsig tuaj yeem nrhiav tau ntawm no: https://www.electronics-tutorials.ws/waveforms/555… uas piav qhia txog hom sib txawv uas 555 tuaj yeem ua haujlwm. Raws li kuv tau hais, rau qhov Circuit no kuv tau teeb tsa nws hauv Monostable hom, uas txhais tau tias thaum lub plawv dhia qis (piv txwv li GND) tau siv rau qhov ua rau tawm tswv yim, cov zis yuav raug teeb tsa siab (piv txwv li 12V) rau lub sijhawm teev tseg los ntawm R3 thiab C2 siv qhov sib npaug:

sij hawm (vib nas this) = 1.1*R3*C2

Rau kev ntsuas lub hom phiaj, nws yog lub tswv yim zoo los xaiv qhov tseem ceeb ntawm R3 thiab C2 uas tso cai rau cov hlua LED kom nyob rau lub sijhawm luv luv yog li koj tsis tas yuav tos ib puag ncig ib txhis kom paub seb koj lub Circuit ua haujlwm raug. Hauv daim vis dis aus txuas, Kuv tau teeb tsa lub sijhawm rau kwv yees li 12 vib nas this. Hauv daim duab txuas hauv kab ntawv, lub sijhawm tau teeb tsa rau kwv yees li 5 feeb (sijhawm = 1.1* 47 000* 0.0056 = 289 vib nas this).

Luckily, PIR sensor kuv tau xaiv tawm lub teeb liab qis (piv txwv li GND) thaum lub ntsuas tau qhib. Raws li qhov tshwm sim, cov lus tawm ntawm 555 lub sijhawm sib txuas tau txuas ncaj qha mus rau PIR sensor. Txawm li cas los xij, yuav tsum tau hloov lub tshuab hluav taws xob mus rau cov kab hluav taws xob LED, txij li 555 lub sijhawm tuaj yeem tuaj yeem tsuas yog txwv qhov tam sim no, uas yuav tsis txaus los tsav ntev LED teeb sawb.

Kauj Ruam 5: Tshaj Tawm Lub Circuit Court ntawm Veroboard

Image
Image
Solder Up Circuit hauv Veroboard
Solder Up Circuit hauv Veroboard
Solder Up Circuit hauv Veroboard
Solder Up Circuit hauv Veroboard

Coj koj qhov kev tsim hluav taws xob zaum kawg los ntawm cov kauj ruam dhau los thiab muab cov laug cam tso rau. Qhov tsuas yog koj yuav tsum nco ntsoov ntawm no yog txiav cov kab nyob tom qab ntawm pawg thawj coj saib qhov twg 555 tus timer zaum, txwv tsis pub cov pins sib txawv yuav luv, uas yog qhov tseeb tsis yog yam koj xav tau!

Plug txhua yam hauv thiab muab qhov kev sim hauv Circuit! Yog tias txhua yam mus tau zoo, koj lub Circuit Court yuav tsum ua haujlwm zoo ib yam li nws tau ua hauv kev teeb tsa lub khob cij. Txheeb tawm cov vis dis aus txuas ntawm kuv qhov kev sim zaum kawg. Lub sijhawm tsuas yog nyob rau 12 vib nas this tseem yog qhov yooj yim rau qhia txog kev ua haujlwm hauv Circuit.

Kauj Ruam 6: Mount LED Sawb thiab Sensor

Image
Image

Thawj qhov tshwj xeeb rau txoj haujlwm no yog kom muaj cov kab hluav taws xob LED thiab lub ntsuas hluav taws xob teeb tsa rau lub teeb pom kev hauv qab txaj, tab sis pom tseeb, qhov no tuaj yeem tso rau qhov twg los xij koj xav tias nws yuav yooj yim siv sijhawm LED teeb pom kev zoo!

Pom zoo: