Electronic – Powering microcontroller off USB, load off wall-wart

microcontrollerpower

I'm developing a light display thing using a Teensy 2 and a digitally addressable LED string that draws quite a bit of power, more than can be provided over USB. I have ordered a switched wall-wart style power supply that more than adequately meets the power needs of the system, and should serve me well in production.

During firmware development however the Teensy will be connected over USB to the host computer. The methods recommended by the manufacturer are a bit invasive. I like that the Teensy is powered over USB, and I plan to keep using that function after this project is done. Also, I don't really feel comfortable taking a razor to my Teensy, let alone soldering an additional component to those tiny tiny pads.

Question:

Is it possible to power the Teensy off the USB connection and the load off a separate power supply if I make sure they share a common ground potential? Do I need to take any special precautions? Is this just a really really bad idea?

I can't shake the feeling that I should not be doing this, but I can't think of a reason why. Can anyone settle this one way or the other?

UPDATE

Thanks to your excellent answers, I now have 50 individually addressable 24-bit color RGB LEDs in my Christmas tree. Read more about it here and here!

Tree with lights

Best Answer

Since the digital RGB pixel strand uses a 5V SPI-like interface, and the Teensy 2 is also running off of 5V USB power, then as long as the grounds are connected in common you should be able to run the two off of separate supplies and just route the two digital leads (green and yellow) plus ground (blue) to the Teensy, and the +5 (red) plus ground (blue) to the separate wall-wart power supply.

They give an example of this using an Arduino.

As they mention in their writeup, wire colors can vary from batch to batch so the above instructions may need to be adjusted.