# how can i convert 24v digital signal to 5v

#### sidhik

Joined Oct 16, 2018
1
how can i convert 24v digital signal to 5v

#### peterdeco

Joined Oct 8, 2019
359
I've done this with 2 resistors as a voltage divider.

#### ci139

Joined Jul 11, 2016
1,696
. . . if we assume that the output impedances of both families are lower than the input impedance of either

you can do 2 or 3 or more resistor level & impedance PASSIVE matching network
(somewhat as the Zobel network in audio tech. that "matches" loudspeaker impedance (spectrum) from the one available of the power amp. output)

as the logic level shifts are usually "instant" then you basically need a low pass filter that has it's peak at upper frequency or transition limit and still provides enough signal power at lower frequencies for steady levels to hold and not drift inside the logic's specified LOW ... (THRESHOLD) ... HIGH levels

for the ACTIVE translation network you can use comparators (you can set to Src, threshold) --or-- digital power buffers (that have the Src. threshold)
_____________________

but for several reasons the isolated translation may be preferred

Last edited:

#### bassbindevil

Joined Jan 23, 2014
160
An optocoupler like the 4N26, since that will convert the levels and provide 5000 volts of isolation. Unless you really don't need the isolation, in which case a series resistor and a zener diode should do the job.

#### crutschow

Joined Mar 14, 2008
27,237
What is the load for the 5V signal?

#### AnalogKid

Joined Aug 1, 2013
9,260
Is this a homework question?

#### andrewmm

Joined Feb 25, 2011
1,487
How fast is the signal ?

#### Miracletech

Joined Nov 15, 2019
160
Very simple. You have 3 options:
A. Use IC's like LM7805 or a buck converter IC.
B. Use a resistor and a zener diode.
C. Buy a buck converter online.

#### Sobhanjahaniparast

Joined Dec 13, 2019
9
Resistor divider is more simple.

#### Sobhanjahaniparast

Joined Dec 13, 2019
9
Resistor divider is more simple.
Also, you can use a N-MOS after divider. Pullup source to vcc and connect drain to ground. Source pin is your output. Bit it's invers of input. You can use a P-MOS to make original signal.

#### AnalogKid

Joined Aug 1, 2013
9,260
Very simple. You have 3 options:
A. Use IC's like LM7805 or a buck converter IC.
B. Use a resistor and a zener diode.
C. Buy a buck converter online.
Nothing in the original post states or implies that this is a power question.

ak

#### Miracletech

Joined Nov 15, 2019
160
I Know.

#### ci139

Joined Jul 11, 2016
1,696
Last edited: