Cov txheej txheem:
- Kauj ruam 1: Schematics
- Kauj Ruam 2: Npaj Tshooj
- Kauj Ruam 3: Ua PCB Teeb Duab
- Kauj ruam 4: Soldering
- Kauj Ruam 5: Tus Txheeb Ze cuam tshuam nrog RPI
- Kauj Ruam 6: Ua Tus Thawj Coj
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:24
Nws yog kab lus yooj yim heev rau kev qhia ua haujlwm zoo ntawm raspberry pi (txuas ntxiv mus raws li RPI).
Tej zaum nws muaj txiaj ntsig thaum koj khiav RPI li lub taub hau (tsis muaj tus saib xyuas).
Qee lub sij hawm kuv txhawj xeeb thaum lub sijhawm raug rau lub zog tua tag tom qab kaw RPI.
Yog li no, lub voj voog no tau tsim los ceeb toom lub sijhawm kom raug rau lub hwj chim tawm.
Tsis tas li nws tuaj yeem qhia koj lub taub hau khiav RPI ua qee yam.. tsawg kawg ua ob xim xim LED ntsais.
(Kev qhia hauv Circuit)
Lub voj voog no tau tsim los ntawm cov khoom siv sib xyaw LED ntau-vibrator thiaj li hu ua LED blinker.
Raws li LED ntsais muag Kuv tab tom ntxiv cov yam ntxwv hauv qab no los ua qhov ntsuas RPI kaw (tom ntej no yog tus cim).
- Siv opto-coupler los cuam tshuam nrog RPI (Vim tias kuv xav cais qhov Circuit no kom tiav nrog RPI thaum lub sijhawm siv hluav taws xob.
-USB Hom-B lub zog hloov hluav taws xob tau siv rau hauv Circuit Court no txuas nrog cov xov tooj ntawm tes uas muaj ntau heev thiab muab tau 5V raws nraim
Kuv tab tom xav tias kev siv hluav taws xob sab nraud tuaj yeem txo teeb meem (piv txwv li pib nrog RPI, yuam kev txuas qhov hluav taws xob siab rau GPIO) thiab RPI hnyav dua.
Txawm hais tias qhov kev sib tham no yooj yim heev, Kuv tab tom npaj tsim kho kom nyuaj dua tom qab uas tau kos duab tseem ceeb tam sim no los ntawm GPIO.
Kauj ruam 1: Schematics
Nov yog kev qhia ntawm INDICATOR Circuit.
Koj yuav pom tias muaj neeg nyiam heev thiab yooj yim LED ntsais kab hluav taws xob tau suav nrog rau INDICATOR schematics.
Txhawm rau ua INDICATOR kom ua haujlwm tau zoo, teeb tsa hauv qab no yuav tsum suav nrog "/boot/config.txt".
dtoverlay = gpio-poweroff, active_low, gpiopin = 24
Qhov RPI OS teeb tsa no ua rau GPIO tus pin 24 mus rau qib siab thaum RPI yog khau raj thiab tom qab ntawd qis thaum kaw tau ua tiav.
Yog li, koj tuaj yeem ruaj ntseg tua RPI thaum ntsais ntawm ob-xim LED tau nres thiab tua tawm.
Daim duab saum toj no qhia pom ob-xim LED ntsais nrog boot-up ntawm RPI.
Txog tam sim no, Kuv tab tom piav qhia txog INDICATOR Circuit thiab lub hom phiaj ntawm kev siv.
Cia peb pib ua qhov no.
Kauj Ruam 2: Npaj Tshooj
Raws li kuv muaj ntau PNP transistors hauv kuv cov khoom muag, feem ntau yog PNP transistors tau siv los ua INDICATOR.
- PNP transistors: 2N3906 x 2, BD140 x 1
- Opto-coupler: PC817 (Panasonic)
- Capacitors: 22uF 20V x 2
- Cov tiv thaiv: 220ohm x 3 (txwv tam sim no), 2.2K (hloov kev tswj hwm ntawm BD140) x 1, 100K (txheeb xyuas qhov teeb meem ntsais teeb LED), 4.7K (Hloov RPI teeb liab tawm tswv yim)
- Bi-xim LED x 1 (ntau hom cathode xav tau)
- Universal board 25 (W) los ntawm 15 (H) qhov loj me (Koj tuaj yeem txiav txhua qhov loj me ntawm pawg thawj coj saib kom haum rau INDICATOR Circuit)
- Cov hlau xaim (Kuv yuav piv txwv qhia meej hauv "Ntu 2: ua PCB daim duab" rau kev siv ntawm ntu no)
-USB hom-B micro tawg-tawm
- Cable (liab thiab xiav ntau ib leeg xaim cable)
- Txhua lub xov tooj ntawm tes them 220V cov tswv yim thiab 5V tso zis (USB hom B txuas)
- Pin taub hau (5 tus pin)
Tsis muaj cov khoom siv txawv txawv tau siv rau INDICATOR thiab tej zaum txhua qhov khoom tuaj yeem yooj yim yuav los ntawm txhua lub khw hauv internet tshwj tsis yog cov xaim hlau.
Kuv tau yuav qhov no los ntawm Farnell tawm haujlwm ntev dhau los (tej zaum ntau dua 10 xyoo)
Kuv tsis paub tseeb tias nws tseem muaj rau kev xaj khoom.
Tab sis tsis txhob txhawj xeeb, koj tuaj yeem siv ib qho 24 SWG loj xaim uas ua tam sim no hloov pauv.
Los yog yooj yim koj tuaj yeem siv cov xov tooj ib txwm tsis siv cov hlau nplaum.
USB hom-B micro tawg-tawm yog siv los txuas lub xov tooj them lub xov tooj raws li lub zog siv.
Ua ntej pib ua INDICATOR, Kuv yuav piav qhia cov txheej txheem sib cuam tshuam ntawm RPI thiab INDICATOR ntawm opto-coupler.
Thaum RPI yog khau raj, tso tawm ntawm GPIO 24 dhau los ua HIGH los ntawm kev teeb tsa.txt.
Vim yog lub teeb liab hloov pauv kev teeb tsa kev teeb tsa nrog opto-coupler lub davhlau ya nyob twg thiab 4.7K resistor, cov teeb liab nkag ntawm INDICATOR dhau los.
Raws li cov teeb liab tawm tswv yim yog LOW (cov khoom siv hluav taws xob dhau los ze rau 0V), BD140 PNP transistor tab tom ua (qhib rau).
Raws li PNP transistor qhib, LED ntsais Circuit Court (uas yog thauj rau lub transistor) pib ua haujlwm.
Kauj Ruam 3: Ua PCB Teeb Duab
Raws li cov phiaj xwm kev ua haujlwm ntawm INDICATOR tau piav qhia, cia pib ua qhov Circuit.
Ua ntej yuav muab ib yam dab tsi tso rau ntawm lub rooj tsav xwm thoob ntiaj teb, npaj cov duab hauv qab no hauv PCB yog qhov pab kom txo qhov ua yuam kev.
Kuv tab tom siv lub zog taw tes txhawm rau nrhiav txhua ntu ntawm lub rooj tsav xwm thoob ntiaj teb thiab ua cov qauv thaiv ntawm ib feem nrog cov xaim hlau zoo li qhia hauv PCB daim duab saum toj no.
Cov hlau xaim uas tau hais los saum no yog siv los ua PCB cov qauv hlau uas tau piav qhia ua kab liab, xiav thiab liab hauv daim duab.
Tab sis raws li kuv tau hais, koj tuaj yeem siv tsuas yog ib qho txuas ib leeg nkaus xwb txhawm rau txuas txhua yam khoom siv raws li qhia hauv daim duab hauv qab no.
Tab sis raws li koj tuaj yeem pom, nws zoo li me ntsis ua dab tsis thiab ceev faj xaim txhua qhov tiv thaiv kom tsis txhob muaj qhov ua yuam kev. (Siv tus pin taub hau hloov ntawm USB hom-B micro tawg-tawm)
Kuv pom zoo kom siv cov xaim hlau txhawm rau ua kom cov zis muaj qhov ua kom zoo me ntsis thiab yooj yim los kho qhov ua yuam kev thaum siv cov khoom siv.
OK! Txhua yam yog npaj txhij thiab cia peb pib ua.
Kauj ruam 4: Soldering
Kuv yuav piav qhia tsuas yog cov kauj ruam tseem ceeb ntawm txhua cov kauj ruam soldering.
Thov xa mus rau lwm cov ntawv tshaj tawm hauv Cov vev xaib Qhia paub txog kev pib siv tshuaj yaj yeeb.
USB hom-B micro tawg-tawm tuaj yeem teeb tsa ntawm lub rooj tsav xwm thoob ntiaj teb los ntawm kev siv 5 tus pin-taub hau.
Txhua ntu yuav tsum tau muab tso rau ntawm lub rooj tsav xwm thoob ntiaj teb ntawm qhov chaw raws li tau piav qhia hauv PCB daim duab.
Thov ceev faj txog tus pin teeb ntawm PC817 thaum siv lub tshuab opto-coupler.
Rau xaim txhua qhov tivthaiv, qee zaum siv cov hlau xaim yuav tsum txuas ob ntu nyob ntawm qhov deb ib leeg ntawm PCB.
Thaum koj saib ua tib zoo thaiv cov qauv ntawm tus sau ntawm BD140 thiab emitter ntawm 2N3906 transistor nyob rau sab hauv qab ntawm PCB, kab txiv kab ntxwv txuas nrog kab liab liab.
Kuj txiv kab kab hla los ntawm kab liab uas txuas ntawm 2.2K resistor thiab puag ntawm BD140.
Qhov tseeb "U" zoo me me tine xaim ntu yog kab kab xim kab ntxwv raws li qhia hauv daim duab hauv qab no.
Thiab ntev paj kab qauv ntawm cov transistors txuas nrog los ntawm kev siv cov duab zoo li tus hlau.
Raws li "U" zoo li cov hlau xaim tso rau ntawm PCB, nws tsis kov kab liab los ntawm 2.2K mus rau lub hauv paus ntawm BD140 transistor.
Lwm cov kab liab ntev tau txuas nrog cov hlau ncaj ncaj.
Ib yam nkaus, tag nrho lwm cov khoom tuaj yeem cuam tshuam nrog ib leeg.
Kev ua kom tiav cov laug PCB tau qhia hauv daim duab hauv qab no.
Raws li theem kawg, ob-xim LED yuav tsum txuas nrog PCB tiav.
Rau sab saum toj ntawm LED tig mus rau sab xub ntiag, PCB me me tawg tau siv raws li qhia hauv daim duab hauv qab no.
Cov PCB me me uas txuas nrog ob xim LED tau muab muag raws li qhov sib npaug (90 degree) nrog PCB loj.
Kauj Ruam 5: Tus Txheeb Ze cuam tshuam nrog RPI
Thaum ua tiav qhov ua tiav, INDICATOR Circuit yuav tsum txuas nrog RPI.
Tsis tas li RPI OS teeb tsa yuav tsum tau ntxiv hauv "/boot/config.txt" cov ntaub ntawv.
GPIO 24 (18) thiab Av (20) tus pin txuas nrog RPI raws li qhia hauv daim duab hauv qab no.
Raws li tsuas yog opto-coupler interface txuas nrog, ob lub zog siv hluav taws xob tsim nyog.
Cov khoom siv hluav taws xob dawb uas tau qhia hauv daim duab saum toj no yog cov xov tooj ntawm tes tau them 5V.
Cov dub uas pom nyob rau sab xis yog 5V / 3A RPI fais fab mov.
Txhawm rau teeb tsa GPIO 24 rau kev qhib INDICATOR, teeb tsa hauv qab no yuav tsum suav nrog /boot/config.txt raws li qhia hauv daim duab hauv qab no.
Kauj Ruam 6: Ua Tus Thawj Coj
Thaum thaiv kab tiav thiab teeb tsa ua tiav, tsuas yog rov pib dua RPI nrog "sudo reboot tam sim no" hais kom ua.
Tom qab ntawd INDICATOR tab tom pib ntsais muag thaum khau raj.
Kuv tab tom xav tias tej zaum GPIO 24 tab tom ua haujlwm ntawm kev ua haujlwm theem 1 raws li kev sib tham putty tseem tsis tau qhia tus ID nkag mus sai thaum ntsais muag yog nyuam qhuav pib.
Thaum txhua yam zoo, koj tuaj yeem pom ob-xim LED ntsais thaum RPI tab tom ua haujlwm.
Tau kawg ntsais muag yuav tsum nres thaum koj pib kaw xws li siv "sudo kaw –h 0" hais kom ua.
Thaum ntsais muag nres, koj tuaj yeem tua lub zog RPI yam xyuam xim.
Txaus siab rau….
Pom zoo:
Raspberry Pi CPU Load Indicator: 13 Cov Kauj Ruam
Raspberry Pi CPU Load Indicator: Thaum khiav Raspberry Pi (RPI) ua lub taub hau tsis muaj lub console saib xyuas, tsis muaj qhov pom tseeb tshwj xeeb muaj los lees paub RPI tau ua qee yam
Qhov Kawg Kawg Lub Computer Shutdown Prank: 3 Kauj Ruam
Qhov Kawg Lub Computer Kaw Qhov Ncauj: Nov yog a.vbs kaw cov ntawv uas kuv tau ua ua prank. Qhov laj thawj yog vim li cas nws thiaj txias heev, vim tias tsis yog cia li kaw lub computer tam sim, lub khoos phis tawj hais lus rau koj, ceeb toom rau koj tias lub khoos phis tawj yuav kaw hauv 10 vib nas this, tom qab ntawd nws
Yuav Ua Li Cas USB Shutdown Hack: 8 Kauj Ruam
Yuav Ua Li Cas USB Shutdown Hack: Hauv qhov kev qhia no kuv yuav qhia koj yuav ua li cas thiaj tsim cov ntawv zais ntawm USB uas yuav kaw cov neeg siv computer
Pi Shutdown Module: 3 Kauj Ruam
Pi Shutdown Module: Cov qauv no muab rau koj txoj hauv kev zoo kom kaw Raspberry Pi kom raug. Tom qab ntawd nws tuaj yeem raug tshem tawm nrog lub khawm ntawm lub zog hloov pauv lossis tshem tawm. Lub teeb yuav tua thaum nws muaj kev nyab xeeb rau tua hluav taws. Yog tias koj txiav txim siab khau raj tom qab nws tau kaw (
SHUTDOWN SHORTCUT: 3 Kauj Ruam
SHUTDOWN SHORTCUT: Nov yog kuv thawj zaug qhia. Kuv tab tom yuav qhia koj yuav ua li cas los tsim qhov luv rau kaw koj lub computer. Koj tseem tuaj yeem ua luv luv kom rov pib dua, tawm, hibernate, thiab kaw koj lub computer