The Adafruit Bluefruit LE Micro is a versatile Bluetooth Low Energy (BLE) breakout board that combines a BLE module with an ATmega32u4 microcontroller. This compact component is designed to add wireless communication capabilities to a wide range of projects, allowing them to interact with smartphones, tablets, and other BLE-compatible devices. It is particularly useful for wearable electronics, wireless sensor networks, and IoT applications.
Pin Number | Name | Description |
---|---|---|
1 | VIN | Input voltage to the board (4-12V DC) |
2-7 | D2-D7 | Digital pins, can be used as input/output |
8 | GND | Ground pin |
9 | AREF | Analog reference pin for ADC |
10-15 | D8-D13 | Digital pins, can be used as input/output |
16 | A0-A5 | Analog input pins |
17 | RST | Reset pin (active low) |
18 | 3V3 | 3.3V output from the onboard regulator |
19 | GND | Ground pin |
20 | RAW | Raw input voltage (unregulated) |
To use the Adafruit Bluefruit LE Micro in a circuit:
VIN
pin to a 4-12V DC power source.GND
pin to the ground of your power supply.D2-D13
and A0-A5
) as needed for your project.RST
pin to a pushbutton for manual resetting.3V3
pin) to power external 3.3V components.#include <SPI.h>
#include <Adafruit_BLE_UART.h>
// Create the bluefruit object, using SPI interface
Adafruit_BLE_UART ble(SPI_CS, SPI_IRQ, SPI_RST);
void setup(void) {
Serial.begin(9600);
ble.begin();
}
void loop() {
// Tell the nRF8001 to do whatever it should be working on.
ble.poll();
// Check for incoming data from the BLE module
if ( ble.available() ) {
while (ble.available()) {
char c = ble.read();
Serial.print(c);
}
// Add your code here to handle the incoming data
}
}
Note: The above code is a basic setup for initializing the BLE module and reading incoming data. You will need to install the Adafruit BLE library for Arduino to use this code.
VIN
and GND
.RST
button twice quickly to enter bootloader mode.Q: Can I use the Adafruit Bluefruit LE Micro with a 5V system? A: Yes, but ensure that the logic levels are compatible. The board operates at 3.3V.
Q: How do I update the firmware on the BLE module? A: Firmware updates can be done via the DFU protocol. Adafruit provides detailed guides on their website.
Q: What is the maximum range of the BLE communication? A: The range can vary depending on environmental factors but typically is around 10 meters (33 feet) with the onboard antenna.
For further assistance, consult the Adafruit forums or the extensive guides available on the Adafruit Learning System.