Electronics (alt.electronics)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Ryan Kremser
 
Posts: n/a
Default computer interface help with at least 29 output ports

Hello I am new to computer interfaces and i need something which i can drive
at least 29 devices via relay. No inputs with this though. Nothing fancy
just either on or off. What hardware would i need to do this? what kind of
price range are we talking? Thanks in advance


  #2   Report Post  
 
Posts: n/a
Default computer interface help with at least 29 output ports

Ryan Kremser wrote:

Hello I am new to computer interfaces and i need something which i can drive
at least 29 devices via relay. No inputs with this though. Nothing fancy
just either on or off. What hardware would i need to do this? what kind of
price range are we talking? Thanks in advance


Boondog have a board that can be configured to have 24 digital outputs.
You could install 2 of them in your pc.

www.boondog.com

--

David
  #3   Report Post  
Andrew Howard
 
Posts: n/a
Default computer interface help with at least 29 output ports

If you want to build something yourself, you might find some ideas at:
http://discolitez.com/circuits.shtml
look for 'deluxe32'. It uses the parallel port to control up to 32 things.

Andrew Howard


"Ryan Kremser" wrote in message
s.com...
Hello I am new to computer interfaces and i need something which i can

drive
at least 29 devices via relay. No inputs with this though. Nothing fancy
just either on or off. What hardware would i need to do this? what kind

of
price range are we talking? Thanks in advance




  #4   Report Post  
petrus bitbyter
 
Posts: n/a
Default computer interface help with at least 29 output ports


"Ryan Kremser" schreef in bericht
s.com...
Hello I am new to computer interfaces and i need something which i can

drive
at least 29 devices via relay. No inputs with this though. Nothing fancy
just either on or off. What hardware would i need to do this? what kind

of
price range are we talking? Thanks in advance



Ryan,

You can use an EPP (printer) port. This way you can use a separate address-
and databyte. Using a 374 type of address register you can enable or disable
up to eight 473 type data registers without address decoding. That gives you
256 output pins which sure will be enough.

Do you really need relays to switch your equipment? They tend to be pretty
expensive and need a good amount of current. So for twentynine relays you
may end up to need some 3A of current. If you want to switch the mains,
solid state relais are a better choice. (Although they are not cheap
either.) You can also use triacs and optocouplers but you will need some
extra parts so you're building your own solid state relais this way.

Except from the hardware you'll also need some software. Newer (NT based)
Windows versions will not allow you to write directly to the output ports.
One of the methods to circumvent these problem is using a special driver.
For instance:
http://www.paraport.net/

pieter


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.515 / Virus Database: 313 - Release Date: 1-9-2003

  #5   Report Post  
Ryan Kremser
 
Posts: n/a
Default computer interface help with at least 29 output ports

actually solid state would probably be a better solution for me, for the
most part all i'll be switching is 5 or 12 volt lines. If you could
point me to some more information with the printer port it would help me
out a lot, so far this seems to be the best option. I was actually
planning on running this through dos, complied used c++ as there will be
no monitor on the system and it will require fast boot and response
times. Any better alternatives to dos or will i still be able to access
the parallel port in the same way. again thanks in advance

petrus bitbyter wrote:
Ryan,

You can use an EPP (printer) port. This way you can use a separate address-
and databyte. Using a 374 type of address register you can enable or disable
up to eight 473 type data registers without address decoding. That gives you
256 output pins which sure will be enough.

Do you really need relays to switch your equipment? They tend to be pretty
expensive and need a good amount of current. So for twentynine relays you
may end up to need some 3A of current. If you want to switch the mains,
solid state relais are a better choice. (Although they are not cheap
either.) You can also use triacs and optocouplers but you will need some
extra parts so you're building your own solid state relais this way.

Except from the hardware you'll also need some software. Newer (NT based)
Windows versions will not allow you to write directly to the output ports.
One of the methods to circumvent these problem is using a special driver.
For instance:
http://www.paraport.net/

pieter




  #6   Report Post  
petrus bitbyter
 
Posts: n/a
Default computer interface help with at least 29 output ports

Ryan,

A very thorough treatment of the parallel port interface you will find :
http://www.beyondlogic.org/

If you read the EPP part you will find out that for output only, you can use
the method of address- and data register also with a standard parallel
printer port. So with five (LS)374 (*not 473*) you can have 32 outputs. Some
Googling and you'll find the datasheet.

For low voltages (15V) and low currents (0.5A) a solid state relay will be
overkill. A small (reed) relay will do. Farnell sells HE221A0590 from
Breed/Hamlin priced about 3 euro. FAIK it's one of the cheapest. This relay
will need only a 15mA at 5V so with all outputs on, you still require only
about 0.5A. You'd better not use this relay to switch the mains unless you
want to start fireworks.

The outputs of the 374 cannot source the 15mA required so you have to use a
transistor or an open collector/drain buffer p.e. a HC07. Keep in mind that
a transistor will invert the logic. Always place a diode parallel to the
relay coil.

pieter

"Ryan Kremser" schreef in bericht
s.com...
actually solid state would probably be a better solution for me, for the
most part all i'll be switching is 5 or 12 volt lines. If you could
point me to some more information with the printer port it would help me
out a lot, so far this seems to be the best option. I was actually
planning on running this through dos, complied used c++ as there will be
no monitor on the system and it will require fast boot and response
times. Any better alternatives to dos or will i still be able to access
the parallel port in the same way. again thanks in advance

petrus bitbyter wrote:
Ryan,

You can use an EPP (printer) port. This way you can use a separate

address-
and databyte. Using a 374 type of address register you can enable or

disable
up to eight 473 type data registers without address decoding. That gives

you
256 output pins which sure will be enough.

Do you really need relays to switch your equipment? They tend to be

pretty
expensive and need a good amount of current. So for twentynine relays

you
may end up to need some 3A of current. If you want to switch the mains,
solid state relais are a better choice. (Although they are not cheap
either.) You can also use triacs and optocouplers but you will need some
extra parts so you're building your own solid state relais this way.

Except from the hardware you'll also need some software. Newer (NT

based)
Windows versions will not allow you to write directly to the output

ports.
One of the methods to circumvent these problem is using a special

driver.
For instance:
http://www.paraport.net/

pieter




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.515 / Virus Database: 313 - Release Date: 2-9-2003

  #7   Report Post  
Ryan Kremser
 
Posts: n/a
Default computer interface help with at least 29 output ports

is there an easy way to add maybe 136 more address easily, previously i was
looking into using a led counter to accept a pulse to incriment the value
but now that i'm looking it seems to be a bit more expensive than i was
hoping. I need to be able to drive 6 - 3 digit (7 segment) displays. plus
an extra 10 could make another aspect a bit easier. Would it actully be a
good idea to use these outputs to control the led's or even with the
difference in price would the counters be a better solution?

"petrus bitbyter" wrote in message
. ..
Ryan,

A very thorough treatment of the parallel port interface you will find :
http://www.beyondlogic.org/

If you read the EPP part you will find out that for output only, you can

use
the method of address- and data register also with a standard parallel
printer port. So with five (LS)374 (*not 473*) you can have 32 outputs.

Some
Googling and you'll find the datasheet.

For low voltages (15V) and low currents (0.5A) a solid state relay will

be
overkill. A small (reed) relay will do. Farnell sells HE221A0590 from
Breed/Hamlin priced about 3 euro. FAIK it's one of the cheapest. This

relay
will need only a 15mA at 5V so with all outputs on, you still require only
about 0.5A. You'd better not use this relay to switch the mains unless

you
want to start fireworks.

The outputs of the 374 cannot source the 15mA required so you have to use

a
transistor or an open collector/drain buffer p.e. a HC07. Keep in mind

that
a transistor will invert the logic. Always place a diode parallel to the
relay coil.

pieter

"Ryan Kremser" schreef in bericht
s.com...
actually solid state would probably be a better solution for me, for the
most part all i'll be switching is 5 or 12 volt lines. If you could
point me to some more information with the printer port it would help me
out a lot, so far this seems to be the best option. I was actually
planning on running this through dos, complied used c++ as there will be
no monitor on the system and it will require fast boot and response
times. Any better alternatives to dos or will i still be able to access
the parallel port in the same way. again thanks in advance

petrus bitbyter wrote:
Ryan,

You can use an EPP (printer) port. This way you can use a separate

address-
and databyte. Using a 374 type of address register you can enable or

disable
up to eight 473 type data registers without address decoding. That

gives
you
256 output pins which sure will be enough.

Do you really need relays to switch your equipment? They tend to be

pretty
expensive and need a good amount of current. So for twentynine relays

you
may end up to need some 3A of current. If you want to switch the

mains,
solid state relais are a better choice. (Although they are not cheap
either.) You can also use triacs and optocouplers but you will need

some
extra parts so you're building your own solid state relais this way.

Except from the hardware you'll also need some software. Newer (NT

based)
Windows versions will not allow you to write directly to the output

ports.
One of the methods to circumvent these problem is using a special

driver.
For instance:
http://www.paraport.net/

pieter




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.515 / Virus Database: 313 - Release Date: 2-9-2003



  #8   Report Post  
 
Posts: n/a
Default computer interface help with at least 29 output ports

Ryan Kremser wrote:

is there an easy way to add maybe 136 more address easily, previously i was
looking into using a led counter to accept a pulse to incriment the value
but now that i'm looking it seems to be a bit more expensive than i was
hoping. I need to be able to drive 6 - 3 digit (7 segment) displays. plus
an extra 10 could make another aspect a bit easier. Would it actully be a
good idea to use these outputs to control the led's or even with the
difference in price would the counters be a better solution?


If you're thinking of using 136 or more addresses to directly drive individual LEDs,
then I suggest that you look at an alternative method. Directly driving that many
LEDs, without multiplexing, would require a substantial power supply. 140 leds x 20mA
per led = 2.8amps, not to mention the complex wiring (thinking of a rats nest) to each led.

All that being said, what is the application? Why do you need 6 x 3 digit 7 segment displays?
What do they need to display, how frequent are the updates, what is the trigger
to update the display information, are the displays to be mounted adjacent to
one another to make a larger display, etc?

If we knew more about the application, perhaps we could suggest a solution that may be
easier and more appropriate to implement, rather than guessing.

That being said, here's my guess.

One solution I have in mind would be to use Maxim's MAX6958. The display is a 4 digit,
9 segment multiplexed display driver, with I2C serial data input. This solution still
requires a MAX6958 for each 3 digit display group, and a separate ucontroller/PC which
would receive the trigger(s), and to send the data/updates to the displays.

Some advantages a
1. The displays are multiplexed, therefore the overall current used is less than for a
static display.
2. The driving circuits are within an external chip, which removes the requirement
of constant refreshing by a microcontroller.
3. The MAX6958 has an I2C serial input (2 wires, data and clock), which makes it easier to drive.
The addressing of each device could be solved by using an external decoder, such as a
74HC4051, or CMOS 4051, which could gate the clock of the I2C.
4. The MAX6958 has only 16 pins, therefore there's less wiring.
5. You can get some free samples from Maxim, (limited to 3 I think) so you could play
with them before committing yourself.

If you want the datasheet, type in "MAX6958" into Maxim's search engine at their
website www.maxim-ic.com.

Then again, if you're feeling adventurous, you could roll-your-own by designing a
circuit that uses a PIC or similar microcontroller to receive the trigger data from
each source, and to drive each bank of 3 x 7 segment displays.

--

David
  #9   Report Post  
petrus bitbyter
 
Posts: n/a
Default computer interface help with at least 29 output ports

Using the address- and dataregister approach you can have 8*8= output lines
without address decoder. (So not 2^8=256 like I wrote in a previous
posting.) But with an address decoder you can have 2^8*8=2048 output lines.

To outline the electronic part of the project I'll start with the component
choice. The old 74LSxx serie will do but the 74HCTxx is slightly newer but
consumes much less energy.

Connecting a lot of components to the parallel port you'd better first
buffer its output lines. A couple of HCT245 bus transceivers will do. One
HCT245 and a HCT14 will be some cents cheaper.

The address register may be a HCT374 like I mentioned before. Use pin 17
(Select printer, this is the EPP Address Strobe) of the LPT interface to
clock this register.

You initially required four dataregisters. Adding 3*6=18 seven segment
displays will add another eighteen. Add two for various purposes and you
will end up with twentyfour dataregisters. Clock this registers with pin 14
(Auto Linefeed/Data Strobe) of the LPT interface anded with the the
appropriate address selection line.

An addressdecoder is easily build with four HCT138. You can use two bits of
the address register to select one of the HCT138s and three bits to select a
line of the selected 138. This way you can create the twentyfour address
selection lines, one for every dataregister. Keep in mind that the outputs
of the HCT138 are active low.

It is possible of course to put all this logic on one board and hope you get
it to work. A far better approach is building units that can be build and
tested separately.

pieter

"Ryan Kremser" schreef in bericht
s.com...
is there an easy way to add maybe 136 more address easily, previously i

was
looking into using a led counter to accept a pulse to incriment the value
but now that i'm looking it seems to be a bit more expensive than i was
hoping. I need to be able to drive 6 - 3 digit (7 segment) displays.

plus
an extra 10 could make another aspect a bit easier. Would it actully be a
good idea to use these outputs to control the led's or even with the
difference in price would the counters be a better solution?

"petrus bitbyter" wrote in message
. ..
Ryan,

A very thorough treatment of the parallel port interface you will find :
http://www.beyondlogic.org/

If you read the EPP part you will find out that for output only, you can

use
the method of address- and data register also with a standard parallel
printer port. So with five (LS)374 (*not 473*) you can have 32 outputs.

Some
Googling and you'll find the datasheet.

For low voltages (15V) and low currents (0.5A) a solid state relay

will
be
overkill. A small (reed) relay will do. Farnell sells HE221A0590 from
Breed/Hamlin priced about 3 euro. FAIK it's one of the cheapest. This

relay
will need only a 15mA at 5V so with all outputs on, you still require

only
about 0.5A. You'd better not use this relay to switch the mains unless

you
want to start fireworks.

The outputs of the 374 cannot source the 15mA required so you have to

use
a
transistor or an open collector/drain buffer p.e. a HC07. Keep in mind

that
a transistor will invert the logic. Always place a diode parallel to the
relay coil.

pieter

"Ryan Kremser" schreef in bericht
s.com...
actually solid state would probably be a better solution for me, for

the
most part all i'll be switching is 5 or 12 volt lines. If you could
point me to some more information with the printer port it would help

me
out a lot, so far this seems to be the best option. I was actually
planning on running this through dos, complied used c++ as there will

be
no monitor on the system and it will require fast boot and response
times. Any better alternatives to dos or will i still be able to

access
the parallel port in the same way. again thanks in advance

petrus bitbyter wrote:
Ryan,

You can use an EPP (printer) port. This way you can use a separate

address-
and databyte. Using a 374 type of address register you can enable or

disable
up to eight 473 type data registers without address decoding. That

gives
you
256 output pins which sure will be enough.

Do you really need relays to switch your equipment? They tend to be

pretty
expensive and need a good amount of current. So for twentynine

relays
you
may end up to need some 3A of current. If you want to switch the

mains,
solid state relais are a better choice. (Although they are not cheap
either.) You can also use triacs and optocouplers but you will need

some
extra parts so you're building your own solid state relais this way.

Except from the hardware you'll also need some software. Newer (NT

based)
Windows versions will not allow you to write directly to the output

ports.
One of the methods to circumvent these problem is using a special

driver.
For instance:
http://www.paraport.net/

pieter



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.515 / Virus Database: 313 - Release Date: 2-9-2003





---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.515 / Virus Database: 313 - Release Date: 1-9-2003

  #10   Report Post  
Dale
 
Posts: n/a
Default computer interface help with at least 29 output ports

"Ryan Kremser" wrote in message ws.com...
Hello I am new to computer interfaces and i need something which i can drive
at least 29 devices via relay. No inputs with this though. Nothing fancy
just either on or off. What hardware would i need to do this? what kind of
price range are we talking? Thanks in advance


Have a look at dallas maxim, they have drivers which you can drive
through SPI ports etc.... www.maxim-ic.com


  #11   Report Post  
Ryan Kremser
 
Posts: n/a
Default computer interface help with at least 29 output ports

I just wanted to say thanks for all the help, I'm going to get started
ordering components and putting some stuff together, i'm sure i'l be around
with more questions but for now I think i have enough to start with. Again
thanks.

"Ryan Kremser" wrote in message
s.com...
Hello I am new to computer interfaces and i need something which i can

drive
at least 29 devices via relay. No inputs with this though. Nothing fancy
just either on or off. What hardware would i need to do this? what kind

of
price range are we talking? Thanks in advance




  #12   Report Post  
James Weeks
 
Posts: n/a
Default computer interface help with at least 29 output ports

Interfacing to the
IBM-PC Parallel Printer Port
http://www.doc.ic.ac.uk/~ih/doc/par/

and

my Qbasic code examples and info page
http://www.chiptoxic.uklinux.net/?5:1:16
it has a file called printer.bas that shows the status of pins etc
http://www.chiptoxic.uklinux.net/sit...ic/printer.bas


Ryan Kremser wrote:

Hello I am new to computer interfaces and i need something which i can
drive
at least 29 devices via relay. No inputs with this though. Nothing fancy
just either on or off. What hardware would i need to do this? what kind
of
price range are we talking? Thanks in advance


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OT - computer network question... AL A. Metalworking 6 March 3rd 04 01:12 AM
computer in the shop Rick Cox Woodworking 63 January 18th 04 06:30 PM
Computer in the shop Rick Cox Woodworking 0 January 9th 04 03:51 AM
Can adapt boombox to computer input?? Walter E. Electronics 0 July 20th 03 09:38 PM
CNC computer c Metalworking 10 July 18th 03 04:31 AM


All times are GMT +1. The time now is 11:09 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 DIYbanter.
The comments are property of their posters.
 

About Us

"It's about DIY & home improvement"