I want to provide power to the enable pin of a device using the output of a digital i/o pin on an arduino nano 33 ble. Since the i/o pins themselves cant provide enough power, im connecting the digital pin and 3v3 pin to a bc-547 transistor. However, my schematic feels lackluster.
Something in me is telling me this is wrong/dangerous, despite the fact that it works. Is this correct? should i add a resistor from the digital pin to ground? Here is my schematic, please help.