The Adafruit Feather 32u4 Bluefruit is an all-in-one microcontroller and Bluetooth Low Energy (BLE) development board. It is part of the Feather ecosystem - a complete line of development boards from Adafruit that are both standalone and stackable. They're able to be powered by a variety of battery options and are equipped with built-in USB charging. This board is ideal for makers and hobbyists who want to add wireless connectivity to their projects with ease.
Pin Number | Function | Description |
---|---|---|
1 | GND | Ground |
2 | BAT | Battery + |
3 | EN | Enable pin for the 3.3V regulator |
4 | USB | USB raw voltage (4.5-5.5V) |
5 | RST | Reset pin |
6-11 | Analog A0-A5 | Analog pins |
12-19 | Digital 0-7 | Digital pins, PWM available on 3, 5, 6, 9, 10, 11 |
20-25 | Digital 8-13 | Digital pins, SPI/I2C available |
26 | RX | UART receive pin |
27 | TX | UART transmit pin |
28 | SDA | I2C data pin |
29 | SCL | I2C clock pin |
30 | MISO | SPI MISO pin |
31 | MOSI | SPI MOSI pin |
32 | SCK | SPI clock pin |
Powering the Board:
Programming the Board:
Connecting Bluetooth:
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_BLE.h>
#include <Adafruit_BluefruitLE_SPI.h>
// SHARED SPI SETTINGS (see Adafruit_BLE_SPI.h for definitions)
#define BLUEFRUIT_SPI_CS 8
#define BLUEFRUIT_SPI_IRQ 7
#define BLUEFRUIT_SPI_RST 4 // Optional but recommended, set to -1 if unused
// Create the bluefruit object, using SPI interface
Adafruit_BluefruitLE_SPI ble(BLUEFRUIT_SPI_CS, BLUEFRUIT_SPI_IRQ, BLUEFRUIT_SPI_RST);
void setup() {
Serial.begin(115200);
Serial.println(F("Adafruit Bluefruit Feather 32u4 Basic Demo"));
Serial.println(F("-----------------------------------------"));
// Initialise the module
Serial.print(F("Initialising the Bluefruit LE module: "));
if (!ble.begin()) {
Serial.println(F("Couldn't find Bluefruit, make sure it's in CoMmanD mode & check wiring?"));
}
Serial.println(F("OK!"));
// Perform a factory reset to make sure everything is in a known state
Serial.println(F("Performing a factory reset: "));
if (!ble.factoryReset()) {
Serial.println(F("Couldn't factory reset"));
}
// Set BLE UART baud rate to default
ble.echo(false);
ble.info();
ble.verbose(false); // Turn off verbose mode for lower debug output (optional)
}
void loop() {
// Placeholder for user code.
}
Q: Can I use the Adafruit Feather 32u4 Bluefruit with my smartphone?
A: Yes, you can use it with both iOS and Android devices using the Adafruit Bluefruit LE Connect app.
Q: What is the range of the Bluetooth connection?
A: The BLE range is typically up to 10 meters (33 feet), but it can vary depending on obstacles and interference.
Q: How do I update the BLE firmware?
A: You can update the firmware using the Adafruit Bluefruit LE Connect app. Follow the instructions within the app to complete the update.
Q: Can I use the Adafruit Feather 32u4 Bluefruit with external sensors?
A: Yes, the board has multiple analog and digital I/O pins that can be used to connect a variety of sensors and peripherals.