issue for NPN transistor as a switch
Posted: Wed Jul 15, 2020 10:20 pm
Above is the image for the circuit diagram
i have issue for using transistor as a switch for mini-fan project
Objective : act just like a table fan, when the switch is pressed then it will turn on the fan indefinitely, press the switch again, the fan will turn off
issue :
1.fan not turning on / pin turn off itself when npn side switched
2.Power is lower using transistor than connect to + and - directly, i thought transistor suppose to amplify it?
Flow :
1. when the button is clicked, d7 will receive input in which the program will turn on d12
2. d12 will send signal to transistor at base in which should make the circuit complete and the fan will turn on
but the fan doesn't turn on, the fan is tested directly placed on positive and negative terminal and it worked
when i switch the side of npn transistor (collector and emitter position switch)
the fan worked for several second then turned off, i notice the d12 is turned off too
any help will be appreaciated
transistor model : CS9011
arduino : maker uno board
power source : computer usb plugged to maker uno