Open collector output and current sink of BS2p
Philip
Posts: 11
I am attempting to interface the output of a receiver with pin 0 of my BS. The receiver has an open collector output and is active low, basically it demodulates a signal and the output transistor goes·"short circuit" to earth when the signal is present or goes "open circuit" when there is no signal. This arrangement can source 2mA and I've tried both a 10kOhm and a 50kOhm resistor with little or no joy when it comes to decoding the signal with the BS. I get the very occasional valid pulse. I realise my code could be at fault, it's my first ever PBASIC program, but the fact that I get the occasional valid pulse seems to indicate that the code is doing basically what i expect.
Clearly if the BS was needing a significant fraction of 2mA then I would be getting a significant voltage drop across my resistor and so might not be getting a reliable on/off indication as I believe the BS needs greater than 1.4V to see an "on."
I have seen a circuit which uses another transistor as an emitter follower and looks as shown in the attachment. (MSF is the "output" of the receiver) Is the additional transistor going to be necessary to make the receiver drive the BS or should it work with just the resistor in place?
Thanks for any suggestions, I'm very new to all of this and so still feeling my way.
Clearly if the BS was needing a significant fraction of 2mA then I would be getting a significant voltage drop across my resistor and so might not be getting a reliable on/off indication as I believe the BS needs greater than 1.4V to see an "on."
I have seen a circuit which uses another transistor as an emitter follower and looks as shown in the attachment. (MSF is the "output" of the receiver) Is the additional transistor going to be necessary to make the receiver drive the BS or should it work with just the resistor in place?
Thanks for any suggestions, I'm very new to all of this and so still feeling my way.
Comments
Maybe 4k7 from pin 0 to +5Volt. You will then have a nice and clear 'on' 'off' signal from your open collector output. It will be 1 mA at maximum.
Klaus
Does that seem sensible or am I missing something silly? In the mean time I will try it with a 4K7 or similar resistor to see if that helps.
The circuit of my actual receiver module is attached and it actually shows a pull up resistor on the time code output but note that this is external to the actual receiver and so I have to provide it.
That assumes you've set the pin as an INPUT, of course, which disconnects the output drivers for the BS2. INPUT is the default state for the I/O state of a pin -- but I'd set it explicitly in the code.
From this I am concluding that the receiver/demodulator is working just fine but that the RF it is getting isn't so hot. The shortest pulse I should be seeing, based upon the intended input signal, is about 100ms but most of the pulses I am actually seeing are in the 5 - 20ms region so it may be that I am just demodulating noise. Hopefully I will get a spectrum analyser across the output of my antenna, to see if there is any RF leaving it, at some point in the coming week.
I knew having anything to do with RF was a bad idea, it's way to weird for me.