Cov txheej txheem:
- Kauj Ruam 1: Tshooj thiab Txheej Txheem
- Kauj Ruam 2: Tua Nws Txhua Qhov Ua Ke
- Kauj Ruam 3: Ua Ntej Txheeb Xyuas Pawg Thawj Coj
Video: Raspberry Pi DIY Relay Board: 3 Cov Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Rau qee qhov projectes nrog raspberry thiab cov arduinos me me kuv xav hloov qee qhov kev xa tawm. Vim tias GPIO tso tawm qib (3, 3V) nws nyuaj rau nrhiav qee qhov txuas uas tuaj yeem hloov pauv cov khoom loj dua thiab tuaj yeem ua haujlwm ncaj qha nrog qhov muab 3, 3 volts. 5Channel ib qho kuv tsim ntawm no yog ib puag ncig 10 € rau daim. Ib qho ntxiv koj tsuas yog xav tau cov hlau txuas, cov laug thiab qee yam cuab yeej los txiav cov xov hlau thiab khoov ob txhais ceg ntawm cov khoom. Qhov no yog kuv thawj qhov kev qhia ntawm no (thiab tseem luv heev), yog li kuv vam tias koj tuaj yeem ua raws kuv cov kauj ruam. !
Kauj Ruam 1: Tshooj thiab Txheej Txheem
Yog li thaum xub thawj daim ntawv teev npe rau 5 channel board, yog tias koj xav tau ntau ntxiv los ntsuas nws: • 5 qhov xa tawm (lossis ntau npaum li cas koj xav tau) nrog max 5V coil-voltage (Kuv siv JS-12MN-KT-V3, hloov pauv max 150VDC /400VAC) • 5 diodes - UF 4007 (yog tias koj xav tau kev xa xov ntau dua, koj kuj xav tau ntau ntawm cov no) • 5 NPN Transistors - 2N3904 • 7 Pin txiv neej lossis poj niam lub taub hau (Kuv siv ob qho tib si) • qee cov nyiaj -xaim rau cov laug jumbers • 100mm x 100mm stripboard • 5 1kOhm resistors • 5 Screw Terminals (xyuas kom lawv haum rau ntawm koj daim phiaj kab ntawv) Tom qab ntawd koj kuj xav tau cov cuab yeej hauv qab no: • Cov laug phom • solder • rab riam ntse • pliers khoov ob txhais ceg thiab txiav xov hlau • laum los cuam tshuam cov kab txaij nyob tom qab ntawm kab txaij Tom qab ntawd peb yuav tsum ua qee qhov kev xav txog kev teeb tsa. Koj kuj tseem tuaj yeem siv lwm lub pcb yam tsis muaj kab txaij rau qhov haujlwm no, tab sis kuv nyiam cov kab txaij. Yog tias koj xav siv lwm tus, ntawm no yog cov txheej txheem txuas nrog. Txhawm rau teeb tsa rau kab txaij kuv tsuas yog ua cov ntawv theej ntawm nws nrog 200% qhov loj me, yog li kuv tuaj yeem kos cov ntu ntawm nws. Hmoov tsis zoo kuv tsis nco qab kos cov kab ntawv nkag los ntawm kev xa tawm, yog li koj yuav tsum ntxiv 4 xov hlau ntxiv, los ntawm txoj kab sab saum toj mus rau txhua qhov ntawm cov khoom siv xa tawm. Yog li nws tsim tawm qhov ntsuas hluav taws xob thaum qhib tua. Txhawm rau tiv thaiv kev puas tsuaj ntawm lub transistor peb ntxiv cov diode sib npaug rau cov tswv yim los ntawm kev xa rov qab. Vim li ntawm qhov muab qhov hluav taws xob ntawm GPIO-cov chaw nres nkoj peb tsis tuaj yeem hloov pauv ncaj qha. Yog li peb siv cov transistors los hloov qhov txuas nrog 5V lawv xav tau. 5V tau muab los ntawm raspberry nws tus kheej lossis lub zog sab nraud. Txhawm rau txuas lub rooj tsavxwm nrog arduino lossis raspi peb xav tau qee lub taub hau. Kuv siv txiv neej tus poj niam lub taub hau vim kuv xav siv nws nrog arduino thiab raspberry. Rau 5Ch pawg thawj coj peb xav tau 7 lub taub hau (5 rau txhua qhov tseeb thiab ob qho rau 5V cov tswv yim thiab hauv av).
Kauj Ruam 2: Tua Nws Txhua Qhov Ua Ke
Thaum koj tau ua tiav koj tus kheej kev teeb tsa koj tsuas yog yuav tsum muab nws tso ua ke. Peb yuav ua haujlwm los ntawm daim me me mus rau qhov loj tshaj.
Koj tuaj yeem yooj yim pib nrog diodes thiab cov resistors. Muab txhua yam tso rau ntawm qhov chaw raug ntawm koj lub rooj tsavxwm thiab tig nws ib ncig. Yog li koj tuaj yeem kho lawv. Ua tib zoo tso cov diodes kom raug. Ntawm cov kab ntawv uas cov resisors nyob, peb yuav tsum cuam tshuam cov kab txaij ntawm lub rooj tsavxwm.
Tom qab ntawd koj tuaj yeem ua tus dhia dhia. Ua tib zoo saib kom tsis txhob muab cov hlua sib dhos ua ke, qhov no tuaj yeem ua rau koj qhov puas lossis txawm tias koj tus tswj. Solder cov dhia dhia kom ze li sai tau rau ntawm lub rooj tsavxwm.
Tom qab ntawd peb txuas ntxiv nrog cov transistors. Peb txuas tus pin nruab nrab, lub hauv paus, rau lub taub hau. Tus neeg khaws khoom tau txuas nrog rau kev xa tawm, tus xa tawm mus rau hauv av. Ntawm no peb yuav tsum cuam tshuam txoj hlua ntawm tus neeg khaws thiab tus emitter ib yam.
Tsawg kawg peb tso cov relays thiab headers rau ntawm lub rooj tsavxwm. Koj yuav tsum khoov ob txhais ceg ntawm kev sib kis me ntsis kom nws haum rau hauv kab sib chaws ntawm kab txaij. Nco ntsoov cuam tshuam cov kab txaij nruab nrab ntawm ob txhais ceg ntawm qhov txuas. Nyob ntawm seb koj xav hloov dab tsi nrog cov xa tawm no, koj tuaj yeem tshem ob daim kab xev nruab nrab ntawm ob txhais ceg ntawm kev xa tawm kom tiv thaiv lawv zoo dua los ntawm ib leeg (nco qab cov lus qhia tshwj xeeb ntawm kev xa tawm, lawv tuaj yeem hloov tau ntau heev). Txhawm rau ua kom yooj yim txuas qee cov khoom siv rau nws, koj tuaj yeem txuas qee cov ntsia hlau txuas mus rau kev xa tawm.
Kauj Ruam 3: Ua Ntej Txheeb Xyuas Pawg Thawj Coj
Txhawm rau txheeb xyuas yog tias koj tau ua tiav txhua yam, tam sim no peb tuaj yeem txuas lub rooj tsavxwm rau RPI. Txuas thawj tus pin nrog 5V thiab kawg nrog GND tus pin ntawm koj RPI. Nyob ntawm seb koj tau tsim ntau npaum li cas ntawm lub rooj tsavxwm, koj yuav tsum txuas txhua tus pin nrog ib qho ntawm GPIO-pins ntawm RPI. Kuv siv tus lej thib 5 ua kuv tus thawj tab sis koj tuaj yeem xaiv txhua tus uas koj xav tau, lossis yog pub dawb.
Txhawm rau hloov qhov txuas koj yuav tsum muab lub teeb liab siab rau tus pin uas qhov txuas txuas nrog. Ib qho ntxiv koj yuav tsum teeb tsa wiringPi.
Nov yog piv txwv tus lej rau tus lej thib tsib (ncaj qha hauv lub plhaub):
Ua ntej teeb tus pin rau qhov tso tawm: gpio -g hom 5 tawm (nrog -g koj tuaj yeem nkag mus rau tus pin los ntawm rpi -teeb tsa tsis yog los ntawm kab teeb tsa)
Tom qab ntawd tsim lub teeb liab siab ntawm tus pin 5: gpio -g sau 5 1
Txhawm rau txhawm rau tshem tawm koj yuav tsum rho tawm lub teeb liab siab: gpio -g sau 5 0
Thaum koj tau ua txhua yam yog lawm koj yuav tsum hnov qee lub suab klicking los ntawm kev xa tawm. Koj kuj tseem tuaj yeem txuas cov kab hluav taws xob me me (piv txwv li roj teeb, coj, tiv thaiv) kom pom tau tias qhov kev xa xov ua haujlwm.
Yog tias koj xav tsim nws hauv ib yam dab tsi hauv, nco ntsoov tias koj muaj chaw txaus ntawm lub rooj tsav xwm sib txuas thiab rooj plaub uas koj tsim nws hauv. muab los ntawm cov lus qhia tshwj xeeb ntawm kev xa tawm thiab koj muaj chaw txaus los cais cov kab thiab cov xov hlau rau ib leeg.
Vam tias koj nyiam nws, muaj kev lom zem!
Pom zoo:
DIY Cov Khoom Siv Hluav Taws Xob Hloov los ntawm 2262/2272 M4 Bread Board & Relay for Maker: 4 Cov Kauj Ruam (nrog Duab)
DIY Cov Khoom Siv Hluav Taws Xob Hloov los ntawm 2262/2272 M4 Bread Board & Relay for Maker: lub tsev ntse tuaj rau peb lub neej. yog tias peb xav tau lub tsev ntse tuaj tiag, peb xav tau ntau lub chaw taws teeb tswj. hnub no peb yuav ua qhov kev sim, ua ib qho yooj yim Circuit Court kom kawm txoj kev xav ntawm cov chaw taws teeb tswj hloov.this cov khoom siv tsim los ntawm SINONING ROBOT
4CH Relay-board Tswj Nrog Cov Khawm Push: 4 Cov Kauj Ruam
4CH Relay-board Tswj Nrog Push Button: Kuv lub hom phiaj yog txhawm rau txhim kho kuv Anet A8 3D-tshuab luam ntawv los ntawm kev ntxiv lub zog tswj kev tswj hwm ntawm Octoprint interface. Txawm li cas los xij, Kuv kuj xav kom tuaj yeem pib " manually " kuv lub tshuab luam ntawv 3D, lub ntsiab lus tsis siv lub web interface tab sis tsuas yog nias lub pob
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: Nov yog txoj hauv kev yooj yim heev thiab tus nqi qis mus rau cov duab thav duab digital - nrog qhov zoo ntawm kev ntxiv /tshem cov duab hla WiFi ntawm 'nyem thiab luag' siv (pub dawb) xa cov ntaub ntawv . Nws tuaj yeem siv tau los ntawm qhov me me £ 4.50 Pi Zero. Koj tseem tuaj yeem hloov pauv
Rov Qab Siv Cov Duab Duab Nrog Virtual Asistent: 7 Cov Kauj Ruam (nrog Duab)
Rov Qab Siv Cov Duab Duab Nrog Virtual Asistent: Nyob zoo txhua tus! Cov lus qhia no tau yug los ntawm lub laptop faib ua ib nrab, yuav los ntawm ib tus phooj ywg. Thawj qhov kev sim ntawm txoj haujlwm no yog kuv Lego Digital Photo Frame, txawm li cas los xij, yog ib tus neeg mob siab rau Siri thiab Google Tam sim no, Kuv txiav txim siab coj nws mus rau qhov tshiab