#02. Upload to Arduino
This is a web-version of a tutorial chapter embedded right into the XOD IDE.
To get a better learning experience we recommend to install the
or start the
, and you’ll see the same tutorial there.
Let’s learn how to upload your patch with the node to Arduino! For an example
we’re going to use the
welcome-to-xod/02-deploy patch. Although the process is
the same for any patch.
↓ Download as a Fritzing project
Instructions for the desktop IDE
- Connect an Arduino to your computer.
- Hit “Deploy → Upload to Arduino” from the main menu.
- Select your board model and the port it is connected to, then click
Instructions for the browser IDE
The browser version does not have permissions to access USB-ports. So you can’t
upload directly. However, you can use an existing Arduino IDE installation to do
- Assemble the circuit according to the picture above.
- Generate Arduino source code of your first program. To do this, hit “Deploy
→ Show Code for Arduino”. Select all code and copy it to the clipboard.
- Launch Arduino IDE and paste the code copied as is.
- Select a proper port and board in the “Tools” menu.
- Click the “Upload” button on the toolbar.
If you’ve previously seen what code to blink an LED looks like for Arduino, you
might be astonished looking at the amount of code produced by XOD. Don’t worry
— most of it is code for the XOD runtime environment, which actually creates
little overhead after compilation. You don't need to understand how it
actually works. For now, think of it as a black box.
Have a problem with uploading? Please report it on our forum
. Describe what you're doing, what you expect to
get, and what you actually get. We will help.
Next lesson →