DFR0089

DFR0089 Datasheet


Shift out LED kit SKU:DFR0089

Part Datasheet
DFR0089 DFR0089 DFR0089 (pdf)
PDF Datasheet Preview
Shift out LED kit SKU:DFR0089

Contents
• 1 Introduction
• 2 Specification
• 3 Pin Usage
• 4 Sample Code

Introduction

This shiftout LED Kit includes a very simple and small LED display module. It makes it possible for you to directly connect many 7-segment led modules in a chain. So you could diy a simple timer or a clock display , and many other devices that require the use of 7 segment LEDs.

Specification
• supply power:5V
• Interface SPI
• Common Anode
• Digital Bits 1
• number of connecting:over 16
• Directly connected with the interface shield
• Compatible with the SPI LED Module 8 Digital Arduino Compatible
• size:41x30x25mm

Pin Usage

Shiftout register:Digital pins 3, 8, and 9

Sample Code
//Pin connected to latch pin ST_CP of 74HC595 const int latchPin = 8 //Pin connected to clock pin SH_CP of 74HC595 const int clockPin = 3 ////Pin connected to Data in DS of 74HC595 const int dataPin = 9 byte
void setup
//set pins to output because they are addressed in the main loop pinMode latchPin, OUTPUT pinMode dataPin, OUTPUT pinMode clockPin, OUTPUT Serial.begin 9600 Serial.println "reset" for int i = 0;i < 10;
digitalWrite latchPin, LOW shiftOut dataPin, clockPin, MSBFIRST, Tab[i] digitalWrite latchPin, HIGH delay 500 void loop if Serial.available > 0 // ASCII '0' through '9' characters are // represented by the values 48 through // so if the user types a number from 0 through 9 in ASCII, // you can subtract 48 to get the actual value int bitToSet = Serial.read - 48 // write to the shift register with the correct bit set high digitalWrite latchPin, LOW // shift the bits out shiftOut dataPin, clockPin, MSBFIRST, Tab[bitToSet] ;
// turn on the output so the LEDs can light up digitalWrite latchPin, HIGH ;

Powered By DFRobot 2008-2017
More datasheets: EB-9000PS-2 | EA8941A | ACT8941AQJ465-T | AWP2-50-7240-T-R | WM1811GECS/R | CDKWM1811A-S-1 | CRD1700-S-1 | CDBWM1811A-M-1 | WM1811AECS/R | 5BC-3-Y/G-CA


Notice: we do not provide any warranties that information, datasheets, application notes, circuit diagrams, or software stored on this website are up-to-date or error free. The archived DFR0089 Datasheet file may be downloaded here without warranties.

Datasheet ID: DFR0089 508636