The six behaviors
1 · Shy
The shy robot advances cautiously while constantly evaluating its surroundings. When it detects an object within 70 cm it slows down proportionally as the distance shrinks, stopping before it reaches a critical 30 cm. It mimics cautious organisms that keep a safe distance from potential threats.
2 · Explorer
Curiosity-driven. It moves forward at a moderate speed and, on detecting an object within 30 cm, stops and rotates on its axis to face a new direction before continuing to explore, inspired by animals that actively survey their environment while avoiding obstacles.
3 · Offended
It explores until it identifies an object within 30 cm, then rotates on its axis to show discontent and turns away. Once offended it does not return to exploration; it stays put, and rotates again if another object invades its space. An anthropomorphic take on personal-space violation.
4 · Aggressive
It explores calmly with no particular behavior until it detects an object within 70 cm, then accelerates abruptly toward it in attack mode. After two seconds it calms down and stops, mirroring territorial animals that charge at perceived threats.
5 · Light-following (curious)
The obstacle-avoiding robot gained two photoresistors on either side of the ultrasonic sensor. It establishes baseline light values so behavior stays consistent across lighting environments, and deviates from its straight path toward a light source when readings exceed that baseline by 20 points. An error margin between the left and right measurements prevents erratic steering, and obstacle avoidance always keeps priority.
6 · Adolescent
Deliberately indecisive: it starts out explorer-and-curious, approaching objects cautiously while being drawn to light. After a random 20 to 30 s it spins on its axis and adopts the offended behavior; after another random 20 to 30 s it switches to aggressive; then it cycles back to the start. Each state is signaled by a different LED configuration: none for the initial state, blue for offended, red for aggressive.
