Files
xod/docs/tutorial/install

title
title
Installing and Running XOD

Installing and Running XOD

To work with XOD you would use XOD integrated development environment (IDE for short). It comes in two flavors: browser-based version and desktop version.

Browser-based IDE

You can start browser-based XOD IDE just by visiting the link. However, since browser has few access permissions to computers file system and USB-ports, its capabilities are quite limited.

Notably you cant upload your program directly to the board from within browser and you wouldnt get convenient save/load functionality.

Although, you can import/export your programs as a single file (so called xodball) and generate source code that you could copy and paste into Arduino IDE and then upload it to the board via Arduino IDE.

Desktop IDE

XOD IDE for desktop requires installing but provides all features. It works on Windows, macOS, and Linux. Find a distributive for your system on downloads page.

Upload your first program

Once you start XOD IDE youll see welcome-to-xod project open. Its a primitive demo project that—yes, you guess it—blinks a LED on the board.

XOD main window

Lets try to upload the program to your Arduino.

In main menu go to Deploy → Show Code for Arduino. Youll see much of C++ source code that once compiled and uploaded to the board would blink built-in LED. If you have Arduino IDE installed, try it, copy-paste the code to Arduino IDE and click Upload.

Note If youve previously seen what code to blink a LED looks like for Arduino, you could be astonished looking at the amount of code given by XOD. Dont worry, most of it is a code of XOD runtime environment which actually give little overhead after compilation. And you havent to understand how it actually works. For now think about it as of black box.

Upload directly from within XOD IDE

The feature is only available in desktop version. Go to Deploy → Upload to Arduino. Select your board model and serial port it is connected to:

XOD model/port dialog

Click Upload. Hold on.

Behind the scenes XOD uses Arduino IDE to compile and upload programs. So if you have no Arduino IDE installed yet, youll be asked to download and install it. Arduino IDE itself has package system to support various boards. If a package to support your board is not installed yet, it would be automatically installed as well.

If upload succeeds youll see 100% progress and a message from compiler:

XOD upload window

If you have a problem with upload, please report about it on our [forum](//forum.xod.io). Describe what you do, what you expect to get, and what you actually get. We will help.

Whats next

Now, when you can run IDE and upload programs, lets try to understand how and why they work. Follow to Nodes and Links chapter.