Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

How to Use Adafruit Circuit Playground Bluefruit: Examples, Pinouts, and Specs

Image of Adafruit Circuit Playground BluefruitDesign with Adafruit Circuit Playground Bluefruit in Cirkit Designer

Introduction

The Adafruit Circuit Playground Bluefruit is a versatile and feature-rich development board that combines the functionality of various sensors and components with the ease of use of the Arduino environment. It is equipped with a Nordic nRF52840 processor with Bluetooth Low Energy (BLE) support, making it ideal for creating interactive projects and wearable devices that can connect to smartphones and tablets. With its built-in sensors, such as an accelerometer, temperature sensor, and capacitive touch pads, along with a suite of NeoPixels for colorful visual feedback, the Circuit Playground Bluefruit is a powerful platform for both beginners and experienced makers.

Explore Projects Built with Adafruit Circuit Playground Bluefruit

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!

Common Applications and Use Cases

Technical Specifications

Key Technical Details

Pin Configuration and Descriptions

Pin Number Function Description
A1 Analog Input Capacitive touch sensor
A2 Analog Input Capacitive touch sensor
A3 Analog Input Capacitive touch sensor
A4 Analog Input Capacitive touch sensor
A5 Analog Input Capacitive touch sensor
A6 Analog Input Capacitive touch sensor
A7 Analog Input Capacitive touch sensor
TX Digital I/O Transmit pin for serial communication
RX Digital I/O Receive pin for serial communication
13 Digital I/O Built-in LED, can be used for PWM

Usage Instructions

How to Use the Component in a Circuit

  1. Powering the Board:

    • Connect the Circuit Playground Bluefruit to a computer or a battery pack via the micro-USB port.
    • Ensure that the input voltage is within the recommended range.
  2. Programming the Board:

    • Install the Arduino IDE and add the Adafruit Circuit Playground board package.
    • Select the Circuit Playground Bluefruit board from the Tools > Board menu.
    • Connect the board to your computer with a micro-USB cable.
  3. Interacting with Onboard Sensors and Components:

    • Use the provided libraries from Adafruit to interact with the onboard sensors and components.
    • For example, to read values from the accelerometer, use the Adafruit_LIS3DH library.
  4. Using Bluetooth Functionality:

    • Utilize the Adafruit_BluefruitLE_nRF51 or Adafruit_BluefruitLE_nRF52 library to enable BLE communication.
    • Follow the library examples to create BLE services and characteristics.

Important Considerations and Best Practices

Troubleshooting and FAQs

Common Issues Users Might Face

Solutions and Tips for Troubleshooting

Example Code for Arduino UNO

#include <Adafruit_CircuitPlayground.h>

void setup() {
  // Initialize the Circuit Playground board
  CircuitPlayground.begin();
}

void loop() {
  // Read the value from the first capacitive touch sensor
  int touchValue = CircuitPlayground.readCap(1);

  // If the sensor is touched, turn on the built-in LED
  if (touchValue > 30) {
    CircuitPlayground.redLED(HIGH);
  } else {
    CircuitPlayground.redLED(LOW);
  }

  // Delay for a bit to avoid rapid toggling
  delay(100);
}

Note: The above code is an example of using the capacitive touch sensor to control the built-in LED. The readCap() function reads the capacitive touch sensor value, and the redLED() function controls the built-in LED. Adjust the touch threshold value (30 in this case) as needed for your specific application.

Remember to wrap the code comments as needed to limit line length to 80 characters. This ensures readability and maintains a clean, professional appearance in the code.