Arduino Tri-couleur LED Flasher Circuit

This simple tri-colour LED flasher circuit is great for beginners. The three pin tri-colour LED is controller by an Arduino Uno and changed between three colours. This video shows the Arduino running a sketch that controls the tri-colour LED.Arduino Tri-colour LED Flasher Circuit

Circuit Diagram for the Arduino Tri-colour LED Controller

The circuit is very simple, using only three components. The tri-colour LED is a three pin common cathode type containing a red and green LED. The tri-colour LED is the same LED used in the tri-colour LED transistor flasher circuit – refer to this project for more details on the LED.

Arduino Sketch

The sketch changes the colour of the LED every second. Colours are changed by switching on the red LED in the tri-colour LED package, then the green LED, orange is obtained by switching on both the red and green LEDs at the same time.Arduino Tri-colour LED Flasher Circuit Schematic/*————————————————————– Program: tri_colour_LED Description: Changes the colours of a tri-color LED. Hardware: Arduino Uno and tri-colour LED. Software: Developed using Arduino 1.0.3 software Should be compatible with Arduino 1.0 + Date: 8 May 2013 Author: W.A. Smith, http://startingelectronics.org ————————————————————–*/ void setup() { pinMode(2, OUTPUT); pinMode(3, OUTPUT); }

 

For more detail: Arduino Tri-couleur LED Flasher Circuit


A Propos De L'Auteur

Ibrar Ayyub

Je suis expérimenté, rédacteur technique, titulaire d'une Maîtrise en informatique de BZU Multan, Pakistan à l'Université. Avec un arrière-plan couvrant diverses industries, notamment en matière de domotique et de l'ingénierie, j'ai perfectionné mes compétences dans la rédaction claire et concise du contenu. Compétent en tirant parti de l'infographie et des diagrammes, je m'efforce de simplifier des concepts complexes pour les lecteurs. Ma force réside dans une recherche approfondie et de présenter l'information de façon structurée et logique format.

Suivez-Nous:
LinkedinTwitter

Laisser un Commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

fr_FRFrench
Faire défiler vers le Haut