ScratchData LogoScratchData
Back to crkcity's profile

ant line following

CRcrkcity•Created April 24, 2021
ant line following
21
13
171 views
View on Scratch

Instructions

Click flag. Draw line with finger or mouse. Try drawing a figure 8 (or press 8) or a circle. Ants find and follow line. Ants use sensors to find red. After a little wandering they all follow line in same direction. Demonstrates course adjustment by using negative feedback loops.

Description

Ants wander randomly until they find red. Then if left antenna is on red they move right. If right antenna is on red they move left. (left antenna is painted a different color than right). If ant meets another head on, detecting head of another ant, it turns around. These negative feedback loops eventually result in ants following the red line. We use this in our model of ant food finding, where the red respresents pheremone.

Project Details

Project ID520597948
CreatedApril 24, 2021
Last ModifiedApril 28, 2021
SharedApril 24, 2021
Visibilityvisible
CommentsAllowed