Control robot via serial port

Program Arduino and connect to it via serial port from Arduino IDE Serial Monitor

  1. Install Arduino IDE following an instruction
  2. Start Arduino IDE
  3. Select Arduino board – select menu item “Tools”/”Board”/<board name>
  4. Select communication port – select menu item “Tools”/”Serial port”/”ttyACM0” (or another found earlier)
  5. Type or copy/paste following program (Arduino sketch) which prints every 0.5 second “Hello” over serial port

void setup() {
// initialize serial port

void loop() {

6. Upload sketch to the Arduino board, open a dialog “Serial Monitor” – select “Tools”/”Serial Monitor”


This program opens a serial port (“UART”) on the Arduino board, setups the communication speed 9600 bod (bits per second), waits while it is initialized to be ready for work, prints “Hello” in the loop every 500 milliseconds.

Connect to Arduino via serial port from CuteCom

  1. Install from “Ubuntu Software Center” CuteCom – a program for communication over serial ports.
  2. Close the Arduino IDE if it is started – to close a device which is used for connection with an Arduino board
  3. Connect an Arduino board to the computer if it was not connected
  4. Start the CuteCom
  5. Type in the field “Device” a device name for connection with an Arduino board
  6. Change “Baud rate” to 9600 – this value is defined in the program uploaded to the Arduino board
  7. Click a button “Open device” – text “Hello” should be repeatedly printed in the output field
  8. If a text is not printed – check if a device name is correct (use command “ll” described earlier) or restart the Arduino board
  9. Click on a button “Close device” when it is not needed or an Arduino IDE needs to upload a program to the Arduino board


hint How to clear input history in CuteCom

CuteCom keeps settings and other data in the file “~/.config/CuteCom/CuteCom.conf” – open the file in an editor, change or clean the history

1. Start an editor with CuteCom config file

vi ~/.config/CuteCom/CuteCom.conf

2. Hit the button “i” – a command “insert text”
3. Move the cursor to a line stated with “History”
4. Edit or delete entries delimited with commas
5. Hit “Esc”, “:”, “x”, “Enter” to exit the editor with saved changes