Cov txheej txheem:

Sensor Networking Ntaus: 4 Cov Kauj Ruam
Sensor Networking Ntaus: 4 Cov Kauj Ruam

Video: Sensor Networking Ntaus: 4 Cov Kauj Ruam

Video: Sensor Networking Ntaus: 4 Cov Kauj Ruam
Video: Netzwerk #1 - Patchpanel und Keystone Module | haus-automatisierung.com [4K] 2024, Kaum ib hlis
Anonim
Sensor Networking Ntaus Ntawv
Sensor Networking Ntaus Ntawv

Qhov Kev Sib Txuas Network Sensor no tuaj yeem nyeem thiab sau los ntawm ntau lub ntsuas hluav taws xob los ntawm lub vev xaib. Cov ntaub ntawv ntsuas tau hloov pauv ntawm RS485 kev sib txuas lus mus rau raspberry pi qhov twg cov ntaub ntawv raug xa mus rau lub vev xaib siv php.

Kauj ruam 1: Kho vajtse

Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse

Cov npe khoom kho vajtse xav tau:

1. Raspberry Pi

2. Sensor lossis sensors uas siv RS485 kev sib txuas lus

3. RS485 rau usb converter

4. Lub hwj chim rau lub sensor (s)

5. LCD Zaub uas siv RS485 kev sib txuas lus

6. Ethernet Cable lossis koj tuaj yeem tshaj tawm nws dhau wifi

7. Txuas rau txhua tus RS485 cov cuab yeej nrog rau 100 ohm resistor los txuas nruab nrab ntawm ob daim ntawv xov xwm (ntsuab thiab dawb xov hlau). Koj tuaj yeem siv lub rooj noj mov yog tias yooj yim dua.

Kauj Ruam 1: Txuas RS485 kev sib txuas xov hlau thiab GND xov hlau los ntawm cov ntsuas hluav taws xob thiab tso saib rau RS485 rau usb hloov pauv.

Kauj ruam 2: Txuas lub usb cable rau RS485 rau usb hloov pauv thiab raspberry pi.

Kauj Ruam 3: Txuas lub zog rau lub ntsuas cua thiab tso saib.

Kauj ruam 4: Txuas Ethernet cable rau koj lub computer.

Kauj Ruam 5: Txuas lub hwj chim cable rau raspberry pi.

Kauj ruam 2: Teeb Raspberry Pi

Teeb lub Raspberry Pi
Teeb lub Raspberry Pi

Txog kev teeb tsa yooj yim ntawm raspberry pi mus rau https://www.raspberrypi.org/help. Tom ntej no ua raws cov lus qhia teeb tsa ntawm raspberry pi lub vev xaib txhawm rau nruab php thiab apache los ntawm nyem rau ntawm lub vev xaib no:

Kauj ruam 3: Webpage

Lub Vev Xaib
Lub Vev Xaib

Nov yog lub vev xaib yooj yim uas siv php thiab html tab sis kuj tseem tuaj yeem siv modbus los nyeem/sau rau lub ntsuas thiab tso saib. Php serial modbus code hauv PhpSerialModbus.php tau txais ua tsaug rau Toggio thiab pom ntawm github los ntawm qhov txuas no https://github.com/toggio/PhpSerialModbus. Cov cai hauv cov ntawv index.php uas pom nyob hauv daim ntawv txuas ntxiv.pdf. Txuas rau koj tus raspberry pi los ntawm kev ntaus rau hauv koj lub vev xaib tus IP chaw nyob uas koj tau tshaj tawm ntawm raspberry pi.

Kauj Ruam 4: Yees Duab ntawm Kev Ua Haujlwm

Nov yog daim vis dis aus ntawm kev ua haujlwm

Pom zoo: