DFR0090

DFR0090 Datasheet


LED Module SKU:DFR0090

Part Datasheet
DFR0090 DFR0090 DFR0090 (pdf)
PDF Datasheet Preview
LED Module SKU:DFR0090

Contents
• 1 Introduction
• 2 Connection
• 3 Pinout Diagram
• 4 Sample Code

Test Procedure Operating procedure

Introduction

This is 8 digital bits serial LED display. It features a flick free display and 3-Wire interface which allows more than 2 modules can be serial linked. With Interface Shield For Arduino SKU DFR0074 , this module can be plug and play.

Connection

This module is linked to interface shield via IDC6 cables. Make sure that the first input is plugged onto "Input" socket of the module. The "Output" socket is linked to the second module "Input socket".

Pinout Diagram

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" 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 ;

Additional sample code with the capability to print letters.
//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 //0,1,2, 3,4,5,6,7,8,9, ALL OFF byte 0xc8,0xa3,0x8c,0x98,0xce,0x9b s,t,u,v,w,x,y,z byte //"space",
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" ;
void loop
if Serial.available > 0
int bitToSet = Serial.read //test for "space" if bitToSet ==
digitalWrite latchPin, LOW shiftOut dataPin, clockPin, MSBFIRST, Tap[0] digitalWrite latchPin, HIGH //test for else if bitToSet == digitalWrite latchPin, LOW shiftOut dataPin, clockPin, MSBFIRST, Tap[1] digitalWrite latchPin, HIGH ;
//test for numbers else if bitToSet <=
bitToSet= bitToSet - 48 digitalWrite latchPin, LOW shiftOut dataPin, clockPin, MSBFIRST, Tab[bitToSet] digitalWrite latchPin, HIGH ;
//test for letters else
bitToSet= bitToSet - 97 digitalWrite latchPin, LOW shiftOut dataPin, clockPin, MSBFIRST, Taf[bitToSet] digitalWrite latchPin, HIGH ;
// 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 ;

Test Procedure
• Upload the sketch above.
• Link "Input" socket for LED Module to "shiftout" socket of interface shield
• Open serial monitor, and type The LED module should display "87654321"

Operating procedure

The Arrays Tab and Taf contain numbers and letters encoded as HEX which tells the LED Module which segments to light. For example the first element of Tab =0xC0 which is the number
0=0xC0

The zeros and ones represent the light 0's segments and the off 1's segments from the 7 segment display.

PGFEDCBA A --

F|__|B E|G |C
-- .P D So in this case P and G will be off. which makes 0 If you want to make your own letters here are some more resources to explain Seven Segment display Wiki Pattern tables Ascii tables are used to see the equivalence. You can see on this table:

DEC CHR 48 0 //This is why we subtract 48 for the first element in the number array 97 a //This is why we subtract 97 for the first element in the alphabet arra y

Powered By DFRobot 2008-2016
More datasheets: APS18A7A256G-6BTM1GWL | APS18A7A064G-6BTM1GL | APS18A7A128G-6BTM1GL | APS18A7A064G-6BTM1GWL | APS18A7A064G-6BTM1GW | 242253 | FST16292MTDX | FST16292MEAX | FST16292MEA | 18814


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 DFR0090 Datasheet file may be downloaded here without warranties.

Datasheet ID: DFR0090 508637