9

I have an industrial automaton that gives me a digital signal (24V or 0V) on its outputs and I want this signal to control an integrated circuit, but the integrated circuit only takes a TTL signal in its input (0 to 5V).

I think it can be controlled if I convert the 24V/0V signal to 5V/0V. How can I convert this signal?

user2943160
  • 2,878
  • 1
  • 17
  • 32
Pierre B
  • 193
  • 1
  • 1
  • 5

1 Answers1

28

If this is for an industrial project you are probably better off using an opto-isolator to do your conversion. It provides several benefits.

  1. Current loop on input side is impervious to common mode noise.
  2. Isolated grounding gets rid of loops and different ground level issues.
  3. Galvanic isolation provides protection to both sides.
  4. And of course, the level shifting you asked for in the first place :)

schematic

simulate this circuit – Schematic created using CircuitLab

\$R1\$ should be chosen to establish the appropriate current in the LED at your 24V sensor level.

The size of \$R2\$ will depend on the logic family you are passing this signal to AND the frequency of the sense signal. For CMOS 10K will be sufficiently low, Standard TTL will need a much lower value.

Trevor_G
  • 46,364
  • 8
  • 68
  • 151