Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: Nqa Relay Mus Rau Raspberry Pi
- Kauj Ruam 2: Nqa Tus Tsav Tsheb mus rau Relay
- Kauj ruam 3: Code Nws
- Kauj ruam 4: Qhib Nws
- Kauj ruam 5: Troubleshooting
- Kauj Ruam 6: Vam tias Koj Zoo Siab
Video: Spinning Dc Tsav Nrog Raspberry Pi: 6 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Nyob zoo! Txais tos rau lub ntiaj teb vwm me ntsis ntawm kev xa tawm, lub cev muaj zog, hluav taws xob, thiab qhov zoo tshaj plaws ntawm … RASPBERRY PI!
Kuv paub qee tus ntawm koj cov neeg tsis paub dab tsi txog raspberry pi, tab sis qee tus ntawm koj tsis txawm paub tias nws muaj! Yog koj tsis paub tias nws yog dab tsi, nyem qhov no! Tam sim no koj txhua tus tau nrawm dua, QHOV TSEEB! (Yog tias koj saib kuv cov vis dis aus YouTube (@Computer Kid), cov lus no tau paub zoo heev rau koj!). Yog tias koj txaus siab rau cov khoom siv laser kos nco ntsoov mus ntsib kuv Facebook nplooj ntawv!
Khoom siv
1. Raspberry Pi (2b thiab tshiab dua kom tsis txhob qw ntawm pi vim tias qeeb npaum li cas cov qauv ua ntej yog;-)
2. Relay (Kuv siv SRD-05VDC-SL-C))
3. Tsav
4. Lub Hwj Chim Roj Teeb
5. Poj Niam Rau Poj Niam Jumper Wires
Kauj Ruam 1: Nqa Relay Mus Rau Raspberry Pi
+ mus rau 5V.
- mus rau GND.
S mus rau GPIO18
Kauj Ruam 2: Nqa Tus Tsav Tsheb mus rau Relay
Hook qhov tsis zoo ncaj qha mus rau lub cev muaj zog, zoo mus rau qhov nruab nrab ntawm kev xa xov, tom qab thaum kawg sab laug ntawm kev xa mus rau qhov zoo ntawm lub cav.
Kauj ruam 3: Code Nws
#los tsim hom ntawv no hauv lub davhlau ya nyob twg sudo nano relay.py
#kom khiav cov ntaub ntawv no khiav hauv lub davhlau ya nyob twg python3 relay.py ntshuam RPi. GPIO li GPIO los ntawm lub sijhawm ntshuam pw GPIO.setmode (GPIO. BCM) GPIO.setup (18, GPIO. OUT) thaum muaj tseeb: GPIO.output (18, Tseeb) pw tsaug zog (1) GPIO. tawm tswv yim (18, Tsis tseeb) pw tsaug zog (1)
Kauj ruam 4: Qhib Nws
Thawj zaug sudo reboot. Tom ntej no khiav python3 relay.py. lub cav yuav tig thiab tua!
Kauj ruam 5: Troubleshooting
Yog tias koj qhov RELAY/MOTOR tab tom ua haujlwm zoo hla qhov teeb meem no !
Qhov teeb meem tshwm sim 1: kev xa xov yog nyem tab sis lub cav tsis tig
Kho: txheeb xyuas koj cov xov hlau, yog tias qhov no tsis ua haujlwm xyuas seb qhov hluav taws xob koj lub cev tau ntsuas li cas thiab koj lub roj teeb ntau npaum li cas.
Qhov teeb meem tshwm sim 2: raspberry pi yuav tsis qhib.
Kho: qee qhov xov tooj yog tej zaum kov.
Tsis tshua muaj teeb meem: koj hnov tsw ntxhiab tsw ntxhiab thiab/lossis pom pa taws
Yuav ua dab tsi: ROV QAB LUB PATTERY PACK IMMEDIATLY !!!
Yog tias koj muaj teeb meem uas tsis tau teev nyob ntawm no, lossis kho tsis ua haujlwm tshaj tawm cov lus tawm!
Hmoov zoo!
Kauj Ruam 6: Vam tias Koj Zoo Siab
Vam tias koj nyiam! yog tias koj xav coj kev xa mus thiab cov motors nyob deb dua nco ntsoov txheeb xyuas kuv Tsab Ntawv Pom Zoo Nerf Phom!
Pom zoo:
Stepper Tsav Tswj Cov Qauv Tsav Tsheb - Stepper Lub Cev Ua Raws Li Lub Hau Encoder: 11 Kauj Ruam (nrog Duab)
Stepper Tsav Tswj Cov Qauv Tsav Tsheb | Stepper Motor Raws li Rotary Encoder: Hauv ib qho ntawm Cov Lus Qhia yav dhau los, peb tau kawm paub yuav siv lub tshuab stepper li cas los ua tus lej nkag teb chaws. Hauv txoj haujlwm no, tam sim no peb yuav siv lub tshuab hluav taws xob stepper tig lub cav nkag los tswj tus qauv tsheb ciav hlau siv Arduino microcontroller. Yog li ntawd, tsis muaj f
Pib Tus Kheej Tsav Tsheb Tsav Tsheb Nrog Kev Tiv Thaiv Kev Sib tsoo: 7 Kauj Ruam
Pib Tus Kheej Tsav Tsheb Tsav Tsheb Nrog Kev Tiv Thaiv Kev Sib tsoo: Nyob Zoo! Zoo siab txais tos rau kuv tus pib-phooj ywg Qhia paub yuav ua li cas thiaj ua rau koj tus kheej tsav tsheb lub tsheb uas tsis muaj kev sib tsoo thiab GPS Kev Nkoj. Saum toj no yog cov vis dis aus YouTube qhia txog tus neeg hlau. Nws yog tus qauv los qhia txog yuav ua li cas thiaj muaj kev ywj pheej tiag tiag
Xaiv Cov Kauj Ruam Tsav Tsheb thiab Tsav Tsheb rau Arduino Automated Shade Screen Project: 12 Cov Kauj Ruam (nrog Duab)
Xaiv Cov Kauj Ruam Tsav Tsheb thiab Tsav Tsheb rau Arduino Automated Shade Screen Project: Hauv Cov Lus Qhia no, Kuv yuav hla cov kauj ruam uas kuv tau xaiv los xaiv Lub Kauj Ruam Tsav Tsheb thiab Tsav Tsheb rau qhov ua piv txwv Automated Shade Screen project. Cov ntxaij vab tshaus ntxoov ntxoo yog qhov nrov thiab pheej yig Coolaroo tes cranked qauv, thiab kuv xav hloov
Actobitty 2 Nrog TB6612FNG SparkFun Tsav Tsav Tsheb, Phau Ntawv Qhia Pib: 3 Kauj Ruam
Actobitty 2 Nrog rau TB6612FNG SparkFun Tsav Tsheb, Pib Qhia: Cov lus qhia no yog rau Actobitty 2 Neeg Hlau Nrog SparkFun ® TB6612FNG Tsav Tsheb
Pike - Tsav Kev Nyab Xeeb, Tsav Ntse, Tsav Tus Pike!: 5 Kauj Ruam
Pike - Tsav Kev Nyab Xeeb, Tsav Zoo, Tsav Pike!: Zoo siab txais tos rau kuv qhov project hu ua Pike! Nov yog qhov haujlwm raws li ib feem ntawm kuv txoj kev kawm. Kuv yog tub ntxhais kawm NMCT ntawm Howest hauv Belgium. Lub hom phiaj yog ua kom qee yam ntse los ntawm kev siv Raspberry Pi. Peb muaj kev ywj pheej tiav uas peb xav ua ntse.Rau rau kuv nws wa