

The Adafruit Crickit HAT for Raspberry Pi (Manufacturer Part ID: 3957) is a versatile add-on board designed to expand the capabilities of the Raspberry Pi for robotics and physical computing projects. It integrates a wide range of features, including motor control, capacitive touch inputs, servo control, sensor inputs, and LED outputs, making it an ideal choice for building interactive and creative projects.
This HAT (Hardware Attached on Top) is powered by the ATSAMD21 co-processor running CircuitPython, which handles real-time tasks, allowing the Raspberry Pi to focus on higher-level processing. The Crickit HAT is perfect for beginners and advanced users alike, offering a plug-and-play experience for robotics, animatronics, and IoT applications.








The Crickit HAT connects to the Raspberry Pi via the GPIO header and provides additional terminals for external connections. Below is a summary of the key pin configurations:
| Pin Number | Pin Name | Description |
|---|---|---|
| 3 | SDA | I2C Data Line |
| 5 | SCL | I2C Clock Line |
| 2, 4 | 5V | Power Supply |
| 6 | GND | Ground |
| Terminal Group | Description |
|---|---|
| DC Motor Outputs | 4 terminals for connecting up to 2 DC motors |
| Stepper Motor Outputs | 4 terminals for connecting 2 stepper motors |
| Servo Outputs | 4 terminals for PWM-controlled servos |
| Capacitive Touch Pads | 8 touch-sensitive inputs |
| Sensor Inputs | 4 analog/digital input pins |
| LED Outputs | 4 high-current drive outputs for LEDs |
Below is an example Python script to control a servo motor connected to the Crickit HAT:
import time from adafruit_crickit import crickit
servo = crickit.servo_1
servo.angle = 0 print("Servo set to 0 degrees") time.sleep(1)
for angle in range(0, 181, 10): # Increment by 10 degrees servo.angle = angle print(f"Servo angle: {angle} degrees") time.sleep(0.1)
for angle in range(180, -1, -10): # Decrement by 10 degrees servo.angle = angle print(f"Servo angle: {angle} degrees") time.sleep(0.1)
print("Servo control complete")
0x49. Ensure no other devices on the I2C bus conflict with this address.HAT Not Detected by Raspberry Pi:
sudo raspi-config > Interface Options > I2C).Motors Not Running:
Servo Not Moving:
Capacitive Touch Inputs Not Responding:
LEDs Not Lighting Up:
Q: Can I use the Crickit HAT with other Raspberry Pi models?
A: Yes, the Crickit HAT is compatible with all 40-pin Raspberry Pi models, including the Raspberry Pi 4, 3, and Zero.
Q: Do I need to solder anything to use the Crickit HAT?
A: No soldering is required. The HAT is designed for plug-and-play use.
Q: Can I use the Crickit HAT without a Raspberry Pi?
A: No, the Crickit HAT is specifically designed to work with the Raspberry Pi. For standalone use, consider the Adafruit Crickit for Circuit Playground.
Q: What is the maximum current the HAT can handle?
A: Each motor output can handle up to 1.2A, and the total current should not exceed the limits of your power supply.
This documentation provides a comprehensive guide to using the Adafruit Crickit HAT for Raspberry Pi. With its wide range of features and ease of use, the Crickit HAT is an excellent tool for bringing your robotics and physical computing projects to life!