LED- Resistor, does the position matter? [duplicate]












6















This question already has an answer here:




  • Does the resistor have to be before or after the component [duplicate]

    4 answers




I was reading the MAKE AVR programming. One of the chapters suggests to solder resistor to the cathode side of an LED.



But in our uni labs it's said to connect the resistor "before" the LED; that is connect the resistor to the anode.



Does the positioning of the resistor matter at all? In case of accidentally burning out the LED? If so, how?










share|improve this question









New contributor




Yasha is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











marked as duplicate by Leon Heller, Nick Alexeev Dec 21 at 15:33


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.




















    6















    This question already has an answer here:




    • Does the resistor have to be before or after the component [duplicate]

      4 answers




    I was reading the MAKE AVR programming. One of the chapters suggests to solder resistor to the cathode side of an LED.



    But in our uni labs it's said to connect the resistor "before" the LED; that is connect the resistor to the anode.



    Does the positioning of the resistor matter at all? In case of accidentally burning out the LED? If so, how?










    share|improve this question









    New contributor




    Yasha is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.











    marked as duplicate by Leon Heller, Nick Alexeev Dec 21 at 15:33


    This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


















      6












      6








      6








      This question already has an answer here:




      • Does the resistor have to be before or after the component [duplicate]

        4 answers




      I was reading the MAKE AVR programming. One of the chapters suggests to solder resistor to the cathode side of an LED.



      But in our uni labs it's said to connect the resistor "before" the LED; that is connect the resistor to the anode.



      Does the positioning of the resistor matter at all? In case of accidentally burning out the LED? If so, how?










      share|improve this question









      New contributor




      Yasha is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      This question already has an answer here:




      • Does the resistor have to be before or after the component [duplicate]

        4 answers




      I was reading the MAKE AVR programming. One of the chapters suggests to solder resistor to the cathode side of an LED.



      But in our uni labs it's said to connect the resistor "before" the LED; that is connect the resistor to the anode.



      Does the positioning of the resistor matter at all? In case of accidentally burning out the LED? If so, how?





      This question already has an answer here:




      • Does the resistor have to be before or after the component [duplicate]

        4 answers








      led resistors avr atmega328p avrdude






      share|improve this question









      New contributor




      Yasha is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      Yasha is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited Dec 21 at 10:57









      Michel Keijzers

      5,67392561




      5,67392561






      New contributor




      Yasha is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked Dec 21 at 10:29









      Yasha

      333




      333




      New contributor




      Yasha is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Yasha is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Yasha is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




      marked as duplicate by Leon Heller, Nick Alexeev Dec 21 at 15:33


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






      marked as duplicate by Leon Heller, Nick Alexeev Dec 21 at 15:33


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
























          2 Answers
          2






          active

          oldest

          votes


















          7














          No, it does not matter. There are several cases:




          • The LED works: in this case the resistor will limit the current flow, and does not matter if it is before or after, since it is connected serial.

          • The LED does not work:


            • Electricity flows through the LED: it would go through the resistor anyway, either if it is before or after the LED.

            • Electricity does not flow through the LED: current will not flow anyway through the resistor because the circuit is not closed.








          share|improve this answer





















          • I read up on some other forums about this. Does the following explaination hold no water then? "I've developed a preference of having the resistors on the anode side of the LED where possible, as accidentally shorting the LED's anode or cathode to ground won't hurt either the LED or the resistor. If the LEDs are on the more positive side of the resistor, accidentally shorting the cathode of the LED to ground will result in a fried LED."
            – Yasha
            Dec 21 at 10:37






          • 4




            @Yasha That is true, however, you can say the same about accidentally connecting the the anode directly to VCC instead of going through the resistor. If the resistor would be after the LED, it would be protected. It's just the 'inverse' example.
            – Michel Keijzers
            Dec 21 at 10:42



















          5














          To light the LED, using the resistor to define the current, it doesn't matter which order they go in.



          There may be some other non-electrical reasons for preferring one over the other in specific circumstances.



          For instance, if you connect the LED directly to the PSU +ve, then accidentally shorting the LED to ground, as you might do with an untidy breadboard, will kill the LED. Resistor to PSU will be safer. This situation is asymmetric because shorts to ground are more common than shorts to PSU live when you're clowning around on a breadboard. This may be significant in your lab instructions.



          There are other situations where multiplexing LEDs, or running them at various currents, is made easier by one or the other connection. This is asymmetric because of the popularity of low side switches, things like ULN280x and their ilk, which people tend to use for driving LEDs.






          share|improve this answer





















          • your example of shorting it accidentally to GND, isn't that the same when accidentally connecting it to GND on the other side? This is just the inverse example.
            – Michel Keijzers
            Dec 21 at 10:46








          • 4




            @MichelKeijzers if you have (+)-R-L-(-) and you accidentally short the node between R and L to ground, the R will just let some more current flow; if you have (+)-L-R-(-) and short the inner node to ground the LED will see all the voltage and fry. Shorting the node with (+) to ground will always result in a short circuit. In the first example (+RL-) the led will fry if you connect the middle node to Vcc, but this happens more rarely than a short to ground
            – frarugi87
            Dec 21 at 13:17










          • @frarugi87 Thanks for the explanation (especially the last remark, that it happens more rarely.
            – Michel Keijzers
            Dec 21 at 13:50


















          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          7














          No, it does not matter. There are several cases:




          • The LED works: in this case the resistor will limit the current flow, and does not matter if it is before or after, since it is connected serial.

          • The LED does not work:


            • Electricity flows through the LED: it would go through the resistor anyway, either if it is before or after the LED.

            • Electricity does not flow through the LED: current will not flow anyway through the resistor because the circuit is not closed.








          share|improve this answer





















          • I read up on some other forums about this. Does the following explaination hold no water then? "I've developed a preference of having the resistors on the anode side of the LED where possible, as accidentally shorting the LED's anode or cathode to ground won't hurt either the LED or the resistor. If the LEDs are on the more positive side of the resistor, accidentally shorting the cathode of the LED to ground will result in a fried LED."
            – Yasha
            Dec 21 at 10:37






          • 4




            @Yasha That is true, however, you can say the same about accidentally connecting the the anode directly to VCC instead of going through the resistor. If the resistor would be after the LED, it would be protected. It's just the 'inverse' example.
            – Michel Keijzers
            Dec 21 at 10:42
















          7














          No, it does not matter. There are several cases:




          • The LED works: in this case the resistor will limit the current flow, and does not matter if it is before or after, since it is connected serial.

          • The LED does not work:


            • Electricity flows through the LED: it would go through the resistor anyway, either if it is before or after the LED.

            • Electricity does not flow through the LED: current will not flow anyway through the resistor because the circuit is not closed.








          share|improve this answer





















          • I read up on some other forums about this. Does the following explaination hold no water then? "I've developed a preference of having the resistors on the anode side of the LED where possible, as accidentally shorting the LED's anode or cathode to ground won't hurt either the LED or the resistor. If the LEDs are on the more positive side of the resistor, accidentally shorting the cathode of the LED to ground will result in a fried LED."
            – Yasha
            Dec 21 at 10:37






          • 4




            @Yasha That is true, however, you can say the same about accidentally connecting the the anode directly to VCC instead of going through the resistor. If the resistor would be after the LED, it would be protected. It's just the 'inverse' example.
            – Michel Keijzers
            Dec 21 at 10:42














          7












          7








          7






          No, it does not matter. There are several cases:




          • The LED works: in this case the resistor will limit the current flow, and does not matter if it is before or after, since it is connected serial.

          • The LED does not work:


            • Electricity flows through the LED: it would go through the resistor anyway, either if it is before or after the LED.

            • Electricity does not flow through the LED: current will not flow anyway through the resistor because the circuit is not closed.








          share|improve this answer












          No, it does not matter. There are several cases:




          • The LED works: in this case the resistor will limit the current flow, and does not matter if it is before or after, since it is connected serial.

          • The LED does not work:


            • Electricity flows through the LED: it would go through the resistor anyway, either if it is before or after the LED.

            • Electricity does not flow through the LED: current will not flow anyway through the resistor because the circuit is not closed.









          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 21 at 10:32









          Michel Keijzers

          5,67392561




          5,67392561












          • I read up on some other forums about this. Does the following explaination hold no water then? "I've developed a preference of having the resistors on the anode side of the LED where possible, as accidentally shorting the LED's anode or cathode to ground won't hurt either the LED or the resistor. If the LEDs are on the more positive side of the resistor, accidentally shorting the cathode of the LED to ground will result in a fried LED."
            – Yasha
            Dec 21 at 10:37






          • 4




            @Yasha That is true, however, you can say the same about accidentally connecting the the anode directly to VCC instead of going through the resistor. If the resistor would be after the LED, it would be protected. It's just the 'inverse' example.
            – Michel Keijzers
            Dec 21 at 10:42


















          • I read up on some other forums about this. Does the following explaination hold no water then? "I've developed a preference of having the resistors on the anode side of the LED where possible, as accidentally shorting the LED's anode or cathode to ground won't hurt either the LED or the resistor. If the LEDs are on the more positive side of the resistor, accidentally shorting the cathode of the LED to ground will result in a fried LED."
            – Yasha
            Dec 21 at 10:37






          • 4




            @Yasha That is true, however, you can say the same about accidentally connecting the the anode directly to VCC instead of going through the resistor. If the resistor would be after the LED, it would be protected. It's just the 'inverse' example.
            – Michel Keijzers
            Dec 21 at 10:42
















          I read up on some other forums about this. Does the following explaination hold no water then? "I've developed a preference of having the resistors on the anode side of the LED where possible, as accidentally shorting the LED's anode or cathode to ground won't hurt either the LED or the resistor. If the LEDs are on the more positive side of the resistor, accidentally shorting the cathode of the LED to ground will result in a fried LED."
          – Yasha
          Dec 21 at 10:37




          I read up on some other forums about this. Does the following explaination hold no water then? "I've developed a preference of having the resistors on the anode side of the LED where possible, as accidentally shorting the LED's anode or cathode to ground won't hurt either the LED or the resistor. If the LEDs are on the more positive side of the resistor, accidentally shorting the cathode of the LED to ground will result in a fried LED."
          – Yasha
          Dec 21 at 10:37




          4




          4




          @Yasha That is true, however, you can say the same about accidentally connecting the the anode directly to VCC instead of going through the resistor. If the resistor would be after the LED, it would be protected. It's just the 'inverse' example.
          – Michel Keijzers
          Dec 21 at 10:42




          @Yasha That is true, however, you can say the same about accidentally connecting the the anode directly to VCC instead of going through the resistor. If the resistor would be after the LED, it would be protected. It's just the 'inverse' example.
          – Michel Keijzers
          Dec 21 at 10:42













          5














          To light the LED, using the resistor to define the current, it doesn't matter which order they go in.



          There may be some other non-electrical reasons for preferring one over the other in specific circumstances.



          For instance, if you connect the LED directly to the PSU +ve, then accidentally shorting the LED to ground, as you might do with an untidy breadboard, will kill the LED. Resistor to PSU will be safer. This situation is asymmetric because shorts to ground are more common than shorts to PSU live when you're clowning around on a breadboard. This may be significant in your lab instructions.



          There are other situations where multiplexing LEDs, or running them at various currents, is made easier by one or the other connection. This is asymmetric because of the popularity of low side switches, things like ULN280x and their ilk, which people tend to use for driving LEDs.






          share|improve this answer





















          • your example of shorting it accidentally to GND, isn't that the same when accidentally connecting it to GND on the other side? This is just the inverse example.
            – Michel Keijzers
            Dec 21 at 10:46








          • 4




            @MichelKeijzers if you have (+)-R-L-(-) and you accidentally short the node between R and L to ground, the R will just let some more current flow; if you have (+)-L-R-(-) and short the inner node to ground the LED will see all the voltage and fry. Shorting the node with (+) to ground will always result in a short circuit. In the first example (+RL-) the led will fry if you connect the middle node to Vcc, but this happens more rarely than a short to ground
            – frarugi87
            Dec 21 at 13:17










          • @frarugi87 Thanks for the explanation (especially the last remark, that it happens more rarely.
            – Michel Keijzers
            Dec 21 at 13:50
















          5














          To light the LED, using the resistor to define the current, it doesn't matter which order they go in.



          There may be some other non-electrical reasons for preferring one over the other in specific circumstances.



          For instance, if you connect the LED directly to the PSU +ve, then accidentally shorting the LED to ground, as you might do with an untidy breadboard, will kill the LED. Resistor to PSU will be safer. This situation is asymmetric because shorts to ground are more common than shorts to PSU live when you're clowning around on a breadboard. This may be significant in your lab instructions.



          There are other situations where multiplexing LEDs, or running them at various currents, is made easier by one or the other connection. This is asymmetric because of the popularity of low side switches, things like ULN280x and their ilk, which people tend to use for driving LEDs.






          share|improve this answer





















          • your example of shorting it accidentally to GND, isn't that the same when accidentally connecting it to GND on the other side? This is just the inverse example.
            – Michel Keijzers
            Dec 21 at 10:46








          • 4




            @MichelKeijzers if you have (+)-R-L-(-) and you accidentally short the node between R and L to ground, the R will just let some more current flow; if you have (+)-L-R-(-) and short the inner node to ground the LED will see all the voltage and fry. Shorting the node with (+) to ground will always result in a short circuit. In the first example (+RL-) the led will fry if you connect the middle node to Vcc, but this happens more rarely than a short to ground
            – frarugi87
            Dec 21 at 13:17










          • @frarugi87 Thanks for the explanation (especially the last remark, that it happens more rarely.
            – Michel Keijzers
            Dec 21 at 13:50














          5












          5








          5






          To light the LED, using the resistor to define the current, it doesn't matter which order they go in.



          There may be some other non-electrical reasons for preferring one over the other in specific circumstances.



          For instance, if you connect the LED directly to the PSU +ve, then accidentally shorting the LED to ground, as you might do with an untidy breadboard, will kill the LED. Resistor to PSU will be safer. This situation is asymmetric because shorts to ground are more common than shorts to PSU live when you're clowning around on a breadboard. This may be significant in your lab instructions.



          There are other situations where multiplexing LEDs, or running them at various currents, is made easier by one or the other connection. This is asymmetric because of the popularity of low side switches, things like ULN280x and their ilk, which people tend to use for driving LEDs.






          share|improve this answer












          To light the LED, using the resistor to define the current, it doesn't matter which order they go in.



          There may be some other non-electrical reasons for preferring one over the other in specific circumstances.



          For instance, if you connect the LED directly to the PSU +ve, then accidentally shorting the LED to ground, as you might do with an untidy breadboard, will kill the LED. Resistor to PSU will be safer. This situation is asymmetric because shorts to ground are more common than shorts to PSU live when you're clowning around on a breadboard. This may be significant in your lab instructions.



          There are other situations where multiplexing LEDs, or running them at various currents, is made easier by one or the other connection. This is asymmetric because of the popularity of low side switches, things like ULN280x and their ilk, which people tend to use for driving LEDs.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 21 at 10:40









          Neil_UK

          73.2k275161




          73.2k275161












          • your example of shorting it accidentally to GND, isn't that the same when accidentally connecting it to GND on the other side? This is just the inverse example.
            – Michel Keijzers
            Dec 21 at 10:46








          • 4




            @MichelKeijzers if you have (+)-R-L-(-) and you accidentally short the node between R and L to ground, the R will just let some more current flow; if you have (+)-L-R-(-) and short the inner node to ground the LED will see all the voltage and fry. Shorting the node with (+) to ground will always result in a short circuit. In the first example (+RL-) the led will fry if you connect the middle node to Vcc, but this happens more rarely than a short to ground
            – frarugi87
            Dec 21 at 13:17










          • @frarugi87 Thanks for the explanation (especially the last remark, that it happens more rarely.
            – Michel Keijzers
            Dec 21 at 13:50


















          • your example of shorting it accidentally to GND, isn't that the same when accidentally connecting it to GND on the other side? This is just the inverse example.
            – Michel Keijzers
            Dec 21 at 10:46








          • 4




            @MichelKeijzers if you have (+)-R-L-(-) and you accidentally short the node between R and L to ground, the R will just let some more current flow; if you have (+)-L-R-(-) and short the inner node to ground the LED will see all the voltage and fry. Shorting the node with (+) to ground will always result in a short circuit. In the first example (+RL-) the led will fry if you connect the middle node to Vcc, but this happens more rarely than a short to ground
            – frarugi87
            Dec 21 at 13:17










          • @frarugi87 Thanks for the explanation (especially the last remark, that it happens more rarely.
            – Michel Keijzers
            Dec 21 at 13:50
















          your example of shorting it accidentally to GND, isn't that the same when accidentally connecting it to GND on the other side? This is just the inverse example.
          – Michel Keijzers
          Dec 21 at 10:46






          your example of shorting it accidentally to GND, isn't that the same when accidentally connecting it to GND on the other side? This is just the inverse example.
          – Michel Keijzers
          Dec 21 at 10:46






          4




          4




          @MichelKeijzers if you have (+)-R-L-(-) and you accidentally short the node between R and L to ground, the R will just let some more current flow; if you have (+)-L-R-(-) and short the inner node to ground the LED will see all the voltage and fry. Shorting the node with (+) to ground will always result in a short circuit. In the first example (+RL-) the led will fry if you connect the middle node to Vcc, but this happens more rarely than a short to ground
          – frarugi87
          Dec 21 at 13:17




          @MichelKeijzers if you have (+)-R-L-(-) and you accidentally short the node between R and L to ground, the R will just let some more current flow; if you have (+)-L-R-(-) and short the inner node to ground the LED will see all the voltage and fry. Shorting the node with (+) to ground will always result in a short circuit. In the first example (+RL-) the led will fry if you connect the middle node to Vcc, but this happens more rarely than a short to ground
          – frarugi87
          Dec 21 at 13:17












          @frarugi87 Thanks for the explanation (especially the last remark, that it happens more rarely.
          – Michel Keijzers
          Dec 21 at 13:50




          @frarugi87 Thanks for the explanation (especially the last remark, that it happens more rarely.
          – Michel Keijzers
          Dec 21 at 13:50



          Popular posts from this blog

          If I really need a card on my start hand, how many mulligans make sense? [duplicate]

          Alcedinidae

          Can an atomic nucleus contain both particles and antiparticles? [duplicate]