Hi Walter, I love what you are saying about using int instead of pulsein/out. I am having trouble visualizing how to do that.
In my head, something has to be the overall clock, thats where my suggestion of 5msec came from. when I think about what you are saying, all I seem to be able to see is all these events started waiting for an int to make them stop. so I see like 6 different timers going all at once.
Or maybe you have 1 timer going for the 20ms, then do everything else sequencially using a different timer.
EDIT: The slow sonars are gonna definitly limit the top speed! Maybe as an upgrade once it works slowly, infra red emitters and detectors. This way they could also be used at the same time by sending different signals on each.
Bookmarks