Cov txheej txheem:
- Kauj Ruam 1: Cov Khoom Xav Tau
- Kauj Ruam 2: 40-Pin Header Layout
- Kauj Ruam 3: Teeb GUI
- Kauj Ruam 4: Yuav Siv Li Cas
- Kauj ruam 5: Auto_Script.py Script
- Kauj Ruam 6: Sau cov lus txib SMS
Video: IoT Bit Functions: 6 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Hauv cov lus qhia no, peb yuav qhia koj li cas siv IoT Bit Functions GUI rau koj cov minicomputers zoo li Raspberry Pi 1, 2 thiab 3. Cov haujlwm GUI yuav muaj hauv V1 yog:
- "Xa SMS",
- "Zaub SMS",
- "Rho tawm SMS",
- "Hu rau",
- "Nyob twj ywm",
- "Teeb GPIO rau HIGH/LOW"
- "Teeb liab Zoo"
Cov haujlwm no ua kom yooj yim sib txuas lus nrog IoT Bit modem thiab siv lawv hauv cov ntawv sau tsis siv neeg peb yuav tuaj yeem tswj hwm kho vajtse txuas rau Raspberry Pi's GPIO pins los ntawm kev xa SMS mus rau IoT Bit. Qhov no tuaj yeem muaj txiaj ntsig hauv ntau txoj haujlwm, qhov uas koj xav qhib lossis kaw cov cuab yeej los ntawm qhov chaw nyob deb, nws tuaj yeem ua tiav nrog ze li ib lub cuab yeej yog teeb tsa kom raug.
Hauv Cov Lus Qhia no peb yuav qhia thawj zaug ntawm IoT Bit graphical user interface thiab yuav teeb tsa cov ntawv nab npawb li cas kom muaj "Teeb tsa GPIO Siab/Tsawg" ua haujlwm ib txwm ua haujlwm yog tias SMS tau xa nws yuav cia li teeb tsa xaiv tus pin.
Kauj Ruam 1: Cov Khoom Xav Tau
1 x IoT Ntsis Pob
1 x Mini computer (Siv Raspberry Pi 3 rau qhov kev qhia no)
1 x PC Monitor (HDMI lossis nrog adapter)
1x mus
1 x Keyboard
1 x SD Card (nrog rau kev ua haujlwm zoo li Raspbian, Ubuntu)
1 x USB Cable
Kauj Ruam 2: 40-Pin Header Layout
Nov yog cov phiaj xwm ntawm 40-Pin header kom haum koj txoj haujlwm raws li nrog cov pins muaj.
Muaj Chaw Nres Nkoj Chaw Nkag Nkag // Cov lus piav qhia
- Chaw kuaj mob rau qhov tsim tawm cov lus (Qhov no tsis siv) (Feem ntau ttyUSB0)
- NMEA chaw nres nkoj uas tawm cov ntaub ntawv GPS (Feem ntau ttyUSB1)
- AT chaw nres nkoj hais kom ua (Feem ntau ttyUSB2)
- Chaw nres nkoj Modem (Feem ntau ttyUSB3)
- USB-Audio chaw nres nkoj (Feem ntau ttyUSB4)
Kauj Ruam 3: Teeb GUI
Thawj qhov ua yog khiav hauv Terminal:
- $ sudo apt-tau hloov tshiab
- $ sudo apt-tau hloov tshiab
Qhov no yuav ua kom koj muaj txhua yam hloov tshiab thiab txhua pob khoom teeb tsa. Lub ntsiab lus tseem ceeb peb siv hauv cov lus qhia no yog PyQt5 rau Python 2.7 uas yuav tsum tau teeb tsa los ntawm kev siv cov lus txib hauv qab no:
$ sudo apt-tau nruab python-pyqt5
Tom qab rub PyQt5, koj yuav xav tau "IoT_Bit_library.py", "IoT_Bit_GUI_V1.py" thiab "popup.py" cov ntawv peb tau ua, txhawm rau rub lawv mus rau GitHub txuas:
github.com/Altitude-Tech/IOTBit_Functions_…
Tom qab rub tawm lawv, khaws lawv hauv "/home/pi" phau ntawv teev npe.
Ua ntej khiav nws peb yuav tsum tau muab nws tso cai ua haujlwm los ntawm kev qhib thiab sau ntawv ntawm lub davhlau ya nyob twg:
$ sudo chmod +x IoT_Bit_GUI_V1.py
Txhawm rau khiav GUI tsab ntawv tsuas yog nkag mus rau lub davhlau ya nyob twg:
$./IoT_Bit_GUI_V1.py
Nws tau pom zoo kom siv nab nab 2.7 txij li GUI no thiab lub tsev qiv ntawv tau tsim los siv nws. Yog tias koj xav siv ib qho qauv saum toj lossis hauv qab nab npawb 2.7 koj yuav tau hloov kho cov cai thiab nws yuav tsis ua haujlwm zoo.
Kauj Ruam 4: Yuav Siv Li Cas
Cov lus qhia:
Txhawm rau xa SMS koj yuav tsum xub ntaus tus lej hauv thawj lub npov nkag. Tom qab ntawd nkag mus rau koj cov ntawv xov xwm hauv kab ntawv nkag thib ob nyob ib sab ntawm qhov xa SMS khawm thiab nyem rau ntawm xa. Yog tias ua tiav, cov lus yuav tsum tshwm ntawm lub npov Zaub kom paub meej tias nws tau xa tuaj
Txhawm rau pom SMS, nyem rau "Zaub Tag Nrho" kom pom tag nrho cov lus, 1 kom pom thawj SMS, 2 pom SMS thib ob, thiab ntxiv rau. Tom qab nkag mus rau tus lej nias lub pob "Zaub SMS" thiab cov lus yuav qhia rau ntawm lub thawv Zaub hauv qab no
Txhawm rau tshem tawm SMS, nyem lub pob "Rho Tawm Txhua" kom tshem tag nrho SMS, kom tshem tawm ib qho tshwj xeeb SMS xaiv "Rho Tawm Tshwj Xeeb SMS" los ntawm cov ntawv qhia zaub mov nco-down thiab nyem "Rho tawm SMS" khawm, qhov qhib yuav qhib rau koj nkag mus rau SMS koj xav rho tawm tom qab ntaus tus lej SMS nias "OK" txhawm rau tshem tawm qhov tshwj xeeb SMS thiab kaw lub thawv yog tias koj tsis xav rho tawm lwm yam tshwj xeeb SMS (Nco ntsoov SMS koj xav rho tawm hais txog tus lej lej ib sab ntawm SMS thaum koj nyem "Zaub Tag" thiab tsis yog qhov kev txiav txim uas koj pom lawv hauv lub qhov rai zaub). Tom qab ntawd txhawm rau tshem tawm txhua SMS nrog cov xwm txheej "Tau Txais Nyeem" xaiv "Rho Tawm Nyeem" los ntawm cov ntawv qhia zaub mov nco thiab nyem "Rho tawm SMS", kom tshem tawm txhua SMS nrog cov xwm txheej "Tau Txais Nyeem" thiab "Khaws Cia Xa" xaiv "Rho Tawm Nyeem & Xa "los ntawm cov ntawv qhia zaub mov nco tseg thiab nyem" Rho tawm SMS ", kom tshem tawm txhua SMS nrog cov xwm txheej" Tau Txais Nyeem "," Khaws Cia Xa "thiab" Khaws Cia Tsis Tau "xaiv" Rho tawm Nyeem Ntawv, Xa & Tsis Tuaj "los ntawm qhov poob- cia cov ntawv qhia zaub mov thiab nyem "Rho tawm SMS"
Txhawm rau hu, sau tus lej xov tooj rau hauv lub npov nkag ib yam li lub xov tooj rau SMS thiab nyem rau "Hu", txhawm rau cia li nyem rau ntawm "Hangup" khawm ib zaug
Txhawm rau txheeb xyuas lub teeb liab koj tsuas yog yuav tsum tau nyem rau ntawm "Lub Teeb Pom Kev Zoo" thiab cov lus yuav tshwm rau ntawm lub npov zaub, tsuas muaj tsib txoj kev xaiv "Cov Teeb Meem Tsis Zoo", "OK Teeb liab", "Teeb Meem Zoo", "Qhov Tshwj Xeeb" thiab "Tsis Muaj Kev Sib Txuas"
Tom qab ntawd koj muaj "Teeb tsa GPIO rau HIGH/LOW" txoj haujlwm no yuav teeb tsa tus GPIO tus pin kom qis lossis siab nyob ntawm qhov kawg ntawm kab lus xa, piv txwv li: "PIN26H" yuav teeb tus pin 26 rau siab thiab "PIN26L" yuav teeb nws kom qis tom qab khawm tau nyem. Peb tau ua qhov no rau koob 26, 19 thiab 13, lwm qhov GPIO pins tuaj yeem ntxiv tsuas yog xyuas kom lawv tsis raug siv los ntawm IoT Bit
Kauj ruam 5: Auto_Script.py Script
Txhawm rau teeb tsa GPIO lub luag haujlwm kom ua haujlwm tas mus li koj yuav tsum rub tawm "Auto_Bash.sh" thiab "Auto_Script.py" los ntawm qhov txuas GitHub no thiab txuag lawv hauv koj "/home/pi" folder:
github.com/Altitude-Tech/IOTBit_Functions_GUI
Tom qab ntawd ua kom bash tsab ntawv ua tiav ua:
$ chmod +x Auto_Bash.sh
Tom qab txuag lawv rau koj tus pi thiab ua tsab ntawv bash ua tiav txhua yam koj yuav tsum tau ua yog qhib davhlau ya nyob twg thiab sau rau ntawm kab hais kom ua:
$ sudo nano /etc/rc.local
Tom qab ntawv kawg ua ntej qhov "tawm 0" cov tswv yim:
bash /home/pi/Auto_Bash.sh
Reboot koj pi kom pib sau ntawv. Koj txhua tus ua tiav nrog kev zoo siab. Tsab ntawv yuav tsum tau khiav thiab txhua lub sijhawm koj xa xov mus rau ib qho ntawm tus pin uas tau teeb tsa lawv yuav mus rau qhov siab lossis qis feem. Nco ntsoov koj tuaj yeem hloov pauv lo lus tseem ceeb los teeb tus pin rau siab lossis qis.
Kauj Ruam 6: Sau cov lus txib SMS
- Tus PIN 26HPIN26L
- PIN 19 HP 19 L
- Tus PIN 13HPIN13L
Nco ntsoov tias koj tuaj yeem hloov SMS cov lus txib rau txhua lo lus koj xav tau thiab ntxiv ib qho GPIO pins tsis siv los ntawm raspberry pi tsuas yog nkag mus rau "Auto_Script.py" thiab nrhiav cov lus txib saum toj no thiab rov ua dua rau lwm tus pin.
Pom zoo:
Arduino Tsheb Rov Qab Chaw Nres Tsheb Ceeb Toom - Cov Kauj Ruam ntawm Kauj Ruam: 4 Kauj Ruam
Arduino Tsheb Rov Qab Chaw Nres Tsheb Ceeb Toom | Cov kauj ruam ib kauj ruam: Hauv txoj haujlwm no, kuv yuav tsim qhov yooj yim Arduino Tsheb Rov Qab Tsheb Nres Tsheb Nres Sensor Siv Arduino UNO thiab HC-SR04 Ultrasonic Sensor. Qhov no Arduino raws Lub Tsheb Rov Qab ceeb toom tuaj yeem siv rau Kev Tshawb Fawb Txog Tus Kheej, Robot Ranging thiab lwm yam
Tsev Automation Kauj Ruam ntawm Kauj Ruam Siv Wemos D1 Mini Nrog PCB Tsim: 4 Kauj Ruam
Tsev Automation Kauj Ruam Ib Leeg Siv Wemos D1 Mini Nrog PCB Tsim: Tsev Automation Kauj Ruam los ntawm Kauj Ruam siv Wemos D1 Mini nrog PCB Tsim cov tub ntxhais kawm ntawv qib siab. Tom qab ntawd ib tus ntawm peb cov tswv cuab tuaj
RC Taug Qab Neeg Hlau Siv Arduino - Kauj Ruam Ib kauj ruam: 3 Kauj Ruam
RC Tracked Robot Siv Arduino - Kauj Ruam Ib Nrab: Hav guys, Kuv rov qab los nrog lwm tus neeg hlau txias chassis los ntawm BangGood. Vam tias koj tau dhau los ntawm peb cov phiaj xwm yav dhau los - Spinel Crux V1 - Tus Cwj Pwm Tswj Tus Neeg Hlau, Spinel Crux L2 - Arduino Xaiv thiab Muab Neeg Hlau nrog Robotic caj npab thiab Badland Braw
"Ready Maker" - Tswj dua "Lego Power Functions" Project: 9 Kauj Ruam
"Ready Maker" - Tswj dua "Lego Power Functions" Project: Kawm paub tswj Lego " Lub zog ua haujlwm " Cheebtsam nrog Arduino pawg thawj coj thiab tsim koj txoj haujlwm hauv " Ready Maker " editor (Tsis xav tau tus lej) txhawm rau tswj koj tus qauv
Kawm Yuav Ua Li Cas Kos Tus Tswm Ciab - Kauj Ruam Ib Kauj Ruam: 6 Kauj Ruam
Kawm Yuav Ua Li Cas Thiaj Li Tswmciab - Kauj Ruam Ib kauj ruam: Cov tswm ciab no siv sijhawm 10 feeb los kos yog tias koj ua raws kuv cov kauj ruam ua tib zoo