loading

0.39in 4 Digit LED Clock Display Common Anode GreenItemID : 166599020

Our Price
RM 6.00
Shipping
RM 7 by courier to Peninsular Malaysia
RM 11 by courier to Sabah, Labuan
RM 11 by courier to Sarawak
Combine Shipping AllowedCombine Shipping Allowed , Ships 1-3 working days after payment.
Please select option below

X

Quantity
- +
Ship From
Muar / Johor  
Ship To
Within Malaysia ,Ship By: Courier Service
Payment Method
Internet Banking,Bank Transfer,
Views
540
Available Quantity
5
blchua72
Since 21 Jan 2013

Feedback Score
: 162+
Positive Feedback
: 100.00%
Total Product
: 93
Item Specification
  • Report
  • Model / SKU : 0.39in 4 Digit LED Clock Display Common Anode Gree
    Conditions : New

    Product Description


    0.39in 4 Digit LED Clock Display Common Anode Green

    0.39in 4 Digit LED Clock Display Common Anode Green

     
    Description:-
    Display type:- 0.39in 4 digit 7 segment diplay 
    Feature:- with colons for time display (such as : in 06:30)
            and with degree mark for temperature display (such as ° in 24°C)
    Forward Segment Voltage:- 2.1V (Max 2.2V Min 2.0V)
    Forward Segment Current:- 20mA 
    Operating Temperature:- -25 ~ 85°C
     
    Connection:-
    Connection type:- Common Anode
    Number of pins:- 16 ( two rows of 8 pins)
    Digit Pins:- 4 digit pins, these pins are anodes (positive side)
    Pin Number Digit
        1 1
        2 2
        6 3
        8 4
    Segment Pins:- 8 segment pins, these pins are cathodes (negative side)
    Pin Number Segment
        14 a
        16 b
        13 c
        3 d
        5 e
        11 f
        15 g
        7 dp
    Additional Pins:-
    Pin Number Function
        4 colons (anode)
        12 colons (cathode)
        10 degree mark (anode)
         9 degree mark (cathode)
    Look from top of display, arrangement of pins is as below:-
    16, 15, 14, 13, 12, 11, 10, 9
     1, 2, 3, 4, 5, 6, 7, 8
     
    Example Arduino code:-
    // Seven Segment RTC 
    // coded by blchua72 to illustrate the application of LED clock display,
    // and DS1302 RTC Module selling in my Lelong Webstore
    // date: 10th August 2015
    // this sketch is using the following 4 arduino libraries
    // Time library, Timeone library, DS1302RTC library and SevSeg library
    // Yet the compiled code size is just 6.5K only occupied 21% of the 31K Flash 
    // available on a Arduino Pro Mini
    // And the global variables uses 490 bytes only occupied 23% of the 2K byte RAM
    // available on a Arduino Pro Mini
    // Still plenty of room to expand with your own coding to add or modify
    #include
    #include
    #include
    #include
    DS1302RTC RTC(17,16,15);
    // Connection Arduino Pin RTC Module
    // 15 SCK
    // 16 IO
    // 17 RST
    // 5V VCC
    // GND GND
    SevSeg sevseg;
    int hz=0;
    int DisplaySecond=0;
    int DisplayMinute=0;
    int DisplayHour=0;
    tmElements_t tm;
     
    void setup() 
    { // Setup the RTC module
      if (RTC.haltRTC()) {
        Serial.println("The DS1302 is stopped. Please run the SetTime");
        Serial.println("example to initialize the time and begin running.");
        Serial.println();
      }
      if (!RTC.writeEN()) {
        Serial.println("The DS1302 is write protected. This normal.");
        Serial.println();
      }
      // Declare 5 digits, digit 1 & 2 to display minutes
      // digit 3 & 4 to display seconds
      // digit 5 only wired to the middle 2 colons, its value
      // toggles between 1 & 2, segment a is wired to colons
      // so when value is 1, segment a off, so colons off
      // when value is 2, segment a on, so colon on
      byte numDigits = 5;   
      byte digitPins[] = {2, 3, 4, 5, 9};
      // Connections Arduino Pin through resistor LED pins
      // 2 330 Ohm 1 digit 1
      // 3 330 Ohm 2 digit 2
      // 4 330 Ohm 6 digit 3
      // 5 330 Ohm 8 digit 4
      // 9 330 Ohm 4 colons
      byte segmentPins[] = {10,11,12,6,7,13,14,8}; 
      // Connections Arduino Pin LED pins
      // 10 14 & 12 segment a(14) & colons(12)
      // 11 16 segment b
      // 12 13 segment c
      // 6 3 segment d
      // 7 5 segment e
      // 13 11 segment f
      // 14 15 segment g
      // 8 7 decimal point
      sevseg.begin(COMMON_ANODE, numDigits, digitPins, segmentPins);
      sevseg.setBrightness(50); /* can set brightness value between 0 and 100 */
      sevseg.setNumber(0,0);
      Serial.begin(9600);
      Serial.println("Starts....");  
      
      
      Timer1.initialize(20000); // set a timer of length 20000 microseconds (or 0.020 sec - or 50Hz => the led will blink 50 times, 50 cycles of on-and-off, per second)
      Timer1.attachInterrupt( timerIsr ); // attach the service routine here
    }
     
    void loop()
    {
      
    }
    void print2digits(int number) {
      if (number >= 0 && number < 10)
        Serial.write('0');
      Serial.print(number);
    /// --------------------------
    /// Custom ISR Timer Routine
    /// --------------------------
    void timerIsr()
    {
        sevseg.refreshDisplay();
        if (hz==50) {
                    hz=0;
                    if (! RTC.read(tm)) {
                        Serial.print(" Time = ");
                        print2digits(tm.Hour);
                        Serial.write(':');
                        print2digits(tm.Minute);
                        Serial.write(':');
                        print2digits(tm.Second);
                        Serial.println();
                    }
                    DisplaySecond=(int)tm.Second;
                    DisplayMinute=(int)tm.Minute;
                    DisplayHour=(int)tm.Hour;
                    sevseg.setNumber(DisplayMinute*10+DisplayHour*1000+1,0);
                    Serial.println(DisplayMinute+DisplayHour*100);
                  }else if (hz==25) {   
                    sevseg.setNumber(DisplayMinute*10+DisplayHour*1000+2,0);
                  }
        hz++;
       
    }
     
    Package included:-
    1pcs of Common Anode Green 0.39in 4 Digit LED Clock Display and
    5pcs of 330 Ohm 0.25W Resistor only.
    (Picture show a Arduino Project setup with a Arduino Pro Mini, Breadboard, Battery Power Pack, a DS1302 RTC Module and some Jumper Wires is to illustrate an example of connection only, these extra parts is not included in this package and need to order separately from this store if required)


    Last Updated @ 8/12/2015 7:59:26 PM


    Last Updated @ 8/15/2015 1:13:49 PM




    Questions & Answers   Ask Seller

    Recently Viewed Items

    Questions & AnswersDo you have any questions to ask merchant about this product   Ask Seller

    Related Products

    blchua72' Best Seller

    blchua72' Items



    You may also be interested in Tag:



    Note : The seller assumes all responsibility for listing this item. Please contact the seller to resolve any questions before or after purchasing the item. Currency is RM (Ringgit Malaysia) unless otherwise noted.
    Back to Top
    lelong class
     
    subscribe
    Copyright © 2016 Interbase Resources Sdn. Bhd. (465435-U). All product names are trademarks of their respective companies.
    Lelong.my is not affiliated with or endorsed by any company listed on this site.
      Follow us : facebook       Our Partner : paypal
    Our Affiliates : Lmall.my | Superbuy.my | Pretty.my