For this particular project I am thinking of using a small microcontroller maybe an Adafruit TrinketTrinketTrinkeTrinket