Sunday, June 13, 2010

Arduino Nokia 6100 LCD Analog Clock Demo


I needed a RJ11 connector for my Datalogger project so I took the opportunity to get the Nokia 6100 LCD Shield from Sparkfun. I created an Analog Clock demo to check out the capabilities of the LCD.

Using the Sparkfun base driver ported by Mark Sproul to the Arduino as a foundation, I incorporated Jim Lynch's Nokia 6100 LCD tutorial graphics primitives and ASCII character code.

The iButton clock code was reused from the iButton data logger programmer project and modified to support the DS1904 with onboard clock and battery. It is only around $6, which is much cheaper the DS1994 that also had onboard memory. I soldered a 4.7 kOhm pull up resistor directly to the iButton holder to avoid the need for a bread board.

The clock tick marks and hands were drawn using cylindrical coordinates:
- X position = radius * cos (angle)
- Y position = radius * sin (angle)

The time defaults to 9:40 am which can be changed to anything you want if the real time iButton clock is not attached.

Here is a link to the source code.

Demo Video:

6 comments:

  1. Sorry, but your zip archive file is not complete. I can't find LCDPutStr.c file.
    Could you publish the file and related?

    Thank you
    Dimitr

    ReplyDelete
  2. hi I have a question I have the arduino uno and the 6100 lcd screen, but when I run a program with a simple drawline it does not display anything. I added the code. I added lcd_driver.h to the library.

    Thanks for the help!

    #include
    #include
    #include
    #include
    #include
    #include
    #include
    #include "WProgram.h"
    #include "HardwareSerial.h"
    #include

    void setup() {
    // put your setup code here, to run once:
    ioinit(); //Initialize I/O
    LCDInit(); //Initialize the LCD
    LCDContrast(34);
    }

    void loop() {
    // put your main code here, to run repeatedly:
    LCDSetLine(0, 0, 127, 127, RED);
    delay(1000);
    }

    ReplyDelete
  3. Hello,

    I just got my first arduino board today (so i didn't started playing with it). However i noticed this post with a digital display that made me believe it is a nokia 6100 phone display - Am I wrong? I have an old nokia 6100 - is possible to use it's display in my projects? (sorry if it is a silly question)

    ReplyDelete
  4. Sorry for the late responses. I will check into the source code and see what is going on with the missing file.

    The display is shield from Sparkfun, so it is compatible with the Arduino.

    ReplyDelete
  5. I would highly recommend Le_ meridian funding services to any person in need financial help and they will keep you on top of high directories for any further needs. Once again I commend yourself and your staff for extraordinary service and customer service, as this is a great asset to your company and a pleasant experience to customers such as myself. Wishing you all the best for the future.Le meridian funding service is best way to get an easy loan,here is there email..lfdsloans@lemeridianfds.com Or talk to Mr Benjamin On WhatsApp Via_+1-989-394-3740 Thank You for helping me with loan once again in my sincerely heart I'm forever grateful.

    ReplyDelete
  6. Thanks for sharing this valuable article over here. You have shared such informative news about Arduino. Thanks Author.
    Arduino IOT Course in Hindi

    ReplyDelete