r/ProgrammerHumor •

[deleted by user]

[deleted] — view deleted post

0 Upvotes

615 comments sorted by

View all comments

Show parent comment

3

u/[deleted] Jun 11 '23

The best collision avoidance robot didn't have software, just 2 proximity sensors acting as a resistor to the motor current: if left sensor detects something the right motor gets less current, causing the robot to turn right. The more sudden the detection (other robot, human walking) the more abrupt the direction change.

When shown to the public they all commented on how smart the robot was...

The next version had a charging station with a lightbulb on top of it. When the battery was below a certain percentage the same logic was used with light sensors so it would drive towards the charging station. A simple logic gate would stop the motors when a charging current was detected, until the battery was full again.

This robot could drive forever, avoid obstacles and "eat" when hungry. It didn't even have a CPU. Just some very basic electronics.