Green LED on RPI 3B+ GPIO












2














I have seen a few examples of wiring a red LED directly from the RPI GPIO pins, however, I need to wire a GREEN LED and am having trouble calculating the resistor needed. I believe that a green LED uses 3.3 volts and at 20ma,
so if I use the 5V power on pin 1 would I end up with
5V - 3.3V = 1.7.



1.7 V = 20 mA × R



or rephrased:



1.7 V / 20 mA = R



and when we solve that we get:



1.7 V / 20 mA = 1.7 V / 0.020 A = 85Ω ?










share|improve this question
























  • There are two common chemistries used when making green LEDs. The traditional gives a warmer green and is more related to the red, yellow and orange and requires roughly 2 volts to operate. The green used in an RGB LED is typically colder in order to improve the gamut, and has a higher voltage, but are also available as discrete LEDs. You should figure out which one you have.
    – pipe
    Dec 9 at 22:48


















2














I have seen a few examples of wiring a red LED directly from the RPI GPIO pins, however, I need to wire a GREEN LED and am having trouble calculating the resistor needed. I believe that a green LED uses 3.3 volts and at 20ma,
so if I use the 5V power on pin 1 would I end up with
5V - 3.3V = 1.7.



1.7 V = 20 mA × R



or rephrased:



1.7 V / 20 mA = R



and when we solve that we get:



1.7 V / 20 mA = 1.7 V / 0.020 A = 85Ω ?










share|improve this question
























  • There are two common chemistries used when making green LEDs. The traditional gives a warmer green and is more related to the red, yellow and orange and requires roughly 2 volts to operate. The green used in an RGB LED is typically colder in order to improve the gamut, and has a higher voltage, but are also available as discrete LEDs. You should figure out which one you have.
    – pipe
    Dec 9 at 22:48
















2












2








2







I have seen a few examples of wiring a red LED directly from the RPI GPIO pins, however, I need to wire a GREEN LED and am having trouble calculating the resistor needed. I believe that a green LED uses 3.3 volts and at 20ma,
so if I use the 5V power on pin 1 would I end up with
5V - 3.3V = 1.7.



1.7 V = 20 mA × R



or rephrased:



1.7 V / 20 mA = R



and when we solve that we get:



1.7 V / 20 mA = 1.7 V / 0.020 A = 85Ω ?










share|improve this question















I have seen a few examples of wiring a red LED directly from the RPI GPIO pins, however, I need to wire a GREEN LED and am having trouble calculating the resistor needed. I believe that a green LED uses 3.3 volts and at 20ma,
so if I use the 5V power on pin 1 would I end up with
5V - 3.3V = 1.7.



1.7 V = 20 mA × R



or rephrased:



1.7 V / 20 mA = R



and when we solve that we get:



1.7 V / 20 mA = 1.7 V / 0.020 A = 85Ω ?







gpio pi-3b+






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 15 at 11:07









Ghanima

11.9k93975




11.9k93975










asked Dec 9 at 17:33









Mortifis

111




111












  • There are two common chemistries used when making green LEDs. The traditional gives a warmer green and is more related to the red, yellow and orange and requires roughly 2 volts to operate. The green used in an RGB LED is typically colder in order to improve the gamut, and has a higher voltage, but are also available as discrete LEDs. You should figure out which one you have.
    – pipe
    Dec 9 at 22:48




















  • There are two common chemistries used when making green LEDs. The traditional gives a warmer green and is more related to the red, yellow and orange and requires roughly 2 volts to operate. The green used in an RGB LED is typically colder in order to improve the gamut, and has a higher voltage, but are also available as discrete LEDs. You should figure out which one you have.
    – pipe
    Dec 9 at 22:48


















There are two common chemistries used when making green LEDs. The traditional gives a warmer green and is more related to the red, yellow and orange and requires roughly 2 volts to operate. The green used in an RGB LED is typically colder in order to improve the gamut, and has a higher voltage, but are also available as discrete LEDs. You should figure out which one you have.
– pipe
Dec 9 at 22:48






There are two common chemistries used when making green LEDs. The traditional gives a warmer green and is more related to the red, yellow and orange and requires roughly 2 volts to operate. The green used in an RGB LED is typically colder in order to improve the gamut, and has a higher voltage, but are also available as discrete LEDs. You should figure out which one you have.
– pipe
Dec 9 at 22:48












1 Answer
1






active

oldest

votes


















5














I have powered green, red, yellow, and multi-colored LEDs direct from the (3V3) GPIO. So a green LED forward voltage of 3V3 seems unlikely.



Anyhow putting 20mA through a modern LED would be absurdly bright.



Try something in the range 300-500 ohms (or higher) and use PWM on the GPIO to vary the brightness if needed.






share|improve this answer





















    Your Answer






    StackExchange.ifUsing("editor", function () {
    return StackExchange.using("schematics", function () {
    StackExchange.schematics.init();
    });
    }, "cicuitlab");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "447"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fraspberrypi.stackexchange.com%2fquestions%2f91772%2fgreen-led-on-rpi-3b-gpio%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    5














    I have powered green, red, yellow, and multi-colored LEDs direct from the (3V3) GPIO. So a green LED forward voltage of 3V3 seems unlikely.



    Anyhow putting 20mA through a modern LED would be absurdly bright.



    Try something in the range 300-500 ohms (or higher) and use PWM on the GPIO to vary the brightness if needed.






    share|improve this answer


























      5














      I have powered green, red, yellow, and multi-colored LEDs direct from the (3V3) GPIO. So a green LED forward voltage of 3V3 seems unlikely.



      Anyhow putting 20mA through a modern LED would be absurdly bright.



      Try something in the range 300-500 ohms (or higher) and use PWM on the GPIO to vary the brightness if needed.






      share|improve this answer
























        5












        5








        5






        I have powered green, red, yellow, and multi-colored LEDs direct from the (3V3) GPIO. So a green LED forward voltage of 3V3 seems unlikely.



        Anyhow putting 20mA through a modern LED would be absurdly bright.



        Try something in the range 300-500 ohms (or higher) and use PWM on the GPIO to vary the brightness if needed.






        share|improve this answer












        I have powered green, red, yellow, and multi-colored LEDs direct from the (3V3) GPIO. So a green LED forward voltage of 3V3 seems unlikely.



        Anyhow putting 20mA through a modern LED would be absurdly bright.



        Try something in the range 300-500 ohms (or higher) and use PWM on the GPIO to vary the brightness if needed.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 9 at 17:45









        joan

        48.9k34881




        48.9k34881






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Raspberry Pi Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fraspberrypi.stackexchange.com%2fquestions%2f91772%2fgreen-led-on-rpi-3b-gpio%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Ellipse (mathématiques)

            Quarter-circle Tiles

            Mont Emei