Kilobot Swarm Control using Matlab + Arduino
Object Manipulation Experiment With Kilobots
Uses an overhead vision system to control a swarm of kilobots to push an object through a maze. Swarm is attracted to the brightest light in the room.
https://youtu.be/tD1JvgRBRVM
In these experiments a whiteboard on a table is the workspace, with four 50W LED floodlights at the corners and four 30W LED floodlights on the sides of a 6 m square centered on the workspace and 1.5 m above the table. An Arduino Uno connected to an 8-relay shield controls the lights. Above the table, an overhead machine vision system tracks the swarm. The vision system identifies obstacles by color segmentation, determines the corners (used to decrease variance), the object by color segmentation, and identifies robots using color segmentation and circle detection with a circular Hough transform. The path planning uses value iteration for the object and potential fields for the swarm to interact with the object.
REQUIRES
RegionCode.m, MDPgridworldFunction.m and Arduino drivers:
http://www.mathworks.com/hardware-support/arduino-matlab.html
-------------------------
By Shiva Shahrokhi, Lillian Lin, Mable Wan & Aaron T Becker, Summer 2016
Cite As
Aaron T. Becker's Robot Swarm Lab (2024). Kilobot Swarm Control using Matlab + Arduino (https://www.mathworks.com/matlabcentral/fileexchange/58690-kilobot-swarm-control-using-matlab-arduino), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Mathematics and Optimization > Optimization Toolbox >
- MATLAB > Mathematics > Optimization >
- MATLAB > Mathematics > Graph and Network Algorithms > Shortest Path > Labyrinth problems >
Tags
Acknowledgements
Inspired by: MDP robot grid-world example
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.1.0.0 | added video https://youtu.be/tD1JvgRBRVM |
||
1.0.0.0 |