Bother. Bad time to be figuring all this out. Suppose that's my fault though.
So why can't the optocoupler drive the transistor? Data sheet says optocoupler can deal with currents up to 50 mA, and you said I only need a 20 mA current. Would that be sufficient?
hi,
The reason for only approx 2mA to the base is the 4k7 resistor.
Say you have a Vbe of 0.7V for the BC640 and a Vsat for the LTV, approx 1V say.
Then [12Vs-1V]/4/7K = 2.3mA..
You could try reducing the 4.7K to about 470R thru 1K, this will give approx 23mA thru 11mA.
Choose a emitter drive resistor to give 10mA to 15mA thru the emitter diode.
Check that the drive voltage across the emitter is less than +0.6V when in the off state.
The typical LTV827, CTR for 10mA/15mA drive is 150%.
Points to consider, if the motor current while running with a light load is say 200mA, on heavy load and while starting up could be close to 1Amp.
Also the power supply must be capable of supplying these high startup currents.
I would suggets the following tests.
Disconnect R2 from the opto output, replace it with a 470R.
Connect one end of the 470R to 0V common and the other end to the BC640 base, [keep the 10k in circuit] ,
the BC640 transistor will switch on and drive the motor.
Connect a 1K resistor between the opto output and +12V, drive the emitter with 15mA. The opto output should go close to +0.5V
Also check that the opto output rises to +12V without any drive to the opto emitter.
These are simple tests that will prove the LV827 and BC640.
If any of these tests fail they should indicate if you have a faulty device.
Lets know what you find.
EDIT: couple of sims to show the effect of under driving the transistor. Used close equivalent types.