I use ATmega32A.
I want to interface 4 Modulated IR proximity sensors.
3 in front (left center and right) one at rear (center).
right now I read them in my main loop and decide the action after that.
But this approach has a problem as when bot is in motion and it sees something on right it tries to turn left for .5 secs. But if in that .5 sec there is another obstacle it ignores that and bangs in that.
If only there were ISR to handle it but there are only 3 external interrupt pins on m32 and 2 used for wheel encoder.
Can you suggest something here?