Arduino Switch to Turn a Relay timer
问题 Briefly: I would like to turn on a relay for 30 seconds, after I toggle a switch on. I'm trying to do a blinds automation at home. I have a simple ON-OFF-ON switch, attached to an Arduino connected to Relays. I want to turn on Relay#1 for a maximum of 30 seconds if I toggle the switch down from center. In other words, relay turns on when I switch, and when timer reaches 30 seconds relay turns off. similarly I want to turn on Relay#2 for exactly 30 seconds if I toggle the switch up from center