Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #373931 > unrolled thread

16 analog outputs into 1 digital output

Started bygm <notmy@mail.com>
First post2015-08-21 11:41 +0200
Last post2015-08-26 13:39 +0200
Articles 19 — 12 participants

Back to article view | Back to sci.electronics.design


Contents

  16 analog outputs into 1 digital output gm <notmy@mail.com> - 2015-08-21 11:41 +0200
    Re: 16 analog outputs into 1 digital output bitrex <bitrex@de.lete.earthlink.net> - 2015-08-21 06:52 -0400
      Re: 16 analog outputs into 1 digital output bitrex <bitrex@de.lete.earthlink.net> - 2015-08-21 07:01 -0400
        Re: 16 analog outputs into 1 digital output tabbypurr@gmail.com - 2015-08-21 04:38 -0700
          Re: 16 analog outputs into 1 digital output gm <notMyMail@mail.not> - 2015-08-21 13:54 +0200
            Re: 16 analog outputs into 1 digital output Phil Hobbs <pcdhobbs@gmail.com> - 2015-08-21 05:17 -0700
              Re: 16 analog outputs into 1 digital output bitrex <bitrex@de.lete.earthlink.net> - 2015-08-21 08:55 -0400
            Re: 16 analog outputs into 1 digital output pippo2@disney.com (Jack) - 2015-08-21 14:41 +0200
            Re: 16 analog outputs into 1 digital output Tim Wescott <seemywebsite@myfooter.really> - 2015-08-21 11:01 -0500
            Re: 16 analog outputs into 1 digital output rickman <gnuarm@gmail.com> - 2015-08-21 12:25 -0400
            Re: 16 analog outputs into 1 digital output John Fields <jfields@austininstruments.com> - 2015-08-21 14:19 -0500
            Re: 16 analog outputs into 1 digital output tabbypurr@gmail.com - 2015-08-21 14:59 -0700
          Re: 16 analog outputs into 1 digital output bitrex <bitrex@de.lete.earthlink.net> - 2015-08-21 08:35 -0400
    Re: 16 analog outputs into 1 digital output whit3rd <whit3rd@gmail.com> - 2015-08-21 12:47 -0700
    16 analog outputs into 1 digital output Klaus Kragelund <klauskvik@hotmail.com> - 2015-08-21 15:16 -0700
    Re: 16 analog outputs into 1 digital output Jasen Betts <jasen@xnet.co.nz> - 2015-08-21 23:52 +0000
      Re: 16 analog outputs into 1 digital output gm <notmy@mail.com> - 2015-08-24 11:42 +0200
        Re: 16 analog outputs into 1 digital output rickman <gnuarm@gmail.com> - 2015-08-24 09:09 -0400
          Re: 16 analog outputs into 1 digital output gm <notmy@mail.com> - 2015-08-26 13:39 +0200

#373931 — 16 analog outputs into 1 digital output

Fromgm <notmy@mail.com>
Date2015-08-21 11:41 +0200
Subject16 analog outputs into 1 digital output
Message-ID<mr6rov$ev$1@l01news1.ot.hr>
Hi.

I have one alarm station that has 16 outputs.
On each of this outputs you can read out some voltage change from 1 - 
1,5V ( when in alarm state ).

To save space and money i was planning to hook up one multiplexer to 
those outputs and then other part of multiplexer to raspberry PI GPIO.

Did someone try to make something like this ?

[toc] | [next] | [standalone]


#373934

Frombitrex <bitrex@de.lete.earthlink.net>
Date2015-08-21 06:52 -0400
Message-ID<55d70301$0$1031$4c5ecfc7@frugalusenet.com>
In reply to#373931
On 8/21/2015 5:41 AM, gm wrote:
> Hi.
>
> I have one alarm station that has 16 outputs.
> On each of this outputs you can read out some voltage change from 1 -
> 1,5V ( when in alarm state ).
>
> To save space and money i was planning to hook up one multiplexer to
> those outputs and then other part of multiplexer to raspberry PI GPIO.
>
> Did someone try to make something like this ?

If all you need to know is if _a_ alarm is going off, not what 
particular one, you could use 4 LM339 quad comparators, one section for 
each alarm channel.  Set them up with a reference voltage on one input 
and and some hysteresis, and since they have open collector outputs, the 
outputs can be OR-ed together into one "digital" output that pulls down 
when one of the comparators is triggered.

Please see page 10 of the following datasheet:

https://www.jameco.com/Jameco/Products/ProdDS/838727.pdf

[toc] | [prev] | [next] | [standalone]


#373935

Frombitrex <bitrex@de.lete.earthlink.net>
Date2015-08-21 07:01 -0400
Message-ID<55d70500$0$1015$4c5ecfc7@frugalusenet.com>
In reply to#373934
On 8/21/2015 6:52 AM, bitrex wrote:
> On 8/21/2015 5:41 AM, gm wrote:
>> Hi.
>>
>> I have one alarm station that has 16 outputs.
>> On each of this outputs you can read out some voltage change from 1 -
>> 1,5V ( when in alarm state ).
>>
>> To save space and money i was planning to hook up one multiplexer to
>> those outputs and then other part of multiplexer to raspberry PI GPIO.
>>
>> Did someone try to make something like this ?
>
> If all you need to know is if _a_ alarm is going off, not what
> particular one, you could use 4 LM339 quad comparators, one section for
> each alarm channel.  Set them up with a reference voltage on one input
> and and some hysteresis, and since they have open collector outputs, the
> outputs can be OR-ed together into one "digital" output that pulls down
> when one of the comparators is triggered.
>
> Please see page 10 of the following datasheet:
>
> https://www.jameco.com/Jameco/Products/ProdDS/838727.pdf

Actually, if the threshold voltages on all the comparators are going to 
be the same, you could use fewer ICs - see page 7 of the datasheet for 
an "OR" gate that accepts multiple inputs.

I don't think I'd like to try to put 16 inputs all to 1 IC, but I'd feel 
comfortable using a LM339 quad and putting 4 inputs into each, and then 
ORing the outputs of each 4 input OR gate together.

You can also do a multiple input OR gate with hysteresis.

[toc] | [prev] | [next] | [standalone]


#373937

Fromtabbypurr@gmail.com
Date2015-08-21 04:38 -0700
Message-ID<9dfea17d-380e-4db8-af89-a0e06fe26493@googlegroups.com>
In reply to#373935
On Friday, 21 August 2015 12:01:25 UTC+1, bitrex  wrote:
> On 8/21/2015 6:52 AM, bitrex wrote:
> > On 8/21/2015 5:41 AM, gm wrote:
> >> Hi.
> >>
> >> I have one alarm station that has 16 outputs.
> >> On each of this outputs you can read out some voltage change from 1 -
> >> 1,5V ( when in alarm state ).
> >>
> >> To save space and money i was planning to hook up one multiplexer to
> >> those outputs and then other part of multiplexer to raspberry PI GPIO.
> >>
> >> Did someone try to make something like this ?
> >
> > If all you need to know is if _a_ alarm is going off, not what
> > particular one, you could use 4 LM339 quad comparators, one section for
> > each alarm channel.  Set them up with a reference voltage on one input
> > and and some hysteresis, and since they have open collector outputs, the
> > outputs can be OR-ed together into one "digital" output that pulls down
> > when one of the comparators is triggered.
> >
> > Please see page 10 of the following datasheet:
> >
> > https://www.jameco.com/Jameco/Products/ProdDS/838727.pdf
> 
> Actually, if the threshold voltages on all the comparators are going to 
> be the same, you could use fewer ICs - see page 7 of the datasheet for 
> an "OR" gate that accepts multiple inputs.
> 
> I don't think I'd like to try to put 16 inputs all to 1 IC, but I'd feel 
> comfortable using a LM339 quad and putting 4 inputs into each, and then 
> ORing the outputs of each 4 input OR gate together.
> 
> You can also do a multiple input OR gate with hysteresis.

Just use 16 diodes, followed by one comparator to restore levels.


NT

[toc] | [prev] | [next] | [standalone]


#373940

Fromgm <notMyMail@mail.not>
Date2015-08-21 13:54 +0200
Message-ID<mr73i2$2d1$1@l01news1.ot.hr>
In reply to#373937
On 21.08.2015 13:38, tabbypurr@gmail.com wrote:
> On Friday, 21 August 2015 12:01:25 UTC+1, bitrex  wrote:
>> On 8/21/2015 6:52 AM, bitrex wrote:
>>> On 8/21/2015 5:41 AM, gm wrote:
>>>> Hi.
>>>>
>>>> I have one alarm station that has 16 outputs.
>>>> On each of this outputs you can read out some voltage change from 1 -
>>>> 1,5V ( when in alarm state ).
>>>>
>>>> To save space and money i was planning to hook up one multiplexer to
>>>> those outputs and then other part of multiplexer to raspberry PI GPIO.
>>>>
>>>> Did someone try to make something like this ?
>>>
>>> If all you need to know is if _a_ alarm is going off, not what
>>> particular one, you could use 4 LM339 quad comparators, one section for
>>> each alarm channel.  Set them up with a reference voltage on one input
>>> and and some hysteresis, and since they have open collector outputs, the
>>> outputs can be OR-ed together into one "digital" output that pulls down
>>> when one of the comparators is triggered.
>>>
>>> Please see page 10 of the following datasheet:
>>>
>>> https://www.jameco.com/Jameco/Products/ProdDS/838727.pdf
>>
>> Actually, if the threshold voltages on all the comparators are going to
>> be the same, you could use fewer ICs - see page 7 of the datasheet for
>> an "OR" gate that accepts multiple inputs.
>>
>> I don't think I'd like to try to put 16 inputs all to 1 IC, but I'd feel
>> comfortable using a LM339 quad and putting 4 inputs into each, and then
>> ORing the outputs of each 4 input OR gate together.
>>
>> You can also do a multiple input OR gate with hysteresis.
>
> Just use 16 diodes, followed by one comparator to restore levels.
>
>
> NT
>
-------------
I need to know which alarm is turned ON. This is the main thing.
So you have 16 different alarms. I was thinking that there is a way to
output those signals on single digital line. So i can read them as 
binary value.

Your suggestion is OK but i need to record each alarm state.
Alarm from each sensor...

[toc] | [prev] | [next] | [standalone]


#373942

FromPhil Hobbs <pcdhobbs@gmail.com>
Date2015-08-21 05:17 -0700
Message-ID<677925a3-1d40-41fc-80b5-21ca2a7b9263@googlegroups.com>
In reply to#373940
Use a couple of shift registers and read them via SPI. 

Cheers

Phil Hobbs

[toc] | [prev] | [next] | [standalone]


#373947

Frombitrex <bitrex@de.lete.earthlink.net>
Date2015-08-21 08:55 -0400
Message-ID<55d71fd9$0$23562$4c5ecfc7@frugalusenet.com>
In reply to#373942
On 8/21/2015 8:17 AM, Phil Hobbs wrote:
> Use a couple of shift registers and read them via SPI.
>
> Cheers
>
> Phil Hobbs
>

Have a setup where the comparators feed a control voltage to a 555 timer 
or something, and then count pulses :)

[toc] | [prev] | [next] | [standalone]


#373945

Frompippo2@disney.com (Jack)
Date2015-08-21 14:41 +0200
Message-ID<1m9idx9.s31iof9vqpa6N%pippo2@disney.com>
In reply to#373940
gm <notMyMail@mail.not> wrote:

> On 21.08.2015 13:38, tabbypurr@gmail.com wrote:
> > On Friday, 21 August 2015 12:01:25 UTC+1, bitrex  wrote:
> >> On 8/21/2015 6:52 AM, bitrex wrote:
> >>> On 8/21/2015 5:41 AM, gm wrote:
> >>>> Hi.
> >>>>
> >>>> I have one alarm station that has 16 outputs.
> >>>> On each of this outputs you can read out some voltage change from 1 -
> >>>> 1,5V ( when in alarm state ).

> -------------
> I need to know which alarm is turned ON. This is the main thing.
> So you have 16 different alarms. I was thinking that there is a way to
> output those signals on single digital line. So i can read them as 
> binary value.
> 
> Your suggestion is OK but i need to record each alarm state.
> Alarm from each sensor...

A/D converter connected to the rasp via I2C.
For example:
http://www.mouser.ch/ProductDetail/Maxim-Integrated/MAX11642EEG+/?qs=sGAEpiMZZMvTvDTV69d2Qpc9IJg9Eu09bAXPOD70d34%3d

or comparator as someone else said and the something like this
(connected via I2C):
http://www.mouser.ch/ProductDetail/Microchip-Technology/MCP23017T-E-SO/?qs=sGAEpiMZZMuFG5L82Zqpsv%2foit1hbM7Tsr4VYstdr7U%3d

Bye Jack
-- 
Yoda of Borg am I! Assimilated shall you be! Futile resistance is, hmm?

[toc] | [prev] | [next] | [standalone]


#373969

FromTim Wescott <seemywebsite@myfooter.really>
Date2015-08-21 11:01 -0500
Message-ID<Nb-dnRF-fp7X1krInZ2dnUU7-R2dnZ2d@giganews.com>
In reply to#373940
On Fri, 21 Aug 2015 13:54:41 +0200, gm wrote:

> On 21.08.2015 13:38, tabbypurr@gmail.com wrote:
>> On Friday, 21 August 2015 12:01:25 UTC+1, bitrex  wrote:
>>> On 8/21/2015 6:52 AM, bitrex wrote:
>>>> On 8/21/2015 5:41 AM, gm wrote:
>>>>> Hi.
>>>>>
>>>>> I have one alarm station that has 16 outputs.
>>>>> On each of this outputs you can read out some voltage change from 1
>>>>> - 1,5V ( when in alarm state ).
>>>>>
>>>>> To save space and money i was planning to hook up one multiplexer to
>>>>> those outputs and then other part of multiplexer to raspberry PI
>>>>> GPIO.
>>>>>
>>>>> Did someone try to make something like this ?
>>>>
>>>> If all you need to know is if _a_ alarm is going off, not what
>>>> particular one, you could use 4 LM339 quad comparators, one section
>>>> for each alarm channel.  Set them up with a reference voltage on one
>>>> input and and some hysteresis, and since they have open collector
>>>> outputs, the outputs can be OR-ed together into one "digital" output
>>>> that pulls down when one of the comparators is triggered.
>>>>
>>>> Please see page 10 of the following datasheet:
>>>>
>>>> https://www.jameco.com/Jameco/Products/ProdDS/838727.pdf
>>>
>>> Actually, if the threshold voltages on all the comparators are going
>>> to be the same, you could use fewer ICs - see page 7 of the datasheet
>>> for an "OR" gate that accepts multiple inputs.
>>>
>>> I don't think I'd like to try to put 16 inputs all to 1 IC, but I'd
>>> feel comfortable using a LM339 quad and putting 4 inputs into each,
>>> and then ORing the outputs of each 4 input OR gate together.
>>>
>>> You can also do a multiple input OR gate with hysteresis.
>>
>> Just use 16 diodes, followed by one comparator to restore levels.
>>
>>
>> NT
>>
> -------------
> I need to know which alarm is turned ON. This is the main thing.
> So you have 16 different alarms. I was thinking that there is a way to
> output those signals on single digital line. So i can read them as
> binary value.
> 
> Your suggestion is OK but i need to record each alarm state.
> Alarm from each sensor...

Well, if you have just ONE digital line, how are you going to tell which 
one of SIXTEEN alarms are active?

You can do it with some sort of wacky coding scheme (reinventing 
asynchronous serial is probably easiest), but it will take a bunch of 
circuitry -- and you'll need to start with sixteen comparators.

Or if you want to stick to a Raspberry PI sort of level of technical 
expertise, you could use an Arduino as a peripheral.

-- 

Tim Wescott
Wescott Design Services
http://www.wescottdesign.com

[toc] | [prev] | [next] | [standalone]


#373971

Fromrickman <gnuarm@gmail.com>
Date2015-08-21 12:25 -0400
Message-ID<mr7jan$vro$1@dont-email.me>
In reply to#373940
On 8/21/2015 7:54 AM, gm wrote:
> On 21.08.2015 13:38, tabbypurr@gmail.com wrote:
>> On Friday, 21 August 2015 12:01:25 UTC+1, bitrex  wrote:
>>> On 8/21/2015 6:52 AM, bitrex wrote:
>>>> On 8/21/2015 5:41 AM, gm wrote:
>>>>> Hi.
>>>>>
>>>>> I have one alarm station that has 16 outputs.
>>>>> On each of this outputs you can read out some voltage change from 1 -
>>>>> 1,5V ( when in alarm state ).
>>>>>
>>>>> To save space and money i was planning to hook up one multiplexer to
>>>>> those outputs and then other part of multiplexer to raspberry PI GPIO.
>>>>>
>>>>> Did someone try to make something like this ?
>>>>
>>>> If all you need to know is if _a_ alarm is going off, not what
>>>> particular one, you could use 4 LM339 quad comparators, one section for
>>>> each alarm channel.  Set them up with a reference voltage on one input
>>>> and and some hysteresis, and since they have open collector outputs,
>>>> the
>>>> outputs can be OR-ed together into one "digital" output that pulls down
>>>> when one of the comparators is triggered.
>>>>
>>>> Please see page 10 of the following datasheet:
>>>>
>>>> https://www.jameco.com/Jameco/Products/ProdDS/838727.pdf
>>>
>>> Actually, if the threshold voltages on all the comparators are going to
>>> be the same, you could use fewer ICs - see page 7 of the datasheet for
>>> an "OR" gate that accepts multiple inputs.
>>>
>>> I don't think I'd like to try to put 16 inputs all to 1 IC, but I'd feel
>>> comfortable using a LM339 quad and putting 4 inputs into each, and then
>>> ORing the outputs of each 4 input OR gate together.
>>>
>>> You can also do a multiple input OR gate with hysteresis.
>>
>> Just use 16 diodes, followed by one comparator to restore levels.
>>
>>
>> NT
>>
> -------------
> I need to know which alarm is turned ON. This is the main thing.
> So you have 16 different alarms. I was thinking that there is a way to
> output those signals on single digital line. So i can read them as
> binary value.
>
> Your suggestion is OK but i need to record each alarm state.
> Alarm from each sensor...

I'm not sure what you are thinking exactly.  If you want to multiplex 8 
inputs onto one input you need to control the mux with 4 outputs.  Is 
that what you are thinking?

I'd say the easiest way to do this is to use a 16 input analog mux chip 
to select the input to test, then use a single comparator to accurately 
set the threshold level.  The digital output of the comparator is used 
to drive your computer input.

-- 

Rick

[toc] | [prev] | [next] | [standalone]


#373994

FromJohn Fields <jfields@austininstruments.com>
Date2015-08-21 14:19 -0500
Message-ID<8rtetadhjofs4fdib015qf42nn4io2it3d@4ax.com>
In reply to#373940
On Fri, 21 Aug 2015 13:54:41 +0200, gm <notMyMail@mail.not> wrote:

>On 21.08.2015 13:38, tabbypurr@gmail.com wrote:
>> On Friday, 21 August 2015 12:01:25 UTC+1, bitrex  wrote:
>>> On 8/21/2015 6:52 AM, bitrex wrote:
>>>> On 8/21/2015 5:41 AM, gm wrote:
>>>>> Hi.
>>>>>
>>>>> I have one alarm station that has 16 outputs.
>>>>> On each of this outputs you can read out some voltage change from 1 -
>>>>> 1,5V ( when in alarm state ).
>>>>>
>>>>> To save space and money i was planning to hook up one multiplexer to
>>>>> those outputs and then other part of multiplexer to raspberry PI GPIO.
>>>>>
>>>>> Did someone try to make something like this ?
>>>>
>>>> If all you need to know is if _a_ alarm is going off, not what
>>>> particular one, you could use 4 LM339 quad comparators, one section for
>>>> each alarm channel.  Set them up with a reference voltage on one input
>>>> and and some hysteresis, and since they have open collector outputs, the
>>>> outputs can be OR-ed together into one "digital" output that pulls down
>>>> when one of the comparators is triggered.
>>>>
>>>> Please see page 10 of the following datasheet:
>>>>
>>>> https://www.jameco.com/Jameco/Products/ProdDS/838727.pdf
>>>
>>> Actually, if the threshold voltages on all the comparators are going to
>>> be the same, you could use fewer ICs - see page 7 of the datasheet for
>>> an "OR" gate that accepts multiple inputs.
>>>
>>> I don't think I'd like to try to put 16 inputs all to 1 IC, but I'd feel
>>> comfortable using a LM339 quad and putting 4 inputs into each, and then
>>> ORing the outputs of each 4 input OR gate together.
>>>
>>> You can also do a multiple input OR gate with hysteresis.
>>
>> Just use 16 diodes, followed by one comparator to restore levels.
>>
>>
>> NT
>>
>-------------
>I need to know which alarm is turned ON. This is the main thing.
>So you have 16 different alarms. I was thinking that there is a way to
>output those signals on single digital line. So i can read them as 
>binary value.
>
>Your suggestion is OK but i need to record each alarm state.
>Alarm from each sensor...

---
You could use a 16 to 1 mux with its address inputs driven by 4 output
bits from the PI and the corrersponding data bit driving an ADC or
analog comparator input of the PI.

If it has neither an ADC nor comparator input,  use an external
voltage comparator with its output wired to a PI digital input.

John Fields

[toc] | [prev] | [next] | [standalone]


#374016

Fromtabbypurr@gmail.com
Date2015-08-21 14:59 -0700
Message-ID<467609f9-55f3-4717-b71e-8b6649e691b2@googlegroups.com>
In reply to#373940
On Friday, 21 August 2015 12:54:46 UTC+1, gm  wrote:
> On 21.08.2015 13:38, nt wrote:
> > On Friday, 21 August 2015 12:01:25 UTC+1, bitrex  wrote:
> >> On 8/21/2015 6:52 AM, bitrex wrote:
> >>> On 8/21/2015 5:41 AM, gm wrote:
> >>>> Hi.
> >>>>
> >>>> I have one alarm station that has 16 outputs.
> >>>> On each of this outputs you can read out some voltage change from 1 -
> >>>> 1,5V ( when in alarm state ).
> >>>>
> >>>> To save space and money i was planning to hook up one multiplexer to
> >>>> those outputs and then other part of multiplexer to raspberry PI GPIO.
> >>>>
> >>>> Did someone try to make something like this ?
> >>>
> >>> If all you need to know is if _a_ alarm is going off, not what
> >>> particular one, you could use 4 LM339 quad comparators, one section for
> >>> each alarm channel.  Set them up with a reference voltage on one input
> >>> and and some hysteresis, and since they have open collector outputs, the
> >>> outputs can be OR-ed together into one "digital" output that pulls down
> >>> when one of the comparators is triggered.
> >>>
> >>> Please see page 10 of the following datasheet:
> >>>
> >>> https://www.jameco.com/Jameco/Products/ProdDS/838727.pdf
> >>
> >> Actually, if the threshold voltages on all the comparators are going to
> >> be the same, you could use fewer ICs - see page 7 of the datasheet for
> >> an "OR" gate that accepts multiple inputs.
> >>
> >> I don't think I'd like to try to put 16 inputs all to 1 IC, but I'd feel
> >> comfortable using a LM339 quad and putting 4 inputs into each, and then
> >> ORing the outputs of each 4 input OR gate together.
> >>
> >> You can also do a multiple input OR gate with hysteresis.
> >
> > Just use 16 diodes, followed by one comparator to restore levels.

> I need to know which alarm is turned ON. This is the main thing.
> So you have 16 different alarms. I was thinking that there is a way to
> output those signals on single digital line. So i can read them as 
> binary value.
> 
> Your suggestion is OK but i need to record each alarm state.
> Alarm from each sensor...

Your question seems a bit vague. There are various ways to squeeze 16 bits onto 1 line, but you're not telling us much, other than the above, about which would suit you best. So I'm not sure I see the constructiveness in making more, inevitably guessed, suggestions. Really you need to tell us your likes and dislikes about the various options.


NT

[toc] | [prev] | [next] | [standalone]


#373944

Frombitrex <bitrex@de.lete.earthlink.net>
Date2015-08-21 08:35 -0400
Message-ID<55d71b0a$0$5444$4c5ecfc7@frugalusenet.com>
In reply to#373937
On 8/21/2015 7:38 AM, tabbypurr@gmail.com wrote:
> On Friday, 21 August 2015 12:01:25 UTC+1, bitrex  wrote:
>> On 8/21/2015 6:52 AM, bitrex wrote:
>>> On 8/21/2015 5:41 AM, gm wrote:
>>>> Hi.
>>>>
>>>> I have one alarm station that has 16 outputs.
>>>> On each of this outputs you can read out some voltage change from 1 -
>>>> 1,5V ( when in alarm state ).
>>>>
>>>> To save space and money i was planning to hook up one multiplexer to
>>>> those outputs and then other part of multiplexer to raspberry PI GPIO.
>>>>
>>>> Did someone try to make something like this ?
>>>
>>> If all you need to know is if _a_ alarm is going off, not what
>>> particular one, you could use 4 LM339 quad comparators, one section for
>>> each alarm channel.  Set them up with a reference voltage on one input
>>> and and some hysteresis, and since they have open collector outputs, the
>>> outputs can be OR-ed together into one "digital" output that pulls down
>>> when one of the comparators is triggered.
>>>
>>> Please see page 10 of the following datasheet:
>>>
>>> https://www.jameco.com/Jameco/Products/ProdDS/838727.pdf
>>
>> Actually, if the threshold voltages on all the comparators are going to
>> be the same, you could use fewer ICs - see page 7 of the datasheet for
>> an "OR" gate that accepts multiple inputs.
>>
>> I don't think I'd like to try to put 16 inputs all to 1 IC, but I'd feel
>> comfortable using a LM339 quad and putting 4 inputs into each, and then
>> ORing the outputs of each 4 input OR gate together.
>>
>> You can also do a multiple input OR gate with hysteresis.
>
> Just use 16 diodes, followed by one comparator to restore levels.
>
>
> NT
>

I guess that works OK, assuming that all the outputs of whatever the 
"alarm" is are low impedance.  But he says he needs to know which 
particular alarm is going off, so I guess it's moot...

[toc] | [prev] | [next] | [standalone]


#373999

Fromwhit3rd <whit3rd@gmail.com>
Date2015-08-21 12:47 -0700
Message-ID<df7e781b-8516-419e-b166-ae44b0c02be7@googlegroups.com>
In reply to#373931
On Friday, August 21, 2015 at 2:41:58 AM UTC-7, gm wrote:

> I have one alarm station that has 16 outputs.
> On each of this outputs you can read out some voltage change 

 Does that mean that there's a power supply behind those
sixteen signals?  How much power is available from that source?

> To save space and money i was planning to hook up one multiplexer to 
> those outputs and then other part of multiplexer to raspberry PI GPIO.

You could connect the rPI through an eight-wire cable (Cat5 style)
to a sixteen-input analog MUX chip.   Four wires of address (gives
sixteen possibilities), one wire for DC power, one for ground, one
for connect enable/disable (optional, so the rPI port can be later connected
to other 16-bit nodes later).  This will use 4 or 5 GPIO output pins
and one analog input pin of your rPI.

74HC4067 is a 16-1 multiplexer chip that works on low voltage
power (3.3V from the rPI?).   Two 74HC4051 8-to-1 muxes would
also work (three address wires, two enable wires).

[toc] | [prev] | [next] | [standalone]


#374018

FromKlaus Kragelund <klauskvik@hotmail.com>
Date2015-08-21 15:16 -0700
Message-ID<8c6ab96f-b565-4819-a099-b63de011238c@googlegroups.com>
In reply to#373931
Split the lines into 2 x 8. Add binary weighed resistors to yield 2 analog signals. Sample this signal on the receiving side

Cheers

Klaus

[toc] | [prev] | [next] | [standalone]


#374026

FromJasen Betts <jasen@xnet.co.nz>
Date2015-08-21 23:52 +0000
Message-ID<mr8djo$40e$2@gonzo.alcatraz>
In reply to#373931
On 2015-08-21, gm <notmy@mail.com> wrote:
> Hi.
>
> I have one alarm station that has 16 outputs.
> On each of this outputs you can read out some voltage change from 1 - 
> 1,5V ( when in alarm state ).

These outputs are actually the terminals on LEDs, right? add a 100K
pull-down resistor, check performance, and measure again.

> To save space and money i was planning to hook up one multiplexer to 
> those outputs and then other part of multiplexer to raspberry PI GPIO.

sounds like you want a parallel-in serial out shift register.

3 wires pins to the raspberry pi GPIO, 16 to the alarm outputs,
there's 8 bit chips easily had, so you'd need 2 of them to make
a 16 bit unit. but that voltage will need to be converted to something
more sensible first,  a couple of ULN2008s and some pull-up resistors
could be all it takes. (ULN2008 used off-label as it just happens to have
its threshold in about the right place)

> Did someone try to make something like this ?

yeah, it's all been done before.


-- 
  \_(ツ)_

[toc] | [prev] | [next] | [standalone]


#374269

Fromgm <notmy@mail.com>
Date2015-08-24 11:42 +0200
Message-ID<mreotd$1r4$1@l01news1.ot.hr>
In reply to#374026
On 08/22/2015 01:52 AM, Jasen Betts wrote:
> On 2015-08-21, gm <notmy@mail.com> wrote:
>> Hi.
>>
>> I have one alarm station that has 16 outputs.
>> On each of this outputs you can read out some voltage change from 1 -
>> 1,5V ( when in alarm state ).
>
> These outputs are actually the terminals on LEDs, right? add a 100K
> pull-down resistor, check performance, and measure again.
>
>> To save space and money i was planning to hook up one multiplexer to
>> those outputs and then other part of multiplexer to raspberry PI GPIO.
>
> sounds like you want a parallel-in serial out shift register.
>
> 3 wires pins to the raspberry pi GPIO, 16 to the alarm outputs,
> there's 8 bit chips easily had, so you'd need 2 of them to make
> a 16 bit unit. but that voltage will need to be converted to something
> more sensible first,  a couple of ULN2008s and some pull-up resistors
> could be all it takes. (ULN2008 used off-label as it just happens to have
> its threshold in about the right place)
>
>> Did someone try to make something like this ?
>
> yeah, it's all been done before.
>
>
-----------------
Thank you all for reply !

So basically you have one alarm station like -paradox-.
There is a YT video that explains almost all :

https://www.youtube.com/watch?v=TuO7_Nd9s00

When i detect voltage change on connectors:
COM - Z1
COM - Z2
COM - Z3
COM - Z4

i should log this data on RSP.
All sensors are powered with 12VDC but i have to check how much is the 
voltage difference when the system is in alarm state. I think it's 
around 1,5V.

According to your suggestions there are few options.
Is there some ready made device that i can just hook up to alarm panel 
outputs and directly to RSP ? I can use 2x 8 pin solution.

Regards !

[toc] | [prev] | [next] | [standalone]


#374280

Fromrickman <gnuarm@gmail.com>
Date2015-08-24 09:09 -0400
Message-ID<mrf4um$kuq$2@dont-email.me>
In reply to#374269
On 8/24/2015 5:42 AM, gm wrote:
> On 08/22/2015 01:52 AM, Jasen Betts wrote:
>> On 2015-08-21, gm <notmy@mail.com> wrote:
>>> Hi.
>>>
>>> I have one alarm station that has 16 outputs.
>>> On each of this outputs you can read out some voltage change from 1 -
>>> 1,5V ( when in alarm state ).
>>
>> These outputs are actually the terminals on LEDs, right? add a 100K
>> pull-down resistor, check performance, and measure again.
>>
>>> To save space and money i was planning to hook up one multiplexer to
>>> those outputs and then other part of multiplexer to raspberry PI GPIO.
>>
>> sounds like you want a parallel-in serial out shift register.
>>
>> 3 wires pins to the raspberry pi GPIO, 16 to the alarm outputs,
>> there's 8 bit chips easily had, so you'd need 2 of them to make
>> a 16 bit unit. but that voltage will need to be converted to something
>> more sensible first,  a couple of ULN2008s and some pull-up resistors
>> could be all it takes. (ULN2008 used off-label as it just happens to have
>> its threshold in about the right place)
>>
>>> Did someone try to make something like this ?
>>
>> yeah, it's all been done before.
>>
>>
> -----------------
> Thank you all for reply !
>
> So basically you have one alarm station like -paradox-.
> There is a YT video that explains almost all :
>
> https://www.youtube.com/watch?v=TuO7_Nd9s00
>
> When i detect voltage change on connectors:
> COM - Z1
> COM - Z2
> COM - Z3
> COM - Z4
>
> i should log this data on RSP.
> All sensors are powered with 12VDC but i have to check how much is the
> voltage difference when the system is in alarm state. I think it's
> around 1,5V.
>
> According to your suggestions there are few options.
> Is there some ready made device that i can just hook up to alarm panel
> outputs and directly to RSP ? I can use 2x 8 pin solution.

I can't say for sure because I don't have this alarm panel, but I would 
expect more than 1.5 V.  When I worked with alarm systems they put the 
full battery voltage on the wire pair.  The pair went to all the 
switches in a loop and back to the panel so that if the wire were cut or 
shorted, it could be detected.  The voltage would switch between zero 
and the full battery voltage.  This panel is not wired that way, so I 
can't say what voltage is placed on the wires.

Have you measured the voltages on the zone wires?  I expect you will be 
designing a more complex circuit.

-- 

Rick

[toc] | [prev] | [next] | [standalone]


#374525

Fromgm <notmy@mail.com>
Date2015-08-26 13:39 +0200
Message-ID<mrk8ie$g85$1@l01news1.ot.hr>
In reply to#374280
On 08/24/2015 03:09 PM, rickman wrote:
> On 8/24/2015 5:42 AM, gm wrote:
>> On 08/22/2015 01:52 AM, Jasen Betts wrote:
>>> On 2015-08-21, gm <notmy@mail.com> wrote:
>>>> Hi.
>>>>
>>>> I have one alarm station that has 16 outputs.
>>>> On each of this outputs you can read out some voltage change from 1 -
>>>> 1,5V ( when in alarm state ).
>>>
>>> These outputs are actually the terminals on LEDs, right? add a 100K
>>> pull-down resistor, check performance, and measure again.
>>>
>>>> To save space and money i was planning to hook up one multiplexer to
>>>> those outputs and then other part of multiplexer to raspberry PI GPIO.
>>>
>>> sounds like you want a parallel-in serial out shift register.
>>>
>>> 3 wires pins to the raspberry pi GPIO, 16 to the alarm outputs,
>>> there's 8 bit chips easily had, so you'd need 2 of them to make
>>> a 16 bit unit. but that voltage will need to be converted to something
>>> more sensible first,  a couple of ULN2008s and some pull-up resistors
>>> could be all it takes. (ULN2008 used off-label as it just happens to
>>> have
>>> its threshold in about the right place)
>>>
>>>> Did someone try to make something like this ?
>>>
>>> yeah, it's all been done before.
>>>
>>>
>> -----------------
>> Thank you all for reply !
>>
>> So basically you have one alarm station like -paradox-.
>> There is a YT video that explains almost all :
>>
>> https://www.youtube.com/watch?v=TuO7_Nd9s00
>>
>> When i detect voltage change on connectors:
>> COM - Z1
>> COM - Z2
>> COM - Z3
>> COM - Z4
>>
>> i should log this data on RSP.
>> All sensors are powered with 12VDC but i have to check how much is the
>> voltage difference when the system is in alarm state. I think it's
>> around 1,5V.
>>
>> According to your suggestions there are few options.
>> Is there some ready made device that i can just hook up to alarm panel
>> outputs and directly to RSP ? I can use 2x 8 pin solution.
>
> I can't say for sure because I don't have this alarm panel, but I would
> expect more than 1.5 V.  When I worked with alarm systems they put the
> full battery voltage on the wire pair.  The pair went to all the
> switches in a loop and back to the panel so that if the wire were cut or
> shorted, it could be detected.  The voltage would switch between zero
> and the full battery voltage.  This panel is not wired that way, so I
> can't say what voltage is placed on the wires.
>
> Have you measured the voltages on the zone wires?  I expect you will be
> designing a more complex circuit.
>
-------------------
Is someone interested in schematics and board design for this PCB ?
Of course, with some financial backup :-)

I would go with 74HC4067 + 4 wires to RSP ( GPIO switching ) and ADC ( 
for reading ) + voltage divider.

GM

[toc] | [prev] | [standalone]


Back to top | Article view | sci.electronics.design


csiph-web