Bluefruit Ez-Key 1.0 and Serial

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
jon.sharp
 
Posts: 4
Joined: Wed Oct 16, 2013 11:18 am

Bluefruit Ez-Key 1.0 and Serial

Post by jon.sharp »

I am try to send a serial command to the Ez-Fruit to get it to send the keyboard command via serial. I have the tx from Arduino hooked to the rx of the bluefruit.

I have the following simple code

Code: Select all

void setup() {
    Serial.begin(9600);
}

void loop() {
  Serial.write(67);
//Serial.write(0x40);
 delay(2000);
}
It sends it to the serial monitor but not the bluefruit. Any ideas??? I have a hardware button wired to one of the bluefruit's inputs and it sends the key just fine.

Thanks
Jon

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Bluefruit Ez-Key 1.0 and Serial

Post by adafruit_support_mike »

Have you also connected the Arduino's GND to the GND pin on the Bluefruit? You need that as well as the TX/RX connection.

User avatar
jon.sharp
 
Posts: 4
Joined: Wed Oct 16, 2013 11:18 am

Re: Bluefruit Ez-Key 1.0 and Serial

Post by jon.sharp »

That worked, Thanks, I guess I should have thought of that.

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Bluefruit Ez-Key 1.0 and Serial

Post by adafruit_support_mike »

It's an easy one to forget.

Glad to hear it's working for you. Happy hacking!

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

Return to “Other Products from Adafruit”