Control Mindstorms NXT with Bluefruit EZ-Link

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
zethra
 
Posts: 9
Joined: Fri Jun 20, 2014 7:02 pm

Control Mindstorms NXT with Bluefruit EZ-Link

Post by zethra »

I'm attempting to remote control A Mindstorms NXT 2.0 with a Bluefruit EZ-Link. Useing a program called Realterm, found here http://realterm.sourceforge.net/, and useing send number to send this :"0x0C, 0x00, 0x80, 0x04, 0x01, 0x79, 0x07, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00" I was able to make the nxt motor B move. Now I am trying to do the same with the EZ-Link and Ardunio uno with no luck.

Any suggestions?

User avatar
Franklin97355
 
Posts: 23939
Joined: Mon Apr 21, 2008 2:33 pm

Re: Control Mindstorms NXT with Bluefruit EZ-Link

Post by Franklin97355 »

Could you post clear pictures of your board and the connections to it?
Could you post your code and a description or drawing of your connections between it all?
Please use the code button "</>" as shown below.
Attachments
Code Button.jpg
Code Button.jpg (4.49 KiB) Viewed 474 times

User avatar
zethra
 
Posts: 9
Joined: Fri Jun 20, 2014 7:02 pm

Re: Control Mindstorms NXT with Bluefruit EZ-Link

Post by zethra »

Here are two pictures of my set
IMG_20140728_164143_555.jpg
IMG_20140728_164143_555.jpg (647.26 KiB) Viewed 471 times
IMG_20140728_164150_809.jpg
IMG_20140728_164150_809.jpg (893.53 KiB) Viewed 471 times
there is the bluefruit EZ-Link which i believe is setup in the same way as the one in the third picture for the Adafruit page on the EZ-Link
adafruit_products_1588arduino_LRG.jpg
adafruit_products_1588arduino_LRG.jpg (128.15 KiB) Viewed 471 times
and a button. I have successfuly paired it with my laptop and it can send and receive serial communiniactions.

User avatar
zethra
 
Posts: 9
Joined: Fri Jun 20, 2014 7:02 pm

Re: Control Mindstorms NXT with Bluefruit EZ-Link

Post by zethra »


User avatar
Franklin97355
 
Posts: 23939
Joined: Mon Apr 21, 2008 2:33 pm

Re: Control Mindstorms NXT with Bluefruit EZ-Link

Post by Franklin97355 »

I have successfuly paired it with my laptop and it can send and receive serial communiniactions.
Can you communicate with the NXT from your laptop or was that how you were sending the codes in your first post? If you program the Arduino to send the same codes as before what happens and do you get sharing with the NXT before sending the codes?

User avatar
zethra
 
Posts: 9
Joined: Fri Jun 20, 2014 7:02 pm

Re: Control Mindstorms NXT with Bluefruit EZ-Link

Post by zethra »

The computer can communicate / send codes to the NXT and the NXT does what it is ment to. When I program the Ardunio to send they same codes after it has been paired with nxt via bluetooth they do not work. I believe the problem is that either the codes are not the right data type or I'm using the wrong commands to send them in the Ardunio code

User avatar
Franklin97355
 
Posts: 23939
Joined: Mon Apr 21, 2008 2:33 pm

Re: Control Mindstorms NXT with Bluefruit EZ-Link

Post by Franklin97355 »

Could you post your code and a description or drawing of your connections between it all?
Please use the code button "</>"

User avatar
zethra
 
Posts: 9
Joined: Fri Jun 20, 2014 7:02 pm

Re: Control Mindstorms NXT with Bluefruit EZ-Link

Post by zethra »

Here is my Ardunio code:
The bluefruit EZ-Link is attched to the RX and TX pins as well and 5v and GND. The in a button attached to pin 4 and GND

Code: Select all

uint8_t commandB1[14] = {0x0C, 0x00, 0x80, 0x04, 0x01, 0x79, 0x07, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00};
int x = 0;
int pushed = 0;

void setup(){
  Serial.begin(9600);
  pinMode(4, INPUT);
  digitalWrite(4, HIGH);
}

void loop(){
  if (digitalRead(4) == LOW){
    if (pushed == 0){
      for (x = 0 ; x < 10 ; x++){
        Serial.print(commandB1[x]);
      }
      pushed = 1;
    }
  }
  if (digitalRead(4) == HIGH){
    pushed = 0;
  }
}
  

User avatar
Franklin97355
 
Posts: 23939
Joined: Mon Apr 21, 2008 2:33 pm

Re: Control Mindstorms NXT with Bluefruit EZ-Link

Post by Franklin97355 »

You have 14 digits but you only send 10, is there a reason? What happen if you send 10 digits in RealTerm? Could you post a screenshot of the realterm send screen?

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”