Okay so this is pretty weird, but I'd really appreciate some help...
I am in the process of making a chair for my senior thesis that, well... lays eggs (with baby chairs in them). I have a general idea of the logic behind the code, I've just never tried to use a button switch in this way. The eggs will be 'fertilized' if someone sits in the chair within a 24 hour period. If someone sits in the chair, an egg with a small chair in it will be laid the next day. If nobody sits in the chair, the eggs will be unfertilized and an empty egg will be laid. I am just planning on putting a momentary button switch in the seat cushion so I will be able to keep track of whether or not someone sat in the chair, I just don't know how to then use that information to determine which servo is activated to lay either a fertilized or unfertilized egg.
basically, I am trying to accomplish this:
if a button is pushed 1 or more times between 2 pm one day, and 2 pm the next day, then at 2 pm, activate the motor that causes the fertilized egg to fall out.
if the button is not pushed during that time frame, activate the other motor to lay an unfertilized egg.
after an egg is laid, begin reading to see if the button is pressed within the next 24 hours.
Thanks so much, any help would be greatly appreciated!