Questions tagged [arduino-ide]

This is for questions about the official IDE. The open-source IDE makes it easy to write code and upload it to any Arduino board. It runs on Windows, macOS and Linux.

This tag is for questions about the official Arduino IDE. This open-source IDE makes it easy to write code/sketches and upload it/them to any Arduino board. The IDE runs on Windows, macOS and Linux.

Virtually all beginner tutorials use the Arduino IDE. You can write the code, select the correct COM port, and then click "upload." Other IDEs may require more configuration and not be as user friendly. It is available as a standalone application or installer on Windows.

Arduino IDE running on Ubuntu Linux.

For more information about Integrated Development Environments in general, see the tag.

1580 questions
104
votes
9 answers

C++ vs. The Arduino Language?

What are the advantages of each language when using the Arduino? I'm thinking this is a good general question, but I'll add a bit about why I'm asking if anyone wants to give me a tip. I'm experienced in preprocessed languages like JavaScript, PHP,…
Friend of Kim
  • 1,543
  • 3
  • 16
  • 16
94
votes
22 answers

What are the other IDEs for Arduino?

The basic Arduino IDE lacks a lot of the sophistication present in other IDEs such as code completion, code collapsing, folder organisation, etc. Are there other IDEs that allow programming in C or C++ and improve on these aspects?
DLJ
  • 1,149
  • 1
  • 10
  • 10
44
votes
4 answers

Why does starting the serial monitor restart the sketch?

If I upload any sketch that sends serial data, I immediately see the TX/RX LEDs flash once the sketch is uploaded. If I then start the serial monitor, the sketch appears to restart. A bare minimum sketch that shows this behaviour: void setup() …
Cybergibbons
  • 5,420
  • 7
  • 34
  • 51
23
votes
5 answers

How to read and write EEPROM in ESP8266

I need to know how I can write integer values in EEPROM and retain the value on power on. char *Red = strstr(myTestUrl, "/R"); if (Red) { int RedValue = atoi(Red + 2); analogWrite(12, RedValue); Serial.println("Red :"); …
MICRO
  • 500
  • 1
  • 8
  • 20
22
votes
2 answers

Why can't I declare a class in another tab in Arduino IDE?

I wanted to move some of my code out into a second tab in the Arduino IDE, to keep things better organised. At first, I only tried moving a function, and it seemed to work fine. I could call the function from the setup() function in my main tab, and…
Peter Bloomfield
  • 10,982
  • 9
  • 48
  • 87
21
votes
2 answers

CLion + Arduino

Please, help me to set up Clion + Arduino. Clion has an Arduino plugin which I've installed. Here is some instruction on Github but I'm fully noob about cmake and other things which are talking about in instruction. I have only used Arduino IDE…
Kvach
  • 331
  • 2
  • 3
  • 5
20
votes
3 answers

Arduino program only works when run as root

Uploading simple sketches seems to work when I run the Arduino program as root (sudo). I would like to run it as a regular user. Has anyone faced the same problem before and fixed it? Here is what I obtained from lsusb: $ lsusb Bus 002 Device 022:…
feverDream
  • 301
  • 1
  • 2
  • 5
19
votes
5 answers

deprecated conversion from string constant to 'char*'

What does this error means? I can't solve it in any way. warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
Facorazza
  • 439
  • 2
  • 6
  • 17
17
votes
2 answers

Split up Arduino code into multiple files using Arduino IDE

I am working on a very long code that requires multiple functions defined. I want to split the code into two files as main code ("Feeder_Control" in the screenshot) and functions ("connections" in the screenshot) How to import the second file into…
16
votes
2 answers

Why does an `.ino` file have to be in a folder of the same name?

I'm trying to organise a very complicated project and I want to put all the actual code in a folder named src (source), but I want to keep the main .ino file as main.ino (it will also be in src). Then when I try to open the code, the IDE says that…
Dat Ha
  • 2,943
  • 6
  • 24
  • 46
16
votes
4 answers

Program an ATMega328P and use it without Arduino board

I'd like to use an ATMega328P for my project, I hope to do it without the Arduino board. I know with the Arduino IDE and an Arduino board I can program the microcontroller. However, would it be possible once I've programmed and debugged the…
George
  • 169
  • 1
  • 1
  • 4
15
votes
1 answer

Arduino IDE #ifdef

I use my Arduino IDE to either upload my sketch to a Arduino or ATTiny or ATmega328. As you know each device can have a different pinout. Does the Arduino compiler support ifdef, depending on the board I am connected to? For example #ifdef Attiny85 …
PhillyNJ
  • 1,178
  • 3
  • 10
  • 20
15
votes
4 answers

ESP8266, Arduino IDE vs Lua?

I'm planning to buy an ESP8266. Do I really need to learn Lua to play with it? I have seen some people using it with the standard Arduino IDE. Do you need a custom firmware to use the Arduino IDE instead of Lua? The Arduino IDE seems better for me…
n0tis
  • 375
  • 2
  • 3
  • 9
14
votes
2 answers

Difference between /dev/ttyACM0 and /dev/ttyS0 (Arduino IDE ports under Linux)

I use the Arduino IDE to upload sketches to my Arduino Uno. My OS is Linux Ubuntu 14.04 LTS. The Arduino IDE has two ports by default for communication with the Arduino Uno: /dev/ttyACM0 /dev/ttyS0 What is the difference between these two ports ?…
martin_0004
  • 271
  • 1
  • 4
  • 8
13
votes
3 answers

Hiding WLAN password when pushing to GitHub

I have started to use GitHub to store Arduino code. However some of my code uses the SSID and password for my WLAN which I don’t want published. A common way of handling this in non-embedded programming is to use a configuration file, but that…
Andrew Doble
  • 143
  • 1
  • 5
1
2 3
99 100