A little Programming Help

Store Forums Defusable Clock General Discussion A little Programming Help

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #728
    guitartoys
    Member

    Hi,

    Not a programmer here, but a very capable builder.

    Trying to get this done in time for Halloween.

    Just would like to adjust the program a bit, in that I picked up a Relay Shield, and would like to use some of the LED signal wires to trip the Relay.

    The Shield has 2 relays on it. I’m looking to just have one LED signal wire go high when the Detonation Countdown button is hit, and stay his for like 2 seconds after.

    And then another LED signal wire go high when it hits 0, and then two seconds after.

    I did manage to find the count down time, and changed it from 10 seconds to 3.

    The plans are once the Countdown button it tripped (I’m hooking that up to the lid of the “bomb” when opened, I have one slow strobe and an MP3 playback get tripped (flashing lights, and WARNING-WARNING), then when it hits 0, I have a compressed air valve that I want to trip (and a fast strobe) for those 2 seconds to blow air at them.

    If someone could help program that for me, it would be greatly appreciated.

    I’ll send some pictures along, once it’s done.

    Peace.

    Michael

    #2072
    Michael
    Keymaster

    It’s very easy to set the LED high or low.

    digitalWrite(LED_TOP, HIGH);
    delay(2000); // wait 2 seconds
    digitalWrite(LED_TOP, LOW);

    The function countdown() is where the countdown is implemented, and detonate() is where the detonation sequence happens. You’ll need to stop using the 2 LEDs you repurpose everywhere else in the code, like the detonation sequence blinking.

    These code changes are not hard, but if you are not a programmer, then it may be more than you want to figure out. You could consider buying the Custom Programming option in the store, and I could code up the solution for you. Please understand I don’t have time to do everyone’s projects for free, so I have to charge some money for my time.

    http://nootropicdesign.com/store/index.php?main_page=product_info&cPath=5&products_id=33

    #2075
    guitartoys
    Member

    I’ll poke around and see what I can come up with.

    No problem at all paying for some programming time if I get stuck.

    Thanks.

    Michael

    #2080
    guitartoys
    Member

    Mike,

    I just purchased the programming time from you.

    I’m sending an email via the order@nootropicdesign.com email address

    Please keep an eye for it.

    Thanks.

    Michael

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.