Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 12 of 12

Thread: Can anyuone recommend a Bluetooth module for use with the Teensy

  1. #1
    Senior Member
    Join Date
    Nov 2012
    Location
    Chipping Norton, UK
    Posts
    220

    Can anyuone recommend a Bluetooth module for use with the Teensy

    Hi

    In the first instance I am just looking to use this as a way of locking a device based on proximity of a mobile phone to the Teensy but guess I will soon have many other ideas once I get going.

    Just wondered if anyone had any good or bad experiences to share regarding Bluetooth modules and the most cost effective solution

    Thanks
    Ex.
    Last edited by Experimentalist; 12-20-2012 at 11:04 PM.

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    19,703
    Here's a page where Chris Rorden documents the Bluetooth module he used for a project. Scroll down to "Sample Application: Wireless oscilloscope"

    http://www.mccauslandcenter.sc.edu/C...s/oscilloscope

    He also documents how to configure for 230400 baud when using it with Teensy 3.0.

    This is the specific Bluetooth module he used:

    http://wiki.openpilot.org/display/Do...ooth+Telemetry

    Notice there's links to several sites that sell it. Buy the 5V version for use with Teensy 2.0, or the 3V one for Teensy 3.0.
    Last edited by PaulStoffregen; 12-21-2012 at 12:26 AM.

  3. #3
    Senior Member
    Join Date
    Nov 2012
    Location
    Chipping Norton, UK
    Posts
    220
    Paul

    Thanks for the info, I have ordered a couple with a break out board supporting both 3.3V and 5V so suitable for the entire Teensy range I believe.

    I got these from an eBay seller.

    Ex.

  4. #4
    Senior Member
    Join Date
    Nov 2012
    Posts
    412
    http://redbearlab.com/bleshield/

    This one has the new low power, low energy Bluetooth.
    What is unique is that they have an "APP" that would work
    with this Bluetooth Arduino shield which could easily
    be connected via SPI to the Teensy 3. Also, to talk to the "Arduino
    compatible" they are using Firmata library which Paul
    just completed. I am still investigating this unique Bluetooth
    product.
    Last edited by t3andy; 12-21-2012 at 05:26 PM.

  5. #5
    Senior Member
    Join Date
    Nov 2012
    Location
    Chipping Norton, UK
    Posts
    220
    t3andy

    Thanks for taking the time to reply. I am already using the SPI port on my T3 for SD card access on my current project so this will not be any good for me.

    The other problem with all things Arduino shield is they are the exact opposite of Teensy i.e. huge. This board looks to bigger than the case my entire project is housed in.

    I will be keeping an eye out for a small version using this low energy chipset though and will post back if I find one.

    Ex.

  6. #6
    Senior Member
    Join Date
    Nov 2012
    Posts
    412
    Thanks for taking the time to reply. I am already using the SPI port on my T3 for SD card access on my current project so this will not be any good for me.
    SPI is a bus. To expand it, you just only need another chip select. Using SPI just only for your SD card and saying that SPI is already used is wrong.

  7. #7
    Senior Member
    Join Date
    Nov 2012
    Location
    Chipping Norton, UK
    Posts
    220
    Quote Originally Posted by t3andy View Post
    SPI is a bus. To expand it, you just only need another chip select. Using SPI just only for your SD card and saying that SPI is already used is wrong.
    Sorry for the slow reply and thanks for the information, been away and did not have my logon with me. I am quite new to this and on a steep learning curve. I will need to read up on the SPI bus, as I said I thought it was a port. I am still keeping an eye out for a small foot print low power Bluetooth module based on the chipset used in the module you mentioned. Thanks again and have a good new year.

  8. #8
    Senior Member
    Join Date
    Nov 2012
    Posts
    412
    I am still keeping an eye out for a small foot print low power Bluetooth module
    The low power Bluetooth I mention (above) using Firmata " T3 patch" compiled but the BLE library did not. A closer inspection reveals
    an interrupt being used. So before you purchase any hardware make sure you can compile ALL the software "first".
    I believe the interrupts on the Teensy 3 are not 100% complete due to the fact there are so many of them. (work in progress)
    Only Paul can give an interrupt status update.

  9. #9
    I used a bluesmirf gold RPSMA in one of my projects....worked for a year...started randomly dropping the connection...now it powers up, but won't even pair. I've resorted to an analog readout, but one day I'd like to put BT back on it...but not if I'm only going to get a year of use out of it. (And RPSMA is req'd).

  10. #10
    Junior Member
    Join Date
    Jan 2013
    Posts
    10
    I documented the steps I used to get a BTM400-6B module going for serial comms with a Teensy 2.0 at http://captainunlikely.blogspot.co.u...and-linux.html - you can buy these chips on ebay for about $7. It's been working flawlessly for about 6 months now, 24/7

  11. #11
    Junior Member
    Join Date
    Jan 2013
    Location
    San Diego, CA
    Posts
    2
    I've been able to get these (http://www.ebay.com/itm/261128344954...84.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!).

  12. #12
    Junior Member
    Join Date
    Jan 2013
    Location
    San Diego, CA
    Posts
    2
    Sorry for the formatting, it looked fine in the editor, maybe I should have used the WYSIWYG mode.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •