The Flora Bluefruit LE is a versatile wearable electronics platform designed by Adafruit Industries. It integrates the power of the Flora motherboard with Bluetooth Low Energy (LE) technology, enabling wireless communication and control for a variety of wearable projects. This component is ideal for creating interactive garments, smart accessories, and innovative textiles that can connect to smartphones, tablets, and other Bluetooth-enabled devices.
Pin Number | Name | Description |
---|---|---|
1 | GND | Ground connection |
2 | 3Vo | 3.3V output from the onboard regulator |
3 | BAT | Battery input for an optional 3.7V LiPoly battery |
4 | EN | Enable pin for the 3.3V regulator |
5 | SDA | I2C data line |
6 | SCL | I2C clock line |
7 | RXI | UART receive pin |
8 | TXO | UART transmit pin |
9 | #2 | Digital I/O, also an analog input (A2) |
10 | #3 | Digital I/O, also an analog input (A3), PWM capable |
... | ... | ... |
Note: This table is not exhaustive and only includes a selection of the available pins.
Powering the Flora Bluefruit LE:
Establishing a Bluetooth Connection:
Programming the Flora:
Connecting Sensors and Actuators:
Q: Can the Flora Bluefruit LE be washed? A: The electronics should not be submerged in water. Remove any power sources and electronics before washing the fabric components.
Q: How do I update the firmware on the Flora Bluefruit LE? A: Firmware updates can be done over the air using the Adafruit Bluefruit LE Connect app.
Q: What is the range of the Bluetooth connection? A: The typical range is up to 10 meters (33 feet), but this can vary depending on environmental factors.
#include <SoftwareSerial.h>
#include <Adafruit_BLE_UART.h>
// Create the bluefruit object, using software serial on pins 10 and 11
SoftwareSerial bluefruitSS = SoftwareSerial(10, 11);
Adafruit_BLE_UART bluefruit = Adafruit_BLE_UART(&bluefruitSS, -1, -1);
void setup() {
bluefruit.begin();
}
void loop() {
// Listen for any packets coming in over BLE
bluefruit.pollACI();
// TODO: Add your own code to interact with the incoming data
}
Note: This example assumes you are using an Arduino UNO to communicate with the Flora Bluefruit LE. The actual Flora board would be programmed differently, as it has a built-in microcontroller.
Remember to keep code comments concise and within the 80 character line length limit.