5VDC sgnl to 24VDC sgnl using a transistor

  • Thread starter Thread starter dgeccles
  • Start date Start date
  • Tags Tags
    Transistor
Click For Summary

Discussion Overview

The discussion revolves around interfacing a 5V digital output device with a 24V digital input device using a transistor or alternative components. Participants explore various circuit designs, including the use of transistors and op-amps, and seek advice on improving their designs and understanding the requirements of their specific devices.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • David describes a circuit using an NPN transistor (BD681) to convert a 5V signal to a 24V signal, seeking suggestions for improvement.
  • Some participants suggest using a 7407 buffer for level translation, noting the importance of checking voltage specifications in datasheets.
  • Another participant proposes using an op-amp (LM324) for the task, highlighting its ability to handle input voltages equal to the negative supply.
  • Bob S questions whether the 24V input requires a current-sinking or current-sourcing driver, suggesting the addition of a PNP transistor if it needs to source current.
  • David expresses uncertainty about the functionality of a PNP transistor in the proposed design and seeks clarification on connections.
  • Participants discuss the significance of understanding the specific drive requirements of the 24V device, including logic levels and current needs.
  • David shares details about the devices involved, specifically a Quanser Q4 control card and a Parker SLVD7N motor controller, and seeks guidance on testing the SLVD7N's sourcing capabilities.
  • Bob S provides a link to the Parker SLVD manual and emphasizes the need for an external 24V source for the PNP transistor, along with a recommendation for a pulldown resistor.

Areas of Agreement / Disagreement

Participants express various approaches to the problem, with no consensus on the best solution. There are multiple competing views regarding the use of transistors versus buffers and the specifics of the circuit design.

Contextual Notes

Participants note the importance of understanding the specific electrical characteristics of the devices involved, including logic levels and current requirements, which remain unclear for some. There are also unresolved questions about the exact nature of the 24V input and its requirements.

Who May Find This Useful

Electronics enthusiasts, engineers, and hobbyists interested in interfacing different voltage logic levels, particularly those working with digital input/output devices and circuit design.

dgeccles
Messages
4
Reaction score
0
Hello,

I have two devices, one that emits a 5V DO and another that receives a 24V DI. I wanting to interface them but am having problems.

I was searching for a small solid state device that could easily interface them but could not find any. So I have been trying to creat a circuit using a transistor that will do the job.

Is there an easier way to do it with a small component that can fit on a circuit board?

I have managed to design a signal that outputs 5VDC to 24VDC with an input of 5VDC to 0VDC respectively. While this is enough difference to act as the digital signal between the two I would rather drop the outputs minimum voltage to be 0VDC.

I am using the NPN transistor BD681. The Base is connected to directly to the 0-5VDC input signal. The Collector is connected to the 24VDC supply through a 100k Ohm resistor AND to the OUT signal. The Emitter is connected to Gnd via a 330 Ohm resister.

Can anyone help me improve this design?

Thanks guys,
David
 
Engineering news on Phys.org
dgeccles said:
Hello,

I have two devices, one that emits a 5V DO and another that receives a 24V DI. I wanting to interface them but am having problems.

I was searching for a small solid state device that could easily interface them but could not find any. So I have been trying to creat a circuit using a transistor that will do the job.

Is there an easier way to do it with a small component that can fit on a circuit board?

I have managed to design a signal that outputs 5VDC to 24VDC with an input of 5VDC to 0VDC respectively. While this is enough difference to act as the digital signal between the two I would rather drop the outputs minimum voltage to be 0VDC.

I am using the NPN transistor BD681. The Base is connected to directly to the 0-5VDC input signal. The Collector is connected to the 24VDC supply through a 100k Ohm resistor AND to the OUT signal. The Emitter is connected to Gnd via a 330 Ohm resister.

Can anyone help me improve this design?

Thanks guys,
David

You can use the 7407 or 74HC07 buffers to do the level translation:

http://pdf1.alldatasheet.com/datasheet-pdf/view/50893/FAIRCHILD/7407.html

That link is being a PITA at the moment, but you can search for other links to the datasheets. The 7407 is a buffer (no inversion) that has a high-voltage open-collector output, which you can pull up to 24V via a pullup resistor.

As always, check your source's Vol and Voh voltages in its datasheet, and check the Vih and Vil voltages in your 24V input's datasheet to be sure the interface circuit is correct for your application.
 
[PLAIN]http://dl.dropbox.com/u/4222062/OPamp%20amplifier.PNG

I don't think you could do it with one transistor, but with 1/4 of a cheap opamp chip, you could. See above.
You would have to use this particular opamp, the LM324, because it allows the inputs to be the same voltage as the negative supply.

You also need a power supply of at least 26 volts.

This is a simulation and I haven't built it (of course), but it may be worth a try.

The 38 K is not a standard value, but 39 K would be OK if you don't need an exact result.
 
Last edited by a moderator:
Does your 24-volt input expect a 24-volt current-sinking driver like an npn collector, or a 24-volt current source? If the latter, you probably should add a pnp transistor with the emitter tied to 24 volts.

Bob S
 
Berkeman

Thanks Berkeman, that looks like the option I am after. My electronics is very rusty I am sorry to say. The Sink would be the 24VDC digital input, yes? Would the source be the voltage supply of 24V I am using to up the signal or the 5V signal that I am upping?

vk6kro

Thanks Vk6kro. That does look like a good option, i even have a few spare op amps, however don't have a 26V power supply so I don't think I could use that option.

On a secondary note though. What program did you use to test the circuit? Such a program would be very useful!

Bob

As i said I am rather rusty on my electronics. Wouldn't a PNP transistor with the emitter tied to 24V force the gate open?

Assuming not, would I then connect the base to my 5V signal, and the collector to the 24V signal as well as ground through a resistor?


Thanks a heap for the help guys!

David
 
Hello

I was going over the 7407 design and I don't understand the difference between VO(MAX) and VOH, likewise between VO(MIN) and VOL.

Thank you for oyur help!
 
Maybe you should explain exactly what you are doing. What is the device you are trying to drive at 24 volts?

Even logic circuits have specific drive requirements.

If a logic device has an input range of 0 to 5 volts, it may accept anything above 3.5 volts as a logic "high" and anything below 2.5 volts as a logic "low". So, it may not need the full 5 volts to count as a logic "high".

As an output, most devices cannot produce output voltages which are the same as their supply volts and this doesn't matter if they are matched up with a device from their own family which expects input that is not perfect, but adequate.

That program you asked about was LTSpice 4 which is available free from www.analog.com.
It is easy to use and you should get a copy and have a play with it.
 
To possibly repeat on vk6kro, and expand:

1) Do you want an inverting or non-inverting output to drive the 24 V?

2) Is the 24V input circuit current sourcing, or does the 24 V output circuit need to be a current source?

3) How much current is required for a logic 1 (high) and for a logic 0 (low)?

4) If this is a relay coil input, can one end be attached to 24 V, or must it be grounded?

Bob S
 
Ok, thanks for the help.

What I am doing: I am interfacing between a Quanser Q4 real time control and DAQ card and a Parker SLVD7N motor controller. The Q4 card has 0-5V DIO and the SLVD7N has 0-24V logic.

I do not know if the SLVD7N is sourcing as I cannot find the relevant information in the manual. Is there any way to test? If it is sourcing would this mean that if the DI is not dragged down it would return to 24V?

Again, I don't know how much current needs to be supplied to activate push the DI high. I cannot find it on the manual. However I can test this as I have access to a good power supply (with current and voltage control) and a good multimeter.


If a logic device has an input range of 0 to 5 volts, it may accept anything above 3.5 volts as a logic "high" and anything below 2.5 volts as a logic "low". So, it may not need the full 5 volts to count as a logic "high".
Would this be correct? In this case the:
VO(min) = 0V
VOL = 2.5V
VOH = 3.5
VO(max) = 5V

Thanks for the advice on the LTSpice 4. I will definitely Play around with it.

Thanks a heap for your help guys.
David
 
  • #10
You can find a copy of thr Parker sLVD manual at
http://www.compumotor.com/manuals/SBC/SLVD_UG.pdf
Read it.

The two attached thumbnails show the a) electrical connection on page 22 (it is a pnp collector output), and b) the logic levels on page 87 (0< 3 volts = logic 0, and 15 < 30 volts = logic 1).

You will need to supply an external 24 volt source for the pnp transistor. I recommend a 1k pulldown on the pnp collector.

Read the manual.

[added] You still need to consider whether you want an inverting or non-inverting driver.

Bob S
 

Attachments

  • Parker sLVD2.jpg
    Parker sLVD2.jpg
    26.4 KB · Views: 885
  • Parker sLVD.jpg
    Parker sLVD.jpg
    32.7 KB · Views: 968
Last edited:

Similar threads

  • · Replies 11 ·
Replies
11
Views
2K
Replies
68
Views
7K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 28 ·
Replies
28
Views
6K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 3 ·
Replies
3
Views
11K