I am using a BC547B NPN Transistor coupled with an Arduino UNO to act as a switch for an LED strip(consists of four small LEDs is series) powered through an external DC Battery.
I am a complete beginner to electronics,so i tried to implement the circuit at
Transistors - learn.sparkfun.com .I connected pin 8 of Arduino UNO to the base of transistor.
The problem I am facing is that the LED(s) light very dimly when pin8 is set to high.When the LED(s) are connected directly to the battery,they light properly,so the battery being discharged is not an issue.There are a couple to things I noted however:
1)If I connect the base of transistor to 5V of Arduino, LED lights properly.
2)Using any other pin of arduino still results in the same problem.
3)Mysteriously, If I touch the base resistance(10k ohm) with bare hands,the LED(s) light up perfectly.This behaviour does not depend on the state of pin8.
What could be the issue ? Please see attached circuit diagram(sorry for poor quality), I have also attached datasheet of transistor if it helps.
410427.pdf (181 KB)