관련상품
-
상품 상세설명
Product Name:
3-12V 6 Bits Digital LED Module Display indicator Board for Arduiuo Marquees Water lights Breadboard PCB UNO MEGA2560
Packing list:1 pcs 6 bit RED 3V 3.3V 5V 9V 12V LED's BoardDescription:
2.54MM PIN 6 Digital LED Board ,Can be inserted directly into Breadboard Universal board ,Ideal for linking up to your Arduiuo UNO Pro Mini Nano Mega2560 DUE etc,or others MCU ( AVR STM32 ARM7 ARM9 ARM10 ARM11 PIC C8051 C51 STC MSP430 FPGA/CPLD etc.)1 6 Digital RED Common Cathode LEDs.2 7 PIN OUT 2.54mm3 1K ohm Limiting resistor4 Power Supply Voltage: 3-12V;5 Size: 17.78MM x 11.43MM.PCB:
Circuit schematics :
Connection with Arduiuo(Only 6 bit LED's Board ,Does not include ARDUIUO UNO R3) :
Arduiuo uno/mega2560 Code 1pcs
//******************************************************///*Arduiuo_6ledThis example code is in the public domain.*/// give it a name:int D1 = 13;int D2 = 12;int D3 = 11;int D4 = 10;int D5 = 9;int D6 = 8;// 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);}// 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 MilliseconddigitalWrite(D1, LOW); // turn the LED off by making the voltage LOWdigitalWrite(D2, HIGH); // turn the LED on (HIGH is the voltage level)delay(200); // wait for a MilliseconddigitalWrite(D2, LOW); // turn the LED off by making the voltage LOWdigitalWrite(D3, HIGH); // turn the LED on (HIGH is the voltage level)delay(200); // wait for a MilliseconddigitalWrite(D3, LOW); // turn the LED off by making the voltage LOWdigitalWrite(D4, HIGH); // turn the LED on (HIGH is the voltage level)delay(200); // wait for a MilliseconddigitalWrite(D4, LOW); // turn the LED off by making the voltage LOWdigitalWrite(D5, HIGH); // turn the LED on (HIGH is the voltage level)delay(200); // wait for a MilliseconddigitalWrite(D5, LOW); // turn the LED off by making the voltage LOWdigitalWrite(D6, HIGH); // turn the LED on (HIGH is the voltage level)delay(200); // wait for a MilliseconddigitalWrite(D6, LOW); // turn the LED off by making the voltage LOW}//******************************************************//Arduiuo uno/mega2560 Code( Insert two LED board)//******************************************************///*Arduiuo_6ledThis example code is in the public domain.*/// LED Board 1int D1 = 13;int D2 = 12;int D3 = 11;int D4 = 10;int D5 = 9;int D6 = 8;// LED Board 2int D11 = 1;int D12 = 2;int D13 = 3;int D14 = 4;int D15 = 5;int D16 = 6;int GND = 7;//Common Cathode// 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(D11, OUTPUT);pinMode(D12, OUTPUT);pinMode(D13, OUTPUT);pinMode(D14, OUTPUT);pinMode(D15, OUTPUT);pinMode(D16, OUTPUT);pinMode(GND, OUTPUT);digitalWrite(GND, LOW);}// 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 MilliseconddigitalWrite(D1, LOW); // turn the LED off by making the voltage LOWdigitalWrite(D2, HIGH); // turn the LED on (HIGH is the voltage level)delay(200); // wait for a MilliseconddigitalWrite(D2, LOW); // turn the LED off by making the voltage LOWdigitalWrite(D3, HIGH); // turn the LED on (HIGH is the voltage level)delay(200); // wait for a MilliseconddigitalWrite(D3, LOW); // turn the LED off by making the voltage LOWdigitalWrite(D4, HIGH); // turn the LED on (HIGH is the voltage level)delay(200); // wait for a MilliseconddigitalWrite(D4, LOW); // turn the LED off by making the voltage LOWdigitalWrite(D5, HIGH); // turn the LED on (HIGH is the voltage level)delay(200); // wait for a MilliseconddigitalWrite(D5, LOW); // turn the LED off by making the voltage LOWdigitalWrite(D6, HIGH); // turn the LED on (HIGH is the voltage level)delay(200); // wait for a MilliseconddigitalWrite(D6, LOW); // turn the LED off by making the voltage LOWdigitalWrite(D16, HIGH); // turn the LED on (HIGH is the voltage level)delay(200); // wait for a MilliseconddigitalWrite(D16, LOW); // turn the LED off by making the voltage LOWdigitalWrite(D15, HIGH); // turn the LED on (HIGH is the voltage level)delay(200); // wait for a MilliseconddigitalWrite(D15, LOW); // turn the LED off by making the voltage LOWdigitalWrite(D14, HIGH); // turn the LED on (HIGH is the voltage level)delay(200); // wait for a MilliseconddigitalWrite(D14, LOW); // turn the LED off by making the voltage LOWdigitalWrite(D13, HIGH); // turn the LED on (HIGH is the voltage level)delay(200); // wait for a MilliseconddigitalWrite(D13, LOW); // turn the LED off by making the voltage LOWdigitalWrite(D12, HIGH); // turn the LED on (HIGH is the voltage level)delay(200); // wait for a MilliseconddigitalWrite(D12, LOW); // turn the LED off by making the voltage LOWdigitalWrite(D11, HIGH); // turn the LED on (HIGH is the voltage level)delay(200); // wait for a 200 MilliseconddigitalWrite(D11, LOW); // turn the LED off by making the voltage LOW}//******************************************************//상품정보 제공고시
브랜드 Eletechsup -
배송/교환정보