Cov txheej txheem:

Smart Dog House: 6 Kauj Ruam
Smart Dog House: 6 Kauj Ruam

Video: Smart Dog House: 6 Kauj Ruam

Video: Smart Dog House: 6 Kauj Ruam
Video: Bring back the energy | Volkswagen 2024, Hlis ntuj nqeg
Anonim
Ntse Dog House
Ntse Dog House

Cov tswv tsiaj feem ntau xav paub seb lawv tus dev hlub tau ua dab tsi thaum lawv tsis tuaj.

Hauv cov lus qhia no peb yuav tsim Raspberry Pi raws Tus Saib Xyuas dev. Tom qab ib hnub ua haujlwm, koj tuaj yeem tshawb xyuas lub app thiab pom lub sijhawm nws siv hauv nws 'lub rooj ntev zaum', suab nrov npaum li cas nws tau ua thiab nws tau ua haujlwm li cas.

Khoom siv

Hluav taws xob:

  • Raspberry Pi 3 qauv B (daim npav SD 8GB lossis ntau dua)
  • T-cobler
  • LCD 16 x 2
  • siab sensor
  • tsab ntawv tsa suab sensor
  • suab sensor
  • resistors
  • jumperwires

Kauj ruam 1: Kev teeb tsa

Kev teeb tsa pi:

Peb xav tau 2 yam rau theem no:

  • disk daim duab win32:
  • peb cov duab ntawm:

Kev teeb tsa SD daim npav:

  • mus rau SD daim npav phau ntawv teev npe
  • qhib cov ntaub ntawv "cmdline.txt" thiab ntxiv ip = 169.254.10.1. Nco ntsoov tias muaj qhov chaw nruab nrab ntawm yam koj ntaus thiab dab tsi twb muaj hauv cov ntawv
  • txuag nws
  • tsim cov ntaub ntawv ssh uas tsis muaj kev txuas ntxiv hauv tib lub dir
  • coj koj daim npav SD tawm (tab sis nyab xeeb)

Kev sib txuas rau PI:

  • Fais fab PI thiab ntsaws LAN cable hauv koj lub computer thiab koj tus PI
  • nruab Putty los ntawm
  • muab '169.254.10.1' hauv IP kem xaiv SSH thiab chaw nres nkoj 22
  • qhib
  • username: pib
  • lo lus zais: raspberry

Kev teeb tsa:

  • ntaus "sudo raspi-config"
  • Xaiv koj lub tebchaws wifi los ntawm qeb kev lag luam
  • rub tawm realVNC:

    teeb tsa kev sib txuas rau koj li PI

  • txuas koj lub wifi
  • rov qab mus rau CLI (khoos phis tawj kab kab interface) version

    • hom:

      • "sudo apt hloov tshiab"
      • "hloov kho-hloov pauv-nruab/usr/bin/nab hab sej nab npawb /usr/bin/python2.7 1"
      • "hloov kho-lwm txoj hauv kev-nruab/usr/bin/nab nab sej/usr/bin/python3 2"

Kauj ruam 2: Database

Nruab mariaDB ntawm PI

  • Hom

    • "sudo apt nruab mariaDB-server"
    • "mysql_secure_installation"
  • Peb tseem tsis muaj tus lej nkag nkag hauv paus yog li tsuas yog nias nkag mus
  • Tam sim no peb tuaj yeem teeb tus lej nkag hauv paus

    Teb Y rau txhua lo lus nug

Kauj Ruam 3: Hluav Taws Xob Hluav Taws Xob

Hluav Taws Xob Hluav Taws Xob
Hluav Taws Xob Hluav Taws Xob

Hlau cov khoom siv raws li 'Cov Qauv Hluav Taws Xob'

Hauv qhov txuas ib qho piv txwv ntawm kuv Breadboard txoj kab xov txuas

Ua tib zoo saib vim tias jumperwires tsis lo zoo, yog li ua kom ntseeg tau tias txhua yam tau txuas zoo rau ntawm daim ntawv tais.

Kauj ruam 4: Rooj plaub

Rooj plaub
Rooj plaub
Rooj plaub
Rooj plaub

Ua rooj plaub

Muaj ntau qhov ua tau:

  • koj tuaj yeem siv lub lasercutter
  • lossis koj tuaj yeem ua nws ntawm tes

Kuv siv lub lasercutter kuv tau kaw 2 lub thawv ua ke zoo li hauv daim duab saum toj no. Kev ntsuas yog nyob hauv daim duab yog tias koj yuav ua nws ntawm tes.

Yog tias koj xav tsim cov ntawv lasercutter, muaj qhov chaw yooj yim uas koj tuaj yeem siv. (https://www.makercase.com) Ua tsaug

Kauj Ruam 5: Python (Backend)

Rau cov backend kuv siv Pycharm.

Rau kev txuas nrog koj tus PI:

  • Cov ntaub ntawv
  • Chaw
  • Tsim, Ua tiav, Kev xa tawm
  • Kev xa tawm
  • Ua qhov txuas rau koj tus PI los ntawm kev ntxiv koj tus tswv tsev SFTP
  • Mus rau qhov thib ob tab Mappings thiab xyuas kom tseeb tias txoj hauv kev raug
  • Nyem OK

Rub tawm cov cai los ntawm GITHUB (https://github.com/WoutDeBaere/Smart-dog-house)

Tshaj tawm cov cai nrog nyem txoj cai thiab xaiv 'Upload rau Rpi'

Khiav tsab ntawv nrog txoj nyem thiab xaiv khiav (app.py)

Kauj ruam 6: Html thiab Java (frontend)

Coj mus rau Pem Hauv Ntej-Qhov kawg, koj rub tawm hauv cov kauj ruam dhau los los ntawm GITHUB thiab rub tawm. Kuv siv Visual Studio los ua FE ib feem, tab sis koj nyob qhov twg uas koj nyiam siv.

Pom zoo: