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
ober WROTE: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
1. Not really understand when you say NPN side switched. Make sure connection is correct before powering it up Base of transistor should be connected to control pin of Arduino and there should be a resistor in series, 1K to 10K ohm is good enough.
2. Not necessary, it depends.
3. Button we normally connect to GND instead of 5V. configure it as press LOW.
4. Well, I would separate the system into two parts. Make sure the control of fan is working first. Just write a program to ON and OFF the transistor periodically, like LED blinking, just with longer interval, like 2 seconds ON, 2 seconds OFF. If that works, then move on to input. Simply use the button on Maker UNO at pin D2 to start with. Press the button, activate an LED, say the LED at D3. If that works, then move on to combine these two parts. Then expand the input to D7 as you wanted.
Users browsing this forum: No registered users and 5 guests