Rotary Trinkey - SAMD21
It’s half USB Key, half Adafruit Trinket, half rotary encoder…it’s Rotary Trinkey, the circuit board with a Trinket M0 heart, a NeoPixel glow, and a rotary encoder body. We were inspired by this project from TodBot where a rotary encoder was soldered onto a QT Py. So we thought, hey what if we made something like that that plugs right into your computer’s USB port, with a fully programmable color NeoPixel? And this is what we came up with!
The PCB is designed to slip into any USB A port on a computer or laptop. There’s an ATSAMD21 microcontroller on board with just enough circuitry to keep it happy. Three pins of the microcontroller connects to a rotary encoder with built-in push switch. Another connects to a NeoPixel LED. Finally, one pin can be used as a capacitive touch input. A reset button lets you enter bootloader mode if necessary. That’s it!
Rotary encoders are soooo much fun! Twist em this way, then twist them that way. Unlike potentiometers, they go all the way around, and often have little detents for tactile feedback. But, if you just want to add one to your computer, you know its a real pain. This board is designed to make it very easy.
The SAMD21 can run CircuitPython or Arduino very nicely - with existing Rotary, NeoPixel and our FreeTouch libraries for the capacitive touch input. Over the USB connection you can have serial, MIDI or HID connectivity. The Rotary Trinkey is perfect for simple projects that use a rotating user input and underlit colorful output. Maybe you’ll set it up as a volume knob, scroll wheel, or zoom macro tool - whatever you like!
Please note this board DOES NOT come with a rotary encoder soldered in - we expect folks to pick their favorite rotary encoder and knob! Five solder points and you’re done.
We think it’s just an adorable little board, small and durable and inexpensive enough that it could be a first microcontroller board or inspiration for advanced developers to make something simple and fun.
- ATSAMD21E18 32-bit Cortex M0+ - 48 MHz 32 bit processor with 256KB Flash and 32 KB RAM
- Native USB supported by every OS - can be used in Arduino or CircuitPython as USB serial console, MIDI, Keyboard/Mouse HID, even a little disk drive for storing Python scripts.
- Can be used with Arduino IDE or CircuitPython
- Single under-lighting RGB NeoPixel LED
- One Capacitive Touch pad
- Standard ‘5-pin’ rotary encoder footprint can be used with any “PEC11” or “PEC12” compatible rotary encoder.
- Cute & keychain-friendly!
Have some info to add for this board? Edit the source for this page here.
This is the latest stable release of CircuitPython that will work with the Rotary Trinkey - SAMD21.
Start here if you are new to CircuitPython.
Built-in modules available: adafruit_pixelbuf, board, digitalio, math, microcontroller, neopixel_write, nvm, os, rainbowio, random, rotaryio, storage, struct, supervisor, time, touchio, usb_cdc, usb_hid, usb_midi
Included frozen(?) modules: adafruit_hid, neopixel
This is the latest unstable release of CircuitPython that will work with the Rotary Trinkey - SAMD21.
Unstable builds have the latest features but are more likely to have critical bugs.
Built-in modules available: adafruit_pixelbuf, array, board, builtins, collections, digitalio, math, microcontroller, neopixel_write, nvm, os, rainbowio, random, rotaryio, storage, struct, supervisor, sys, time, touchio, usb_cdc, usb_hid, usb_midi
Included frozen(?) modules: adafruit_hid, neopixel
Every time we commit new code to CircuitPython we automatically build binaries for each board and language. The binaries are stored on Amazon S3, organized by board, and then by language. Try them if you want the absolute latest and are feeling daring or want to see if a problem has been fixed.
All previous releases are listed on GitHub, with release notes, and are available for download from Amazon S3. They are handy for testing, but otherwise we recommend using the latest stable release. Some older GitHub release pages include the same binaries for downloading. But we have discontinued including binaries as assets on newer release pages because of the large number of files for each release.
Update UF2 Bootloader
Latest version: v3.14.0
The bootloader allows you to load CircuitPython, MakeCode, and Arduino programs. The bootloader is not CircuitPython. You can check the current version of your bootloader by looking in the INFO_UF2.TXT file when the BOOT drive is visible (FEATHERBOOT, CPLAYBOOT, etc.).
It is not necessary to update your bootloader if it is working fine. Read the release notes on GitHub to see what has been changed. In general, we recommend you not update the bootloader unless you know there is a problem with it or a support person has asked you to try updating it.
To update, first save the contents of CIRCUITPY, just in case. Then double-click the reset button to show the BOOT drive. Drag the update-bootloader .uf2 file to the BOOT drive. Wait a few tens of seconds for the bootloader to update; the BOOT drive will reappear. After you update, check INFO_UF2.TXT to verify that the bootloader version has been updated. Then you will need to reload CircuitPython.