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

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

Image of Adafruit Circuit Playground ExpressDesign with Adafruit Circuit Playground Express in Cirkit Designer

Introduction

The Adafruit Circuit Playground Express (CPX) is a compact, all-in-one electronic development board that is ideal for beginners and experts alike. It is designed to provide a hands-on introduction to electronics and programming. With built-in sensors, LEDs, and buttons, the CPX is versatile enough to be used in a wide range of projects, from simple educational exercises to complex prototypes.

Explore Projects Built with Adafruit Circuit Playground Express

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Battery-Powered Smart Light with Proximity Sensor and OLED Display using Adafruit QT Py RP2040: A project utilizing Adafruit Circuit Playground Express in a practical application
Battery-Powered Smart Light with Proximity Sensor and OLED Display using Adafruit QT Py RP2040

This circuit is a portable, battery-powered system featuring an Adafruit QT Py RP2040 microcontroller that interfaces with an OLED display, a proximity sensor, an accelerometer, and an RGB LED strip. The system is powered by a lithium-ion battery with a step-up boost converter to provide 5V for the LED strip, and it includes a toggle switch for power control. The microcontroller communicates with the sensors and display via I2C.

Open Project in Cirkit Designer
Image of NodeMCU ESP8266 Controlled Drone with TFT Display and nRF24L01 Communication: A project utilizing Adafruit Circuit Playground Express in a practical application
NodeMCU ESP8266 Controlled Drone with TFT Display and nRF24L01 Communication

This circuit features a NodeMCU V3 ESP8266 microcontroller interfaced with an LCD TFT screen, an nRF24L01 wireless transceiver, and an Adafruit Analog 2-Axis Joystick. The NodeMCU collects joystick inputs and displays information on the TFT screen, while also communicating with other devices via the nRF24L01 module. The circuit is powered by a 9V battery, with the NodeMCU regulating the voltage for other components.

Open Project in Cirkit Designer

Common Applications and Use Cases

Technical Specifications

Key Technical Details

Pin Configuration and Descriptions

Pin Number Function Description
A1 Analog Input Can be used as a capacitive touch input
A2 Analog Input Can be used as a capacitive touch input
A3 Analog Input Can be used as a capacitive touch input
A4 Analog Input Can be used as a capacitive touch input
A5 Analog Input Can be used as a capacitive touch input
A6 Analog Input Can be used as a capacitive touch input
A7 Analog Input Can be used as a capacitive touch input
TX Digital Output Transmit pin for serial communication
RX Digital Input Receive pin for serial communication
#13 Digital I/O Can be used for digital input/output, has LED

Usage Instructions

How to Use the Component in a Circuit

  1. Powering the CPX: Connect the CPX to a computer or battery pack via the micro-USB port.
  2. Programming: Use the Microsoft MakeCode editor, CircuitPython, or the Arduino IDE to program the CPX.
  3. Connecting Additional Components: Use the alligator clip pads around the edge of the CPX to connect additional sensors, actuators, or components.

Important Considerations and Best Practices

Example Code for Arduino UNO

#include <Adafruit_CircuitPlayground.h>

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

void loop() {
  // Turn on the first NeoPixel with red color
  CircuitPlayground.setPixelColor(0, 255, 0, 0); // Red color
  delay(500); // Wait for half a second

  // Turn off the first NeoPixel
  CircuitPlayground.setPixelColor(0, 0, 0, 0); // No color (off)
  delay(500); // Wait for half a second
}

Troubleshooting and FAQs

Common Issues

Solutions and Tips for Troubleshooting

FAQs

Q: Can I use the CPX with a battery? A: Yes, the CPX can be powered with an external battery pack.

Q: Is the CPX compatible with Arduino IDE? A: Yes, with the addition of the Adafruit Board Manager URL, you can program the CPX using Arduino IDE.

Q: How do I reset the CPX? A: Press the reset button on the board. If you need to enter the bootloader mode, press it twice quickly.

Q: Can I connect other I2C or SPI devices to the CPX? A: Yes, the CPX supports I2C and SPI communication, allowing you to connect a wide range of additional sensors and components.