Button pressed time control


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    tanero's Avatar
    tanero Guest

    Unhappy Button pressed time control

    Hi all ;

    First of all this is my first message for this board. I will really wonder if i'll find an answer for my problem.

    My problem is that ;

    I want to control a one input of pic , with a limited time pressed .

    Means,

    if i pressed one input ; 1 output will be high , while button pressed , pic will count pressed time for preset time over. (for example 5 sn ) .

    After time over , the output will be low .

    If button still pressed over 5sn , the output will not be changed . (left low)

    i couldn't make an idea about how i can do that . is there a code like that ?

    Please help

  2. #2
    tanero's Avatar
    tanero Guest


    Did you find this post helpful? Yes | No

    Default

    no answer ?

  3. #3
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

  4. #4
    tanero's Avatar
    tanero Guest


    Did you find this post helpful? Yes | No

    Smile

    thanks Melanie,

    your are wounderfull , just one question is it possible to do same thing with a one button input.


    when press a button -> led will be high

    while button pressed and time over -> led will be low

    when button released --> led will be high
    Last edited by tanero; - 10th August 2005 at 22:12.

  5. #5
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    simply take that example and re-work it, omitting the section dealing with the initial pulse.

  6. #6
    tanero's Avatar
    tanero Guest


    Did you find this post helpful? Yes | No

    Default

    means like?

Similar Threads

  1. 8x8 keypad matrix...
    By mbox in forum General
    Replies: 5
    Last Post: - 9th October 2014, 18:43
  2. using a pot to control a time range
    By glkosec in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 17th June 2008, 19:59
  3. Control unlimited servos at the same time
    By mrx23 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 19th September 2006, 14:14
  4. 3 HPWM channels
    By docwisdom in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 4th April 2006, 02:43
  5. Code check -- button not working
    By docwisdom in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 2nd March 2006, 22:43

Members who have read this thread : 1

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