Edit on GitHub

OpenCR Setup

NOTE: If you want to get more detail about OpenCR, Please contact an OpenCR WiKi

OpenCR Firmware Upload for TB3

NOTE: You can choose one of methods for uploading firmware. But we highly recommend to use shell script. If you need to modify TurtleBot3’s firmware, you can use the second method.

  • Method #1: [Shell Script][shell_script], upload the pre-built binary file using the shell script.
  • Method #2: [Arduino IDE][arduino_ide], build the provided source code and upload the generated binary file using the Arduino IDE.

Shell Script

This instruction was tested on Ubuntu 16.04, Ubuntu Mate, Linux Mint and Raspbian. You can use the following command after connecting OpenCR to remote PC (your desktop or laptop PC) or connect OpenCR to your TurtleBot PC (Intel® Joule™, Raspberry Pi 3) and execute the following command.

When firmware upload is completed, jump_to_fw text string will be printed on the terminal.

When firmware upload is completed, jump_to_fw text string will be printed on the terminal.

Arduino IDE

WARNING: The contents in this chapter corresponds to the Remote PC (your desktop or laptop PC) which will control TurtleBot3. Do NOT apply this instruction to your TurtleBot3.

Before you following step, please setup Arduino IDE on your remote PC.

The OpenCR firmware for TurtleBot3 performs the task of controlling the Dynamixel or acquiring and transmitting the data of the sensors. The firmware is located in OpenCR example which is downloaded by the board manager.

If you have TurtleBot3 Burger,

[Remote PC] Go to FileExamplesturtlebot3turtlebot3_burgerturtlebot3_core.

If you have TurtleBot3 Waffle or Waffle Pi,

[Remote PC] Go to FileExamplesturtlebot3turtlebot3_waffleturtlebot3_core.

[Remote PC] Click Upload button to upload the firmware to OpenCR.

NOTE: If error occurs while uploading firmware, go to ToolsPort and check if correct port is selected. Press Reset button on the OpenCR and try to upload the firmware again.

[Remote PC] When firmware upload is completed, jump_to_fw text string will be printed on the screen.

Basic Operation

You can use PUSH SW 1 and PUSH SW 2 buttons to see whether your robot has been properly assembled. This process tests the left and right DYNAMIXELs and the OpenCR board.

  1. After assembling TurtleBot3, connect the battery to OpenCR and turn on the power switch. You can see that the Power LED of OpenCR turns on.
  2. Place the robot on the floor. For the test, safety radius of 1 meter (about 40 inches) is recommended.
  3. Press and hold PUSH SW 1 for a few seconds to command the robot to move 30 centimeters (about 12 inches) forward.
  4. Press and hold PUSH SW 2 for a few seconds to command the robot to rotate 180 degrees in place.