Pages: [1]   Go Down
Author Topic: Several TTL outputs in paralel  (Read 605 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Jr. Member
**
Karma: 2
Posts: 66
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi again,

I was using Sparkfun PIR motion sensors with open collector output. I have used multiple motion sensors connected to a single input pin (pulled up to 5V) on Arduino and if any of the motion sensors triggered, the input pin was pulled low.

Recently I bough couple of these eBay PIR motion sensors with TTL output. I need to hook more than one sensor to a single input pin on Arduino.

What can I expect I if connect several TTL outputs together? Smoke, floating output, working as with open colector outputs, something else?


Thanks.


Best regards
qwertsimo
Logged

Offline Offline
Edison Member
*
Karma: 56
Posts: 2186
Now, More Than Ever
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The outputs can be diode-OR'ed into one input.
(If they're O.C. then pull them up.)
Logged

"Hello, I must be going..."
"You gotta fight -- for your right -- to party!"
Don't react - Read.
"Who is like unto the beast? who is able to make war with him?"

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 509
Posts: 31487
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
What can I expect I if connect several TTL outputs together?
You can expect to burn out one or more outputs. The open collector type of outputs are fine to connect together, that is known as a wired OR arrangement. If you have several TTL outputs and you want to combine them use a NOR or NAND gate depending on what level you want to see as the "winner".

Quote
floating output
No such thing, if it is floating it is not an output.

Logged

Anaheim CA.
Offline Offline
Faraday Member
**
Karma: 44
Posts: 2810
...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Pull up's on all outputs and diodes cathode to output anode to common "Controlled" input, put a 4K7 pull up there too.
@ Mike an OC output is open... until it's activated or it's inverted and low until activated when it becomes 'open'.

Bob
Logged

--> WA7EMS <--
“The solution of every problem is another problem.” -Johann Wolfgang von Goethe
I do answer technical questions PM'd to me with whatever is in my clipboard

United Kingdom
Offline Offline
Tesla Member
***
Karma: 220
Posts: 6587
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Pull up's on all outputs and diodes cathode to output anode to common "Controlled" input, put a 4K7 pull up there too.
@ Mike an OC output is open... until it's activated or it's inverted and low until activated when it becomes 'open'.

Bob

Judging from the example schematics they provide, the output is active high (so not NPN open collector) and possibly current-limited. I would use a 74HCT27 triple 3-input NOR gate to combine up to 6 of those PIR outputs into one 5V Arduino signal.
Logged

Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Offline Offline
Edison Member
*
Karma: 116
Posts: 2205
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Runaway Pancake gave you the right answer: run one resistor from the rail to the output bus; and then run 1 diode / module from the bus to the module's output pin. The output is low if any of the module outputs a low.
Logged

United Kingdom
Offline Offline
Tesla Member
***
Karma: 220
Posts: 6587
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Runaway Pancake gave you the right answer: run one resistor from the rail to the output bus; and then run 1 diode / module from the bus to the module's output pin. The output is low if any of the module outputs a low.

What makes you think the output is active low, when the schematics they show turn the connected equipment on when the output is high?
Logged

Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

0
Offline Offline
Jr. Member
**
Karma: 2
Posts: 66
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks a lot for replies. This eBay sensor has active high output. I used quad 2-input OR gate to get two independent groups with 3 sensors in each group.
Logged

Offline Offline
Edison Member
*
Karma: 116
Posts: 2205
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
This eBay sensor has active high output.

In that event, run each output, through a diode, to a common resistor to ground and take your signal from that resistor.

The output is high if any of the output is high.
Logged

United Kingdom
Offline Offline
Tesla Member
***
Karma: 220
Posts: 6587
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
This eBay sensor has active high output.

In that event, run each output, through a diode, to a common resistor to ground and take your signal from that resistor.

The output is high if any of the output is high.


Since the high level is only 3.3V, that will give a high level on the 5V Arduino input of only 2.65V or so. Not enough for reliable operation IMO.
Logged

Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

0
Offline Offline
Shannon Member
****
Karma: 161
Posts: 10446
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Firstly I don't think they mean "TTL", its a 3.3 module, no doubt CMOS (everything is CMOS now!).  Looking up the chip
part number from the photo might give chapter&verse.

But back to the plot - it is possible to use diode gating, but it gets more complex(*) (2 diodes and one resistor per input),
and using logic ICs is simpler.

(*) diode to ~10k resistor to +5V on each input, then parallel diodes from the diode/resistor junctions to form a diode
or-gate with 3.3V output - level shift one diode drop up before the diode or gate.
Logged

[ I won't respond to messages, use the forum please ]

Pages: [1]   Go Up
Jump to: