The diagram below provides a visual reference for wiring of the components. This diagrams was created using the software package Fritzing.
Adafruit Library for Fritzing
Use Adafruit's Fritzing parts library to create circuit diagrams for your projects. Download the library or just grab individual parts. Get the library and parts from GitHub - Adafruit Fritzing Parts.
Power
The Trinket M0 is powered by 400mAh battery via the Lipo Backpack. This allows the USB port from the Trinket M0 to charge the 400mAh battery. A slide switch is connected to the two switch pin on the Lipo Back.
- BAT from Lipo Backpack to BAT on Trinket M0
- Ground from Lipo Backpack to GND on Trinket M0
- 5V from Lipo Backpack to USB on Trinket M0
Rotary Encoder
A rotary encoder is wired to the Trinket M0. This requires five wired connections. The rotary encoder also features a built-in button switch. Follow the circuit diagram above for the connecting the correct pins to Trinket M0.
Text editor powered by tinymce.