Cov txheej txheem:

IoT Cov Ntaub Ntawv Kev Tshawb Fawb PiNet rau Lub Sijhawm Tiag Smart Screen Cov Ntaub Ntawv Viz: 4 Cov Kauj Ruam
IoT Cov Ntaub Ntawv Kev Tshawb Fawb PiNet rau Lub Sijhawm Tiag Smart Screen Cov Ntaub Ntawv Viz: 4 Cov Kauj Ruam

Video: IoT Cov Ntaub Ntawv Kev Tshawb Fawb PiNet rau Lub Sijhawm Tiag Smart Screen Cov Ntaub Ntawv Viz: 4 Cov Kauj Ruam

Video: IoT Cov Ntaub Ntawv Kev Tshawb Fawb PiNet rau Lub Sijhawm Tiag Smart Screen Cov Ntaub Ntawv Viz: 4 Cov Kauj Ruam
Video: Интернет-маркетинг и SEO Советы | Как получить отличный ... 2024, Hlis ntuj nqeg
Anonim
IoT Cov Ntaub Ntawv Kev Tshawb Fawb PiNet rau Lub Sij Hawm Tiag Smart Screen Cov Ntaub Ntawv Viz
IoT Cov Ntaub Ntawv Kev Tshawb Fawb PiNet rau Lub Sij Hawm Tiag Smart Screen Cov Ntaub Ntawv Viz
IoT Cov Ntaub Ntawv Kev Tshawb Fawb PiNet rau Lub Sij Hawm Tiag Smart Screen Cov Ntaub Ntawv Viz
IoT Cov Ntaub Ntawv Kev Tshawb Fawb PiNet rau Lub Sij Hawm Tiag Smart Screen Cov Ntaub Ntawv Viz
IoT Cov Ntaub Ntawv Kev Tshawb Fawb PiNet rau Lub Sijhawm Tiag Smart Screen Cov Ntaub Ntawv Viz
IoT Cov Ntaub Ntawv Kev Tshawb Fawb PiNet rau Lub Sijhawm Tiag Smart Screen Cov Ntaub Ntawv Viz

Koj tuaj yeem yooj yim ua ke IoT network ntawm cov lus qhia ntse rau cov ntaub ntawv pom tau los ua kom muaj zog ntxiv rau koj cov kev tshawb fawb hauv Cov Ntaub Ntawv Kev Tshawb Fawb lossis txhua qhov kev suav.

Koj tuaj yeem hu "thawb" ntawm koj cov phiaj rau cov neeg siv khoom tau los ntawm hauv koj cov lej lej (Python, R, Matlab/Octave, SAS, thiab lwm yam), thiab nws hloov kho cov lus hauv lub sijhawm tiag.

Lub tswv yim yog qhov pheej yig saib lub desktop qub uas koj tuaj yeem dag ib puag ncig tuaj yeem rov ua dua rau IoT cov khoom siv uas pheej yig Raspberry Pi cov phiaj xwm txhim kho tau txais thiab tso tawm koj cov ntaub ntawv pom tau zoo hauv lub sijhawm tiag tiag los ntawm koj thawj lub cuab yeej (piv txwv li lub laptop). Yog tias koj tsis muaj flatscreens tsis txhob txhawj, lawv nyob dawb - ze dawb.

Tus nqi thiab kho vajtse xav tau tsawg kawg.

YUAV UA LI CAS

  • 1 lossis ntau dua Raspberry Pi's

    • Kuv pib nrog 3, ntawm 2 yog 3B+ thiab 1 yog Xoom
    • Nqi: ~ $ 10 - $ 40
  • Cov zaub

    • Kuv pib nrog ob peb pre-HDMI flatscreen qhia
      • Pub dawb - $ 25/txhua ntawm Free Cycle, Craigslist, khw muag khoom thib ob, koj lub nkas -las, eBay, thiab lwm yam. Kom tau txais kev pom zoo ntawm cov khoom hnyav dua qub zoo li lub khw no hauv ib cheeb tsam. Tib neeg ntuav tawm lawv lub iav duab.
      • Tsis teb los tau: Phab ntsa -tiaj tus phab ntsa (~ $ 9 rau lub ntsej muag me me ntawm lub desktop, $ 20 - $ 30 rau lub vijtsam loj, piv txwv li 50 ")
    • Yog tias nws tsis muaj HDMI (lossis yog tias koj siv Pi Zero) koj tuaj yeem tau txais qhov hloov pauv <$ 8 los ntawm Amazon, eBay, Micro Center, Walmart, koj tus phooj ywg, txhua qhov chaw
  • HDMI lossis micro-HDMI cables

    • Pub dawb yog tias koj tau txais nws nrog koj Pi lossis muaj ntau yam khoom seem zoo li kuv
    • $ 2 nrog kev xa khoom dawb los ntawm ntau lub khw muag khoom online

Thaum koj muaj cov cai los ntawm GitHub, kho vajtse, thiab koj li Raspberry Pi tau ua haujlwm li cas OS koj xav tau, Kuv kwv yees qhov no yuav siv sijhawm li ob peb feeb mus rau 1 teev feem ntau.

Koj tuaj yeem yooj yim hloov txoj haujlwm no rau lwm qhov IoT siv rooj plaub. Koj kuj tseem xav ua Arduino version! Thov koj xav koom tes nrog kuv ntawm GitHub.

Kauj Ruam 1: Txuas Pi (s) rau Zaub (s)

Txuas Pi (s) rau Zaub (s)
Txuas Pi (s) rau Zaub (s)
Txuas Pi (s) rau Zaub (s)
Txuas Pi (s) rau Zaub (s)

Qhov no yog qhov yooj yim thiab yooj yim.

Tsuas yog lob cov lus hais txog HDMI (rau Pi) lossis micro-HDMI (rau Pi Zero) cable thiab ntxig rau hauv Pi. Rov ua dua rau cov zaub, siv ib qho khoom siv tsim nyog (HDMI rau micro-HDMI, thiab lwm yam).

Ua tiav

Kauj Ruam 2: Npaj 1 lossis Ntau Qhov Raspberry Pi's

Npaj 1 lossis Ntau Qhov Raspberry Pi's
Npaj 1 lossis Ntau Qhov Raspberry Pi's
Npaj 1 lossis Ntau Qhov Raspberry Pi's
Npaj 1 lossis Ntau Qhov Raspberry Pi's
Npaj 1 lossis Ntau Qhov Raspberry Pi's
Npaj 1 lossis Ntau Qhov Raspberry Pi's
Npaj 1 lossis Ntau Qhov Raspberry Pi's
Npaj 1 lossis Ntau Qhov Raspberry Pi's

Tau koj Pi nce thiab khiav? Koj tuaj yeem hla ua ntej!

Cia li khiav

sudo apt nruab feh

yog tias koj xav siv tib daim duab saib uas kuv tau ua.

Txwv tsis pub, cov kauj ruam no tsis tshwj xeeb rau qhov kev qhia no - raws li rau txhua qhov haujlwm Pi, peb tsuas yog xav kom koj muaj Pi uas tau khiav Raspbian lossis koj nyiam OS. Tsis tas li, peb yuav xav mus tom ntej thiab ua kom ntseeg tau tias nws tau teeb tsa nrog koj li WiFi password (lossis cov txheej txheem tso cai uas xav tau) thiab kuv yuav muab qee qhov IMHO rau koj "kev xyaum zoo tshaj plaws" teeb tsa uas zoo rau cov neeg nyiam ua haujlwm IoT/Pi (tsis tas yuav tsum tau ua) rau kev nyab xeeb, kev ua haujlwm, kev tsim khoom lossis lwm yam ntsiab lus zoo li ntawd).

Kuv 2 ntu lub tswv yim ntawm no yog txhawm rau txuas koj mus rau cov ncauj lus kom ntxaws, tsim cov lus qhia los ntawm cov neeg thib 3 thiab tom qab ntawd muab rau koj kuv qib kev txheeb xyuas qib siab ntawm yuav ua dab tsi.

  1. Cov ncauj lus kom ntxaws, tsim tau zoo thib 3 ntu Raspberry Pi teeb tsa cov lus qhia
    1. https://projects.raspberrypi.org/en/projects/noobs…
    2. https://www.howtoforge.com/tutorial/howto-install-…
  2. Kuv cov ntsiab lus qib siab

    1. Tau txais WiFi qhib Pi

      1. Pi 2 nrog USB wireless network adapter
      2. 3,3B+
      3. Zero W, Zero WH
    2. Siv qhov tsim nyog HDMI lossis micro-HDMI cable txuas koj cov lus rau Pi

      1. cov lus qhia hloov pauv (kwv yees li $ 10 ntawm Amazon, eBay, thiab lwm yam) tuaj yeem siv rau cov lus qhia qub xws li VGA
      2. Qub VGA tiaj cov ntxaij vab tshaus yog li $ 5 - $ 25 ntawm cov khw muag khoom thib ob! Koj kuj tseem tuaj yeem hloov kho lub desktop rau $ 9 flatscreen phab ntsa mount, yog tias koj nyiam.
    3. Hlawv NOOBS, Raspbian, Google AIY, Debian, Ubuntu, Slackware, lossis ib qho ntawm ntau qhov lom zem Linux OS koj tuaj yeem tshawb xyuas thiab siv dawb

      1. Ib qho 8GB+ daim npav micro SD zoo
      2. Ib qho cuab yeej hlawv zoo li Etcher.io, Unetbootin, LiLi, thiab lwm yam
    4. Tua tawm OS, txuas rau koj lub WiFi network, txuag koj tus password
    5. Tua tawm Raspi-teeb tsa (lossis koj li OS sib npaug) thiab teeb tsa cov kev xaiv hauv qab no

      1. Khau raj rau Desktop
      2. Auto-login as pi (zoo rau IoT kev txhim kho, tsis zoo rau kev ruaj ntseg hauv kev tsim khoom)
      3. Ua tsis taus pa (muaj ntau txoj hauv kev los ua qhov no)

        1. Rau kuv, tsuas yog xiam qhov screensaver tau txaus (tejzaum yog vim tau teeb tsa ua ntej cov ntxaij vab tshaus hauv kuv Google AIY diav rawg ntawm Raspbian)
        2. Hauv lwm qhov xwm txheej muaj tus lej CLI txoj hauv kev los ua qhov no lossis koj tuaj yeem teeb tsa `xscreensaver` tom qab ntawd ua haujlwm nws hauv GUI
        3. https://raspberrypi.stackexchange.com/questions/75…
        4. https://raspberrypi.stackexchange.com/questions/75…
    6. Nruab feh

      1. qhov no tsuas yog qhov yooj yim, lub teeb yuag, cov cuab yeej saib duab zoo rau Linux peb tuaj yeem siv
      2. sudo apt nruab feh
      3. Lwm tus saib duab zoo ib yam nkaus

Kauj Ruam 3: Clone + Hloov Kho Kuv Cov Cai los Tsim Kev Siv Cov Ntaub Ntawv Tiag Tiag Sijhawm

Yog tias koj tseem tsis tau ua tiav, koj yuav tsum luam kuv tus lej piv txwv los ntawm GitHub lub sijhawm no.

Koj muaj ntau txoj kev xaiv yuav ua li cas:

  • Lub taub hau mus rau GitHub thiab rub tawm cov ntawv ua.zip
  • Clone nrog
  • git clone [email protected]: hack-r/IoT_Data_Science_Pi_Net.git
  • Tsuas yog ua tib zoo saib kuv cov cai thiab sau koj tus kheej los ntawm kos

Thaum koj muaj tus lej, thov hloov kho txoj hauv kev nrog koj tus kheej txoj kev, tus lej zais thiab tus yuam sij SSH.

Kauj Ruam 4: Tsim thiab Txiav Tawm Cov Ntaub Ntawv Viz rau IoT Smart Displays hauv Lub Sijhawm Tiag

Tsim thiab Txiav Tawm Cov Ntaub Ntawv Viz rau IoT Ntse Qhia Hauv Lub Sijhawm Tiag
Tsim thiab Txiav Tawm Cov Ntaub Ntawv Viz rau IoT Ntse Qhia Hauv Lub Sijhawm Tiag
Tsim thiab Txiav Tawm Cov Ntaub Ntawv Viz rau IoT Ntse Qhia Hauv Lub Sijhawm Tiag
Tsim thiab Txiav Tawm Cov Ntaub Ntawv Viz rau IoT Ntse Qhia Hauv Lub Sijhawm Tiag
Tsim thiab Txiav Cov Ntaub Ntawv Viz rau IoT Ntse Qhia Hauv Lub Sijhawm Tiag
Tsim thiab Txiav Cov Ntaub Ntawv Viz rau IoT Ntse Qhia Hauv Lub Sijhawm Tiag
Tsim thiab Txiav Tawm Cov Ntaub Ntawv Viz rau IoT Ntse Qhia Hauv Lub Sijhawm Tiag
Tsim thiab Txiav Tawm Cov Ntaub Ntawv Viz rau IoT Ntse Qhia Hauv Lub Sijhawm Tiag

Hauv cov kauj ruam kawg no thiab txaus siab tshaj plaws peb tsuas tso peb cov Pi network sib dhos los sim!

Rau peb cov lej sib npaug ntawm "Nyob Zoo Ntiaj Teb" cia khiav ib tsab ntawv ntawm koj lub khoos phis tawj lossis lub cuab yeej tseem ceeb los ua Lub Tshuab Kawm ntawm qee cov ntaub ntawv, tsim cov ntaub ntawv pom, thiab tso tawm rau peb Pi-based smart screens ("cov neeg siv khoom").

DEMO

Cov lus piav qhia hauv qab no siv lub Windows laptop khiav R ua piv txwv ntawm thawj lub cuab yeej ("server").

  1. Ua ntej R tsab ntawv tau ua tiav ntawm kab lus txib dua cov ntaub ntawv piv txwv. R los ntawm GitHub

    1. Raws li pom hauv 1st screenshot ntawm cmd qhov hais kom ua
    2. Cov ntaub ntawv piv txwv luam tawm thawj ob peb kab ntawm 2 cov ntaub ntawv teeb tsa thiab tsim cov ntaub ntawv viz cov phiaj (-p.webp" />
  2. YOOJ YIM Tsab ntawv pov thawj tseeb khiav tawm tsam SCP (WinSCP hauv qhov kev qhia no)

    1. Khiav cov ntawv no sab nraum R lossis Python tsis tsim nyog ntxiv, nrog kuv hloov kho GitHub code:)
    2. Koj tseem tuaj yeem khiav nws ntawm cmd kab hais kom ua ncaj qha
    3. SSH kuj zoo
    4. SFTP kuj zoo
    5. Kev siv tshwj xeeb/app tsis tseem ceeb
    6. Nov yog cov ntaub ntawv scp_pi_pushN.txt los ntawm GitHub

      Kuv teeb tsa qhov no nrog 1 rau ib tus neeg siv khoom siv

Viola!

Tam sim no koj cov lus ntse tau nthuav tawm cov ntaub ntawv pom los ntawm koj cov phiaj xwm phiaj xwm!

Pom zoo: