Skip to content

Digital_White_LED_Light_Module_(SKU__DFR0021)

Angelo edited this page Sep 21, 2016 · 3 revisions

Digital White LED Light Module (SKU: DFR0021)

Introduction

This LED light module has a shiny color. It is ideal for Arduino starter. This module can be easy to be plugged on IO/Sensor expansion shield.

NOTE: This LED was wired to light up when the Signal pin is set to low before. The reason for this is to prevent the LED from demanding too much current from the microcontroller and damaging the I/O. But now, we have the Ver.2 with the same convenience in use and effectiveness in prevent,and the different that this LED is wired to light up when the Signal pin is set to high like general.

Specification

  • Type:Digital
  • PH2.0 socket
  • White LED light modules
  • Special sensors with the arduino board and expansion combined with ambient light sensors
  • Enables interaction with the light-related works

Pin Definition

LED light module pin definition :

:#Input

:#Power

:#GND

Connection Diagram

Digital module connection diagram

Sample Code

///Arduino Sample Code for DFR0021
///www.DFRobot.com
///Last modified on 26th February 2015

int led = 3;

void setup()
{
  pinMode(led, OUTPUT);     //Set Pin3 as output
}
void loop()
{
          digitalWrite(led, HIGH);   //Turn on led
          delay(2000);
          digitalWrite(led, LOW);    //Turn off led
          delay(2000);
}

image:nextredirectltr.pngGo shopping digital white led light module (sku: dfr0021)

category: Product_Manual category: DFR_Series category: Components category: source

Clone this wiki locally