This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TM4C123GH6PM: 5 v output

Part Number: TM4C123GH6PM

Can I obtain a 5 v output from any gpio pin ? Or should I use an external amplifier?I want to operate a relay

  • The TM4C123 does not output 5V. You will need some type of level shifter or relay driver.
  • A very low cost, simple N-FET (2N7002) should, "do that job." (relay driver) The FET proves far better than MCU's GPIO in surviving (reasonable) relay voltage & current levels - and is easily driven by MCU's GPIO. (for spike reduction - depending upon the size/power of the relay - you may want to install a diode across the relay's coil - to clamp the spike to the relay's (+) supply voltage. (diode's cathode ties to that (+V.))
  • cb1_mobile said:
    (for spike reduction - depending upon the size/power of the relay - you may want to install a diode across the relay's coil - to clamp the spike to the relay's (+) supply voltage. (diode's cathode ties to that (+V.))

    And either a reversed zener or resistor in series with that diode.

    A relay manufacturer has published a a whitepaper showing that a relays life is reduced if only a diode is used.

    Robert

  • And - as a "competitor" to relays - that may prove a "good thing." As we both realize - so much depends upon the size/current demand of such a relay - and poster's listing (as always) fails to include such (needed) detail...