Crowtail- LED

From Elecrow
Jump to: navigation, search

Contents

Description

The Crowtail-LED is designed for the beginners of Arduino. It is the best way to step into the Aduino from it’s I/O pins. The LED is the best choice to help you learn I/O pins.

Model: CT0006LD

Crowtail-LED1.JPG

Features

  • Crowtail compatible interface
  • 3.3V/5V Compatible
  • 8mm LED

Specification

Item Description
LED Control Mode Digital Pin of Arduino
Working Voltage 5V
Supply Mode Crowtail Interface

Usage

1. Connect the LED to Base Shield's digital port 5 with 3pin Crowtail Cable.

2. Plug it onto the Arduino/Crowduino. Connect the board to PC using USB cable.

Ledcontrol.jpg

3.Copy the demo code to your sketch, then upload to Arduino or Crowduino board.You will see the LED blink every second.

#define LED 5 //connect LED to digital pin5
void setup() {                
 // initialize the digital pin5 as an output.
 pinMode(LED, OUTPUT);     
}

void loop() {
 digitalWrite(LED, HIGH);   // set the LED on
 delay(500);               // for 500ms
 digitalWrite(LED, LOW);   // set the LED off
 delay(500);
}

4.Test result:
LED result1.jpg LED result2.jpg

Resource

Personal tools
Namespaces

Variants
Actions
Elecrow Store
Navigation
Elecrow Products
Toolbox