How do I make sub-parts with a common pin?

I’m just now learning how motor controllers and transistors work my past experience with electronics was mostly with resistors and capacitors. If the device didn’t work we just swapped it out with a new one.

A circuit like this will do what you want.

here the micro is driving the base of the transistor with about 5 milliamps. Assuming the transistor has a gain of 100 (fairly common) the collector will sink about 500ma more than enough to drive your LEDs without loading the output pin of the micro (well less than the 40ma the pin can provide.) There is however an inversion through the transistor so where your LEDs used to light when the output pin was 0V the LEDs now will light when the pin is at 5V instead.

Peter

1 Like

Hello, thanks @Andrew177 for your help on this subject of how to make sub-parts with a common pin? I still need help finding the best way to do this, but this thread seems to have gone off topic, so I’ll start a new thread for those who were following it.