Automatic Toilet Flusher


Results 1 to 40 of 99

Threaded View

  1. #20
    Join Date
    Jul 2007
    Posts
    67


    Did you find this post helpful? Yes | No

    Default

    Can't figure out the delay for the servo

    Here's my program


    IRLED1 var PORTB.0
    Servo var PORTB.1

    TRISB=%00000001
    Loop:
    If IRLED1 =1 then
    Pulsout Servo,110
    pause 10
    Pulsout Servo,150
    else
    Pulsout Servo,110
    endif
    Goto Loop

    End
    I Want it to move the servo to the right to it's most and delay for two seconds and
    then come back to center.

    If anyone can help me out
    it would be much appreciated
    Last edited by Techbuilder; - 27th February 2008 at 12:19. Reason: .

Similar Threads

  1. Automatic 240V / 110V selector
    By The Master in forum Off Topic
    Replies: 5
    Last Post: - 13th October 2008, 00:33
  2. LCD automatic management?
    By ruijc in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 26th September 2008, 11:24
  3. Automatic VB6 to pic serial connection
    By arniepj in forum Code Examples
    Replies: 13
    Last Post: - 10th January 2008, 07:57
  4. Automatic turn off
    By AMay in forum Schematics
    Replies: 22
    Last Post: - 6th February 2006, 12:31

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