How to save Arduino code from EEZ Studio to your computer
EEZ Studio is a visual development environment that lets you design embedded systems without writing code by hand. When you finish building your project in EEZ Studio, you can export it as an Arduino sketch — the actual code file your Arduino board will run. The process takes three steps: configure your project settings, generate the code, and save the resulting .ino file to a folder on your computer.
The exported file is a standard Arduino sketch that you can then open in the Arduino IDE (the official Arduino editor), modify if needed, and upload directly to your board. This workflow is useful when you want to use EEZ Studio's visual interface for the design phase but need the raw code for final tweaks or to share with others.
Key Takeaways
- EEZ Studio generates Arduino code from your visual project design, creating a .ino file that the Arduino IDE can open and upload to a board.
- You must set your project type to Arduino in EEZ Studio's project settings before you can export code.
- The Export or Generate Code option in EEZ Studio creates the sketch file in a folder you choose on your computer.
- The exported .ino file is plain text and can be edited in the Arduino IDE or any text editor before uploading to your board.
Setting up your EEZ Studio project for Arduino export
Before you can write an Arduino file, your EEZ Studio project must be configured as an Arduino project. Open your project in EEZ Studio and look for the project settings — usually found in a menu labeled Project, Settings, or Properties depending on your version. Look for a field that says Board Type, Target Platform, or similar.
Select Arduino from the dropdown list. If you have a specific Arduino board in mind (Arduino Uno, Arduino Mega, Arduino Nano), choose that model if the option is available. This tells EEZ Studio which board's capabilities to assume when it generates the code. Save your project settings.
If your project was created as a different platform type (like STM32 or generic embedded), you may need to create a new project and select Arduino at the start. Some versions of EEZ Studio do not allow you to change the platform type after creation.
Generating the code from your visual design
Once your project is set to Arduino, look for an Export, Generate Code, or Build option in the main menu or toolbar. In most versions of EEZ Studio, this is under File > Export or Project > Generate Code. Click it.
EEZ Studio will scan your visual design — the screens, buttons, variables, and logic you built — and convert it into C++ code that the Arduino can understand. This process usually takes a few seconds. If there are errors in your design (like a missing variable definition or an incomplete connection), EEZ Studio will show an error message and stop. Fix the error and try again.
When the generation succeeds, EEZ Studio will either open a save dialog or create the files automatically in a default folder. If a dialog appears, choose where on your computer you want to save the Arduino sketch.
Locating and saving the .ino file
The exported Arduino code is saved as a .ino file — that is the standard file extension for Arduino sketches. The filename usually matches your project name. For example, if your EEZ Studio project is called "Temperature Monitor", the exported file will be something like Temperature_Monitor.ino.
EEZ Studio typically creates the file in a folder you specify during export, or in a default output folder within your project directory. If you are not sure where it went, check your Downloads folder or look in the EEZ Studio project folder on your computer. You can also search your computer for .ino files created in the last few minutes.
Once you have located the .ino file, you can move it to any folder you want. Many people create a folder called Arduino Sketches or Arduino Projects to keep all their sketches organized in one place.
Opening the file in Arduino IDE
To upload your code to an Arduino board, you need the Arduino IDE — the official editor and uploader tool. read it from arduino.cc if you do not have it already. It is free and runs on Windows, Mac, and Linux.
Open the Arduino IDE and go to File > Open. Navigate to the .ino file you exported from EEZ Studio and click Open. The code will appear in the editor window. You can now read it, make changes if you want, and upload it to your board by clicking the Upload button (the arrow icon) in the toolbar.
The first time you upload, make sure you have selected the correct board type and COM port in the Tools menu. Choose Tools > Board and select your Arduino model, then choose Tools > Port and select the USB port your board is plugged into.
Troubleshooting export errors
If EEZ Studio will not generate code, the most common cause is that your project has incomplete or invalid elements. Check that all variables have names and types, all buttons and controls are connected to actions, and there are no circular references in your logic flow.
Another common issue is that your project is not actually set to Arduino type. Go back to project settings and confirm the platform is set to Arduino, not another target. Save the settings and try exporting again.
If the export succeeds but the Arduino IDE shows errors when you try to upload, the problem is usually a missing library or a board compatibility issue. Read the error message carefully — it will tell you which library is missing. You can install libraries in the Arduino IDE through Sketch > Include Library > Manage Libraries.
Editing the exported code
The .ino file from EEZ Studio is readable C++ code, which means you can open it in any text editor and make changes by hand. This is useful if you want to add custom functions, change variable names, or tweak timing values that EEZ Studio's visual interface does not expose.
If you edit the code in the Arduino IDE, save it before uploading. If you edit it in a plain text editor like Notepad, make sure you save it as plain text with the .ino extension — do not let your editor add .txt to the filename.
Keep in mind that if you go back to EEZ Studio and export the same project again, it will overwrite the .ino file. If you have made hand edits you want to keep, save a copy of the file with a different name first.
Frequently Asked Questions
Can I edit the code in EEZ Studio after I export it?
EEZ Studio is a visual design tool, not a code editor. Once you export to .ino, you edit the code in the Arduino IDE or another text editor, not back in EEZ Studio. If you need to change your design, go back to EEZ Studio, make the visual changes, and export again.
What if my exported code does not compile in Arduino IDE?
Check that you have selected the correct board type in Tools > Board and that all required libraries are installed. Read the error message — it usually points to the exact line causing the problem. You can also check the EEZ Studio documentation to see if there are known library dependencies for your project type.
Can I use the exported code on a different Arduino board than the one I chose in EEZ Studio?
Sometimes, depending on what features your project uses. If your code only uses basic digital and analog pins, it will likely work on any Arduino. If it uses board-specific features like certain timers or memory sizes, you may need to modify the code or choose a compatible board.
Where does EEZ Studio save the exported file by default?
This varies by version. Most versions save to a folder inside your EEZ Studio project directory, often called output or build. Check your project settings or look in the folder where you saved your .eez project file. You can also specify a custom location when you export.
Do I need EEZ Studio installed to run the exported Arduino code?
No. Once you export the .ino file, you only need the Arduino IDE to edit and upload it. EEZ Studio is only needed if you want to go back and change your visual design later.