Situation
Using an Arduino Nano, a BC517 transistor, a 4K7 base transistor and the circuit below I tried to control a 12V/20mA (says datasheet, I measured 14V/40mA) flow, which should go from the +12V to the controller enable pin which switches on a EVF8202-E frequency inverter.
Expected result
There should flow current to the controller enable when the Arduino puts 5V on the transistor, and not so otherwise.
Actual result
Unfortunately the motor always starts when I connect the transistor, even if the base is connected to the Arduino ground.
Possible problem points I thought about:
Base resistor
I calculated the 4K7 value with help from this post (and others), which led me to believe that with a 5K resistor I'd get a base current of 1mA, which with a gain of 100 (I checked the datasheet on this) would mean it would be able to saturate collector currents above 100mA, which is fine here.
Transistor
The first time I connected the transistor without the base resistor, and I don't think I've blown it but who knows... so I took a second transistor and tested with the base resistor with above results, which were the same for both transistors.
Circuit
Of course I've googled around a lot, and found a lot of examples to control a dc motor with a transistor like this. The circuits look similar, although they use an extra diode because of the dc motor and the motor is on the other side of the transistor, which I think shouldn't matter.
Test code
I'm sure there's nothing wrong with that because I tested the output with a multimeter, 4.7 volts for high and 0.7 volts for low.
Project
Would someone be interested why, I'm trying to control the solar panels at home to get them always at an optimal angle. Android app included, hooray for ethernet shields.




