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