Skip to content

OfferZen-Community/iot_robots-activity-control_sphero_with_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Make: IoT Robots

# Control Sphero with Python

Getting Started

To control Sphero with Python, we'll can use:

https://github.com/CMU-ARM/sphero_sprk

The following is some sample code to get you started:

from sphero_sprk import Sphero

orb = Sphero("XX:XX:XX:XX:XX:XX")
orb.connect()

orb.set_rgb_led(255,0,0)
orb.roll(100,0)

To run your Python script do:

$ python3 your_script.py

Other Notes

There are actually several Python libraries to control Sphero, but this one definitely works :). Please take note that it doesn't work on Mac because of compatibility issues with the bluepy library.

About

Control Sphero with Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published