author
2Instructables127,062Views18CommentsJoined October 21st, 2010

Tell us about yourself!

Complete Your Profile

Achievements

10K+ Views Earned a bronze medal
  • Krizbleen commented on Krizbleen's instructable Automatic Secret Library Door1 year ago
    Automatic Secret Library Door

    There is a lot of code in the open and close loop that handles being interrupted. I'd take all of that out and just use delay(xx) to have the program wait for awhile before continuing and stopping the open or close routine where xx is the amount of time for the program to sleep.The likely issue is where it compares the end time to the door open time. Just strip all that stuff out and do something like: digitalWrite(relayOpenPin, HIGH); //operate the door relaydelay(xx); //xx is how long to waitdigitalWrite(relayOpenPin, LOW); Put the opposite code in the routine to close the door.I'll point out that you have no emergency stop mechanism now so make sure you have some give in the system to keep it from trapping something that gets stuck in there. I had a videogame box that stuc...

    see more »

    There is a lot of code in the open and close loop that handles being interrupted. I'd take all of that out and just use delay(xx) to have the program wait for awhile before continuing and stopping the open or close routine where xx is the amount of time for the program to sleep.The likely issue is where it compares the end time to the door open time. Just strip all that stuff out and do something like: digitalWrite(relayOpenPin, HIGH); //operate the door relaydelay(xx); //xx is how long to waitdigitalWrite(relayOpenPin, LOW); Put the opposite code in the routine to close the door.I'll point out that you have no emergency stop mechanism now so make sure you have some give in the system to keep it from trapping something that gets stuck in there. I had a videogame box that stuck out and got trapped. I used the book to reverse the opening and got it out.

    View Instructable »