so im helping someone with a project. they have this heart thing: http://www.vellemanusa.com/products/view/?id=350676 and normally it blnks because of the two resistors and caps connected to the two NPNs that control two different sets of LEDs on the heart. he wants to control it with his Arduino. So i told him to take out the two caps(22uf) and resistors(33 and 100k) which make it blink and then connect the base of each NPN to a Arduino pin with a resistor. It normally runs off of a 9v battery so he shared the grounds between the arduino and heart and still used the 9v. so since its a NPN, its should activate when held HIGH? that didnt happen…when given +5v or 0v to the base pin(triple checked !); it would be on, but if he completely unplugged the base wire from the arduino, the LEDs would shut off. we used a 47 kohm resistor on the base pin, i now realize this is too high. it should be more like ~13K. would this cause the issues i describe?
scheme attached, thanks
pic taken by him: https://mail-attachment.googleusercontent.com/attachment?ui=2&ik=ba067bf423&view=att&th=13598c5d336cece7&attid=0.3&disp=inline&safe=1&zw&saduie=AG9B_P-tuBTg0-XYc7mP_9XAl9Km&sadet=1329727088235&sads=zC1L-Qp36HE13-6I37Zs1VNiV9o&sadssc=1
in the pic, one base wire is attached to Arduino, one is unconnected
First test is to take 10k resistors high by disconnecting from arduino and connecting them to +9v rail. This should activate LEDs so confirming that transistors are still working.
Assuming each transistor has to pump say 20ma and has a gain of at least 10, then you are looking for say 2ma of base current. With 5 volts from arduino and 0.7v junction loss, base resistors should be around 2k2. OK if transistor gain is higher, you can increase base drive resistance, but 2k2 will definitely get you going.
the website said the whole thing draws 8ma. so each NPN pumps 4ma about. i was using the following equation: resistor=(VC*hFE)/(Load Voltage* Load current)
so VC = 4.25 (arduino 5v - voltage drop .75)
hFE for the NPN is 110
load voltage is 9
load current is 4ma or .004A
and some people say to do (Hfe/Load current)*2 just to be safe, so npn doesn't get to hot
so thats 4.25v*110/9v*.004A
then (110/.004A)*2 = 55000
so 26K or so? did i do the math right? if i didnt double (hfe/Load current) it would be 13k obviously.
is it supposed to be in amps or ma(.004A or 4ma) in the equation? if i do 4ma instead of .004A in the problem i get the resistor value in Kohms not Ohms; i got 12.9K and 25.9K. so the same thing...
I suspect the gnd of Arduino has been erroneously connected to +9V supply of the heart circuit - hence disconnection is the only way to switch off..