determining which switch is pushed first.
Possum79
Posts: 30
Well the subject really says it all. I'm working on a project and I know I have done·this before but I cannot remember for the life of me how to determine which switch was pushed first of two. Basically I have two switches connected to my stamp and I want a reaction to happen depending on the series of pushes. If i get the left switch pushed then the right switch I want a motor to turn one direction. If the right switch is pushed first then the left switch I want the motor to go the other way. Im eventually going to get this going with 2 PIR sensors to detect when my cats walk in front of the bot then the·bot will chase them. So I have to know which way the cat came from. Im not looking for exact code just a good reference to get me going. I have been reading the books a lot and can't find it.
Comments
So just poll either input the switches are connected to.
Is it servo motor help you need?
Are you using the BOEBOT or something else?
Down south, We would let the Dog chase after the Cat. and use our bots for something more useful like cutting the grass and planting strawberry's.
If you really want a challenge, Build a bot that can pick fruit.(oranges,strawberry's,tomato's,etc) It would make You millions$$$$$
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The Truth is out there············___$WMc%___···························· BoogerWoods, FL. USA
I'm trying to explain it the best I can