Answers.Body: <p>Yes, it is possible. Have a look at the "Comm module functions" section of the NXT help file. For example, since the touch sensor status is a boolean value, you could use the SendRemoteBool and ReceiveRemoteBool functions. You can communicate wirelessly using the Bluetooth functions (BT*) or you can have a wired connection using RS485 by connecting input port 4 on each brick to each other.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-02-14T17:30:36.910Z
Answers.LastActivityDate: 2015-02-14T17:30:36.910Z
Answers.UserDisplayName: David Lechner
Body: <p>Is it possible send information from BrickNXT_A to BrickNXTB_B?</p>
  
  <p>For example I have a touch sensor connected to IN_1 of Brick_A and I want send the result of the sensor status (1 or 0) to Brick_B. If the touch sensor status on IN_1 of brick_A is 1, then the motor connected with OUT_A in brick_B, turn for 1 rotation.</p>
  
  <p>How to do this with NXC? My difficult is the connection and sending information between the Bricks.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-02-18T10:15:20.340Z
Comments.Text: A long time ago in an university club we once managed to hack an RCX cable into an RCX compatible LED, built a frame to mount it into a LEGO structure, wrapped a clear flexible plastic "wire" in tinfoil and duct tape (to minimise light loss) and built another LEGO structure for the other end that held an NXT light sensor. After a bit of programming we could send information from the RCX to the NXT via the optical cable. the only downside was the speed: we could only manage about 1 bit per second. Maybe someone could improve on this concept?
Comments.UserDisplayName: zovits
Tags: <nxt><nxc>
Title: Connection between two NXT bricks
UserDisplayName: FDuarte
ThreadText: # Connection between two NXT bricks
  
  (Asked by: username_0 on 2015-02-14)
  
  Is it possible send information from BrickNXT\_A to BrickNXTB\_B?
  
  For example I have a touch sensor connected to IN\_1 of Brick\_A and I want send the result of the sensor status (1 or 0) to Brick\_B. If the touch sensor status on IN\_1 of brick\_A is 1, then the motor connected with OUT\_A in brick\_B, turn for 1 rotation.
  
  How to do this with NXC? My difficult is the connection and sending information between the Bricks.
  
  **Tags:** nxt, nxc
  > **Comments:**
  > **username_1**: A long time ago in an university club we once managed to hack an RCX cable into an RCX compatible LED, built a frame to mount it into a LEGO structure, wrapped a clear flexible plastic "wire" in tinfoil and duct tape (to minimise light loss) and built another LEGO structure for the other end that held an NXT light sensor. After a bit of programming we could send information from the RCX to the NXT via the optical cable. the only downside was the speed: we could only manage about 1 bit per second. Maybe someone could improve on this concept?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2015-02-14. Score: 3
  
  Yes, it is possible. Have a look at the "Comm module functions" section of the NXT help file. For example, since the touch sensor status is a boolean value, you could use the SendRemoteBool and ReceiveRemoteBool functions. You can communicate wirelessly using the Bluetooth functions (BT\*) or you can have a wired connection using RS485 by connecting input port 4 on each brick to each other.
  
  
  ---
  
  