Cov txheej txheem:
- Kauj Ruam 1: Ua Local Web Server
- Kauj Ruam 2: Ua Yooj Yim Circuit
- Kauj Ruam 3: Tswj GPIO Los Ntawm Lub Vev Xaib
- Kauj Ruam 4: Tswj GPIO Los Ntawm Xov Tooj Apps (Android)
Video: Raspberry Pi GPIO Los Ntawm Xov Tooj: 4 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Tswj Raspberry GPIO los ntawm Daim Ntawv Thov Xov Tooj. Los ntawm qhov no, koj tuaj yeem ua koj tus kheej lub teeb taws teeb hloov 220V lossis FAN, thiab lwm yam.
Qhov yuav khoom:
1. Raspberry Pi https://amzn.to/2VJIOBy2. Pawg mov ci
Kauj Ruam 1: Ua Local Web Server
1.1. Nruab WiringPI
WiringPI yog siv los tswj GPIO. Ntawm Raspberry, qhib cov lus txib rau nruab WiringPI:
$ sudo apt-tau nruab git-core
$ sudo apt-tau hloov tshiab
$ sudo apt-tau hloov tshiab
$ git clone git: //git.drogon.net/wiringPi
$ cd wiringPi
$ git rub keeb kwm
$ cd wiringPi
$./buildChecking tom qab teeb tsa WiringPI
$ gpio hom 0 tawm
-> Yog tias tsis muaj dab tsi tshwj xeeb tshwm sim, txhua yam zoo.
Qauv hais kom ua, sau thiab nyeem tus pin 1
$ gpio sau 10
$ gpio nyeem 1
1.2. Nruab web server:
Txhawm rau nruab lub vev xaib server, ntaus hais kom ua $ sudo apt-tau nruab apache2 php5 libapache2-mod-php5
Yog tias txhua yam ua tau zoo, lub vev xaib hauv zos yuav tshwm thaum koj ntaus ntawv chaw nyob rau Web Browser 192.168.1.71/index.html
1.3. Ua PHP nplooj ntawv rau interface GPIO
Tam sim no peb muaj WiringPI los tswj GPIO los ntawm kev hais kom ua, peb muaj web server. Yog li, txhawm rau Siv Web server tswj GPIO, peb xav tau nplooj PHP los tswj GPIO los ntawm WiringPI
Hauv Raspberry:
$ cd/var/www/html
$ gedit io.php
Tom qab ntawd muab tshuaj txhuam tus lej raws li hauv qhov txuas no
Nco tseg, tus lej no kuv ua rau GPIO7, GPIO8, GPIO9
Kauj Ruam 2: Ua Yooj Yim Circuit
Siv lub rooj mov ci, qee qhov xov hlau, tiv thaiv 220Ohm txuas GPIO7, 8, 9 rau LEDs
Kauj Ruam 3: Tswj GPIO Los Ntawm Lub Vev Xaib
Nov yog peb mus, qhib Web browser, muab qhov chaw nyob no
Tom qab ntawd, GPIO7 yuav tawm, mus rau nws, chaw nyob dhau los
Kauj Ruam 4: Tswj GPIO Los Ntawm Xov Tooj Apps (Android)
Muaj Android App tuaj yeem siv xa php hais kom ua. Lub App tuaj yeem pom hauv Google Ua Si los ntawm lo lus tseem ceeb "Data2Server" lossis los ntawm qhov txuas no
Hauv App no, koj yuav teeb tsa chaw nyob php, hais kom GPIO ON thiab OFF. Kuj tseem nkag tus IP chaw rau Ping los ntawm Xov Tooj mus rau Rasp txhawm rau txheeb xyuas kev sib txuas.
Qhov ntawd yog nws! Tam sim no GPIO tuaj yeem tswj tau los ntawm koj lub Xov Tooj! Los ntawm qhov no, koj tuaj yeem siv nws los tswj Lub Teeb 220V lossis txhua yam uas koj nyiam!
Pom zoo:
3D Luam Ntawv Box Gpsdo. Siv Xov Tooj Ntawm Tes Xov Tooj Ntawm Tes: 10 Kauj Ruam (nrog Duab)
3D Luam Ntawv Box Gpsdo. Siv Lub Xov Tooj Ntawm Lub Xov Tooj Ntawm Lub Xov Tooj: Nov yog lwm txoj hauv kev ntawm kuv GPSDO YT ntawm no Tus lej yog tib yam. Pcb zoo ib yam nrog kev hloov kho me ntsis Kuv tab tom siv lub xov tooj ntawm tes txuas. Nrog rau qhov no, tsis tas yuav teeb tsa ntu khoom siv hluav taws xob.Peb xav tau 5v ocxo ib yam. Kuv siv lub qhov cub yooj yim
Yuav Siv Xim Li Cas Txhuam Txhuam Txhuam Txhuam Txhuam Txhuam Txhuam Txhuam Txhuam Txhuam Dej thiab Dej los Kos Duab ntawm Xov Tooj lossis Xov Tooj Ntawm Tes: 4 Kauj Ruam
Yuav Ua Li Cas Siv Xim Txhuam Txhuam Txhuam Txhuam Txhuam Txhuam Txhuam Txhuam Txhuam Txhuam Txhuam Dej thiab Dej rau Kos Duab ntawm Xov Tooj lossis Xov Tooj Ntawm Tes: Kev pleev xim nrog txhuam yog kev lom zem. Nws nqa nrog nws ntau lwm yam kev txhim kho rau cov menyuam
Hloov Kho Lub Xov Tooj Ntawm Tes rau Lub Xov Tooj Ntawm Tes: 7 Kauj Ruam (nrog Duab)
Hloov Kho Tus Xov Tooj Ntawm Tes Rau Lub Xov Tooj Ntawm Tes: Los Ntawm Bill Reeve ([email protected]) Hloov kho rau cov lus qhia los ntawm Mouse ([email protected]) Tsis lees paub: Cov txheej txheem piav qhia ntawm no yuav tsis ua haujlwm rau koj - uas yog qhov kev pheej hmoo koj muaj coj. Yog tias nws tsis ua haujlwm, lossis yog tias koj tsoo qee yam, nws tsis yog
Zaub Cov Duab Tawm ntawm PSP/Lub Xov Tooj Ntawm Lub Xov Tooj Ntawm Digital Duab: 3 Kauj Ruam
Zaub Cov Duab Tawm PSP/Lub Xov Tooj Ntawm Lub Xov Tooj Ntawm Tus Duab: Zoo … lub npe hais tias txhua yam tiag tiag … Qhov no yog qhov qhia tau yooj yim heev thiab nws tsis xav tau kho vajtse lossis software ntau dua li koj yuav tsum muaj ! Cov Lus Nug Qhia Rau Kuv lossis Tawm Tswv Yim! Koj tsis tas yuav hloov kho kom ua
Ryobi 18vdc Lub Teeb Nrog Ipod lossis Lub Xov Tooj Ntawm Lub Xov Tooj Ntawm Lub Xov Tooj: 5 Kauj Ruam
Ryobi 18vdc Lub Teeb Nrog Ipod lossis Lub Xov Tooj Ntawm Lub Xov Tooj Ntawm Lub Xov Tooj: Nov yog qhov hack sai uas yuav ua rau siv koj li 18vdc Ryobi teeb nyem. Kuv tau ntxiv 12vdc tso zis rau them kuv lub ipod lossis xov tooj ntawm tes hauv qhov me me. Nws siv sijhawm li ib teev thiab tsis nyuaj heev. Txheeb nws. Cov npe ntu: 1-Ryobi 18vdc Teeb nyem