The proposed bio-inspired creature we are going to build is going to take a form of a scavenger, i.e. an animal feeding off of dead animals. The creature is going to be built off of the Kittenbot setup, and programmed with Python. The sensor in use is mostly going to be the ultrasonic sensor, for movement and distance detection.
In short, the animal is going to behave in the following way:
1. Seek
2. Detect objects
3. Measure objects
4. Eat or run away
The device is going to move in seemingly random directions around a given space. When it detects an object in close proximity, the robot is going to stop for three seconds and try to detect any movement. If there is a significant enough difference between prior sensor values and current sensor values, it means a movement has been detected, and the creature will run in the opposite direction.
Otherwise, the creature will try to measure the object by navigating around it and detecting distance with the ultrasonic sensor. As the creature moves along a small object, the sensor should stop detecting it. If that’s the case, another side of that object will be measured. If that succeeds at least three times, the creature is going to move forward and signal “eating” on the screen.