Cov txheej txheem:

Timer Chav Ua Noj: 4 Kauj Ruam
Timer Chav Ua Noj: 4 Kauj Ruam

Video: Timer Chav Ua Noj: 4 Kauj Ruam

Video: Timer Chav Ua Noj: 4 Kauj Ruam
Video: Plab Plab Ntswg..(Pluav Pluav Ntswg) Maiv Twm New Song 2023-2024 2024, Hlis ntuj nqeg
Anonim
Image
Image

Cov yam ntxwv no gen4-uLCD-35DT uas yuav siv los ua qhov khoom thib ob rau Raspberry Pi qhov haujlwm, Chav Ua Noj Timer. Nws yog daim ntawv thov muaj txiaj ntsig zoo rau feem ntau ntawm cov niam thiab cov nyiam ua noj ua haus nyob rau ntawd.

Qhov no tuaj yeem siv los tshuaj xyuas lub sijhawm thaum ua zaub mov koj nyiam.

Hauv qhov kev ua yeeb yaj kiab no Raspberry Pi ua tus tswv tsev uas tswj hwm gen4-uLCD-35DT. Gen4 HMI module tau teeb tsa nrog cov ntawv sib txawv thiab cov khoom siv, uas tom qab ntawd tswj hwm nyob ntawm cov lus txib xa los ntawm Raspberry Pi tus tswv thiab rov ua dua.

Txoj haujlwm no raug sim ntawm Raspberry Pi 2 nrog Pixel duab. Nws kuj tseem tuaj yeem ua haujlwm ntawm lwm yam Raspberry Pi sib txawv. Tab sis, yog tias koj siv Raspberry Pi 3, nco ntsoov tias koj xub mus ntsib qhov txuas no:

www.raspberrypi.org/forums/viewtopic.php?… txhawm rau teeb tsa UART ntawm Raspberry Pi 3.

Qhov kev sim no tau sim ntawm Raspberry Pi 2 khiav Raspbian nrog PIXEL. Nws kuj tseem tuaj yeem ua haujlwm ntawm lwm yam Raspberry Pi sib txawv. Txawm li cas los xij, yog tias koj siv Raspberry Pi 3, nco ntsoov mus ntsib qhov txuas ua ntej txhawm rau teeb tsa UART chaw nres nkoj kom raug:

www.raspberrypi.org/forums/viewtopic.php?…

Kauj ruam 1: Tsim

Tsim
Tsim

Cheebtsam

  1. gen4-uLCD-35DT
  2. USD Card
  3. 30 txoj kev FFC Cable
  4. gen4-PA or gen4-IB
  5. Raspberry Pi 2 Qauv B.
  6. Raspberry Pi Adapter
  7. 5 Txoj kev poj niam rau poj niam txuas
  8. 5 volts fais fab mov

Kev piav qhia txog cov khoom

  • Siv lub rooj sib tham gen4-interface thiab uUSB PA-5 txhawm rau txuas cov zaub rau PC raws li pom hauv thawj daim duab saum toj no.
  • Lossis yog tias koj muaj pawg thawj coj gen4-PA, txuas cov zaub rau PC raws li pom hauv daim duab thib ob saum toj no. Koj kuj tseem tuaj yeem siv pawg tswj hwm gen4-PA yog tias koj xav siv nws GPIO koob.

Kauj Ruam 2: Txoj Haujlwm

Program
Program
Program
Program
Program
Program

Rub tawm qhov haujlwm ntawm no.

  1. Luam cov ntawv zip uas txuas rau hauv daim nplaub tshev ces qhib ViSi-Genie project "demo1"
  2. Koj tuaj yeem hloov kho cov widgets hauv txhua daim ntawv los ntawm kev siv Tus Kws Tshuaj Ntsuam Xyuas.
  3. Tom qab qhib cov phiaj xwm phiaj xwm, mus rau Project cov ntawv qhia zaub mov thiab nco ntsoov tias Comms Ceev thiab Zaub tsis raug raws li pom thawj ob daim duab saum toj no.
  4. Txuas gen4-uLCD-35DT rau lub PC
  5. Tam sim no mus rau Comms Menu thiab xaiv qhov chaw nres nkoj COM raug rau uUSB-PA5, tom qab ntawv nyem rau lub pob liab liab, raws li qhia hauv qab no.
  6. Yog tias uLCD-220RD tau txuas nrog lub khoos phis tawj kom raug, lub pob liab yuav tsum tam sim no tig xiav thiab lub npe ntawm cov khoom siv yuav tsum tshwm.
  7. Txog ntawm qhov no, teeb tsa daim npav uSD rau lub PC siv uSD daim npav nyeem ntawv lossis hloov pauv. Mus rau Tsev ntawv qhia zaub mov thiab nyem rau ntawm (Tsim) Luam/Thauj khawm.
  8. Tam sim no txoj haujlwm no yuav tsum pib tsim thiab sau cov txheej txheem.
  9. Worshop4 yuav qhia sai rau qhov tsav raug rau daim npav uSD. Xaiv qhov tsim nyog tsav los ntawm cov ntawv qhia zaub mov nco-down.
  10. Rhiav 4 yuav suav sau qhov chaws thiab rub tawm qhov program mus rau lub cim xeeb nyem ntawm cov khoom tso saib.

Tam sim no unmount daim npav uSD los ntawm lub PC thiab teeb nws rau hauv daim npav uSD ntawm gen4-uLCD-35DT. Winbutton widget yuav tsum tam sim no tshwm ntawm cov zaub. Tam sim no nws tau npaj kom tau txais cov lus txib los ntawm tus tswv tsev. Qhia hauv daim duab thib peb

Rub tawm ViSi-Genie-RaspPi Library

Raspberry Pi yuav tsum tam sim no khiav qhov haujlwm uas yuav sib tham nrog uLCD-220RD. Qhov chaws rau txoj haujlwm tau txuas nrog. Txhawm rau tuaj yeem suav sau qhov chaws ntawm Raspberry Pi, koj yuav tsum teeb tsa thawj ViSi-Genie-RaspPi-Library, uas tuaj yeem rub tawm los ntawm qhov txuas no: https://github.com/4dsystems/ViSi-Genie-RaspPi -Lib…

Ua raws cov lus qhia yuav ua li cas rau nruab lub tsev qiv ntawv ntawm qhov txuas ntawd.

Kauj Ruam 3: Txuas Raspberry Pi mus rau ULCD-220RD

Txuas Raspberry Pi mus rau ULCD-220RD
Txuas Raspberry Pi mus rau ULCD-220RD

Txuas 4D-Serial-Pi Adapter rau Raspberry Pi, tom qab ntawd txuas 5-txoj kab txuas mus rau 4D-Serial-Pi Adapter. Thaum kawg, txuas rau lwm qhov kawg ntawm 5-txoj kab txuas mus rau gen4-IB ntawm gen4 module.

Lossis koj tuaj yeem cuam tshuam cov qauv gen4 thiab Raspberry Pi nrog gen4-PA siv cov duab saum toj no.

Kauj Ruam 4: Teeb Raspberry Pi Host

Teeb lub Raspberry Pi Host
Teeb lub Raspberry Pi Host

Tom qab teeb tsa lub tsev qiv ntawv thiab txuas cov cuab yeej kho vajtse, tam sim no koj tuaj yeem suav sau qhov chaws thiab ua haujlwm rau ntawm Raspberry Pi. Ua raws cov txheej txheem hauv qab no.

  1. Tom qab rub tawm cov ntawv, qhib lub davhlau ya nyob twg thiab mus rau daim nplaub tshev uas muaj cov ntawv no: Chav Ua Noj-Timer-Code
  2. Unzip cov ntaub ntawv siv cov lus txib no: pi@raspberry: ~ $ sudo unzip Kitchen-Timer-Code.zip
  3. Nkag mus rau daim nplaub tshev uas cov ntsiab lus ntawm "Kitchen-Timer-Code.zip" tau muab rho tawm rau. pi@raspberry: ~ $ cd Kitchen-Timer-Codepi@raspberry: ~ $ cd kitchenPi
  4. Hauv LX Terminal ntaus cov lus txib kom suav sau: pi@raspberry: ~ $ sudo ua
  5. Khiav qhov haujlwm siv cov lus txib no: pi@raspberry: ~ $./kitchenPi

Gen4 zaub module yuav tsum tam sim no pib nthuav tawm cov widget sib txawv, raws li cov lus txib uas tau txais los ntawm Raspberry Pi tus tswv.

Yog xav paub ntxiv, saib daim ntawv thov: ViSi-Genie Txuas 4D Zaub rau Raspberry Pi

Pom zoo: