I was going to make simple robot that bumps into walls and then turns. I thought I could use a if statement but then I realized that I would need an interrupt. My problem is that I need the motor spinning until my snap action switches are trigged then turn accordingly in that direction but I don't know how to use external interrupts. Can someone tell me how to use external interrupts?
Thank in advance