It may be used to control video surveillance systems or to interconnect security control panels and devices such as access control card readers. 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. 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). 24 AWG solid wires, which are typically used in Cat 5 cables, can break easily when connected to a screw terminal block, which does not provide any strain relief. Signal High and Lows are measured against the GND level so shifting the GND level will have a disastrous effect on the data transfer. 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.
Now coming to the setup part. The EIA has officially disbanded and the standard is now maintained by the TIA as TIA-485, but engineers and applications guides continue to use the RS-485 designation. Now in the loop, we write a continuously increasing integer value on the Serial lines which is then transmitted to the other nano. We will send some data from the transmitter side over the cable from the Nano which is converted to RS485 signals via MAX RS485 Module working in Master Mode. In this tutorial, what is rs485 cable 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. 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. They have Shielding Jacket over the insulation layer to protect against the Electromagnetic Interference and also each pair of wires is twisted together to prevent any current loop formation and thus much better protection against the noise. Twisted pair also allows the transmission speeds to be much higher than what is possible with straight cables.
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. There are surface mount resistor pads on the QScreen that will allow you to bring out the secondary serial port to the Field Header on pins 5-6 or 7-8 as shown with the parentheses in Table 11-3. Pads are also available to bring out the RS485 signals to the DB9 Serial 1 Connector. 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. 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.
The device that initiates a data transfer is the master, and all other devices on the network are slaves. If you are using the QScreen as a slave device and require the /SS signal for your external SPI hardware, configure one of the Port A pins on the Field Header as an input pin. RS232 could only handle one. For RS232 operation: Install the jumper shunt across the two pins closest to the crystal (the default configuration). Ideally, the two ends of the cable will have a termination resistor connected across the two wires. The cable which I have used in the tutorial is 25m in length. The standard does not discuss cable shielding but makes some recommendations on preferred methods of interconnecting the signal reference common and equipment case grounds. Pre-coded device drivers configure the SPI for a standard data format, and it is easy to customize a data format and baud rate for your application. UART is an Asynchronous transmission device hence there is no clock signal to sync the data between the two devices instead it uses start and stop bits at the start and end of each data packet respectively to mark the extremities of the data being transferred.
댓글 달기 WYSIWYG 사용