Cov txheej txheem:
- Kauj ruam 1: Xav tau
- Kauj Ruam 2: Txhim Kho Qhov Xav Tau Software Rau Hauv Raspbian
- Kauj Ruam 3: Txuas Arduino
- Kauj Ruam 4: Coding Arduino
- Kauj Ruam 5: Programming RS485 ntawm Raspberry
- Kauj Ruam 6: Xeem Tsab Ntawv
- Kauj Ruam 7: Xaus
Video: RS485 Ntawm Arduino thiab Raspberry Pi: 7 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Rau tsev kawm ntawv kuv yuav tsum ua ib qhov project. Kuv xaiv los ua tus tswj tsev cog khoom ntse tswj tau los ntawm raspberry pi. Cov ntsuas yuav raug siv los ntawm arduino uno. Thaum lub hlis uas ua raws kuv yuav tshaj tawm qhov kev ua ntawm cov phiaj xwm no ib qib zuj zus ntawm cov lus qhia kom koj ib yam tuaj yeem ua tau. RS485 zoo meej rau qhov no. RS485 txhawb kev nrawm txog 10 Mbit/s thiab 1200 meter nrug. Nyob ntawm qhov ntev cable koj xav tau kom txo qhov nrawm koj tab tom xa. Saib ntawm lub rooj no kom paub qhov ceev tshaj plaws ntawm qhov nrug. Txhawm rau nyeem thiab teeb tsa tus nqi ntawm tus qhev RS485 Kuv yuav siv cov lus nab.
Kauj ruam 1: Xav tau
Qhov:
- Raspberry PI (Kuv siv 3B+)
- MAX485 module
- USB rau RS485 interface
- qee cov xov hlau jumper
- arduino ib
Kauj Ruam 2: Txhim Kho Qhov Xav Tau Software Rau Hauv Raspbian
Kuv yuav tsis tham txog yuav ua li cas teeb tsa raspbian rau koj li raspberry. Twb muaj qee cov lus qhia piav qhia qhov no. Kuv yuav piav qhia yuav ua li cas teeb tsa cov software xav tau.
Thawj zaug hloov kho koj cov raspberry:
apt hloov tshiab
Tom qab ntawd nruab pip:
apt-tau nruab python3-pip
Nyem sau rau Yog
Tom qab ntawd teeb tsa minimalmodbus:
pip3 nruab -U minimalmodbus
Kauj Ruam 3: Txuas Arduino
Hauv cov duab saum toj no koj tuaj yeem pom yuav ua li cas xaim lub arduino mus rau RS485 interface. Qhov thib ob RS485 sawv cev rau USB rau RS485 adapter.
Kauj Ruam 4: Coding Arduino
Ua ntej ntshuam lub tsev qiv ntawv no los ntawm kev kos duab, siv lub tsev qiv ntawv thiab ntxiv zip qiv ntawv. Qhov no yog txoj cai rau tus qhev ntawm arduino uas ua rau nws muaj peev xwm tswj tau onboard coj ntawm tus pin 13 ntawm arduino.
Kauj Ruam 5: Programming RS485 ntawm Raspberry
Tam sim no peb tab tom mus rau tus lej raspberry pi ua tus tswv.
- Qhib lub davhlau ya nyob twg ntawm koj tus raspberry pi.
- Tsim cov ntawv tshiab modbus.py
koj modbus.py
- ntaus kuv rau ntxig
- muab tshuaj txhuam rau hauv qhov chaws hauv daim ntawv
- nias tus yuam sij khiav tawm
- laj: wq
- nias tus yuam sij nkag
Kauj Ruam 6: Xeem Tsab Ntawv
Ntaus hauv qhov hais kom ua:
sej3 modbus.py
Tam sim no muab rau 1 lossis 0 thiab koj yuav pom cov coj ntawm arduino mus thiab tawm.
Kauj Ruam 7: Xaus
Nov yog thawj kauj ruam txhawm rau ua kom kuv tus tswj tsev cog khoom tiav. Ntawm RS485 Kuv tuaj yeem qhib kuv li qub thiab nyeem qhov ntsuas qhov ntsuas. Kuv vam tias koj txaus siab rau cov lus qhia no.
Rau cov neeg uas hais lus Dutch koj tuaj yeem ua raws kuv qhov haujlwm nyob qhov ntawd. Thaum qhov project tiav kuv yuav ua tus qhia ntxiv ntawm kuv qhov project tiav
Pom zoo:
Plotting Real-time Graph ntawm Android Los Ntawm Arduino Los Ntawm HC-05: 3 Cov Kauj Ruam
Plotting Real-time Graph ntawm Android Los ntawm Arduino Los ntawm HC-05: Hav nyob ntawm no, ntawm no yog kev qhia qhia yuav ua li cas npaj cov phiaj xwm ntawm lub sijhawm tiag tiag ntawm qhov tseem ceeb los ntawm tus tswj hwm micro xws li Arduino rau lub app. Nws siv Bluetooth qauv xws li HC-05 los ua lub cuab yeej xa xov mus rau kis thiab tau txais cov ntaub ntawv ntawm Ar
Peb Yog Pab Pawg ntawm Kev Qhia 6 UQD10801 (Robocon1) Cov Tub Ntxhais Kawm Los Ntawm Universiti Tun Hussein Onn Malaysia (UTHM): Keypad 4x4 thiab LCD Arduino: 3 Kauj Ruam
Peb Yog Pab Pawg ntawm Kev Qhia 6 UQD10801 (Robocon1) Cov Tub Ntxhais Kawm Los Ntawm Universiti Tun Hussein Onn Malaysia (UTHM): Keypad 4x4 thiab LCD Arduino: Keypads yog txoj hauv kev zoo rau cov neeg siv cuam tshuam nrog koj txoj haujlwm. Koj tuaj yeem siv lawv mus rau cov ntawv qhia zaub mov, nkag mus rau tus password, thiab tswj kev ua si thiab neeg hlau. Hauv qhov kev qhia no, Kuv yuav qhia koj yuav ua li cas teeb tsa lub keyboard ntawm Arduino. Ua ntej kuv yuav piav qhia li cas Ardu
Arduino thiab Apple HomeKit Kev Sib Koom - Tswj Koj Lub Tsev Los ntawm Siri! IoT Nyob Ntawm No: 6 Kauj Ruam
Arduino thiab Apple HomeKit Kev Sib Koom - Tswj Koj Lub Tsev Los ntawm Siri! IoT Nyob Ntawm No: Cov Lus Qhia no yuav muab txoj hauv kev sai thiab yooj yim rau koj ntxiv rau board arduino rau Apple HomeKit ntawm iOS ntaus ntawv. Nws qhib txhua hom kev muaj peev xwm suav nrog Cov Ntawv sau ntawm lub server, suav nrog Apples HomeKit "Scenes", nws ua rau
Tsim thiab Ua tiav ntawm Cov Txheej Txheem ntawm Kev Taw Qhia ntawm Photovoltaic Panels: 5 Cov Kauj Ruam
Tsim thiab Ua kom tiav ntawm Cov Txheej Txheem ntawm Kev Taw Qhia ntawm Photovoltaic Panels: Tsim thiab Ua tiav ntawm Cov Txheej Txheem ntawm Kev Taw Qhia ntawm Photovoltaic Panels
Arduino Nano thiab Visuino: Hloov Ua Ntej Los Ntawm Lub Cev Los Ntawm Accelerometer thiab Gyroscope MPU6050 I2C Sensor: 8 Kauj Ruam (nrog Duab)
Arduino Nano thiab Visuino: Hloov Ua Ntej Los Ntawm Lub Accelerometer thiab Gyroscope MPU6050 I2C Sensor: Ib pliag dhau los kuv tau tshaj tawm cov lus qhia yuav ua li cas koj tuaj yeem txuas MPU9250 Accelerometer, Gyroscope thiab Compass Sensor rau Arduino Nano thiab teeb tsa nws nrog Visuino kom xa cov ntaub ntawv pob thiab tso saib nws ntawm Scope thiab Visual Instruments.The Accelerometer xa X, Y