The resistor limits the current which might go in and out of whatever is driving the base of the transistor,
such as an arduino pin.
The resistor limits the current which might go in and out of whatever is driving the base of the transistor,
such as an arduino pin.