2-Color LED Module with Arduino Nano

This project demonstrates how to control a 2-color LED module using an Arduino Nano. The LED module consists of two colors: red and green. By controlling the digital output pins of the Arduino, you can switch between the two colors, producing a visual indication of different states or conditions.

Components Needed

Circuit Diagram

Circuit Setup

1.LED Module Connections:

Connect the red pin of the LED module to digital pin 2 (redPin) on the Arduino Nano.

Connect the green pin of the LED module to digital pin 3 (greenPin) on the Arduino Nano.

Instructions

1.Circuit Setup:

Connect the 2-color LED module to the Arduino Nano as described above.

2.Code Upload:

Copy and paste the provided code into the Arduino IDE.

Select the appropriate board (Arduino Nano) and port from the Tools menu.

Upload the code to the Arduino Nano.

3.Testing:

Once the code is uploaded, observe the LED module switching between red and green colors, with each color being displayed for 1 second alternately.

Applications

Status Indication: Use the LED module to indicate different states or conditions in your projects

Visual Feedback: Provide visual feedback to users based on specific events or actions.

Notes

Experiment with different delay values to adjust the duration of each color.

You can extend this project by incorporating more colors or adding additional functionalities based on your requirements.