Cov txheej txheem:

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

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

Video: SCADA rau Arduino-based Control Systems: 5 Cov Kauj Ruam
Video: Telecom Base Station Materials: A 3D Walkthrough 2024, Hlis ntuj nqeg
Anonim
SCADA rau Arduino-based Control Systems
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 nqaj hlau, cov chaw tsim khoom, cov hlau hlau, dav hlau thiab ntau lwm yam kev siv tshuab ua haujlwm.

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 expander thiab DAC 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 Tsev qiv ntawv> Ntxiv. ZIP Library. thiab tom qab ntawv txheeb xyuas ZIP cov ntaub ntawv 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 Tshuab 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: