Cov txheej txheem:

Ruaj Ntseg SCADA rau Arduino-based Control Systems: 5 Cov Kauj Ruam
Ruaj Ntseg SCADA rau Arduino-based Control Systems: 5 Cov Kauj Ruam

Video: Ruaj Ntseg SCADA rau Arduino-based Control Systems: 5 Cov Kauj Ruam

Video: Ruaj Ntseg SCADA rau Arduino-based Control Systems: 5 Cov Kauj Ruam
Video: Варианты опциона IQ Опции Forex объяснены-Какие варианты ... 2024, Hlis ntuj nqeg
Anonim
Ruaj Ntseg SCADA rau Arduino-based Control Systems
Ruaj Ntseg SCADA rau Arduino-based Control Systems

Kev Tswj Xyuas thiab Kev Tshawb Fawb Cov Ntaub Ntawv (SCADA) yog lub hauv paus rau kev saib xyuas thiab nkag mus tau yooj yim tswj cov txheej txheem feem ntau siv hauv ntau qhov kev lag luam xws li cov chaw tsim hluav taws xob, kev tsheb ciav hlau, cov chaw tsim khoom, cov hlau hlau, dav hlau, tsev ntse thiab ntau lwm yam kev siv tshuab tswj cov tshuab.

Kauj Ruam 1: Khw rau Daim Ntawv Teev Npe

Khw rau Daim Ntawv Teev Npe
Khw rau Daim Ntawv Teev Npe

Txoj haujlwm no yuav tsum muaj cov hauv qab no:

1. Arduino UNO (Amazon)

2. LEDs (Amazon)

3. Ultrasonic Sensor (Amazon)

4. Resistors, Capacitors, Hloov, Jumper Wires (Amazon)

5. MCP4921: Digital-to-Analog Converter 12-ntsis IC (Amazon)

6. MCP23S17: I/O Expander 16-ntsis IC (Amazon)

Kauj Ruam 2: Teeb Arduino IDE

Teeb tsa Arduino IDE
Teeb tsa Arduino IDE

Txoj haujlwm no xav kom siv qee lub tsev qiv ntawv rau cuam tshuam nrog ICs sib txawv xws li I/O nthuav dav thiab Digital-to-Analog IC chips. Cov tsev qiv ntawv hauv qab no xav tau thiab tau muab los ntawm Github chaw cia khoom.

0. Mus los ntawm cov tsev qiv ntawv hauv qab no thiab teeb tsa lawv mus rau Arduino IDE siv Sketch> suav nrog Lub Tsev Qiv Ntawv> Ntxiv. ZIP Cov Tsev Qiv Ntawv thiab tom qab ntawd xaub cov ntawv ZIP uas suav nrog hauv Github chaw cia hauv qab no:

1. Lub Xeev Lub Tsev Qiv Ntawv (SM)

2. MCP492X Lub Tsev Qiv Ntawv

3. MCP23S17 Lub Tsev Qiv Ntawv

Github Repository: SCADA rau Arduino-based Control Systems

Kauj Ruam 3: Nkag Siab Cov Txheej Txheem Tswj

Nkag Siab Txog Kev Tswj
Nkag Siab Txog Kev Tswj

Txoj haujlwm tseem ceeb siv 4-lub xeev Finite State Machine (FSM) siv Lub Xeev Machine lub tsev qiv ntawv. Plaub lub xeev tuaj yeem piav qhia raws li hauv qab no.

1. NO_LED: Txhua lub LEDs nyob hauv lub xeev OFF

2. ALL_LED: Txhua lub LEDs nyob hauv lub xeev ON

3. BIN_CNT: Teeb ntawm 8 LEDs ua haujlwm raws li cov lus ntawm 8-ntsis binary suav ua ntu zus.

4. SENSE: Lub xeev hloov mus rau ALL_LED yog lub Ultrasonic sensor pom cov khoom nyob ze. Txwv tsis pub, txuas ntxiv suav hauv binary ib yam li BIN_CNT xeev.

Kauj Ruam 4: Tsim Circuit Court

Tsim lub Circuit
Tsim lub Circuit
Tsim lub Circuit
Tsim lub Circuit
Tsim lub Circuit
Tsim lub Circuit
Tsim lub Circuit
Tsim lub Circuit

Ntau cov duab tau muab coj los ntawm cov ces kaum sib txawv ntawm Arduino Control System. Siv cov duab ua piv txwv los tsim cov kab ke.

Kauj Ruam 5: Tshaj Tawm Txoj Cai Code rau Arduino

Thaum tsim lub Circuit Court, Arduino kos duab muab hauv SCADA.ino cov ntaub ntawv hauv Github chaw cia khoom tuaj yeem xa mus rau Arduino. Lub Xeev Lub Tshuab tuaj yeem raug sim siv qhov sib txawv khawm hauv Circuit Court raws li qhia hauv video.

Pom zoo: