Sphero MATLAB Interface

This interface enables MATLAB to connect and control the robot, Sphero through Bluetooth.


Updated 2 Sep 2015

View License

This simple interface offers basic control over Sphero. For more comprehensive features and control, please refer to Mark's interface:
This interface is made possible utilizing the Instrument Control Toolbox (R2011b or higher). This interface consists of 2 files. Sphero.m is the source code, and sphero_workfile.m provides working examples to the source code. This application also allows MATLAB to send commands and receive feedback (position and velocity) from Sphero.

Sphero API 1.50 is the API provided by Orbotix. It is also available at http://orbotixinc.github.io/Sphero-Docs/docs/sphero-api/packet-structures.html. This work was done as part of the NSF Research Experience for Undergraduates (REU) and the IEEE Robotics and Automation Society (RAS) project at the ARMLAB (Automation, Robotics and Mechatronics Lab) http://mechatronics.eng.buffalo.edu/ at University at Buffalo http://www.mae.buffalo.edu/.

Yi Jui Lee (yijuilee@buffalo.edu)
Mark Tomaszewski (marktoma@buffalo.edu)

Cite As

Yi Jui Lee (2023). Sphero MATLAB Interface (https://www.mathworks.com/matlabcentral/fileexchange/48359-sphero-matlab-interface), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Robotics System Toolbox in Help Center and MATLAB Answers

Inspired: Sphero API MATLAB SDK

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Updated description formatting.
Contact Information.
Included external link to Mark's interface.
- Added new features and functions to get feedback from Sphero.
- Removed GUI and callback functions.
- Included examples to utilize the interface.
- Fixed bugs in several functions.

Fixed link causing issues with embedding.

Edited minor issues with link.

Added Youtube link

Updated description.

Updated description.

Updated author and website link.

Updated description.

Fixed audio in video.

Updated description

Updated description

Added Sphero's API (provided by Orbotix).

Fixed redundant components in code.

Fixed issues with video.

Updated title.

Added video for Sphero-MATLAB interface demo.