Shop OBEX P1 Docs P2 Docs Learn Events
getting I/O for 24V device. — Parallax Forums

getting I/O for 24V device.

OakGraphicsOakGraphics Posts: 202
edited 2007-10-27 13:31 in General Discussion
Howdy gang,

I am trying to talk to a Stepper motor controler that is using industrial voltages. (24V) for it's inputs and outputs.· I know this might be a basic thing but I was wondering what the circuit would be to have a 24VDC input signal turned into something that TTL (+5VDC) could handle, and vice-versa.· I probably should use opto-isolation as well.· Worse - I need to repeat this 16 times. (16 input / 16 output).· I have been looking for a canned solution but to no avail.· Any ideas on simple circuits, or solutions?· I suspect a pull-up resistor would work if I sinked the current for output/input, but what about if I need to inverse the logic for that?


(surely DeSilva could solve this for me in a flash! burger.gif )
·

Comments

  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2007-10-25 18:06
    Parallax carries just what you need. Combine it with one of these and the necessary I/O modules, and you're home!

    DigiKey carries the Grayhill racks and modules, which are typically less expensive than Opto-22.

    -Phil

    Post Edited (Phil Pilgrim (PhiPi)) : 10/25/2007 6:13:41 PM GMT
  • OakGraphicsOakGraphics Posts: 202
    edited 2007-10-26 10:07
    Phil Pilgrim (PhiPi) said...
    Parallax carries just what you need. Combine it with one of these and the necessary I/O modules, and you're home!

    DigiKey carries the Grayhill racks and modules, which are typically less expensive than Opto-22.

    -Phil
    Wow - that's actually a pretty good solution for a canned-type of thing. :-)

    I was looking at these guys·because they have 16 channel of TTL to 24v, and another board that does 24V to ttl, but the total cost comes out to about 500$ for both of those - slightly out of my budget.·· I will have to see what is available in UK / Europe for the Opto-22 and Grayhill stuff.


    -Daniel
  • OakGraphicsOakGraphics Posts: 202
    edited 2007-10-27 08:29
    This might be a bonehead question, but can I 'invert' the logic on a opto-coupler relay? I am probably just typing and figuring this out for myself, but it seems if I use one of the above things |(opto22 or grayhill) and simply reverse the trigging input (i.e, ttl5v on one side, and a input pin sinking on the other side (perhaps with a 5k resistor to limit current flow - this should trigger the opto-coupler, correct? The end result is I need a pin that is an open collector - sinking when 'enabled' to trigger a device that needs a sourced 24v to 'enable' it. This output part is not on the BS2.
  • Bruce BatesBruce Bates Posts: 3,045
    edited 2007-10-27 13:31
    OakGraphics -

    First, digital logic signals can always be visa-versa altered (0 to 1, 1 to 0) by use of a logic device called (unsurprisingly) an inverter. The general logic device part number for such a device is 74xx04. They come in different withstand voltage ranges (TTL, CMOS, etc.) and in different numbers of inverters per single device (6 and 8 are common). Each inverter section is independent, and operates on its own. It only needs to be placed in-line with the signal to be inverted and there are no "controls" for it.

    Opto-couplers (4NXXX devices) can be had with inverted and non-inverted outputs, so they stand on their own in that respect. They also can be had with diffferent output means (open collector, Darlington, etc). Since there are two separate devices inside the IC (photo transistor, photo receptor), it is even possible that they may be availble with differing input and output voltages, although I've never investigated that aspect.

    Opto-coupler relays (OPTO22, Grayhill et all) can often be had with various input and output options which may help to reduce any external circuitry you may be planning. Once you have determined which unit is appropriate for your application, by use of the manufacturer's web site, there are even surplus resources for obtaining them at discounted prices. Marlin P. Jones is one such supplier (MPJA.COM).

    Lastly, straight forward inversion can be done with a simple transistor circuit as well. All current and voltage ratings, as well as transistor type need to be taken into consideration.

    Regards,

    Bruce Bates

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sign In or Register to comment.