RGB LED Using Arduino R3

Description: this experiment use different components for instant RGB LED, Arduino uno board and resistance etc. As we all know RGB led known as the multi color LED which have different color such as RED, Green, and Blue. we can generate multiple colors using different colors combination such as (R,G,B). we have different rages from 0-255 for each color if we give maximim intensity to any of them will light the led for example if we use (255,0,0) it will bright the led to the red colors and if we use (0,255,0) it will bright the led to the green and so on using same intensities we can generate more colors using combinations of different intensities.

Experiment Circuit:
RGB LED PEEPGRAM


RGB LED PEEPGRAM



RGB LED PEEPGRAM




Implementation of the Experiment:
Code Peepgram

Code Peepgram
Code:
void setup()
{
  pinMode(A0, OUTPUT);
  pinMode(A1, OUTPUT);
  pinMode(A2, OUTPUT);
}

void loop()
{
  analogWrite(A0,255); 
   analogWrite(A2,0);
  analogWrite(A1,0);
 
  delay(1000); // Wait for 1000 millisecond(s)
 
}




Post a Comment

Previous Post Next Post