what would be required to develop a battery powered programable time switch . it would operate a typical home air freshener . looking for programable mode of operation between every 30 to 120 minutes with a pulse on during a 12 hour period and then a total rest period for the remaining 12 hours