Answers.Body: <p>I think you're overlooking a very simple yet elegant solution: connect a NXT motor to the motor port (no problem there, that's what it's for), connect a RCX rotation sensor to the RCX (again, the intended purpose), and by now you should pretty much know where I'm going with this: connect the rotation sensor mechanically to the NXT motor.</p>
  
  <p>Considering the NXT motor has a good precision, you can easily you this to send messages from the NXT to the RCX; but of course you'll need to invent the protocol yourself; that is, decide what these messages mean. And you won't have feedback from the RCX to the NXT (you didn't ask for it though)</p>
  
  <p><br/></p>
  
  <p>I know you don't want to purchase anything, but for reference, there is now the <a href="http://shop.lego.com/en-US/Infrared-Link-Sensor-2853216" rel="noreferrer">IR Link Sensor</a> made by HiTechnic and sold directly by LEGO, which is presumably easier to use (and you can get feedback through it, too).</p>
  
  <p>I don't think you'll be able to use a converter cable directly; you'll need to use some intermediary electronic, possibly using the I2C protocol. This <a href="http://www.hitechnic.com/cgi-bin/commerce.cgi?preadd=action&amp;key=SPR2010" rel="noreferrer">prototype board solution</a> (also from HiTechnic) should do the trick if you use one of the outputs to drive the RCX input (you can probably use an analogue one).</p>
  
  <p>And if it's more ports you're after, you'll want to consider their multiplexers too.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2012-06-04T21:37:20.027Z
Answers.Text: I had considered the option of using a motor output and purchasing a rotation sensor, but as I said, I was hoping to achieve the control of the RXC, (and possibly communicating back to the NXT) by connecting the sensor ports with a converter cable.
  I was hoping for tips on the programming of the NXT regarding _simulating_ a sensor. As I mention in a comment on the question, trying to achieve control ‘sensor input to sensor input’ is partly for the fun of the challenge, but it looks like that is probably just not possible.
Answers.UserDisplayName: mcqwerty
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2012-06-05T09:38:13.220Z
Answers.Text: I fear it's not possible with just the converter cable - since the output port of the NXT will output a voltage and the input port of the RCX will be looking for a resistance (and possibly outputting a voltage of its own which will probably be a problem). Or something. But then Joshua's right, this is more a question for electronics.se
Answers.UserDisplayName: Joubarc
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2012-09-07T06:49:19.153Z
Answers.Text: Yet another not-quite-what-you-asked-for solution: make a NXT robot that will push buttons on the RCX. Or, better, on the RCX remote if you have one. Bonus points if your NXT robot resembles a hand.
Answers.UserDisplayName: Joubarc
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2012-06-04T13:24:34.037Z
Answers.LastActivityDate: 2012-06-04T13:24:34.037Z
Answers.UserDisplayName: Joubarc
Answers.Body: <p>I know this is 3 and a half years late, but I figured I'd throw in my two cents.  </p>
  
  <p>Attach an NXT light sensor and an RCX light sensor facing into each other. You can communicate bi-directionally by flashing the built-in LEDs.  </p>
  
  <p>On the RCX side, this can be accomplished by switching the sensor mode between touch sensor and light sensor to passivate or activate the LED. From the NXT, things should be simpler, and even the NXT-G software has the ability to turn on and off the LED.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-15T03:11:36.400Z
Answers.Text: Interesting idea. I like the fact that this would only tie up one of the sensor ports on each controller and leave all of the motor ports free.
Answers.UserDisplayName: mcqwerty
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-16T22:51:30.953Z
Answers.Text: I've used the light sensor method successfully in several of my own projects, despite it not being a very fast form of communication (although it's much faster than the motor/rotation sensor combo). I thought about using one of the converter cables to make a direct connection, but I haven't been brave enough to try it, in fear of burning out some internal chip.
Answers.UserDisplayName: MindS1
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-15T02:49:49.367Z
Answers.LastActivityDate: 2016-01-15T02:49:49.367Z
Answers.UserDisplayName: MindS1
Body: <p>I have both an <a href="http://www.bricklink.com/catalogItem.asp?P=884b">RCX</a> and an <a href="http://www.bricklink.com/catalogItem.asp?S=9841-1">NXT</a>.
  I would like to control the RCX brick from the NXT (and possibly communicate back to to the NXT from the RCX). I would like to avoid purchasing the <a href="http://www.mindsensors.com/index.php?module=pagemaster&amp;PAGE_user_op=view_page&amp;PAGE_id=59">Mindsensors RCX to NXT Communication Adapter</a> which is no longer available in their store, and instead control the RCX via inputs to one of it's sensor ports via outputs from an NXT sensor port. </p>
  
  <p>The physical connection can be achieved with the <a href="http://www.bricklink.com/catalogItem.asp?S=8528-1">NTX to RCX converter cable</a> but I am unsure how to control the output from the NXT sensor port to emulate any of the sensors that the RCX can recognise. </p>
  
  <p>I found <a href="http://www.chiefdelphi.com/forums/showthread.php?t=89538">this post</a> on another forum asking a very similar question, but the people who responded don't seem to have understood OP's intent, it is however worth a look for the illustrations.</p>
  
  <p>This then is really a question about programming the NXT to gain fine control over the output from a sensor port to emulate a RCX sensor and if it is even possible.</p>
  
  <p>I am open to solutions in any programming language/environment.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2012-06-01T13:10:11.417Z
Comments.Text: Aside from the dynamic nature of NXT programming, is there anything in particular you were hoping to gain from this method of driving the RCX?
Comments.UserDisplayName: Joshua Drake
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2012-06-01T13:14:14.343Z
Comments.Text: Captain Obvious Says: "You would need to simulate input that the RCX understands. That would likely entail having knowledge of all RCX compatible sensors at the level documented for the rotation sensor as linked from the forum thread that you linked."
Comments.UserDisplayName: Joshua Drake
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2012-06-02T19:11:39.137Z
Comments.Text: @JoshuaDrake Aside from the fun of the challenge of getting it to work, I was hoping to gain the 3 extra motor outputs and 2 extra sensor inputs of the RCX for 'the price of' one NXT sensor input.
Comments.UserDisplayName: mcqwerty
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2012-06-02T19:13:24.423Z
Comments.Text: @JoshuaDrake Exactly, and that is what I was hoping to find help with by posting this question.
Comments.UserDisplayName: mcqwerty
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2012-06-04T12:59:28.750Z
Comments.Text: You may have better luck over on http://electronics.stackexchange.com
Comments.UserDisplayName: Joshua Drake
Tags: <nxt><mindstorms><software><programming><rcx>
Title: How to control a RCX from a Mindstorms NXT
UserDisplayName: mcqwerty
ThreadText: # How to control a RCX from a Mindstorms NXT
  
  (Asked by: username_0 on 2012-05-26)
  
  I have both an [RCX](http://www.bricklink.com/catalogItem.asp?P=884b) and an [NXT](http://www.bricklink.com/catalogItem.asp?S=9841-1).
  I would like to control the RCX brick from the NXT (and possibly communicate back to to the NXT from the RCX). I would like to avoid purchasing the [Mindsensors RCX to NXT Communication Adapter](http://www.mindsensors.com/index.php?module=pagemaster&PAGE_user_op=view_page&PAGE_id=59) which is no longer available in their store, and instead control the RCX via inputs to one of it's sensor ports via outputs from an NXT sensor port.
  
  The physical connection can be achieved with the [NTX to RCX converter cable](http://www.bricklink.com/catalogItem.asp?S=8528-1) but I am unsure how to control the output from the NXT sensor port to emulate any of the sensors that the RCX can recognise.
  
  I found [this post](http://www.chiefdelphi.com/forums/showthread.php?t=89538) on another forum asking a very similar question, but the people who responded don't seem to have understood OP's intent, it is however worth a look for the illustrations.
  
  This then is really a question about programming the NXT to gain fine control over the output from a sensor port to emulate a RCX sensor and if it is even possible.
  
  I am open to solutions in any programming language/environment.
  
  **Tags:** nxt, mindstorms, software, programming, rcx
  > **Comments:**
  > **username_1**: Aside from the dynamic nature of NXT programming, is there anything in particular you were hoping to gain from this method of driving the RCX?  
  > **username_1**: Captain Obvious Says: "You would need to simulate input that the RCX understands. That would likely entail having knowledge of all RCX compatible sensors at the level documented for the rotation sensor as linked from the forum thread that you linked."  
  > **username_0**: @JoshuaDrake Aside from the fun of the challenge of getting it to work, I was hoping to gain the 3 extra motor outputs and 2 extra sensor inputs of the RCX for 'the price of' one NXT sensor input.  
  > **username_0**: @JoshuaDrake Exactly, and that is what I was hoping to find help with by posting this question.  
  > **username_1**: You may have better luck over on http://electronics.stackexchange.com  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2012-06-04. Score: 5
  
  I think you're overlooking a very simple yet elegant solution: connect a NXT motor to the motor port (no problem there, that's what it's for), connect a RCX rotation sensor to the RCX (again, the intended purpose), and by now you should pretty much know where I'm going with this: connect the rotation sensor mechanically to the NXT motor.
  
  Considering the NXT motor has a good precision, you can easily you this to send messages from the NXT to the RCX; but of course you'll need to invent the protocol yourself; that is, decide what these messages mean. And you won't have feedback from the RCX to the NXT (you didn't ask for it though)
  
  I know you don't want to purchase anything, but for reference, there is now the [IR Link Sensor](http://shop.lego.com/en-US/Infrared-Link-Sensor-2853216) made by HiTechnic and sold directly by LEGO, which is presumably easier to use (and you can get feedback through it, too).
  
  I don't think you'll be able to use a converter cable directly; you'll need to use some intermediary electronic, possibly using the I2C protocol. This [prototype board solution](http://www.hitechnic.com/cgi-bin/commerce.cgi?preadd=action&key=SPR2010) (also from HiTechnic) should do the trick if you use one of the outputs to drive the RCX input (you can probably use an analogue one).
  
  And if it's more ports you're after, you'll want to consider their multiplexers too.
  
  > **Comments:**
  > **username_0**: I had considered the option of using a motor output and purchasing a rotation sensor, but as I said, I was hoping to achieve the control of the RXC, (and possibly communicating back to the NXT) by connecting the sensor ports with a converter cable. I was hoping for tips on the programming of the NXT regarding _simulating_ a sensor. As I mention in a comment on the question, trying to achieve control ‘sensor input to sensor input’ is partly for the fun of the challenge, but it looks like that is probably just not possible.  
  > **username_2**: I fear it's not possible with just the converter cable - since the output port of the NXT will output a voltage and the input port of the RCX will be looking for a resistance (and possibly outputting a voltage of its own which will probably be a problem). Or something. But then Joshua's right, this is more a question for electronics.se  
  > **username_2**: Yet another not-quite-what-you-asked-for solution: make a NXT robot that will push buttons on the RCX. Or, better, on the RCX remote if you have one. Bonus points if your NXT robot resembles a hand.  
  
  ---
  
  ### Answer by username_3 on 2016-01-15. Score: 3
  
  I know this is 3 and a half years late, but I figured I'd throw in my two cents.
  
  Attach an NXT light sensor and an RCX light sensor facing into each other. You can communicate bi-directionally by flashing the built-in LEDs.
  
  On the RCX side, this can be accomplished by switching the sensor mode between touch sensor and light sensor to passivate or activate the LED. From the NXT, things should be simpler, and even the NXT-G software has the ability to turn on and off the LED.
  
  > **Comments:**
  > **username_0**: Interesting idea. I like the fact that this would only tie up one of the sensor ports on each controller and leave all of the motor ports free.  
  > **username_3**: I've used the light sensor method successfully in several of my own projects, despite it not being a very fast form of communication (although it's much faster than the motor/rotation sensor combo). I thought about using one of the converter cables to make a direct connection, but I haven't been brave enough to try it, in fear of burning out some internal chip.  
  
  ---
  
  