Time display on 7-seg 4 digits


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Sep 2003
    Location
    INDIA
    Posts
    161


    Did you find this post helpful? Yes | No

    Default Some Logic help.

    Hello Sougata,

    I have got the code up and working for the HC595 and is working good. The clock is up and running and I can enter the alarm timing and trigger segment perfectly, so the problem is not the code help in driving the HC595 but some logic help in setting the clock with 3 pins and 4 digits for Hours and Mins.

    I would be working on setting two digits at a time which would be for Hours and Mins, Blank the other two digits so that it does not confuse. 1 switch to shift between Hours , mins , Ack change and come out of the setting mode and the other two switches simply to incr , decr the values of Hours and Mins.

    Just wondering if there was any other way of setting the clock with three buttons and 4 digits.

    regards

  2. #2
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563


    Did you find this post helpful? Yes | No

    Default Use a blanking Blinking Scheme

    Dear Charu,

    There are a number of possibilities. With your circuit posted I have found that it is using a solid state voice recorder as well. So it can be like this:

    Let us assume the switches are mode, plus and minus.

    1. When the mode switch is pressed once
    --> Annonce "Set Minutes", Blank the Hour, and directly increment of decrement minute variable in the clock.

    2. When presssed again
    --> Annonce "Set Hour", Blank the minutes and inc/dec Hour

    3. One more press
    --> Set Alarm Minutes

    4. One more press
    --> Set Alarm Hours

    5. Quit

    You can also use a counter in the background which increments automatically and is cleared on any press of either the plus or minus button. So when your counter reaches a preset number of seconds you can use this to auto quit from the menu. I use this type of setting in all my menu driven app. So pressing a menu button and doing nothing for sometime returns the system to its normal operating condition.
    Regards

    Sougata

  3. #3
    Join Date
    Sep 2003
    Location
    INDIA
    Posts
    161


    Did you find this post helpful? Yes | No

    Default Thank you.

    Hello Sougata,

    As I told you , the alarm part of the project is complete and is fully functional. Its a bit complicated as it includes 10 preset alarms in day and each of the alarm can have any segment palyed from the audio chip as preset by the user.

    OK , I got the cue from your post on how to go about setting the RTC time in Hours and Mins.

    Thank you.

    Project:

    Basically this is a Mantra Chanter I made for a religious faction called Brahmakumari for their deciples. It is just supposed to chant a particular mantra preset by the user, at a particular time in the day. There are in all 10 alarms and upto 16 mantras to choose from. Mantra is stored on API4000 OTP voice module from Aplus capable of storing upto 60 Mins of audio at 8 Kbps sampling rate.

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    And who says that religions where out-of-date?

    Sounds really cool to me!
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. Hdsp 21xx display
    By Original in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 7th June 2012, 21:07
  2. lumex 4 line display
    By glkosec in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 12th August 2009, 18:55
  3. Alarm Time
    By Santana in forum Code Examples
    Replies: 1
    Last Post: - 8th December 2006, 14:58
  4. SMART Serial 4 Digit LCD Display (SMARD4)
    By paul borgmeier in forum Adverts
    Replies: 0
    Last Post: - 5th January 2005, 06:50
  5. WRITE not working
    By servo260 in forum mel PIC BASIC Pro
    Replies: 31
    Last Post: - 29th December 2004, 03:02

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts