Cov txheej txheem:

Tsiv Lub Cev Nrog Kev Pom Qhov Muag: 8 Kauj Ruam
Tsiv Lub Cev Nrog Kev Pom Qhov Muag: 8 Kauj Ruam

Video: Tsiv Lub Cev Nrog Kev Pom Qhov Muag: 8 Kauj Ruam

Video: Tsiv Lub Cev Nrog Kev Pom Qhov Muag: 8 Kauj Ruam
Video: QHIA QHOV TSEEB - KUB VAJ LOOG TSUA NEW MUSIC VIDEO 2022 2024, Hlis ntuj nqeg
Anonim
Tsiv Lub Cev Nrog Kev Pom Qhov Muag
Tsiv Lub Cev Nrog Kev Pom Qhov Muag

Tam sim no, qhov muag ntsuas qhov muag pom muaj ntau nyob hauv ntau thaj chaw tab sis kev lag luam lawv paub ntau dua rau kev sib tham ua si. Cov ntawv qhia no tsis ua piv txwv txhawm rau piav qhia cov cuab yeej txij li nws yog qhov nyuaj heev thiab vim nws siv ntau dua thiab siv ntau tus nqi tau poob qis, qhov no qhov txaus siab tshaj plaws yuav yog siv cov software los cuam tshuam nrog kev xa tawm uas muaj peev xwm qhib lossis tua ib yam khoom siv hluav taws xob. Hauv qhov no nws tau siv los tsav lub cav ntawm lub rooj zaum muaj log.

Khoom siv

1 -Computer nrog qhov muag qhov system

1 -USB Relay Module

2 -40 amp tsheb thauj mus los

2 -Lub cev muaj zog 200 w (lub rooj zaum muaj log)

2 -10 amp ceev tswj

2 -pc 12-40 VDC 10 AMP Pulse dav hloov kho lub cev muaj zog tswj

Roj teeb 1-12v

Kauj ruam 1: Project Logic

Project Logic
Project Logic

Cov peev txheej muaj peev xwm siab dua tau suav nrog thiab cov ntawv tsuas yog 10 amps thiab txawm hais tias kev siv lub tshuab hluav taws xob yog 10 amp nrog tam sim no ntawm 12 volts, qhov amperage no tuaj yeem nce nyob ntawm qhov hnyav ntawm lub cav. Yog tias koj xav siv lwm lub cuab yeej uas tsis yog lub cav thiab uas siv tsawg dua 10 amps, koj tuaj yeem tshem tawm lub voos xwmfab txuas.

Kauj Ruam 2: Txheeb Xyuas Daim Npav Relay

Txheeb Xyuas Daim Npav Relay
Txheeb Xyuas Daim Npav Relay

Cov npav no muaj USB cov tswv yim, cov tswv yim hluav taws xob, kev xa tawm thiab lawv cov lus sib xws

Nws kuj tseem muaj cov phiaj xwm ua ntej lossis microcontroller. Txhawm rau qhib kev xa xov, koj yuav tsum muab cov ntaub ntawv uas yog tus tsav tsheb, cov ntaub ntawv txuas nrog. Dll uas muaj lub luag haujlwm uas tus tswj hwm lub microcontroller ua, piv txwv li tso saib tus lej ntawm daim npav, qhib kev txuas 1, qhib kev txuas 2 thiab ntxiv rau. Cov no yog cov haujlwm tab sis leej twg ua haujlwm rau lawv rau qhov no tseem yuav tsum muaj cov ntaub ntawv nrog txuas ntxiv.exe uas yog cov uas ua haujlwm, muaj cov haujlwm rau lub qhov rais thiab cov haujlwm rau DOS qhov rai.

Txhua lub cuab yeej muaj tsuas yog ib tus lej hauv qhov no peb Siv daim ntawv thov GuiApp_English.exe kom tau tus lej lej.

Kauj Ruam 3: Txuas thiab Txheeb Xyuas Daim Npav

Txuas thiab Txheeb Xyuas Daim Npav
Txuas thiab Txheeb Xyuas Daim Npav

Daim npav txuas nrog lub khoos phis tawj ntawm USB cable.

Xaiv nrhiav lub cuab yeej, ntu no nrhiav peb tau txais lub cuab yeej txuas nrog hauv qhov no tus lej xov tooj yog HW341 yog tias koj xaiv qhib lub cuab yeej nws yuav npaj qhib qhib ib qho txuas

Lub sijhawm no peb yuav tsum xav tias qhov kev sib txuas twg yuav pib rau txhua lub cav, rau qhov kis relay 1 yog rau txoj cai lub cev, relay 2 yog rau sab laug lub cev muaj zog

Kauj Ruam 4: Khoos phis tawj thiab khoos phis tawj

Khoos phis tawj thiab Sensors
Khoos phis tawj thiab Sensors

Lub khoos phis tawj siv hauv txoj haujlwm yog TOBII C series, cov cuab yeej no tau npaj nrog software thiab qhov muag ntsuas qhov muag, lub khoos phis tawj no muaj ntau dua 10 xyoo ntawm kev pabcuam, tam sim no lub ntsuas me tshaj nyob rau hauv daim ntawv ntawm lub bar thiab tuaj yeem tso rau hauv txhua lub khoos phis tawj., hauv qhov xwm txheej ntawm kev ua haujlwm yeej 10 tseem tau npaj nrog cov tsav tsheb los tswj cov ntsuas no.

Cov ntsuas tau ntsuas los ntawm software rau txhua tus neeg siv thiab tshawb xyuas qhov kev coj ua kom lawv tuaj yeem ua haujlwm kom txav tus pointer ntawm lub khoos phis tawj zoo li nws tau txav tus nas thiab thaum ntsais muag nws zoo li yog peb nyem rau ntawm nas.

Tam sim no yog tias koj qhib qhov kev pab cuam relays koj tuaj yeem qhib txhua qhov kev xa tawm, txav tus pointer nrog koj saib, txawm li cas los xij qhov program program tsis loj heev yog li txawm tias ntsuas lub ntsuas ntsuas yuav nyuaj me ntsis los ua haujlwm cov nyees khawm, Muaj ob txoj hauv kev rau daws qhov no: 1.- Ua kom lub zog txav ntawm tus pointer nrog lub qhov muag kom tau txais qhov xav tau 2.- Ua qhov program nrog lub qhov rai loj dua uas qhib lub luag haujlwm tshwj xeeb rau kev xa tawm, nws yuav zoo li nyuaj tab sis hauv kev pom yooj yim nws tsis yog

Kauj ruam 5: Kev sib txuas

Image
Image
Kev sib txuas
Kev sib txuas

Daim duab no tsis suav nrog tus tswj qhov nrawm uas yuav tsum tau muab tso nruab nrab ntawm lub cav thiab qhov kawg xa tawm 30 amp dub

Kauj Ruam 6: Kev Pabcuam Tshwj Xeeb los qhib Kev Ua Haujlwm

Kev Pabcuam Tshwj Xeeb los qhib Kev Ua Haujlwm
Kev Pabcuam Tshwj Xeeb los qhib Kev Ua Haujlwm

Lub vijtsam no tau tsim los hauv kev pom yooj yim, nws yooj yim heev vim tias koj tsuas yog muab cov duab kos thiab tom qab ntawd koj ntxiv cov txheej txheem uas koj tau ua thaum koj nias lub pob, Kuv yeej tsis tau ua haujlwm hauv qhov pom yooj yim thiab nws coj kuv ob peb teev ua nws yog qhov nkag siab heev, dab tsi raug nqi me ntsis ntawm kev ua haujlwm yog txhawm rau tuav lub luag haujlwm ncaj qha, kuv ua dab tsi yog kom thov qhov kev zov me nyuam los ntawm DOS qhov rai, uas yog, lub pob qhib qhov program hauv DOS thiab khiav cov lus qhia.

Hauv qab cov cai rau cov nyees khawm, Public Class Form 1

Private Sub Form1_Load (sender As Object, e As EventArgs) Handles MyBase. Load

Xaus Sub

NIAJ HNUB NOV

Private Sub Button1_Click (sender As Object, e As EventArgs) Handles Button1. Click Dim close As String close = "HW341 kaw 255"

System. Diagnostics. Process. Start ("c: / carpeta de prueba / CommandApp_USBRelay", kaw) End Sub

HAUV TUS NEEG

Private Sub PictureBox1_Click (sender As Object, e As EventArgs) Kov

PictureBox1. Click

Dim adelante Raws li Txoj hlua rau tom ntej = "HW341 qhib 255" /// tus lej 255 qhib txhua qhov kev xa xov tib lub sijhawm

System. Diagnostics. Process. Start ("c: / carpeta de prueba / CommandApp_USBRelay", rau pem hauv ntej) End Sub

Txoj cai khawm

Private Sub PictureBox2_Click (sender As Object, e As EventArgs) Kov

PictureBox2. Click

Dim izquierda Raws li Txoj hlua sab laug = "HW341 qhib 01"

System. Diagnostics. Process. Start ("c: / carpeta de prueba / CommandApp_USBRelay", sab laug) End Sub

/// yog tias koj xav tig nrawm koj yuav tsum nyob ntawm lub tshuab laug

LUS QHUAB QHIA

Private Sub PictureBox3_Click (sender As Object, e As EventArgs) Kov

PictureBox3. Nyem rau

Dim sab Raws li txoj hlua txoj cai = "HW341 qhib 02"

System. Diagnostics. Process. Start ("c: / carpeta de prueba / CommandApp_USBRelay", rigth) Xaus Sub

Hoob Kawm Kawg

Cov ntaub ntawv DLL yuav tsum yog nyob hauv tib lub nplaub tshev

Kauj Ruam 7: Pib Ua Haujlwm

Image
Image

Cov ntsiab lus nws zoo li yooj yim tab sis ntawm no tsuas yog cov khoom tau piav qhia thiab lawv tau txuas nrog li cas, tsim los thov yog lwm zaj dab neeg, hauv daim vis dis aus no nws tau qhia hauv lub rooj zaum muaj log nrog lub rooj zaum hauv tsev kawm ntawv, nws raug nqi peb qee yam haujlwm vim peb ua lub hauv paus nrog tubular thiab ntoo thiab peb tau hloov kho lub log tsheb dolly, thaum peb ua nws thawj zaug thiab sib dhos nws txhua lub log tsheb tsis mus txog hauv av, peb yuav tsum tsim lub hauv paus tshiab thiab thaum kawg nws ua haujlwm.

Tom qab ntawd peb tau ua lwm yam cuab yeej tab sis hloov kho kom haum rau lub rooj zaum muaj log tab sis qee qhov kev hloov kho xav tau vim tias nyob ze ua ke lub cav nws tsis tuaj yeem tig kom raug.

Kauj Ruam 8: Lwm Cov Duab Duab

Pom zoo: