Please look over my code


Results 1 to 11 of 11

Threaded View

  1. #4
    Join Date
    Mar 2004
    Posts
    92


    Did you find this post helpful? Yes | No

    Default Re: Please look over my code

    WOW! Thanks for all your help and work Richard!

    I'll study it and try it out. I should have done a "block flow" for what I want to happen...

    Wait for button press (GPIO.3 is button sense input)

    Require button pressed for 3 seconds (GPIO.0 toggles) (orange and blue LEDs hooked cathode to cathode as status)

    Energize relay 1 for 18.5 seconds to open gate (GPIO.2)

    Wait for button press

    Require button pressed for 3 seconds

    Energize relay 2 for 19 seconds to close gate (GPIO.1)

    Start over
    The movement is controlled only by timing, I have no external sensors/limit switches or encoders.

    What do these mean in your code ? (!) and (;) I've not used or seen those.

    Thanks again, going to try it on the bench this morning.
    Last edited by Sam; - 27th March 2016 at 15:41.

Similar Threads

  1. avr code to code for PIC
    By JasonMcG in forum General
    Replies: 1
    Last Post: - 11th September 2014, 01:57
  2. Serial problem between BasicStamp code and PBP code
    By AllanZilkowsky in forum mel PIC BASIC Pro
    Replies: 22
    Last Post: - 6th April 2014, 03:15
  3. Working code but my layman approach uses too much code space
    By Christopher4187 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 14th December 2012, 21:44
  4. Code: Why is this code greater than 2000 words?
    By DrDreas in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 1st June 2007, 20:51

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