mirror of
https://github.com/xodio/xod.git
synced 2026-03-04 07:54:04 +01:00
2.3 KiB
2.3 KiB
title
| title |
|---|
| Upload to Arduino |
#02. Upload to Arduino
Note
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 IDE, launch it, 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.
Test circuit
↓ 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 “Upload”.
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 this.
- 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.
Note
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.
Feedback
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.



