Long Distance Wired Serial Communication with Arduino using RS485 and CAT Cables > 자유게시판

본문 바로가기
자유게시판

Long Distance Wired Serial Communication with Arduino using RS485 and …

페이지 정보

작성자 Ralf 작성일24-07-06 09:59 조회3회 댓글0건

본문

Signal High and Lows are measured against the GND level so shifting the GND level will have a disastrous effect on the data transfer. Sig- lines are twisted as twisting nullify the effect of electromagnetic noise induced in a cable and provide a much better immunity against the noise which allows the RS485 to transmit the data up to 1200m of range. Noise in the range of ±200 mV is essentially blocked due to common-mode noise cancellation. The most common cable type is Cat 5e-UTP (unshielded twisted pair) which may work over shorter distances in less demanding applications with low EMI noise levels. We recommend that you keep the faster Serial1 port as the default serial link as you work through the exercises in this book. The SPI can transfer data much more rapidly than an asynchronous serial link - its maximum rate is 2 Megabits/second. On the other hand, RS485 is more industry-based communication which is developed for a network of multiple devices that can be used over long distances and at greater speeds too. We have been using Microcontroller Development Boards like Arduino, Raspberry Pi, NodeMCU, ESP8266, MSP430, etc. for a long time now in our small projects where most of the times distance between the sensors and board is not more than few centimeters at max and at these distances, the communication between the different sensor modules, relays, actuators, and controllers can be easily done over simple jumper wires without us being worried about the signal distortion in the medium and the Electrical noises creeping into it.



The circuit diagram given above explains how the onboard MAX485 IC is connected to various components and provide 0.1-inch standard spacing headers to be used with breadboard if you like. The connection diagram for the above circuit is also given below. Be sure to use a wire pair such as the blue and blue/white pair for the data lines and a third wire or pair twisted together for the common connection. There are many categories of Ethernet cables we can use like CAT-4, CAT-5, CAT-5E, CAT-6, CAT-6A, etc. In our tutorial, we are going to use CAT-6E cable which has 4 twisted pairs of 24AWG wires and can support up to 600MHz. It is terminated at both ends by an RJ45 connector. Most of the low-cost sensors and other modules like GPS, Bluetooth, RFID, ESP8266, etc. which are commonly used with Arduino, Raspberry Pi in the market uses UART TTL based communication because it only requires 2 wires TX(Transmitter) and RX (Receiver). There are many different types of serial communication protocols like I2C and SPI which can be easily implemented with Arduino and today we are going to look at another most commonly used protocol called RS485 which is very commonly used in high noise industrial environments to transfer the data over a long distance.

hand-full-of-wires.jpg?width=746&format=pjpg&exif=0&iptc=0

Category 5 (Cat 5, Cat 5e, and Cat 6) cables are the most common Ethernet cables in use today. But there are some limitations to it as it cannot support multiple slaves and multiple masters and the maximum data frame is limited to 9 bits. The capacitance is close to 12.5 pF/foot but there is a small impedance mismatch (100 ohms for Cat 5, 120 ohms for RS-485). This UART-RS485 Converter module has an on-board MAX485 chip which is a low-power and slew-rate-limited transceiver used for RS-485 communication. Previously we have also performed MAX485 communication with Arduino and also MAX485 Communication with Raspberry pi, rs485 cable you can also check them out if interested. In this tutorial, we are going to learn about the RS485 communication protocol and how to implement it with the two Arduino Nano we have with us and how to use the MAX485 RS485 to UART conversion Module. Because they are produced in such large quantities, Cat 5 cables are relatively inexpensive, often less than half the price of specialty RS-485 cabling. 100 ohms, Cat 5 cables almost meets the electrical requirements for RS-485 cables. Twisted pair also allows the transmission speeds to be much higher than what is possible with straight cables.



While these signals provide a data path, they do not provide hardware handshaking that allows the two communicating parties to let each other know when they are ready to send or receive data. But if you are building a control system with these development boards over a distance greater than 10 to 15 meters, then you should take the noise and signal power into consideration because if you want your system to work reliably, then you cannot afford to lose the data while transferring. There are several protocols that govern the format of exchanged data, with the RS232 protocol used primarily by personal computers, and the RS485 protocol used in industrial control systems. If you are running Serial2 at 4800 baud, the rest of your application must be able to function properly using the remaining portion of the CPU time. 5 should work in your situation because of the voltage you will be running (5-10V) and your signal is not high frequency (above 500Mhz) in the first place. The above parity settings will also determine how incoming data is interpreted (whether the most significant bit is considered a parity bit or part of the data being transmitted, and how many bits total to expect in each byte).

댓글목록

등록된 댓글이 없습니다.

회사명 방산포장 주소 서울특별시 중구 을지로 27길 6, 1층
사업자 등록번호 204-26-86274 대표 고광현 전화 02-2264-1339 팩스 02-6442-1337
통신판매업신고번호 제 2014-서울중구-0548호 개인정보 보호책임자 고광현 E-mail bspojang@naver.com 호스팅 사업자카페24(주)
Copyright © 2001-2013 방산포장. All Rights Reserved.

상단으로