Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: Txhim Kho Django thiab Ua Ntej Ua Ntej rau Project
- Kauj Ruam 2: Teeb Koj Daim Ntawv Thov Django
- Kauj Ruam 3: Tsim GUI thiab Txuas Nrog Backend
- Kauj Ruam 4: Hloov Cov Ntaub Ntawv hauv Raspberry-pi thiab teeb tsa
Video: MODERN VENDING TSHUAB GUI Siv RASPBERRY PI Nrog DJANGO: 4 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Peb puas tuaj yeem tsim GUI niaj hnub siv cov lus hauv web rau lub tshuab muag?
Cov lus teb rau saum toj no yog peb ua tau. Peb tuaj yeem siv cov tshuab muag khoom siv hom kiosk. Qhov tswv yim hauv qab no kuv twb tau thov ntawm kuv qhov haujlwm uas twb muaj lawm thiab nws ua haujlwm tau zoo thiab peb tau sim ntau yam. Koj tseem tuaj yeem ua kom zoo saib GUI niaj hnub kev paub tam sim no ntawm css thiab HTML, JavaScript.
Khoom siv
Yam yuavtsum tau kawm uantej hauv qab no yog xav tau:
- Raspberry pi Nrog raspian OS teeb tsa hauv nws
- Lub Touchscreen zaub tau tshaj nrog raspberry pi
- Kev paub me ntsis txog qhov pib ntawm cov lus hauv web (CSS, HTML, JavaScript)
Kauj Ruam 1: Txhim Kho Django thiab Ua Ntej Ua Ntej rau Project
- hloov kho Python 2 mus rau 3 uas siv lub davhlau ya nyob twg. Koj tuaj yeem hla cov kauj ruam hauv Video.
- Nruab Django ntawm Raspberry pi siv Pip hais kom ua hauv kab davhlau ya nyob twg.
- (tsis teb los tau) Txhim kho cov tsev qiv ntawv xav tau rau kov cov lus. Kev ua no mus txog koj li Chaw tsim khoom lub vev xaib.
Kauj Ruam 2: Teeb Koj Daim Ntawv Thov Django
Yog tias koj nyiam nrog IDE ntawm raspberry pi mus rau nws tab sis kuv pom zoo kom ua Django daim ntawv thov hauv PC. Mus rau Pycharm thiab tsim txoj haujlwm tshiab hauv qab Qhov Xaiv Django. Muab lub npe tshiab rau txoj haujlwm thiab ntawm Enable Template thiab tsim lub npe rau koj lub app thiab yog tias koj tab tom ua haujlwm ntawm cov chaw khaws ntaub ntawv tso cai Django admin thiab nias pib.
- Txheeb xyuas server ua haujlwm lossis tsis siv qhov hais kom ua - sej tswj.py runerver ntawm davhlau ya nyob twg
- Yog tias Koj Tsis Paub Txog Django cov hauv paus nkag mus rau lub xaib Polls app uas koj tuaj yeem nkag siab yooj yim txog Django Basics.
Kauj Ruam 3: Tsim GUI thiab Txuas Nrog Backend
- Txog Kev Tsim GUI Kuv Yuav Ua tiav nrog Html 5 thiab CSS 3. Koj tuaj yeem tsim tus lej ntawm nplooj ntawv raws li koj xav tau thiab rau Icons thiab cov duab sim rub tawm thiab siv yog tias koj tab tom ua haujlwm nrog lub tshuab muag khoom offline thiab rau online siv URL txuas. Kuv tau khaws cov.html cov ntaub ntawv hauv Cov Ntawv Teev Npe peb nyuam qhuav qhib.
- Siv cov ntawv zoo li qub khaws cia Cov Duab, Yeeb yaj duab thiab CSS cov ntaub ntawv feem
- Tom qab ntawd siv urls.py hauv Django los txuas Cov Ntaub Ntawv nrog kev rov ua tiav kawg.
(lossis)
clone lossis rub tawm lub chaw cia khoom hauv GitHub-Raspberry-pi-Gui-Django
Kauj Ruam 4: Hloov Cov Ntaub Ntawv hauv Raspberry-pi thiab teeb tsa
Nrog koj zoo siab, Yog tias koj ua raws cov kauj ruam txog tam sim no nws yog lub sijhawm los sim GUI ntawm raspberry pi.
- tsim daim ntawv thov Django nrog tib lub npe zoo li siv hauv koj lub PC lossis Laptop
- Tsim Cov Qauv thiab Cov Ntawv Zoo Li Qub ntawm koj Pi
- Hloov Cov Ntaub Ntawv tshiab nrog Cov Ntaub Ntawv Tiag uas koj tsim Rau kom paub meej ntxiv xa mus rau Daim Duab.
- Cov kauj ruam tom ntej yog los tsim Auto-start script los pib server thaum khau raj hauv Background
- Qhov kawg yog ua kom Kiosk Hom nyob rau hauv raspberry pi kom paub meej ntxiv Txheeb xyuas kuv Github Page anf yog tias koj xav qhia chromium hauv Fullscreen Mode
Pom zoo:
YUAV UA LI CAS YUAV TSHUAB TSHUAB TSHUAB NROG NROG ARDUINO: 8 Kauj Ruam
YUAV UA LI CAS YUAV TSUM TSHUAB TSHUAB TSHUAB NROG ARDUINO: QHOV TSEEB Lub tshuab sau ntawv tau tsim los ntawm cov ntaub ntawv uas tuaj yeem tau yooj yim hauv tsev; nws ua rau siv rau lub cav hluav taws xob uas yog lub hauv paus tseem ceeb ntawm nws txoj haujlwm. Nws tuaj yeem siv hauv Kev kos duab Engineering thiab kos duab kos duab. Nws tuaj yeem yog
Arduino Tswj Mini Vending Tshuab Vending: 9 Kauj Ruam
Arduino Controlled Mini Vending Machine: Nov yog peb lub tshuab muag khoom, nws muag peb qhov lom zem me me snickers khoom qab zib. Zuag qhia tag nrho qhov ntev yog li 12 " x6; ua. x8; ua. Lub tshuab muag khoom no yog tswj los ntawm arduino, nrog lub khob cij thiab lub cav servo
Lub Tshuab Raspberry Pi Siv Lub Tshuab Nruas Tsis Zoo: 15 Cov Kauj Ruam (nrog Duab)
Raspberry Pi Powered Junk Drum Machine: Cov lus qhia no yuav qhia koj yuav ua li cas thiaj ua tau Raspberry Pi siv lub tshuab nruas neeg hlau. Nws yog qhov kev lom zem, muaj tswv yim, sib tham sib tham. Kuv yuav qhia koj yuav ua li cas txhawm rau ua haujlwm sab hauv, tab sis lub nruas tiag yuav nyob ntawm koj, muab rau koj
Tswj Cov Khoom Siv Los Ntawm Arduino Nrog Cov Neeg Siv Khoom Hloov: 8 Cov Kauj Ruam (nrog Duab)
Kev Tswj Cov Khoom Siv Los Ntawm Arduino Nrog Kev Siv Hluav Taws Xob: Lub Arduino tuaj yeem siv los tswj cov cuab yeej los ntawm kev siv cov khoom siv yooj yim hloov pauv hloov chaw
Cov Khaub Ncaws Khaub Ncaws: Ua Cov Khaub Ncaws Yooj Yim Siv Lub Tshuab Luam Ntawv: 4 Cov Kauj Ruam (nrog Duab)
Cov Khaub Ncaws Khaub Ncaws: Ua Cov Khaub Ncaws Yooj Yim Siv Lub Tshuab Luam Ntawv Inkjet: Tsis yooj yim heev thiab yuav luag txhua lub voj voos tuaj yeem ua tau siv cov ntaub qhwv. Nov yog qee qhov kev sim uas kuv tau ua nrog cov ntaub coj ua. Lawv tuaj yeem pleev xim lossis kos rau ntawm kev tawm tsam thiab tom qab ntawd kos ib yam li cov txheej txheem txheej txheem txheej txheem. C