User Tools

Site Tools


lego_nxt_rs485

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
lego_nxt_rs485 [2018/11/02 14:43] – [Using Hercules] jkreitzlego_nxt_rs485 [2018/11/02 14:47] (current) – [Connecting NXT and Computer via Breadboard] jkreitz
Line 10: Line 10:
 ===== How Does RS-485 Work ? ===== ===== How Does RS-485 Work ? =====
  
-RS485 is a high speed data communication standard that provides the 10 mbps data rate upto 50 feets. It can also extended upto 4000 feets with the speed of 100 mbps. RS485 allows multiple communication device (up-to 32) at half duplex rate on single wire.+RS485 is a high speed data communication standard that provides the 10 mbps data rate up to 50 feets. It can also extended upto 4000 feets with the speed of 100 mbps. RS485 allows multiple communication device (up-to 32) at half duplex rate on single wire.
  
 In RS485, Data is transmitted differentially via twisted pair cable because this wire have specific properties such as high noise immunity as well as long distance capabilities. RS485 network is further categorized into parts:  In RS485, Data is transmitted differentially via twisted pair cable because this wire have specific properties such as high noise immunity as well as long distance capabilities. RS485 network is further categorized into parts: 
Line 27: Line 27:
   - Bricx Command Center(Download:https://sourceforge.net/projects/bricxcc/files/bricxcc/   - Bricx Command Center(Download:https://sourceforge.net/projects/bricxcc/files/bricxcc/
   - Windows terminal program, in this tutorial I used Hercules 3.2.8 program (Download: https://www.hw-group.com/software/hercules-setup-utility)   - Windows terminal program, in this tutorial I used Hercules 3.2.8 program (Download: https://www.hw-group.com/software/hercules-setup-utility)
 +
  
 ===== Hardware components ===== ===== Hardware components =====
Line 51: Line 52:
  
   * NXT Breadboard adapter:    {{:nxt_adapter.jpg?linkonly|}}   * NXT Breadboard adapter:    {{:nxt_adapter.jpg?linkonly|}}
 +
 +
  
 ===== Connection Block ===== ===== Connection Block =====
Line 92: Line 95:
  
 To use the wire, insert one side into port 4 on the NXT Brick. Insert the other side into your computer's USB port. To use the wire, insert one side into port 4 on the NXT Brick. Insert the other side into your computer's USB port.
 +
 +
 ===== Connecting NXT and Computer via Breadboard ===== ===== Connecting NXT and Computer via Breadboard =====
  
 {{:wiki:connection.jpg|}} {{:wiki:connection.jpg|}}
 +
 Connection Diagram between NXT adapter and RS-485. The end of the usb gets plugged into the computer.  Connection Diagram between NXT adapter and RS-485. The end of the usb gets plugged into the computer. 
 +
  
 ===== Using Hercules ===== ===== Using Hercules =====
Line 107: Line 114:
 Set the baud rate to 115200, then click open. Now you will be able to interface with your NXT Brick via RS485. Set the baud rate to 115200, then click open. Now you will be able to interface with your NXT Brick via RS485.
  
-{{:hercules_gui.png?nolink&300|}}+{{:hercules_gui.png?nolink&400|}}
  
  
Line 115: Line 122:
  
  
-===== Commands for RS485=====+===== Commands for Brick=====
  
   *  **void UseRS485 (void)**    *  **void UseRS485 (void)** 
lego_nxt_rs485.1541195026.txt.gz · Last modified: 2018/11/02 14:43 by jkreitz