I've been able to get these (
http://www.ebay.com/itm/261128344954?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649) to work with Teensy 3.0 on a Mac running Snow Lion.
Here's the connections:
Teensy 3.0 Bluetooth Module
------------ -------------------
Vin VCC
GND GND
RX1 TXD
TX1 RXD
Here's a simple sketch:
#define BAUD_RATE 9600
void setup()
{
Serial.begin(BAUD_RATE);
Serial1.begin(BAUD_RATE);
}
void loop()
{
char recvChar;
while(1){
if(Serial.available()){//check if there's any data sent from the local serial terminal, you can add the other applications here
recvChar = Serial.read();
Serial1.print(recvChar);
}
if(Serial1.available()){//check if there's any data sent from the remote bluetooth shield
recvChar = Serial1.read();
Serial.print(recvChar);
}
}
}
I used CoolTerm with 2 "terminal windows", one connected to "usbmodem12341" (the Teensy USB port) and the other to "GarageController-DevB" (the Bluetooth port).
Here's the commands supported by the device:
Command Response Note
----------- ----------- -------------------------------
AT OK Useful to check connection and baudrate
AT+VERSION Linvor1.5 Get the version of the module
AT+BAUDx OKyyyy Set the baudrate x as follows:
• 1 = 1200 bps
• 2 = 2400 bps
• 3 = 4800 bps
• 4 = 9600 bps
• 5 = 19200 bps
• 6 = 38400 bps
• 7 = 57600 bps
• 8 = 115200 bps
• 9 = 230400 bps
• A = 460800 bps
• B = 921600 bps
• C = 1382400 bps
AT+NAMEString OKsetname Change Bluetooth device name to String
20 characters max
AT+PINxxxx OKsetpin Set the Bluetooth device PIN to xxxx
1234 by default
AT+PN OK None Disable parity check
AT+PO OK ODD Set odd parity check
AT+PE OK EVEN Set even parity check
Note that the characters of the command must be sent very fast (I use cut&paste) and not typed (unless you're an extremely fast typist!).