title: Control lego NXT using Arduino [Bluetooth]
body: <p>I am trying to control NXT robot using Arduino UNO and <a href="http://www.seeedstudio.com/depot/Serial-port-bluetooth-module-MasterSlave-p-572.html" rel="nofollow">bluetooth</a>, I used this code</p>
  
  <pre><code> #include &lt;SoftwareSerial.h&gt;
  
  byte moveTelegram [] = {0x0C,0x00,0x80,0x04,0x01,0x32,0x05,0x01,0x00,0x20,0x00,0x00,0x00,0x00};
  
  SoftwareSerial blue(10, 11); 
  int BluetoothData; 
  
  void setup() 
  { 
      blue.begin(9600);
  } 
  
  void loop() 
  { 
       blue.write(moveTelegram,sizeof(moveTelegram));
       delay(100);
  
       BluetoothData=blue.read();
  
       delay(2000);
  }
  </code></pre>
  
  <p>My problem is , I have to send data from NXT to Arduino, and then the NXT start moving (if I add <strong>blue.read()</strong> to my code).</p>
  
  <p>How to make the NXT execute the commands directly?</p>
  
  <p>Thanks,</p>