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

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

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

Introduction

The Adafruit Crickit for Circuit Playground Express is an innovative robotics platform designed to bring life to your projects. It acts as an add-on to the Circuit Playground Express, enabling control over motors, servos, solenoids, and other electronic components. This versatile board is perfect for hobbyists, educators, and students looking to explore the world of robotics and interactive projects.

Explore Projects Built with Adafruit Crickit for 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 Adafruit Crickit Controlled Robotics Platform with Micro:bit: A project utilizing Adafruit Crickit for Circuit Playground Express in a practical application
Adafruit Crickit Controlled Robotics Platform with Micro:bit

This circuit is designed to control multiple motors and servos using an Adafruit Crickit for microbit as the main controller, interfaced with a micro bit microcontroller. It includes two yellow hobby gear motors, two 9G micro servos, and two standard servos, all powered and controlled by the Crickit board. Additionally, there is a 0.96" OLED display for output and a piezo sensor, likely for input, connected to the Crickit, which is programmed via the micro bit.

Open Project in Cirkit Designer
Image of Battery-Powered Smart Light with Proximity Sensor and OLED Display using Adafruit QT Py RP2040: A project utilizing Adafruit Crickit for 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

Common Applications and Use Cases

Technical Specifications

Key Technical Details

Pin Configuration and Descriptions

Pin Number Function Description
1 GND Ground
2 VOUT Voltage output, connected to the power supply
3-6 Motor Outputs Connect to DC motors or other inductive loads
7-14 Servo Outputs Connect to up to 8 hobby servo motors
A1-A7 Analog Inputs Analog sensor inputs
D1-D7 Digital I/O Digital input/output pins
SDA, SCL I2C Data & Clock I2C communication for sensors and other devices

Usage Instructions

How to Use the Component in a Circuit

  1. Powering the Crickit: Connect a suitable power supply to the Crickit's power jack. Ensure the voltage is within the recommended range.
  2. Connecting the Circuit Playground Express: Attach the Circuit Playground Express to the Crickit board using the built-in connector.
  3. Wiring Components: Connect motors, servos, and sensors to their respective pins on the Crickit board.
  4. Programming: Use the Adafruit MakeCode Editor, CircuitPython, or Arduino IDE to program the Circuit Playground Express.

Important Considerations and Best Practices

Troubleshooting and FAQs

Common Issues

Solutions and Tips for Troubleshooting

Example Code for Arduino UNO

#include <Adafruit_Crickit.h>

// Create the Crickit object
Adafruit_Crickit crickit;

void setup() {
  // Initialize the Crickit
  crickit.begin();
  
  // Set up a servo on channel 1
  crickit.servo1.setMinMax(500, 2500); // Set the min and max pulse length
  crickit.servo1.attach(1); // Attach servo on channel 1
}

void loop() {
  // Sweep the servo from 0 to 180 degrees
  for (int angle = 0; angle <= 180; angle++) {
    crickit.servo1.write(angle);
    delay(15);
  }
  // Sweep the servo back from 180 to 0 degrees
  for (int angle = 180; angle >= 0; angle--) {
    crickit.servo1.write(angle);
    delay(15);
  }
}

Note: The above code is an example of how to control a servo motor using the Adafruit Crickit with an Arduino UNO. Make sure to install the Adafruit Crickit library before uploading the code to your board.