DesignSpark Electrical Logolinkedin
Menu Search
Ask a Question

Working with two LEDs and Arduino

This project demonstrates working with two LEDs and Arduino.

Parts List

Product
See more products

Objective

  • Blinking of two LEDs (alternating)
  • Fading effect of two LEDs (alternating)

 

Circuit Diagram

 

Schematic Diagram

 

Breadboard Diagram

Working:

 

 

Downloads

I am a mechanical Engineer.

Comments

May 20, 2019 07:16

Nice simple code for the dimming. Here is a challenge; make the dimming use a square law curve so the dimming will appear to be linear. ie When the loop is at 50% the light should appear to be at 50% it now appears to be 75%. This is due to the human eye perception of the intensity of light and it is not linear.

Good work

0 Votes