Retour à la recherche
Bicolor LED common cathode module 3MM
Bicolor LED common cathode module 3MM
Bicolor LED common cathode module 3MM
1 / 2
Voir sur le site du vendeurLes prix et la disponibilité sont mis à jour quotidiennement. Veuillez vérifier sur le site du vendeur avant d'acheter.
Tiah

Bicolor LED common cathode module 3MM

Sensors & modules

DZD 250

Voir sur le site du vendeurLes prix et la disponibilité sont mis à jour quotidiennement. Veuillez vérifier sur le site du vendeur avant d'acheter.
Description

Introduction:

RGB LED module is made of a SMD full-color LED. You can adjust the three primary colors (red/blue/green) by using the PWM voltage input of the R, G, B three pins to realize full color mixing  effect. You can realize cool lighting effect using Arduino's control over this module.

Product features:

1. the use of 5050 full-color LED

2. RGB tricolor connected to current-limiting resistance to prevent burn out

3. PWM regulate three primary colors to produce different colors

4. can be connected to various MCU

5. Working voltage: 5V

6. LED drive mode: common-cathode drive

Arduino test code:

int redpin = 11; //select the pin for the red LED

int bluepin =10; // select the pin for the  blue LED

int greenpin =9;// select the pin for the green LED

int val;

void setup() {

  pinMode(redpin, OUTPUT);

  pinMode(bluepin, OUTPUT);

  pinMode(greenpin, OUTPUT);

  Serial.begin(9600);

}

void loop() 

{

for(val=255; val>0; val--)

  {

   analogWrite(11, val);

   analogWrite(10, 255-val);

   analogWrite(9, 128-val);

   delay(1); 

  }

for(val=0; val<255; val++)

  {

   analogWrite(11, val);

   analogWrite(10, 255-val);

   analogWrite(9, 128-val);

   delay(1); 

  }

 Serial.println(val, DEC);

Produits similaires

4015 4*1.5MM Microphone
Voir
4015 4*1.5MM Microphone
DZD 50

Sensors & modules

USB 2.0 HUB 4-Port Controller Module High Speed DC 5V 500mA
Voir
USB 2.0 HUB 4-Port Controller Module High Speed DC 5V 500mA
DZD 1 500

Sensors & modules

Tiah