Easy Leds With Arduino

About: I have a practical point of view for problem solving, and having an engineering education might be the cause. I love to tinker around with recycled elements, trying to find a musical use for them, although m...

As an arduino teacher I have faced that making someone to connect more that one component for the very first time is very frustrating.

So I decided to tell people to connect the leds without a resistor. If powered with 5V from a digital pin from an arduino, the led can burn. But as the very first lessons are blink and all its derivates, nothing goes wrong because it is not powered 100% of the time.

Luckily a few lessons ahead we worked with RC servos and thanks to the mistake of a pupil, I discovered a fantastic trick: don´t declare de output pins!!!! this way arduino will only put something around 3V in the pin when using digitalWrite.

Every time I use leds, I wire them directly to a digital pin without any resistor and they work fine. Just make sure you don´t declare the pin as an OUTPUT with pinMode!!!!!

Like it?

Have you tried?

Share

    Recommendations

    • Make it Glow Contest 2018

      Make it Glow Contest 2018
    • Toys Contest

      Toys Contest
    • Big and Small Contest

      Big and Small Contest

    Discussions