Hi, I've been using the MMBT2222A-TP in my circuits for switching the grounds to pumps and they've been working great.
I like how they work, if 3.3v goes in then it switches on or off depending on voltage state.
So now I get thinking and have another idea I would like to implement with them and was wondering if this is ok? I have very little knowledge on what I'm doing, makes sense that it should work but...
My project is Arduino based and has a box with 12 USB ports, just like a hub. Different equipment and sensors plug into the ports. I want the ports to handle as much equipment and sensors as possible but lots of sensors require different resistors etc that others don't which causes a problem.
I'm wondering if I can use these transistors to control the path of the circuit? Because I'm using an Arduino I have lots of IO puts that can tell different transistors to turn on or off. I'm using a touch screen so the idea is you go to a page and tell it port1 has a water pump, then via code different transistors turn on or off so all the components are in line that are required for the water pump. If I selected a float switch different transistors would take over.
Does that make sense? No real current would pass through the transistors, only used for directing the path to the USB port.
I attached a pic of how I use the MMBT2222A-TP. D33 is digital pin 33 from the Arduino, 3.3v or 0v comes out of it.

I like how they work, if 3.3v goes in then it switches on or off depending on voltage state.
So now I get thinking and have another idea I would like to implement with them and was wondering if this is ok? I have very little knowledge on what I'm doing, makes sense that it should work but...
My project is Arduino based and has a box with 12 USB ports, just like a hub. Different equipment and sensors plug into the ports. I want the ports to handle as much equipment and sensors as possible but lots of sensors require different resistors etc that others don't which causes a problem.
I'm wondering if I can use these transistors to control the path of the circuit? Because I'm using an Arduino I have lots of IO puts that can tell different transistors to turn on or off. I'm using a touch screen so the idea is you go to a page and tell it port1 has a water pump, then via code different transistors turn on or off so all the components are in line that are required for the water pump. If I selected a float switch different transistors would take over.
Does that make sense? No real current would pass through the transistors, only used for directing the path to the USB port.
I attached a pic of how I use the MMBT2222A-TP. D33 is digital pin 33 from the Arduino, 3.3v or 0v comes out of it.
