Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: Txhim Kho Lub Tsev Qiv Ntawv
- Kauj ruam 2: Txhim Kho Tus Tsav Tsheb
- Kauj Ruam 3: Ntxiv Pawg Thawj Coj rau Arduino IDE
- Kauj Ruam 4: Ua Haujlwm Digistump
- Kauj Ruam 5: Txuas lub Digistump
- Kauj Ruam 6: Hloov lossis Nyeem Cov Ntawv Sau Npe Siv Python
Video: Digistump thiab Modbus RTU: 6 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Cov uas tau pom kuv cov lus qhia ntawm kev sib txuas lus ntawm Modbus RTU thiab Raspberry Pi paub tias kuv tab tom npaj phiaj xwm rau kev siv lub tsev cog khoom kom zoo. Kuv tau ua 2 lub PCB me me uas tuaj yeem tso rau hauv lub thawv ntawv. Qhov txuas mus rau PCB's Kuv yuav suav nrog tom qab vim tias kuv tseem tsis tau txais lawv thiab kuv tseem yuav tsum sim lawv.
Raws li kev hloov pauv rau arduino uno Kuv yuav siv digistump. Qhov no yog ATTINY85 pawg thawj coj me me. Vim tias ATTINY85 tsis muaj cov khoom siv khoos phis tawj Kuv tau siv cov lej software los ua kev sib txuas lus ua haujlwm. Vim tias feem ntau ntawm kuv cov khoom siv sib txuas (twj, solenoid li qub, …) ua haujlwm ntawm 24V Kuv yuav suav nrog tus hloov pauv mus rau PCB. Koj kuj tseem tuaj yeem siv 12V uas yog qhov kev xaiv zoo dua.
Khoom siv
Kho vajtse:
- Digistump lossis digistump muab tau los ntawm pawg thawj coj saib
- Qee tus PCB lossis kuv tus PCB tshwj xeeb
- cov davhlau ya nyob twg
- RS485 kev tawm tsam
- LDR lossis lwm yam sensor (yeem)
- 10 kOhm resistor
- DC converter (rov)
- Tus pin headers
Tsev qiv ntawv:
- Softwareserial
- Modbus
Kauj Ruam 1: Txhim Kho Lub Tsev Qiv Ntawv
Thaum lub sijhawm ntsuas ntawm digistump kuv tau hla qee qhov teeb meem. Ua ntej kuv tsis paub tias pawg thawj coj tsis muaj cov khoom siv kho vajtse. Kuv twb tau teeb tsa cov software txuas ntxiv yog li kuv tau muab qhov no sim. Thaum xub thawj qhov no tsis ua haujlwm thiab tom qab tshawb hauv net kuv pom tias kuv cov software ntawm cov lej tsis txhawb nqa 16.5 mhz digistump. Hauv qhov no koj tuaj yeem sau dua cov tsev qiv ntawv hauv daim nplaub tshev C: / Users / youruser / Documents / Arduino / libraries / SoftwareSerial-master
- Rub tawm lub tsev qiv ntawv softwareserial ua zip
- Rub tawm lub tsev qiv ntawv modbus ua zip
- Ntxiv lub tsev qiv ntawv los ntawm kos duab, siv lub tsev qiv ntawv, ntxiv ZIP lub tsev qiv ntawv
Kauj ruam 2: Txhim Kho Tus Tsav Tsheb
Txhawm rau siv pawg digistump koj yuav tsum teeb tsa cov tsav tsheb ua ntej.
- Rub cov tsav tsheb
- Nruab qhov tsim nyog version ntawm tus tsav tsheb mus rau koj lub computer
- Qhib tus thawj tswj ntaus ntawv
- Saib
- Zaub zais khoom
- Yog tias koj txuas koj lub digistump koj yuav pom lub cuab yeej (duab)
Kauj Ruam 3: Ntxiv Pawg Thawj Coj rau Arduino IDE
Hauv theem kawg koj tau teeb tsa cov tsav tsheb los siv digistump. Tam sim no koj tseem xav tau ntxiv lub rooj tsavxwm rau arduino IDE.
- Mus rau cov ntawv, nyiam
- Muaj koj tuaj yeem ntxiv qhov txuas hauv lub thawv nkag ntawm ib sab ntxiv tus thawj tswj hwm URL's
- Ntxiv qhov txuas no
- Nyem ok
- Mus rau cov cuab yeej, pawg thawj coj saib xyuas, pawg thawj coj saib xyuas
- Xaiv hom uas tau pab
- Nrhiav digistump
- Nruab digistump avr boards
Tom qab kev teeb tsa koj yuav pom lub rooj tsav xwm hauv qab cov cuab yeej, board.
Kauj Ruam 4: Ua Haujlwm Digistump
Cov kab ntawv txuas ua rau siv qee cov npe uas tuaj yeem sau lossis nyeem tau. Hauv txoj cai no kuv siv arduino los nyeem qhov sib piv ntawm LDR thiab sau tus nqi rau ib qho ntawm cov ntawv sau npe. Yav tom ntej kuv npaj yuav ua tus lej thoob ntiaj teb rau kev siv ntau hom sib txawv thiab tej zaum txawm tias yuav hloov qhov chaw nyob Modbus.
- Download tau cov cai
- Tshem tawm pawg digistump los ntawm USB.
- Xaiv lub Digispark default 16.5 Mhz board hauv qab cov cuab yeej, pawg thawj coj
- Nias lub pob upload
- Tos kom txog thaum koj pom cov lus txuas hauv lub cuab yeej tam sim no
- Txuas rau hauv USB-cable
Kauj Ruam 5: Txuas lub Digistump
Hauv qhov txheej txheem koj tuaj yeem pom yuav ua li cas xaim digistump. Yav tom ntej koj tseem tuaj yeem siv kuv li PCB.
Kauj Ruam 6: Hloov lossis Nyeem Cov Ntawv Sau Npe Siv Python
Koj tuaj yeem siv cov lej Python txuas los nyeem thiab sau cov npe sau npe. Saib ntawm kuv lwm qhov kev qhia yog tias koj nyiam khiav nws ntawm Raspberry Pi
Pom zoo:
Muaj HMI thiab Arduinos hauv MODBUS RTU: 4 Cov Kauj Ruam
Muaj HMI thiab Arduinos hauv MODBUS RTU: Hauv qhov kev qhia no kuv yuav piav qhia piv txwv ntawm kev sib txuas lus ntawm kev lag luam HMI (COOLMAY MT6070H, 150EUROS), Arduino CLONE DIY (10EUROS) thiab Arduino UNO (10EUROS). Lub network yuav ua haujlwm nyob rau hauv qhov tshwj xeeb thiab muaj zog thiab muaj kev lag luam
Yuav Tsim Li Cas thiab Ntxig Ib Lub Rooj Thiab Ntxiv Kab Ntxiv Thiab/lossis Kab Rau Cov Lus Hauv Microsoft Office Word 2007: 11 Cov Kauj Ruam
Yuav Tsim Li Cas thiab Ntxig Cov Lus Thiab Ntxiv Kab Ntxiv Thiab/lossis Kab Rau Cov Lus Hauv Microsoft Office Word 2007: Koj puas tau muaj cov ntaub ntawv ntau uas koj ua haujlwm nrog thiab xav rau koj tus kheej … " Kuv yuav ua li cas ntawm cov ntaub ntawv no saib zoo dua thiab nkag siab yooj yim dua? " Yog tias yog, tom qab ntawd lub rooj hauv Microsoft Office Word 2007 yuav yog koj cov lus teb
Txuas Kev Ua Haujlwm thiab Arduino thiab Ua 7 Segment thiab Servo GUI Controller: 4 Cov Kauj Ruam
Kev Sib Txuas Ua Haujlwm thiab Arduino thiab Ua 7 Segment thiab Servo GUI Controller: Rau qee qhov haujlwm koj yuav tsum tau siv Arduino raws li nws muab lub platform yooj yim qauv ua qauv tab sis tso saib cov duab hauv kev saib xyuas ntawm Arduino tuaj yeem siv sijhawm ntev thiab tseem nyuaj ua. Koj tuaj yeem tso saib kab lus ntawm Arduino Serial Monitor bu
8 Relay Tswj Nrog NodeMCU thiab IR Txais Txais Siv WiFi thiab IR Chaw Taws Teeb thiab Android App: 5 Kauj Ruam (nrog Duab)
8 Relay Tswj Nrog NodeMCU thiab IR Txais Txais Siv WiFi thiab IR Chaw Taws Teeb thiab Android App: Tswj 8 qhov hloov pauv hloov siv nodemcu thiab ir tus txais tshaj wifi thiab ir chaw taws teeb thiab hauv app.the ir tej thaj chaw deb ua haujlwm ywj pheej ntawm wifi txuas. NTUJ
Kub thiab Vaum Zaub thiab Sau Cov Ntaub Ntawv Nrog Arduino thiab Ua: 13 Kauj Ruam (nrog Duab)
Kub thiab Vaum Zaub thiab Sau Cov Ntaub Ntawv Nrog Arduino thiab Ua: Intro: Qhov no yog Txoj Haujlwm uas siv Arduino board, Sensor (DHT11), lub khoos phis tawj Windows thiab Kev Ua Haujlwm (rub tawm dawb) program los tso saib Kub, Cov ntaub ntawv vaum hauv digital thiab bar kab ntawv, tso tawm lub sijhawm thiab hnub tim thiab suav lub sijhawm suav