http://arduino-info.wikispaces.com/RS485-Modules
RS485-Modules
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
VirtualWire library for Arduino and other boards
dnvodcwan
2020-07-08 06:57:59
Arduino RF decoder
基於Arduino 開源平臺下的射頻解碼,目前可以解PT2262等通用碼, 開關類使用最好的力沃,窗簾類最好的杜亞.奧新. QQ:27706646
dnvodcwan
2020-07-08 06:19:12
树莓派和Arduino使用USB进行通信基于Python——For初学者
a_52hz
2020-07-08 01:04:16
Arduino和ESP8266引脚图
Archger
2020-07-07 07:37:15
ARDUINO电路板及编程语言
lchu55
2020-07-06 20:43:48
【Arduino基础】arduino开发板初次使用-真小白
Yellow_pig#
2020-07-06 19:05:41
【Arduino基础】蜂鸣器发声实验
Yellow_pig#
2020-07-06 19:05:41
【Arduino基础】超声波测距实验
Yellow_pig#
2020-07-06 18:28:48
【Arduino基础】一位数码管实验
Yellow_pig#
2020-07-06 18:28:48
【Arduino基础】按键控制LED灯亮灭实验
Yellow_pig#
2020-07-06 18:28:48
【Arduino】基于4*4键盘制作计算器
Yellow_pig#
2020-07-06 18:28:48
【Arduino基础】DHT11温度传感器实验
Yellow_pig#
2020-07-06 18:28:48
【Arduino基础】LCD1602液晶驱动实验
Yellow_pig#
2020-07-06 18:28:38
【Arduino基础】LED灯闪烁实验
Yellow_pig#
2020-07-06 18:28:37
RS485 serial communications; RS485 module
See RS485 Example of hardware and software HERE:
There is also a USB-to-RS485 Module (right) for use on PC's. (See it Here):
See the example RS485 Network Diagram (scroll down).
For many details about RS485 See THIS Page:
RS485 Overview:
The RS485 serial bus interfacestandard transmits differential balanced signals. This has strong anti-interference ability in the common mode, allows a twisted pair transmitter driver on a number of connected devices. The communication distance is up to 1200 meters, the rate is up to 20Mbps, and it can be used in high noise environments, such as industrial automation.In an RS485 network at any time only one device is in the sending state, and all other equipmentshould be in the receiving state. Each Arduino controls its RE / DE pin control to specify the device which is sending data to the RS485 network, or receiving data from the RS485 network.
Example RS485 Network Diagram:
NOTE: (APOLOGIES! Again on the TODO List! These examples will be updated Real Soon Now!
Below are simple example Software Sketches that show the Master sending data to the two slaves, and controlling their LEDs. Each slave is in receive mode and receives the same data.
The modules shown above have RE and DE connected together and to Arduino pin2. This is the "Direction" control.
You can cut and paste these examples into a new page in the Arduino IDE. Then they need to be loaded into the 3 Arduinos. THEN you connect the COM port outputs to RS-485.
Here is the code for the host S:
Here is the code for the slave CA:
Here is the code for the slave CB:
This example only shows one-way data transmission, but in fact in the RS485 network supports two-way "half-duplex" communication. More code would need to be added to control the relationship between the nodes.
Other Links to Information:
https://sites.google.com/site/jpmzometa/arduino-mbrt (RS485 ModBus communications)
http://real2electronics.blogspot.com/2009/09/arduino-and-rs485-english-version.html
http://www.embeddedsys.com/subpages/resources/images/documents/microsys_art_RS485.pdf