Skip to content

Setup Arduino IDE 1.8

Arduino IDE Arduino IDE stands out with its simple design, allowing to write a code, compile a project and upload it to the RoboBoard. This is one of the reasons why it's so popular among beginners. Aside from basic functionality, it has thousands of third-party libraries and code examples to create a project even faster.

Step 1. Download Arduino IDE

Go to Arduino website to download application for your operating system.
For this tutorial select version 1.8.x (not 2.2).
Install guide: Windows | macOS | Linux

Download Arduino

Step 2. Install Totem Boards

Arduino IDE Install Totem Boards extension to add support for Totem RoboBoard.

  1. In Arduino IDE select FilePreferences.
  2. Locate Additional Boards Manager URLs and paste in:
    Arduino IDE
    https://totemmaker.github.io/TotemArduinoBoards/package_totemmaker_index.json
    
    If you have multiple URLs, click a button next to input field and add this link to the bottom.
  3. Click OK.
  4. Select ToolsBoardBoards Manager..
  5. In search field type in totem.
  6. Click Install and wait for it to complete. It can take a few minutes.
  7. Close Boards Manager window.

Step 3. Compile and upload code

Arduino IDE Load example code and upload it to RoboBoard.

  1. Select ToolsBoardTotem BoardsRoboBoard X4 (or RoboBoard X3).
  2. Select FileExamples> RoboBoardRGBColorRun.
  3. Connect RoboBoard to PC over USB cable and power it on.
  4. Select ToolsPort and click on the port displayed there.
    If Port is not available - check if RoboBoard is on and plugged to PC with USB cable.
    If there are multiple ports, disconnect USB cable and check which one is gone. Reconnect and select it.
  5. Select SketchUpload and wait till it completes (can take a few minutes first time).
    Note: in case upload fails - try selecting lower speed in ToolsUpload speed.
  6. RGB lights will start to blink in different colors. There is an example for each functionality, including a simple description.

RoboBoard X4 LedBlink

For RoboBoard X4 make sure the battery or DC jack is connected and power switch is turned on.
It won't work from USB alone!

Step 4. Project settings

Arduino IDE settings

Menu option Tools contains Board settings that can change code build and upload parameters.

  • Board - board type selection
  • Upload speed - firmware upload speed. Use highest, unless upload errors occur
  • Erase All Flash Before Sketch Upload - fully erase ESP32 flash before new firmware upload
  • Remote control - makes RoboBoard discoverable by Totem App when selected
  • Board status - enable RoboBoard status with RGB lights and beeping
  • Charging mode - enable RoboBoard X3 charging mode
  • Port - USB port name RoboBoard is connected to (required for Serial Monitor and upload)

Step 5. Using Arduino IDE

For more information about getting started with Arduino, read following topics:

User interface:

Code documentation:

Code examples:

Question

Visit ℹ Support page to find more information or help from our community.