I have electric curtains on my windows which are regulated by a simple DOWN-OFF-UP button. Current function of this switch is that as long as it is pressed the curtains fall or raise and when they reach end position the motor is switched off automaticaly. What I have designed so far is simple 555 timer schematic which when activated by a short press will provide contact for a relay which will be on for about 30-40 seconds which will fully open/close my curtains.
The problem is that sometimes I want the curtains half way or so open. I want when I single press and release the button shortly to have the timer activated, but if I hold for more than say -1-2 seconds this timer to be invalidated and manual release of the button to stop the opening/closing of the curtains.
Can you help me how should I modify the schematic?
What I have designed so far is simple 555 timer schematic which will provide when activated by a short press contact for a relay which will be on for about 30-40 seconds which will fully open/close my curtains.
I think the old working system is using limit switches to let motor know the the curtains reached up/down to stop the motor.
In your design, using timer may cause the motor to work/stop in unwanted areas, before or after the required limits.
The problem is that sometimes I want the curtains half way or so open. I want when I single press and release the button shortly to have the timer activated, but if I hold for more than say -1-2 seconds this timer to be invalidated and manual release of the button to stop the opening/closing of the curtains.
I think these limit switches are mounted on the curtain itself so they cut off the motor no matter my relay/button has closed the circuit or not. Currently when an end position is reached no current is supplied to the motor even with button pressed.
Can you point me how should I use such a microcontroller/timer. I'm still new to this and a link with something similar will be of a great help.
Presumably the op doesnt have facilities for programming microcontrollers.
I'd be inclined to connect the p/b to the 555's trigger input and also via a cap to the reset input.
So then one press over 1/4 sec or so starts the timer and closes the curtains (reset pulse is shorter than the trigger pulse thanks to the cap), and a short blip press resets the timer and stops the curtains where they are.
I've never tried this so I dunno whether its viable or not.
Althought I did not quite understand you, I tried several ways and nothing produces the desired result. Another idea of the functions is to start the timer with the button and stop it if pressed again.