This document provides instructions for controlling and driving a Create 2 robot using Python and a USB to Serial cable. The steps include installing Python and Pyserial libraries, downloading a tethered drive Python script, connecting the robot with the USB cable, running the script and entering the COM port, putting the robot in safe mode, and using keyboard commands to drive it while codes are displayed in the window. Exiting will leave the robot in its last mode.
This document provides instructions for controlling and driving a Create 2 robot using Python and a USB to Serial cable. The steps include installing Python and Pyserial libraries, downloading a tethered drive Python script, connecting the robot with the USB cable, running the script and entering the COM port, putting the robot in safe mode, and using keyboard commands to drive it while codes are displayed in the window. Exiting will leave the robot in its last mode.
This document provides instructions for controlling and driving a Create 2 robot using Python and a USB to Serial cable. The steps include installing Python and Pyserial libraries, downloading a tethered drive Python script, connecting the robot with the USB cable, running the script and entering the COM port, putting the robot in safe mode, and using keyboard commands to drive it while codes are displayed in the window. Exiting will leave the robot in its last mode.
With Python and your USB to Serial Cable, you can STEM Subject(s): control and drive your Create 2. Python
Instructions Experience Level:
Advanced 1) Install Python. You can download it here. You will want to be using Python 3. Supplies: 2) Ensure you have the Pyserial library installed. • Create 2 and USB to Serial Cable 3) Download Create2_TetheredDrive.py. • Python libraries 4) Connect your robot with the Create 2 USB to Serial cable.
5) Run Create2_TetheredDrive.py from Step 3.
6) In the “Create” menu, click “Connect”; then type in
your COM port (for example, “COM99” or “/dev/ttyUSB0”).
• You can find you COM Port by going to your
Device Manager, expand the Ports (COM & LPT) branch, and it will be noted as USB Serial Port COM[X] 7) If desired, click “Help” in the “Create” menu to see what keys are available.
8) If you haven’t started Open Interface mode, put the
robot into passive mode by pressing ‘P’, and then into safe mode by pressing ‘S’.
9) Drive away; op codes will show themselves in the
main window as you control the robot.
10) Upon exit, just close the window or click “Quit” in
the “Create” menu. The robot will be left in whatever mode it was last placed in; if that was full mode, the robot will not respond with “normal” functionality.