Skip to main content
Share Your Experience: Take the 2024 Developer Survey
48 votes
Accepted

Warning when verifying sketch with VS code

Thanks to @Majenko I looked some place new: documented in the arduino plugin of VS Code Arduino Extension there is an option to set an output directory. Note though that according to this it should ...
Uwe Hafner's user avatar
  • 1,031
33 votes

Warning when verifying sketch with VS code

To clarify the answer, for those new in arduino world +StudioCode (source: https://marketplace.visualstudio.com/items?itemName=vsciot-vscode.vscode-arduino ) The following settings are as per sketch ...
Mirosław Drdzeń's user avatar
20 votes

How to I make the Tx and Rx pins on an ESP-8266-01 into GPIO pins?

Add this to your code at the beginning of set void setup(): //********** CHANGE PIN FUNCTION TO GPIO ********** //GPIO 1 (TX) swap the pin to a GPIO. pinMode(1, FUNCTION_3); //GPIO 3 (RX) swap the ...
Isaias Munguia's user avatar
8 votes
Accepted

Can I use Visual Studio instead of Arduino IDE?

I only use Visual Studio for Arduino programming. Arduino Plugin for Visual Studio
beater's user avatar
  • 204
7 votes

List of Arduino board preprocessor #defines

Mikael has the right answer, but there are multiple boards.txt files depending on the installed boards with board manager, modifying the command to: grep board= `find . -name boards.txt` | cut -f2 -d=...
bill's user avatar
  • 71
6 votes

Access denied when Uploading

There might be another device has already connected to that port. It could even be a terminal emulator which is left connected from last debugging session. Otherwise, make sure that your UNO is ...
Sener's user avatar
  • 394
6 votes
Accepted

How to simply close a tab?

You cannot close a tab in the Arduino IDE. If a file exists in the sketch then it is there with a tab. Deleting a tab deletes the file. In the Arduino IDE a tab is a file and a file is a tab. You ...
Majenko's user avatar
  • 105k
6 votes
Accepted

Collection of functions for arduino IDE

You need to "split" your library. Placing full functions inside a header file (.h) is bad form and causes the exact problem you are seeing. Every time you include the header file you create an ...
Majenko's user avatar
  • 105k
5 votes

How to I make the Tx and Rx pins on an ESP-8266-01 into GPIO pins?

Tx = GPIO 1 Rx = GPIO 3 Should work but be careful cause if they burn, you won't be able to program or even talk to the ESP anymore.
Dat Ha's user avatar
  • 2,913
5 votes
Accepted

Porting code from Arduino IDE to other IDEs - expected code size reduction

You don't need to abandon the Arduino IDE. Let me quote from my forum post about sketch sizes. Introduction Every now and again this subject pops up on the Arduino forum. Why does it take 1000 ...
Nick Gammon's user avatar
  • 38.3k
4 votes

What are the other IDEs for Arduino?

PlatformIO I use GitHub's Atom text editor with the PlatformIO package. I like both of them: Atom has various useful built-in features and over 6,000 packages (which can be easily downloaded and ...
noearchimede's user avatar
4 votes

Cannot upload sketch to Arduino Nano

When using a cheap knockoff Nano, it seems that in the newer versions of the Arduino IDE (at least in 1.8.8), you may need to select "ATmega328P (Old bootloader)" from the Processor options under the ...
deltaray's user avatar
  • 284
4 votes
Accepted

Writing your own Arduino flashing tool

This application already exists. It's called AVRDUDE: http://www.nongnu.org/avrdude/ You can download it compiled for Windows at the link above. This is the very flashing tool that the Arduino IDE ...
per1234's user avatar
  • 4,178
4 votes

Certain String Characters To Int

How about char array[5] = "T 20"; int num = atoi(array+2); This obviously assumes that all your strings are of the same format "A NN". If not, you can try parsing it using strtok(). See this ...
Fauzan's user avatar
  • 375
4 votes
Accepted

Is there alternative to arduino IDE program ESP8266 and ESP32 with arduino toolchain?

Not an exhaustive list. Most advantages will be subjective. UECIDE - Wide variety of boards, not only Arduino, better editor and serial monitor, plug-in based modules. PlatformIO (Available as plugin ...
jose can u c's user avatar
  • 6,974
4 votes
Accepted

Are there any alternatives to Tinkercad Circuits that is PC application based instead of web app based?

I work with the wokwi Arduino simulator It is faster It uses the latest Arduino IDE for compilation It almost runs in real-time. For example, your job of 15 seconds might get executed at about the ...
ArduinoFan's user avatar
  • 1,059
4 votes

Random "Compilation error: Error: 13 INTERNAL: exit status 1". No clue how to resolve or even what causes this error

The problem with that error message is that you are only reading the very last line. That line says "Oops, it didn't compile". The actual error message occurs before that. You need to read ...
Majenko's user avatar
  • 105k
3 votes

How to I make the Tx and Rx pins on an ESP-8266-01 into GPIO pins?

To work TX RX as GPIO Serial.begin() must be deleted from code.
Dima's user avatar
  • 31
3 votes

What are the other IDEs for Arduino?

Clion + PlatformIO I personally use Clion which is a cross-platform IDE along with PlatformIO which is a cross platform build system for arduino and alike. Clion because I love the jet brains IDEs. ...
Neuron's user avatar
  • 163
3 votes

Problem: "stray '#' in program"

From the Instructable you linked: matrix8x8.pde is a program in Processing to build your own displays. You downloaded the Processing code, not the Arduino code. See above that: cube8x8x8.pde ...
Nick Gammon's user avatar
  • 38.3k
3 votes
Accepted

How to get the ID of an Arduino?

Arduino Pro mini is based on Atmega328 which does not have a unique ID. It has only device signature which you can read if you turn on Show verbose output during upload in Arduino IDE's File > ...
Chupo_cro's user avatar
  • 510
3 votes
Accepted

Array Addressing

No, but you can use a struct: struct flags { uint8_t power; uint8_t jump3; uint8_t jump7; .... etc .... }; struct flags myFlags; myFlags.power = 1; if (myFlags.jump3) { .... ...
Majenko's user avatar
  • 105k
3 votes

"Stand-alone" serial monitor

Consider building your own monitor in Python. This gives you flexibility since Python is cross platform and you can tailor the monitor to your needs. Install Python. Install pySerial (pip install ...
user55364's user avatar
3 votes

"Stand-alone" serial monitor

On macOS, you can use the built-in screen command, e.g.: screen /dev/cu.usbmodem14201 9600 To exit, control-A followed by control-\
techrah's user avatar
  • 141
3 votes

How to install several IDE version on my PC

Arduino.cc have a guide : https://www.arduino.cc/en/Guide/PortableIDE The gist is: Download the desired version in ZIP format Unpack the content in the zip file to a folder Start the arduino.exe in ...
MatsK's user avatar
  • 1,356
3 votes
Accepted

Use std::list in Arduino programming

I back up Michel Keijzers' suggestion to use a plain array, especially given the tiny amount of RAM in your MCU (only 256 bytes). Concerning the removal of items from the list, and given that ...
Edgar Bonet's user avatar
  • 43.3k
3 votes

How do arrays work?

BUZZER_NOTE notes[]; //-- Funny how the same declaration tried below DOES work if it's inside a class It doesn't really. C++ language prohibits that. It is just a non-standard quirk of GCC compiler ...
AnT stands with Russia's user avatar
3 votes
Accepted

Where is the Arduino IDE log file located? Not the Serial Monitor

There is no log file. Instead you need to turn on both "compilation" and "upload" under the "Show verbose output during:" option in Preferences. This will give you far ...
Majenko's user avatar
  • 105k
2 votes

Can I use Visual Studio instead of Arduino IDE?

Note, this answer is not technically for the full edition of Visual Studio, rather Visual Studio Code. Microsoft has released an Arduino extension for VS Code that can do most (all?) of the required ...
The Thirsty Ape's user avatar
2 votes

Can I use Visual Studio instead of Arduino IDE?

Atmel Studio 7 which is built with Visual Studio. Google "Atmel Studio 7" or click here. It has everything you want and it's released by the company that makes the atmega328 your Arduino is built on.
PhillyNJ's user avatar
  • 1,178

Only top scored, non community-wiki answers of a minimum length are eligible