Product Name:2x 3-24V 8 Bit Blue/Red LED indicator Bar Module Diy Kit for Arduiuo NANO MCU pi


Packing list:

 
2 PCS DC 3-24V 8 Bit Blue/Red Common anode/cathode LED Bar;

   

Description:
  

Can be inserted directly into Breadboard,Ideal for linking up to your  Arduiuo UNO Mini Nano Mega2560 DUE Breadboard etc,or others MCU ( AVR STM32 ARM7 ARM9 ARM10 ARM11 PIC C8051 STC MSP430 FPGA/CPLD etc.) 
   
 
DC 3.3V 3.7V 5V 12V 24V 8 Bit Blue/Red Common anode/cathode LED Bar 
  
Color : Blue/Red
Working Voltage : DC 3-24V
Polarity : Common anode/Common cathode
Interface : 2.54MM with PIN/2.54MM no PIN
 
Size: 22.86 x 14.13 x 2.11 mm
Weight : 1.3g(with Pin),0.75g(no Pin)

Application :

MCU/ARM/FPGA/Atmega328p
PLC Motor
Electronic diy kit
ESP8266/nodemcu
NANO/UNO/MEGA2560/Breadboard
Raspberry pi 4/robot

  

Circuit schematics : 

Connection with UNO
 

 

 

 

Arduiuo uno/mega2560 Code  
//******************************************************//
 
/*
  Arduiuo_8led

  This example code is in the public domain.
 */
 
// give it a name:
int D1 = 9;
int D2 = 8;
int D3 = 7;
int D4 = 6;
int D5 = 5;
int D6 = 4;
int D7 = 3;
int D8 = 2;

// the setup routine runs once when you press reset:
void setup() {                
  // initialize the digital pin as an output.
pinMode(D1, OUTPUT);   
pinMode(D2, OUTPUT); 
pinMode(D3, OUTPUT);  
pinMode(D4, OUTPUT);  
pinMode(D5, OUTPUT);  
pinMode(D6, OUTPUT);  
pinMode(D7, OUTPUT);  
pinMode(D8, OUTPUT);  
}

// the loop routine runs over and over again forever:
void loop() {
  
  digitalWrite(D1, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(200);               // wait for a 200 Millisecond
  digitalWrite(D1, LOW);    // turn the LED off by making the voltage LOW
  
  digitalWrite(D2, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(200);               // wait for a Millisecond
  digitalWrite(D2, LOW);    // turn the LED off by making the voltage LOW
  
  digitalWrite(D3, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(200);               // wait for a Millisecond
  digitalWrite(D3, LOW);    // turn the LED off by making the voltage LOW

  digitalWrite(D4, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(200);               // wait for a Millisecond
  digitalWrite(D4, LOW);    // turn the LED off by making the voltage LOW
  
  digitalWrite(D5, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(200);               // wait for a Millisecond
  digitalWrite(D5, LOW);    // turn the LED off by making the voltage LOW
  
  digitalWrite(D6, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(200);               // wait for a Millisecond
  digitalWrite(D6, LOW);    // turn the LED off by making the voltage LOW
  
  digitalWrite(D7, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(200);               // wait for a Millisecond
  digitalWrite(D7, LOW);    // turn the LED off by making the voltage LOW
  
  digitalWrite(D8, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(200);               // wait for a Millisecond
  digitalWrite(D8, LOW);    // turn the LED off by making the voltage LOW
  
}
 
//******************************************************//