P
petrus bitbyter
Guest
"petrus bitbyter" <pieterkraltlaatditweg@enditookhccnet.nl> schreef in
bericht news:4825926d$0$15509$e4fe514c@dreader16.news.xs4all.nl...
I added a diode to make the voltage loss for both displays more equal. If
that loss is not acceptable you can use a five transistor variant shown by
someone else already. I added similar schematic below.
+--------+------------------+-------+--Vcc
| | | |
___ |< V .-. |
in----+--|___|---| - | | |
| |\ | | | |
| | | '-' |
| | |< | |/
| +------| +-----|
| | |\ | |>
| .-. | | |
| | | .---. ___ |/ .---.
| | | | | +--|___|--| | |
| '-' | D | | |> | D |
| | | | | | | |
| | '---' | '---'
| | | | | |
------)------------+--------+------)-----------+-------+--GND
| |
+----------------------------+
+------+---------------------+------+--Vcc
| | | |
___ |< | |< |
in---+--|___|--| | +--| |
| |\ | | |\ |
| | | .-. | |<
| | |< | | +----|
| +----| | | | |\
| | |\ '-' | |
| .-. | | | |
| | | .---. | | .---.
| | | | | ___ |/ .-. | |
| '-' | D | +--|___|--| | | | D |
| | | | | |> | | | |
| | '---' | | '-' '---'
| | | | | | |
-----)-----------+------+----)-----------+----+------+--GND
| |
+-----------------------+
created by Andy´s ASCII-Circuit v1.24.140803 Beta www.tech-chat.de
For a a Vcc of 5V all resistors can be 4k7. Transistors are general purpose
2N3904, 2N3906 or BC550, BC560.
petrus bitbyter
bericht news:4825926d$0$15509$e4fe514c@dreader16.news.xs4all.nl...
Oops, checking out my own schematic I found it wrong. The one below is good."vic" <news@bidouille.org> schreef in bericht
news:48250145$0$5055$426a74cc@news.free.fr...
BobW wrote:
"BobW" <nimby_NEEDSPAM@roadrunner.com> wrote in message
news:B7mdnSJSKb17P77VnZ2dnUVZ_obinZ2d@giganews.com...
"vic" <news@bidouille.org> wrote in message
news:48233453$0$20289$426a74cc@news.free.fr...
Hi,
I have two common anode 7-segments displays, and only one wire to
drive them. I need to achieve the following : when the control signal
is +5V, display1 is ON and display2 is OFF. When the signal is 0V,
display1 is OFF and display2 is ON. When the signal is not connected
(high impedance), both displays are OFF.
I tried using a NPN transistor for display1 and a PNP for display2,
connecting their bases together. It works when the driving signal is
present, but when the signal is floating current flows from the base
of the PNP to the base of the NPN and both transistors turn each other
on, resulting in both displays being ON.
The circuit that didn't work :
VCC
+
|
|
___ |
o---------------------|___|--|
| |\
| VCC |
| + |
| | Display2
| | |
| ___ |/ |
Input---o---|___|--| GND
|
|
|
Display1
|
|
GND
Is there a way to achieve this ?
Thanks.
Try this:
5V
| 5V
R5 |
| |<---
|/-------------| Q3
----| Q1 |\--------- (to display 1 and then to GND)
| |>-- 5V
| | |
| | R3
| | |
---R1-----R2----------
| | |
| | R4
| |<--- |
|--| Q2 GND
|\
| |/--------- (to display 2 and then to 5V)
-------------| Q4
| |>----
R6 |
| GND
GND
Q1 and Q2 form a comparator so that when the input is floating they
will both be off. R3 and R4 set the input threshold.
When the input is high (5V) then Q1 will be on and that will turn on
Q3. When the input is low (GND) then Q2 will be on and that will turn
on Q4.
You can figure out the resistor values. They shouldn't be too critical,
but R3 and R4 need to be small enough to ensure enough drive for the
four transistors.
I hope I got the ascii art right as I had to compose it in a separate
word processor.
Bob
--
== NOTE: I automatically delete all Google Group posts due to
uncontrolled SPAM ==
I see, now, that your displays are both common anode. You'll need to add
another PNP (common emitter mode) driven by Q4.
As Monica Lewinsky used to say, "Close, but no cigar."
Bob
*gasp* 5 transistors needed to do what seemed simple at first glance ...
I don't quite understand what R5 and R6 are for, when Q1 and Q2 do not
conduct, the base current of Q3 and Q4 would be zero so the ressitors do
not seem necessary ?
Well I guess I could just try it and see if it works
Didn't you see my four transistors, four resistors solution yesterday?
+--------+------------------+-------+--Vcc
| | | |
___ |< | ___ |/ |
in----+--|___|---| | +--|___|--| |
| |\ | | |> |
| | | | | |
| | |< | | |
| +------| | +-----|
| | |\ | | |\
| .-. | | .-. |
| | | .---. | | | .---.
| | | | | | | | | |
| '-' | D | | '-' | D |
| | | | | | | |
| | '---' | | '---'
| | | | | |
------)------------+--------+------)-----------+-------+--GND
| |
+----------------------------+
created by Andy´s ASCII-Circuit v1.24.140803 Beta www.tech-chat.de
petrus bitbyter
I added a diode to make the voltage loss for both displays more equal. If
that loss is not acceptable you can use a five transistor variant shown by
someone else already. I added similar schematic below.
+--------+------------------+-------+--Vcc
| | | |
___ |< V .-. |
in----+--|___|---| - | | |
| |\ | | | |
| | | '-' |
| | |< | |/
| +------| +-----|
| | |\ | |>
| .-. | | |
| | | .---. ___ |/ .---.
| | | | | +--|___|--| | |
| '-' | D | | |> | D |
| | | | | | | |
| | '---' | '---'
| | | | | |
------)------------+--------+------)-----------+-------+--GND
| |
+----------------------------+
+------+---------------------+------+--Vcc
| | | |
___ |< | |< |
in---+--|___|--| | +--| |
| |\ | | |\ |
| | | .-. | |<
| | |< | | +----|
| +----| | | | |\
| | |\ '-' | |
| .-. | | | |
| | | .---. | | .---.
| | | | | ___ |/ .-. | |
| '-' | D | +--|___|--| | | | D |
| | | | | |> | | | |
| | '---' | | '-' '---'
| | | | | | |
-----)-----------+------+----)-----------+----+------+--GND
| |
+-----------------------+
created by Andy´s ASCII-Circuit v1.24.140803 Beta www.tech-chat.de
For a a Vcc of 5V all resistors can be 4k7. Transistors are general purpose
2N3904, 2N3906 or BC550, BC560.
petrus bitbyter