KerimF
Advanced Member level 5
- Joined
- May 17, 2011
- Messages
- 1,554
- Helped
- 376
- Reputation
- 760
- Reaction score
- 379
- Trophy points
- 1,373
- Location
- Aleppo city - Syria
- Activity points
- 13,095
the voltage at parallel out before connecting the supply is above 3 volts dc...
Sorry, on my side I give up
At each instant, you have just two nodes to measure assuming the port and your circuit have a common ground (the reference node).
The node at the transistor collector.
The node at the anode of the input diode (that is the port).
Also all signals are assumed being DC. Could the port pin, you are using, is delivering pulses?!
In fact, the collector voltage has to be the same as of the relay supply if the base current is zero (Ib=Ic=0). It is the case when V_base=0 that is V_port < ( V_diode + Vbe ) or less than 1V2.
Also the collector voltage should be made to saturate (Vc less than 1V) by a suitable base current. In your case I_base=0.34 mA seems enough. You can measure I_base by measuring the voltage (V_resistor, assumed DC) on the 4K7 resistor so I_base = V_resistor / 4.7 (V_resistor should be 0V when port is off)
So using 15V supply instead of 12V is not the cause of the malfunction.
I suggest you try being familiar first with your external very simple circuit far from the PC port. I mean to control it manually by driving the diode with a voltage divider (using two resistors, the lower could be 1K, the higher could be 3K9, for 15V supply this gives you about 3V at the diode). So when applying the divider voltage, the relay should be turned on then when the 1K is shorted (equivalent to port is off) the relay will turn off.
Kerim
Hi
I will post here what I posted to you on the other forum, it may also be of help to others here trying to understand the situation
OK been doing a bit of circuit drawing....
A thought has struck me after conversations in another thread on this forum that has similar ideas.
its possible that the printer port output on your puter is an open collector type. This makes a big difference in how the circuit is going to operate.
If it is an open collector output then this is how your circuit should be wired.....
]
if its not, then the resistor that you see going from the base to the +12V line should be removed and placed in series between the output pin of the port ( the collector) and the base of your switching transistor (the BC457).
A little on the operation of the circuit.....
When the printer port transistor is turned off, current flows down through the 4k7 resistor and through the base and emitter of the BC547 to the 0V (GND) rail. The BC547 will be turned on and the relay will activate.
When the printer port transistor is turned on, that current will instead flow the easier path down through the collector of the printer port transistor to the 0V rail. Without the base current, the BC547 will turn off and the relay will deactivate.
You can imagine that transistor to the left of the dotted line is one of a number of transistors in several IC's controlling the printer port operations. I have just drawn 1 transistor for clarity.
Again ... there should be no reason why you cant use the 12V from the puter to supply the relay.
Ohh and almost forgot NOTICE there is NO diode in series with the puter output !!
cheers
Dave
Hi,
To be honest, I won't build, in order to control a relay by a data pin of the parallel port, the circuit 'exactly' as you have just posted.
But if it is okay for you then there is nothing to add I guess :smile:
Kerim
PS: at least, exchanging the connections of the BC557 emitter and collector will give a better result (collector to ground).
you are right about that bc557 conn. exchange, i am not sure but does it provide lesser resistance?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?