Communication with Devices
Connection to devices is done primarily using serial ports in Artoo.
To get the serial port identifier for your device, open a terminal and type the following command:
$ ls /dev/tty.* /dev/tty.Sphero-ORB-RN-SPP
You should change the code to connect to that port, for example:
connection :sphero, :adaptor => :sphero, :port => '/dev/tty.Sphero-ORB-RN-SPP'