Countdown timer project help

I am designing a 30 minutes countdown timer with a LDR in the circuit.
So far i can`t even achieve a simple countup timer from 0-9 , please help.
Clock pulse (Astable multivibrator)- 555 timer circuit
4 bit counter wired as MOD 10 74LS293N
74LS47N Decoder 
LED common anode.
Attachments:
Simple countup 0-9 counter.ms10 ‏128 KB

It seems that your 555 timer isn't counting, I hooked up an oscilloscope to it to see what it was generating
Attachments:
Simple countup 0-9 counter.ms11 ‏353 KB

Similar Messages

  • Real time project Help

    Hello
    I've been given a new project to attempt which involves developing a java application which takes real time data from the internet, stores this data in a database and then allows manipulation of this data. Any info about how this could be acheived would greatly appreciated.
    Many Thanks

    I intend to design a system which takes seismic data
    from specifc web sites and calculate the risk of aSo you have a program that runs periodically to collect the data from
    different places, transform it to your format and store it to a database.
    and your sources are Webservices OR you plan to get an html pages and
    filter out what you want OR a mix of both.
    the second program can take the data present in the database at that
    moment and give the tsunami probability
    tsuinami occuring from this. I would like to know
    which database software would be the best to use.That depends on your design constraints. Firstly you need to decide what
    kind of a database you want ( RDBMS, obj dbs, ..) and then lock on a db.
    A relational db may be what you decide on and in the free domain you have
    say MySQL
    Also how can i set up the data transfer, could this
    be done with the java.net api using the url
    resource.In case you are picking htmls, yes. If webservices are available, check out
    stuff like apache AXIS..

  • How can I make a countdown timer using After Effects

    I'd like to make a video that has a timer that counts down one second at a time. I need one starting at 5:00 (five minutes). Is there a way to easily do this in After Effects without having to manually change the text every second?
    Thanks.

    I'm glad that you found a solution, but I thought that you might appreciate a suggestion of another approach.
    Colin Braley provides a tutorial and example project on
    his website that show how to use an expression on the Source Text property to animate text to overcome some of the limitations of the Numbers effect.
    There's a similar example in the
    "Example: Animate text as a timecode display" section of After Effects Help.
    Here are some Community Help searches that can lead you to some ideas, too:
    Community Help search for 'countdown timer'
    Community Help search for 'digital countdown timer'

  • Need help on countdown timer!

    Could someone please guide me in the direction as to how to make a countdown timer?  I created a timer that counts down to a certain date, but I just want the timer to countdown 24 hours, not to a certain date.  I also want to have a button below the timer so that when you click it, it adds 30 seconds to the timer.  Can anyone help me with this?

    Hi,
    I hope it will be use full for u....
    var timelong=2000;
    var mytimer:Timer=new Timer(timelong,1);
    mytimer.addEventListener(TimerEvent.TIMER_COMPLETE,myfunc);
    mytimer.start();
    function myfunc(event:TimerEvent)
        trace("hi it's working");
    mybut.addEventListener(MouseEvent.CLICK,addtime);
    function addtime(event:MouseEvent)
        timelong+=3000;
    Thanks,
    K Swamy Vishnubhatla,

  • Help in AS3 code of 24 hour countdown timer

    hello,
    i  just wanna ask if someone can help me,
    i created a 24 hour flash countdown timer here http://allofmyworks.weebly.com/flash.html
    the problem is when it reaches the desired time, the time still counts and became negative,
    what i want is to make it only 24hour countdown clock and when it reaches the time it will only stay in 00:00:00
    thanks
    here is the code i used
    var endDate:Date = new Date(2012,0,4);
    var countdownTimer:Timer = new Timer(1000);
    countdownTimer.addEventListener(TimerEvent.TIMER, updateTime);
    countdownTimer.start();
    function updateTime(e:TimerEvent):void
              var now:Date = new Date();
              var timeLeft:Number = endDate.getTime() - now.getTime();
              var seconds:Number = Math.floor(timeLeft / 1000);
              var minutes:Number = Math.floor(seconds / 60);
              var hours:Number = Math.floor(minutes / 60);
              seconds %= 60;
              minutes %= 60;
              var sec:String = seconds.toString();
              var min:String = minutes.toString();
              var hrs:String = hours.toString();
              if (sec.length < 2) {
                        sec = "0" + sec;
              if (min.length < 2) {
                        min = "0" + min;
              if (hrs.length < 2) {
                        hrs = "0" + hrs;
              var time:String = hrs + ":" + min + ":" + sec;
              time_txt.text = time;

    here is the code
    var endDate:Date = new Date(new Date().getTime()+24*60*60*1000);
    var countdownTimer:Timer = new Timer(1000);
    countdownTimer.addEventListener(TimerEvent.TIMER, updateTime);
    countdownTimer.start();
    function updateTime(e:TimerEvent):void
              var now:Date = new Date();
              var timeLeft:Number = endDate.getTime() - now.getTime();
              var seconds:Number = Math.floor(timeLeft / 1000);
              var minutes:Number = Math.floor(seconds / 60);
              var hours:Number = Math.floor(minutes / 60);
              seconds %= 60;
              minutes %= 60;
              var sec:String = seconds.toString();
              var min:String = minutes.toString();
              var hrs:String = hours.toString();
              if (sec.length < 2) {
                        sec = "0" + sec;
              if (min.length < 2) {
                        min = "0" + min;
              if (hrs.length < 2) {
                        hrs = "0" + hrs;
              var time:String = hrs + ":" + min + ":" + sec;
              time_txt.text = time;

  • Countdown Timer HELP

    I got this countdown timer, when a date is passed in, it shows days, hours, minutes, seconds, milliseconds. One problem, is that the hours contain the days converted into hours and any other hours less the 24, minutes contain all the minutes of the days, hours and any other minutes left over etc. (I know hard its to understand). Wondering if anyone out there knew how to stop this (looking for the days, and hours left over, NOT day converted to hours and hours left over less than a day), i think i need to use mod(%), but i dont know where. Here come the code, run it, it works perfectly and you will see what I mean. Code solution would be gravy
    <HTML>
    <HEAD>
    <SCRIPT LANGUAGE="JavaScript">
    mDate = new Date("15:54 April 29 2004")
    function countdown()
         var now=new Date()
         var diff=mDate.getTime()-now.getTime()
         if (diff <= 0)
              document.bid.mseconds.value = 0
              return 0;
         document.bid.days.value = Math.round(diff/(24*60*60*1000))
         document.bid.hours.value = Math.round(diff/(60*60*1000))
         document.bid.minutes.value = Math.round(diff/(60*1000))
         document.bid.seconds.value = Math.round(diff/1000)
         document.bid.mseconds.value = diff
         var id=setTimeout("countdown()",0)
    </SCRIPT>
    </HEAD>
    <BODY onLoad="countdown()">
    Countdown <BR>
    <form name="bid" method="post" action="">
    <p>Timeleft</p>
    <TABLE BORDER=0>
    <TD width="79">Days: </TD>
    <TD width="81">
    <INPUT TYPE="text" NAME="days" SIZE=15></TD> <TR>
    <TD width="79">Hours: </TD>
    <TD width="81">
    <INPUT TYPE="text" NAME="hours" SIZE=15></TD> <TR>
    <TD width="79">Minutes:</TD>
    <TD width="81">
    <INPUT TYPE="text" NAME="minutes" SIZE=15></TD> <TR>
    <TD width="79">Seconds: </TD>
    <TD width="81">
    <INPUT TYPE="text" NAME="seconds" SIZE=15></TD> <TR>
    <TD width="79">Milliseconds:</TD>
    <TD width="81">
    <INPUT TYPE="text" NAME="mseconds" SIZE=15></TD> <TR>
    </TABLE>
    </form>
    </BODY>
    </HTML>
    Regards,
    Don Colvin (Computer Science Student)

    and what is your JSP related question ?

  • AS3 Timer Function Help

    Hi,
    I am trying to create a desktop countdown timer (personal project) however I am getting some issues with the script.  The countdown timer works fine until I try and get user inputs.  I have created some variables  to store the end date and have a series of input fields for the user to provide their desired date.
    I have provided the complete actionscript below in the hope this will help idenitfy the issue.  Basically when the user inputs their desired date and click OK the application takes these values converts them to a number and assigns them to the date variables.  Then it is supposed to update the countdowntimer start counting down from this new date value.
    I have used trace to ensure the initial values are correct (which they are) and the ensure the user inputs are getting through and they are, I just can't seem to get the timer to refresh with the updated end date.
    CODE
    // import flash common system classes
    import flash.desktop.*;
    import flash.net.*;
    import flash.display.*;
    import flash.events.*;
    import flash.system.Capabilities;
    import fl.transitions.*;
    import fl.transitions.easing.*;
    import flash.text.*;
    import flash.display.Sprite;
    // Create Variables and data type them to store application end Date
    var myYear:Number;
    var myMonth:Number;
    var myDay:Number;
    //Create user variables to store user inputs
    var userYear:String;
    var userMonth:String;
    var userDay:String;
    // Give application varibales initial values
    myYear = 2009;
    myMonth = 6;
    myDay = 2;
    // As Jan is referenced in AS as 0 -1 from the actual month number;
    myMonth = myMonth -1;
    //Assign a new Date variable with the target date initially set.
    var endDate:Date = new Date(myYear,myMonth,myDay);
    trace (endDate);
    //create time with a delay of 1 second
    var countdownTimer:Timer = new Timer(1000);
    countdownTimer.addEventListener(TimerEvent.TIMER, updateTime);
    countdownTimer.start();
    //Update timer function fired every second
    function updateTime(e:TimerEvent):void
         var now:Date = new Date();
         var timeLeft:Number = endDate.getTime() - now.getTime();
         var seconds:Number = Math.floor(timeLeft / 1000);
         var minutes:Number = Math.floor(seconds / 60);
         var hours:Number = Math.floor(minutes / 60);
         var days:Number = Math.floor(hours / 24);
         seconds %= 60;
         minutes %= 60;
         hours %= 24;
         var sec:String = seconds.toString();
         var min:String = minutes.toString();
         var hrs:String = hours.toString();
         var d:String = days.toString();
         if(sec.length < 2) {
              sec = "0" + sec;
         if(min.length < 2) {
              min = "0" + min;
         if(hrs.length < 2) {
              hrs = "0" + hrs;
         if(d.length == 2) {
              d = "0" + d;
         if(d.length == 1) {
              d = "00" + d;
         var time:String = d + ":" + hrs + ":" + min + ":" + sec;
         countDown_mc.time_txt.text = time;
    //create event listener
    background_mc.addEventListener(MouseEvent.MOUSE_DOWN, back_CLICK);
    close_btn.addEventListener(MouseEvent.CLICK, closeButton_CLICK);
    settings_btn.addEventListener(MouseEvent.CLICK, settingsbtn_CLICK);
    settings_mc.ok_btn.addEventListener(MouseEvent.CLICK, okbtn_CLICK);
    settings_mc.cancel_btn.addEventListener(MouseEvent.CLICK, cancelbtn_CLICK);
    //***** ASSIGN FUNCTIONS ******
    //function to action when back MC listener is activated
    function back_CLICK(e:MouseEvent):void
         stage.nativeWindow.startMove();
    //function to action when the close button listener is activated
    function closeButton_CLICK(e:MouseEvent):void
         NativeApplication.nativeApplication.exit();
    //Set function for click event on settings button
    function settingsbtn_CLICK(e:MouseEvent):void
         //Setup an alpha tween on the timer display
         var clockAlphaTween1:Tween = new Tween(countDown_mc, "alpha", Strong.easeOut, 1,0,2,true);
         //Listen for when the tween has finished and then run function
         clockAlphaTween1.addEventListener(TweenEvent.MOTION_FINISH, clockAlphaTween1_FINISH);
    //Function for when alpha tween above is finished
    function clockAlphaTween1_FINISH(e:TweenEvent):void
         //Setup an alpha tween for the settings mc
         var settingsAlphaTween1:Tween = new Tween(settings_mc, "alpha",Strong.easeOut, 0,1,2,true);
         //Setup a motion tween on the x axis for settings mc
         var settingsXTween1:Tween = new Tween(settings_mc, "x",Strong.easeOut, 416, 96, 2,true);
    //Set function for click event for the cancel button
    function cancelbtn_CLICK(e:MouseEvent):void
         //Setup an alpha tween on the settings mc
         var settingsAlphaTween2:Tween = new Tween(settings_mc, "alpha",Strong.easeOut, 1,0,2,true);
         //Setup a motion tween on the x axis for setting mc
         var settingsXTween2:Tween = new Tween(settings_mc, "x",Strong.easeOut, 96, 416, 2,true);
         //Listen for when the tween above has finished then run function
         settingsXTween2.addEventListener(TweenEvent.MOTION_FINISH, settingsXTween2_FINISH);
    //Function for when motion tween has finished
    function settingsXTween2_FINISH(e:TweenEvent):void
         //Setup alpha tween for timer display
         var clockAlphaTween2:Tween = new Tween(countDown_mc, "alpha", Strong.easeOut, 0,1,2,true);
    //Set function for click event on ok button
    function okbtn_CLICK(e:MouseEvent):void
         //Assign user inputed values to variables
         userYear = settings_mc.yearInput_txt.text;
         userMonth = settings_mc.monthInput_txt.text;
         userDay = settings_mc.dayInput_txt.text;
         //Convert string values to number data type and replace app variables with these values
         myYear = Number(userYear);
         myMonth = Number(userMonth)-1;
         myDay = Number(userDay);
         //Close the settings mc with alpha and motion tweens
         var settingsAlphaTween3:Tween = new Tween(settings_mc, "alpha",Strong.easeOut, 1,0,2,true);
         var settingsXTween3:Tween = new Tween(settings_mc, "x",Strong.easeOut, 96, 416, 2,true);
         //Listen for when motion tween has finished and run function
         settingsXTween3.addEventListener(TweenEvent.MOTION_FINISH, settingsXTween3_FINISH);
    //Function for when motion tween has finished
    function settingsXTween3_FINISH(e:TweenEvent):void
         //Run functions
         clearSettings();
         applyNewTimer();     
         //Setup motion tween on x axis for timer display
         var clockAlphaTween3:Tween = new Tween(countDown_mc, "alpha", Strong.easeOut, 0,1,2,true);
    //Function to clear the setting input fields
    function clearSettings()
         settings_mc.yearInput_txt.text = "";
         settings_mc.monthInput_txt.text = "";
         settings_mc.dayInput_txt.text = "";
    //Function to assign new endDate with new user values.
    function applyNewTimer()
         var endDate:Date = new Date(myYear,myMonth,myDay);
         trace (endDate);

    if its a timer issue; I think your missing the repeat count, which is why it stops after its first run, modify to match with the follwing:
    var countdownTimer:Timer = new Timer(1000, 999);// infinite amount of repeats??
    Timer(delay:Number, repeatCount:int = 0)
    Constructs a new Timer object with the specified delay and repeatCount states.
    If that doesn't solve your problem, try posting the errors you get, or better yet post your fla online so I have a better idea of whats going on

  • Can we use the AdventureWorks2008R2 data for the real time project.

    Hi,
    In our project we are trying to do the data scrambling on First name, last name and middle name...
    In the regular practice we use to update the names as
    First Name = FN+<PERSON_SNO>
    Last Name = LN+<PERSON_SNO>
    Middle Name = MN+<PERSON_SNO>
    The Problem is the names are not looking realistic, so I thought of applying some logic and updating our PERSON table names based on Person.Person table in adventure works.
    My question is can we use the AdventureWorks2008R2 data for the real time project. Is there any cop right issue.
    Someone please help me solve this issue.
    Thanks
    Karthikeyan Jothi.

    Please read this link content:
    Adventure Works Sample Site
    sqldevelop.wordpress.com

  • In a Real time project what would be the agent assignment attribute setting

    Dear Experts,
    I have never worked on a workflow project. I have been only practising workflow on a IDES system. I would like to know in a real live production system what settings do we use when we define the agent assignment at the task level? Do we set the attribute as GENERAL TASK always?
    To be more specific as in the task attributes we have many options like
    GENERAL TASK
    GENERAL FORWARDING ALLOWED,
    GENERAL FORWARDING NOT ALLOWED AND
    FORWARDING NOT ALLOWED.
    From the first three options which is most generally used in a real time projects?
    AND
    is it necessary to always set the attribute as GENERAL TASK before transporting the workflow definition to other systems from the development system?
    appreciate your help on the same.
    cheers
    chky

    Hello Learner,
    It depends on the requirement, but in most of the cases we assign the task as general task.
    To have some more information on the various attributes,
    ·        General task
    If you define a task as a general task, all users can execute the task. This is useful if the task is used in a workflow and you only want to define the recipients in the step definition. A recipient can forward associated work items to all users.
    Work items whose tasks are defined as general tasks and for which no responsible agents or default rules are defined are offered to all users of the SAP System for execution in their Business Workplaces.
    ·        General forwarding allowed
    A work item that represents a task with this property can be forwarded by one of its recipients to all users, even if they are not possible agents of the task.
    ·        General forwarding not allowed
    A work item that represents a task with this property can be forwarded by one of its recipients only to the possible agents of the task.
    ·        Forwarding not allowed
    A work item that represents a task with this property cannot be forwarded by one of its recipients.
    Hope this will help.
    Regards,
    Sam

  • Javascript countdown timer not working in Safari

    Years ago I copied a Javascript for a countdown timer and it has been working on my website ever since in both Safari and Firefox. I have been working on updating my site and suddenly it stopped working in Safari, but still works in Firefox. Obviously, I'd like it to work in everyone's browser if possible. I've created a page which only has the countdown timer on it. Can anyone tell me what I need to do to get it to work in Safari?
    The test page where you can see this is: http://hyperflite.com/countdowntest.html
    TIA

    Hi,
    Is there any reason for the numerous body tags in there?
    <pre><body onload="doCountdown();">
    <body>
    <body ... >
    </pre>
    I don't have Safari here to test with, but I wouldn't have thought they were helping matters

  • Countdown timer to NEXT WHOLE HOUR..?

    Hello.
    I need to create a countdown timer function.
    Normally that would not be a problem for me, but this timer needs to countdown to the next whole hour. As an example, if the time is 23:42 the countdown would say 17:35 (17 minutes, 35 seconds).
    When the timer hits zero, it will start from 59:59 and so on.. Always counting to the next whole hour.
    Im kind of in a jam and need this done ASAP, any help would be greatly apreciated!
    / Rasmus

    Im sorry if i implied that im a great actionscripter, im not
    What i would normally do is just grab a counter script from a google search and modify it to countdown to the correct time, but i havent been able to find a counter that counts down to the next whole hour.
    It should just be plain and simple and display the time in minutes and seconds like this: 25:14
    I found this one on google, counting down for christmas. If that could be modded into showing only minutes and seconds and of course counting down to the next whole hour, that would be awsome!
    https://dl.dropbox.com/u/2628604/countdown-test.fla

  • Insert a countdown timer in Keynote?

    Hello all,
    I'm sure this is an included feature that I just can't find somehow. I would like to insert a countdown timer into a slide. This seems pretty common; I've seen it done a lot. But I just can't find the Insert>timer link, or anything like it. And the iWork help file is forever searching and never going anywhere (second, embedded problem), so I can't search there.
    I tried the iPresentee thing, but it didn't download properly. Plus, it seems like a basic feature available for a presenter, especially since there's a timer included in the Presenter view.
    Any help would be appreciated. Thanks.

    d moon,
    Keynote does not provide any countdown timer features. You need to seek third parties for them.
    The iPresentee timers are a good start - their website provides a free "goodie" of timers in the form of a Keynote File where many choices of timers are available. Try downloading the file again or contact iPresentee for assistance.
    Each Timer is actually a Quicktime video clip. You select the one with the closest time range to your needs, copy it to your presentation and adjust the start point.
    Keynote > Inspector > Quicktime > Start & Stop controls

  • Display a countdown time in a message box

    I still search for an easy way to show a 30sec realtime countdown timer in a message box.
    Are there any hints from your side. thanks -

    I think this vi could help, depending on what you mean with "realtime". Sorry for the mixed language messages.
    Paolo
    Paolo
    LV 7.0, 7.1, 8.0.1, 2011
    Attachments:
    CountDown.vi ‏31 KB

  • IOS 6 bug - countdown timer

    I just upgraded my iPhone 4 to iOS 6 and found a strange bug: when setting the system time format to 12-hour time, then open Clock - Timer, if I set the timer's countdown duration longer then 1 hour, after starting, the timer displays the countdown time in a very strange style (see the attached screenshot). But after setting the system time format back to 24-hour time, this timer's dislay problem disappeared. Really weird bug.

    I too have this on my iPhone 4S, I am in the UK, and I like to have the 12 hour setting for my time, but when this is the case I get the same strange problem as QQ as shown,  ALSO... I believe if I run the Stopwatch and it goes over an hour then the display goes strange in the same way.  Apple feel free to contact me, so I can help you resolve this for iOS 6.0.x.
    Thanks
    Daniel

  • Countdown timer in adobe form from a field and pop-up warnings

    I have created a form in adobe livecycle and I would like to add a Countdown timer that clicks off when a user enter's a time. I need the countdown timer to be 2 hours from the entered time. The user will have 2 hours to complete the form. I need warning boxes that will pop up at 30 minutes and at 15 minutes. If not completed in the 2 hour time frame from when the time was entered then the form will prompt to close.
    I have found where the timer starts from the start or stop button but I would like it to start from when the time field is excited.
    I am new to form scripting and any help would be greatly appreciated.
    Thank you

    Do you mean the JavaScript methods setTimeout(), clearTimeout(), setInterval() and clearInterval() ???
    I don't think these methods will work within Adobe LiveCycle forms.
    Nith

Maybe you are looking for

  • SAPSCRIPT to Web(pdf) has different line spacing than in SAP?

    When we issue to output the order in SAP it looks fine. When we open it in the web, using PDF, the lines are spaced differently. We have never had an issue before, but now we added a lot of text to a final page of the sapscript. Any suggestion how to

  • HP printer is copying a black page with dark lines

    If someone can help to determine why my HP is copying a black page. Recently the company upgraded to Windows 7, and I am not sure if that is what caused the problem with copying. Today I uninstalled and then reinstalled the printer using the CD. That

  • Just got a Late 2012 iMac 27 inch - recovery issues

    Just got a brand new iMac Late 2012 27 inch model (CPU: 3.4, 1GB GPU, 8GB RAM, 1TB Fusion, 10.8.3). Couple of questions: I tried Command R to get into recovery mode to see if it is working. It is not working at all. I then tried pressing the Option b

  • Scaling editing software to needs

    I've been doddering along with Adobe Premiere 6.5 -- mostly because I can't afford to upgrade -- but have been very satisfied with it since integrating After Effects (6.0!) and PhotoShop (6!) into my workflow.  (Yes, I know: Welcome to the 20th centu

  • Move Lightroom to new machine?

    Have new machine I want Lightroom on.  need to transfer license.