Cov txheej txheem:

5V Relay Module Mod los Ua Haujlwm Nrog Raspberry Pi: 4 Cov Kauj Ruam
5V Relay Module Mod los Ua Haujlwm Nrog Raspberry Pi: 4 Cov Kauj Ruam

Video: 5V Relay Module Mod los Ua Haujlwm Nrog Raspberry Pi: 4 Cov Kauj Ruam

Video: 5V Relay Module Mod los Ua Haujlwm Nrog Raspberry Pi: 4 Cov Kauj Ruam
Video: Using 5V 1 channel relay module for Arduino 2024, Kaum ib hlis
Anonim
Image
Image
5V Relay Module Mod los Ua Haujlwm Nrog Raspberry Pi
5V Relay Module Mod los Ua Haujlwm Nrog Raspberry Pi

Nws yooj yim heev hnub no kom tau txais koj txhais tes ntawm lub rooj sib tham tab sis koj yuav pom sai sai tias feem ntau ntawm lawv tau tsim los rau 5V uas tuaj yeem muaj teeb meem rau cov neeg pluag raspberry tsis zoo lossis lwm yam microcontroller khiav ntawm 3.3V, Lawv tsuas yog tsis t muaj qhov hluav taws xob xav tau los ua kom lub transistor tswj kev xa xov. Yog li hauv qhov kev qhia no, Kuv yuav qhia koj qhov kev hloov pauv yooj yim ntawm cov laug txuas no kom lawv 3V3 sib xws.

Kauj Ruam 1: Khoom

Khoom siv
Khoom siv
Khoom siv
Khoom siv

Tsuas yog ib qho kev tivthaiv uas yuav tsum tau muaj thiab qhov ntawd yog lub trimmer. Kev tiv thaiv yuav tsum nyob txhua qhov chaw ntawm 10K-100K ohms. Kuv mus nrog 100K. Kuv xav qhia kom tau txais ib qho me me tiag tiag tab sis yog tias koj lub rooj sib tham relay muaj chav nyob rau qhov loj, tau txais qhov loj. Thiab koj yuav tau kawg tseem xav tau cov hlau txuas.

Kauj Ruam 2: Hloov Chaw

Hloov Chaw
Hloov Chaw
Hloov Chaw
Hloov Chaw
Hloov Chaw
Hloov Chaw

Nrhiav tus resistor txuas tus pin nkag thiab lub hauv paus ntawm transistor. Cias ua raws txoj hauv kev ntawm PCB los ntawm tus pin nkag mus rau tus tiv thaiv. Nws yuav tsum tsis txhob nyob deb. Lwm sab ntawm tus tiv thaiv yuav tsum ua rau lub transistor uas koj tuaj yeem txheeb xyuas tau nrog lub ntsuas cua hauv qhov txuas txuas. Desolder tus resistor no. Solder lub trimmer hauv nws qhov chaw. Qhov nruab nrab ntawm tus pin trimmer yuav tsum tau soldered ntawm lub transistor sab ncoo ntawm cov resistor tshem tawm. Solder tus pin sab laug lossis sab xis (nws tsis muaj teeb meem twg) ntawm tus txiav plaub hau mus rau lwm lub ncoo ntawm tus tiv thaiv tawm. Tus pin ntxiv ntawm tus kws txiav plaub hau yuav tsum tau muab txuas rau Vcc (5V) tus pin. Yog tias qhov kev piav qhia suab nyuab tsuas yog saib daim vis dis aus. Nws yog qhov yooj yim zoo nkauj.

Kauj ruam 3: Teeb tsa Trimmer

Teeb tsa Trimmer
Teeb tsa Trimmer
Teeb tsa Trimmer
Teeb tsa Trimmer
Teeb tsa Trimmer
Teeb tsa Trimmer

Tsuas yog vim tias koj muaj tus kws txiav plaub hau, txoj haujlwm tseem tsis tau ua tiav. Peb yuav tsum teeb tsa nws kom raug. Cia peb pib los ntawm kev teeb tsa nws hauv qhov nruab nrab qhov chaw. Txuas qhov txuas mus rau raspberry pi lossis txhua yam koj tab tom siv nyob rau hauv ib txoj hauv kev. Los ntawm qhov kuv txhais tau tias Vcc rau 5V, hauv av rau hauv av thiab nkag tus pin rau GPIO tus pin koj tab tom siv. Tig tus GPIO tus pin qis thiab lub relay yuav tsum qhib. Tej zaum nws yuav tsis yog thiab qhov ntawd zoo. Cias kho lub trimmer kom txog thaum nws ua. Koj yuav tsum hnov lub suab hnov zoo li lub chaw hloov chaw hloov chaw. Tam sim no tig GPIO siab thiab kev xa xov yuav tsum tua. Ib zaug ntxiv nws yuav tsis yog thiab koj yuav tsum tau kho nws dua tab sis lub sijhawm no, mus qeeb tiag vim tias tej zaum koj yuav tsis nyob deb dhau lawm. Koj yuav tsum hnov qhov nyem dua thiab koj ua tiav. Sim hloov tus GPIO tus pin thiab kev xa tawm yuav tsum hloov ib yam nkaus. Yog tias nws tseem tsis ua haujlwm tau zoo koj yuav tsum tau tweak qee qhov ntxiv.

Kauj ruam 4: Xaus

Xaus
Xaus
Xaus
Xaus
Xaus
Xaus

Kuv tau ua qhov kev hloov pauv no tsuas yog nyob ntawm qhov kev tsim qauv nrov ntawm pawg tswj hwm tab sis nws yuav tsum ua haujlwm rau lwm tus thiab vim tias cov khoom siv hluav taws xob zoo ib yam. Kuv tau ua qhov no ntawm 4 pawg sib txawv thiab nws ua haujlwm rau txhua tus. Ntau qhov xav tsis thoob yog qhov tseeb tias txhua tus muaj qhov sib txawv me ntsis txawm tias ua los ntawm tib lub khw. Tab sis hauv cov txheej txheem, Kuv tau suav nrog qhov tseem ceeb ntawm cov neeg tawm tsam uas ua haujlwm tsawg kawg ib qho ntawm kuv cov laug cam yog tias koj nyob hauv lub pinch thiab tsis muaj lub laum ntawm tes.

Pom zoo: