Teensy 3.1 and Bluetooth LE breakout

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
ksum
 
Posts: 19
Joined: Mon Sep 16, 2013 4:04 pm

Teensy 3.1 and Bluetooth LE breakout

Post by ksum »

Will the Teensy and the Bluetooth LE breakout work together?
I'm having trouble because there are files that the compiler can't find.
Mainly "avr/sleep.h". There are avr support files in the hardware specific
include folder for the Teensy, but sleep.h isn't in there.

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

Re: Teensy 3.1 and Bluetooth LE breakout

Post by Franklin97355 »

Did you get teensyduino ? and be aware that the teensy says it works with many arduino libraries. Also the 3.1 is not an AVR so should not be expected to run native AVR code.

User avatar
ksum
 
Posts: 19
Joined: Mon Sep 16, 2013 4:04 pm

Re: Teensy 3.1 and Bluetooth LE breakout

Post by ksum »

I do have all that is required as far as software. It is a 3.1, so I guess if I'm going to use Bluetooth I'll have to find a different little microcontroller to use.

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

Re: Teensy 3.1 and Bluetooth LE breakout

Post by Franklin97355 »

Or you could write your own code.

User avatar
ksum
 
Posts: 19
Joined: Mon Sep 16, 2013 4:04 pm

Re: Teensy 3.1 and Bluetooth LE breakout

Post by ksum »

I'm not that great at C just yet, but perhaps I can take the existing sleep code for other devices and
make it work with the Teensy. It doesn't necessarily have to do all of what the original does, it just
has to support the calls made to it so the program can move forward.

For now I'll stick with WiFi since I think I've resolved the lock up problem I was having with the
CC3000 breakout. It turns out the CC3k doesn't like to stay connected to a network when there's
no activity for a while. So disconnecting between data pull intervals solved the problem.

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

Re: Teensy 3.1 and Bluetooth LE breakout

Post by Franklin97355 »

So disconnecting between data pull intervals solved the problem.
Yes that's a problem several people have had. One way other than disconnecting is to just test for a connection before sending and remake a connection if it has stopped.

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

Return to “Arduino Shields from Adafruit”