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, upload the pre-built binary file using the shell script.
- Method #2: Arduino IDE, build the provided source code and upload the generated binary file using the Arduino IDE.
(Recommended) 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.
-
TurtleBot3 Burger
$ export OPENCR_PORT=/dev/ttyACM0 $ export OPENCR_MODEL=burger $ rm -rf ./opencr_update.tar.bz2 $ wget https://github.com/ROBOTIS-GIT/OpenCR-Binaries/raw/master/turtlebot3/ROS1/latest/opencr_update.tar.bz2 && tar -xvf opencr_update.tar.bz2 && cd ./opencr_update && ./update.sh $OPENCR_PORT $OPENCR_MODEL.opencr && cd ..
When firmware upload is completed, jump_to_fw
text string will be printed on the terminal.
-
TurtleBot3 Waffle or Waffle Pi
$ export OPENCR_PORT=/dev/ttyACM0 $ export OPENCR_MODEL=waffle $ rm -rf ./opencr_update.tar.bz2 $ wget https://github.com/ROBOTIS-GIT/OpenCR-Binaries/raw/master/turtlebot3/ROS1/latest/opencr_update.tar.bz2 && tar -xvf opencr_update.tar.bz2 && cd ./opencr_update && ./update.sh $OPENCR_PORT $OPENCR_MODEL.opencr && cd ..
When firmware upload is completed, jump_to_fw
text string will be printed on the terminal.
(Alternative)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 File
→ Examples
→ turtlebot3
→ turtlebot3_burger
→ turtlebot3_core
.
If you have TurtleBot3 Waffle or Waffle Pi,
[Remote PC] Go to File
→ Examples
→ turtlebot3
→ turtlebot3_waffle
→ turtlebot3_core
.
[Remote PC] Click Upload
button to upload the firmware to OpenCR.
NOTE: If error occurs while uploading firmware, go to Tools
→ Port
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.
- 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. - Place the robot on the floor. For the test, safety radius of 1 meter (about 40 inches) is recommended.
- Press and hold
PUSH SW 1
for a few seconds to command the robot to move 30 centimeters (about 12 inches) forward. - Press and hold
PUSH SW 2
for a few seconds to command the robot to rotate 180 degrees in place.