Light Tracking and Obstacle Avoidance Robot With Arduino and Subsumption Architecture

by carlottaberry in Circuits > Arduino

709 Views, 3 Favorites, 0 Comments

Light Tracking and Obstacle Avoidance Robot With Arduino and Subsumption Architecture

IMG_1541 (1).jpg
IMG_1541.jpg
IMG_1543.jpg
NoireSTEMinistShirt.png
IMG_1406.jpg

This Instructable describes how to design a Subsumption Architecture which is a type of robot control algorithm based upon layers. Each layer has a priority and it is possible to switch them on and off based upon the sensor inputs. This one is based upon obstacle avoidance and light following, stay tuned for the next instructable where I add random wander as the lowest priority.

Supplies

SparkFun Inventor's Kit Version 4/1 Project 5 Autonomous Mobile Robot: https://amzn.to/3t7foh7

Build the Autonomous Robot From SparkFun Inventor's Kit Project 5c

DSC00140.JPG

Build the Autonomous Robot Project 5C from the SparkFun Inventor's Kit available at the following link with instructions.

https://www.sparkfun.com/products/15267

Watch the first video to learn how to mount the photoresistor along side the sonar sensor so the robot can do light tracking and obstacle avoidance together.

Write the Code for Subsumption Architecture With Light Tracking and Obstacle Avoidance

DSC00141.JPG

Watch the second video to modify the autonomous robot code to add in light tracking with obstacle avoidance.

Watch the Robot in Action

DSC00143.JPG

Watch the third video to see what it looks like when the robot is working correctly. It should follow the light but then turn away if it gets close to an obstacle because obstacle avoidance takes a higher priority over light following.