Skip to main content
Explorer II
January 5, 2024
Question

diode

  • January 5, 2024
  • 1 reply
  • 3420 views

HelIo,

I connected the anode from a diode to the operating voltage and the cathode to a pinx. I need ground to make the diode glow.  How can this be implemented?

    This topic has been closed for replies.

    1 reply

    Graduate II
    January 5, 2024

    Well you'd need a resistor to limit current through the LED, as if you simply gate it to ground you'll get whatever the transistor will permit.

     

    PINX ----[ R ]----|/|-- VCC
     LED|\|

     

    Configure GPIO as PP or OD OUTPUT, LOW to illuminate

    SaxAuthor
    Explorer II
    January 5, 2024

    I already have a resistor in the hardware. Unfortunately, these settings don't work.

    Graduate II
    January 5, 2024

    Perhaps draw what you've built