

The Adafruit Rotary Trinkey is a compact and versatile microcontroller board designed for user input and feedback in various electronic projects. It integrates a rotary encoder, an RGB NeoPixel, and a USB-C connector, making it an ideal choice for adding a controllable interface to your projects. The board is based on the Adafruit Trinkey platform and supports programming with CircuitPython or Arduino, offering flexibility for both beginners and experienced developers.








| Pin Number | Description | Notes |
|---|---|---|
| 1 | NeoPixel Data | Control signal for RGB NeoPixel |
| 2 | Rotary Encoder A | Encoder signal A |
| 3 | Rotary Encoder B | Encoder signal B |
| 4 | Rotary Encoder Button | Push button switch |
| 5 | Analog/Digital I/O | Can be used as GPIO or ADC |
| USB-C | Power and Data | Connects to USB host |
Powering the Device:
Interfacing with the Rotary Encoder:
Controlling the NeoPixel:
Programming the Device:
.uf2 file onto the board when it appears as a USB drive. For Arduino, select the appropriate board and port in the Arduino IDE and upload your sketch.#include <Adafruit_NeoPixel.h>
#define NEOPIXEL_PIN 1 // Replace with the correct pin number for NeoPixel
#define ENCODER_PIN_A 2 // Replace with the correct pin number for Encoder A
#define ENCODER_PIN_B 3 // Replace with the correct pin number for Encoder B
#define BUTTON_PIN 4 // Replace with the correct pin number for Button
Adafruit_NeoPixel pixel(1, NEOPIXEL_PIN, NEO_GRB + NEO_KHZ800);
void setup() {
pinMode(ENCODER_PIN_A, INPUT_PULLUP);
pinMode(ENCODER_PIN_B, INPUT_PULLUP);
pinMode(BUTTON_PIN, INPUT_PULLUP);
pixel.begin();
pixel.show(); // Initialize all pixels to 'off'
}
void loop() {
// Add your code here to read the rotary encoder and button
// and control the NeoPixel.
}
Rotary Encoder Not Responding:
NeoPixel Not Lighting Up:
Button Presses Not Detected:
Q: Can I use the Adafruit Rotary Trinkey with a battery? A: Yes, but you will need to ensure the battery's output is regulated to 5V and connect it through the USB-C port.
Q: How do I change the color of the NeoPixel? A: You can change the color by sending RGB values to the NeoPixel using the appropriate library functions in your code.
Q: What should I do if the device is not recognized by my computer? A: Try using a different USB cable or port, and ensure that the Trinkey is not in bootloader mode unless you are uploading new firmware.