After seeing the recent story on the front page about the RPi controlled Roomba, I decided to dust off my old 500 Discovery series, and my old USB Roostick+cable.
I installed PySerial
Then I hooked up the Pi, plugged the roostick+cable into the Roomba and into the Pi's USB Hub.
3 "Standard Microsystems Corp" entries
and finally: "Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light"
Unplugging the roostick and running lsusb again shows that it's that last item in the list that is the roostick.
I threw together a little python test program, basically exactly what's in the Roomba SCI interface document:
Code: Select all
import serial ser = serial.Serial(0, baudrate=19200, timeout=0.1) ser.open() # wake up robot ser.setRTS (0) time.sleep (0.1) ser.setRTS (1) time.sleep (2) # pulse device-detect three times for i in range (3): ser.setRTS (0) time.sleep (0.25) ser.setRTS (1) time.sleep (0.25)
Seems like no matter what I put in for the device it comes back saying it can't connect.
Looking in /dev, I see /ttyUSB0 show up when I plug the Roostick in... But trying to use /dev/ttyUSB0 as the port gives an exception "Port is already open" error.