My first program written for a modified QwerkBot+ - by fitting an IR distance sensor, I can locate and try to track nearby objects, with the aim of keeping them in the camera's field of vision.
The program first scans the environment for the most interesting (nearest) object, then returns to that object's position and enters edge tracking mode. It looks left until it loses the object, in which case it backtracks until the object is found. If this backtracking sends it to the rightmost position, it moves to the leftmost position and looks again. If at any time the object is found, it switches back to this left-until-lost behaviour.
There's a stop button on the software interface, but it seems that only gets caught by my program when the object is being actively tracked, not in backtrack mode. Hence you can see me clicking a couple of times to no effect, then the robot shuts down when I return the toy to sensor range!
More details on my robot blog: http://robots.straylight.co.uk
Link to this comment:
All Comments (0)