Anti Shaking RS485 2.0MP CCTV IP Camera Robot Mounted FCC
본문
The RS485 system used for Modbus communication provides a main cable (Bus or backbone), to which all the devices have to be connected with branches (also known as stubs) that are as short as possible. In fact, the program works the same as it did before, but now it is using the secondary serial port instead of the primary port -- and you didn’t even have to recompile the code! RS485 is another protocol supported by the primary serial port on the QVGA Controller. A serial cable accomplishs this connection. The connection diagram for the above circuit is also given below. It is not a standard Communication protocol, but it is a physical circuit with which you can transmit and receive serial data with other peripherals. To enable the secondary serial port, turn dip switch 5 (labeled "2COM") on the QED Board ON. 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.
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). To reduce the effect of interference from external electrical signals the RS485 interface uses a differential signal over a "twisted pair" cable. An example of how a byte(0x3E) is transferred over the two lines of RS485 Communication. The twin consists of two conductors that are twisted together. 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. You can use them as a "response part" during communications with devices that you don't know the algorithm for working with, and automate these communications by processing events and responding to events in scripts. At 1200m of transmission speed, you can use only 100kbps of transmission speed.
With careful design, many peripherals can communicate via the SPI, and powerful multi-processor systems can be linked using this high speed bus. If the programmer has enabled the local interrupt mask for the SPI, an interrupt is recognized at this point. By polling the Port A pin or by setting up an interrupt service routine, you can configure the QScreen to ignore the SCK input when /SS is high and keep MISO in a high-impedance state so that it does not interfere with the SPI bus. 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. 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. Typical line voltage levels from the line drivers are a minimum of ±1.5 V to a maximum of about ±6 V. Receiver input sensitivity is ±200 mV.
Maximum length is 4000 ft. The maximum number of repeaters that should be serially connected is 3. A higher number introduces excessive delays in the communication system. On the other hand, DMX chose a nice round number at what was then the top of the range and added protections to avoid pick up of "ridiculous" frequencies, that we would now consider for actual data. Signal High and Lows are measured against the GND level so shifting the GND level will have a disastrous effect on the data transfer. In practice, Cat 5 cables have been used successfully in many installations, what is rs485 cable but there are some concerns. In most cases the times are less than 25 µs which does not pose a problem. Galvanic isolation will break a large problem into several small, but manageable ones. We will pull the enable pin high to put the MAX485 module in receiver mode. 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. Do note that both transmitter and receiver circuits look identical the only thing that differs is the code written into it.