Hi everyone,
I apologize if this question is extremely elementary, I was looking for instructions for a while and couldn't find anything so here I am! I am looking to power two Neopixel sticks with a trinket that is powered by USB. So far, I've powered by battery using a right angle connector, and that's worked great, but I need the LEDs to stay on all the time, hence the USB connection. Other than the Trinket and USB, what other parts do I need in order to have this happen? Is there a guide on powering a trinket by USB somewhere?
Thanks!
Powering Trinket with USB
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88089
- Joined: Sat Feb 07, 2009 10:11 am
Re: Powering Trinket with USB
You don't specify which Trinket you are referring to. But all of them have USB jacks which can be used to power the boards.: https://learn.adafruit.com/adafruit-tri ... on-arduino
- habibimo
- Posts: 2
- Joined: Tue Nov 02, 2021 10:57 am
Re: Powering Trinket with USB
Sorry! I am using the Trinket M0. I see there is a usb pin on there, is it as simple as soldering it onto the usb pin? Here's what I ordered, but I'm not sure if this is the only thing I need to connect to USB : https://www.adafruit.com/product/1387 . Also, if I want to connect it, how do I go about connecting the other pins if the Neopixel sticks also need to connect to ground, 5v+, and Din?
- adafruit_support_bill
- Posts: 88089
- Joined: Sat Feb 07, 2009 10:11 am
Re: Powering Trinket with USB
The simplest thing is to just use a USB-A to Micro -B cable: https://www.adafruit.com/product/592
That one supports both data and power. But you could use a charge-only cable too.
Using a DIY connector, you would connect GND and VBUS pins on the connector to the GND and USB pins on the Trinket.
One issue you are likely to run into is that the M0 is a 3.3v processor. And when powering pixels with 5v, you will probably need a level shifter for the data line:
https://www.adafruit.com/product/3975
That one supports both data and power. But you could use a charge-only cable too.
Using a DIY connector, you would connect GND and VBUS pins on the connector to the GND and USB pins on the Trinket.
One issue you are likely to run into is that the M0 is a 3.3v processor. And when powering pixels with 5v, you will probably need a level shifter for the data line:
https://www.adafruit.com/product/3975
Please be positive and constructive with your questions and comments.