that's great and I hope it work with you.I will test your circuit and get back to you later today.
depending on my knowledge it must work but there must be something I have messed so I really hope you find out what it is
that's great and I hope it work with you.I will test your circuit and get back to you later today.


what did you use to generate a signal?View attachment 352747
Test input Vin is a 1Hz 5V square wave. I used a red LED to give a visual indication that that the photo-transistor is working. I tested the circuit with both 4N25 and 4N33 which I already had in stock.
I found no difference if the load is on the collector or emitter of the photo-transistor.
It still remains a mystery as to why your circuit is not working.
by driving the opto using the regulator and remove everything else the opto works just fine.hi haman,
Reduce the on board circuit to this basic circuit,
The 12V reg drives the PC817.
The PC817 output pin should be at ~12V
What do you measure??
E
As a secondary test, move the R8 10k resistor to the PC817 Collector.
BTW: I do not see any decoupling capacitors on the power rails??
View attachment 352748
the thing is when checking using scoop and DMM there is an input signal applied on the diode side of the opto, but on the transistor its just on cutoff region where all the voltage is across the collector and the emitter.Loose negative node of the battery?
There should be no current if the battery + is routed to any other ground except the battery -, right?
Wrong resistor value?
I can't see the colors on the picture, but still that doesn't explain the behavior when GND is brought to the -.
This is some mystery indeed.
I don't know what else can you try. Measure current in series with the battery maybe?