Questions tagged [arduino-ide]

Arduino is an open source IDE running on Windows, Mac OSX and Linux.

The open-source Arduino environment makes it easy to write code and upload it to the i/o board. It runs on Windows, Mac OS X, and Linux. The environment is written in Java and based on Processing, avr-gcc, and other open source software.

It comes already with many examples with a wide variety of possibilities. It's currently the simplest way to work with any Arduino board and it's code.

You can import many third party libraries to work together with the basics. Some recent versions include a Library search tool that helps finding many of them.


External links

1276 questions
5
votes
1 answer

Parameterless constructor

I am a fairly experienced .net developer but new to Arduino and C/C++ and I am trying to create my first library which is a simple driver for a 7 segment led display. I have many obtuse compiler errors but in the spirit of one thing at a time this…
Ben Robinson
  • 21,601
  • 5
  • 62
  • 79
5
votes
3 answers

Evaluate if a value is increasing or decreasing (arduino)

I'm trying to learn how to evaluate if a value is increasing or decreasing. In this case I'm using a potentiometer mapped from 0 - 14. Basically I need it to look at the current value, and if the current value is increasing print one thing, and if…
mishap_n
  • 578
  • 2
  • 10
  • 23
5
votes
4 answers

My Arduino stops after 1 minute wait

I do have a small Arduino programming that simply stops after first loop. I might overlook something...but I'm simply clueless about what is happening. Here is the code int led = 13; //int led = 10; unsigned long windtime = 1000 * 2; // 2…
Alex
  • 5,510
  • 8
  • 35
  • 54
5
votes
4 answers

Arduino: struct pointer as function parameter

The code below gives the error: sketch_jul05a:2: error: variable or field 'func' declared void So my question is: how can I pass a pointer to a struct as a function parameter? Code: typedef struct { int a,b; } Struc; void func(Struc *p) { …
Peter B
  • 603
  • 1
  • 8
  • 18
4
votes
1 answer

No serial data received: ESP32 CAM

I keep getting error as I upload my code to my AI thinker esp 32 cam. I connect it using microusb and it always has this error: A fatal error occurred: Failed to connect to ESP32: No serial data received. For troubleshooting steps visit:…
me-hapi
  • 69
  • 1
  • 4
4
votes
8 answers

VS Code cannot find Arduino IDE path

I have been trying to use the Arduino extension for VS Code in Ubuntu 18, but when I execute the initialize command, I get the error "Cannot find the Arduino IDE. Please specify the arduino.path in the user settings". So I wrote every path that…
Cnoob
  • 169
  • 1
  • 3
  • 10
4
votes
2 answers

How to enable C++17 in the Arduino IDE 1.8.5+

So i'm making a program which requires std::variant, so obviously i need C++17 but that's not in Arduino without compiler flags, it's just I cant figure out what flags to do and how to change the compiler flags. (BTW i'm using windows, not Linux…
PyPylia
  • 387
  • 3
  • 14
4
votes
3 answers

Arduino code won't upload

I'm working on a small weather station and yesterday everything was working well. This morning I changed some code and suddenly this came up when I wanted to upload the code to my Adafruit: java.io.IOException: Cannot run program…
BramAdafruit
  • 81
  • 2
  • 6
4
votes
4 answers

How to clear static IP configuration and start DHCP

I'm using a sketch like this: WiFi.config(IP, Gate, Subnet); WiFi.begin (ssid, pass); //-- somewhere below I want to drop the static IP configuration and obtain IP with DHCP. WiFi.disconnect (); WiFi.begin (ssid, pass). //ssid and pass are the…
Alex Kirillov
  • 65
  • 1
  • 6
4
votes
1 answer

Get gateway address in Arduino using ESP8266

I need the default gateway IP address for my ESP8266. I know that in LUA you can retrieve it with this code: ip, netmask, gateway = wifi.sta.getip() print(gateway) But how using Arduino/C++?
Fabiosoft
  • 1,141
  • 14
  • 32
4
votes
3 answers

How to print in Arduino a char variable as a number to the Serial Port?

I am using Arduino Uno. I am reading a byte value from the EEPROM and storing the value in a variable of type char (1 byte). I want to print the value of the variable as a number (not to the corresponding ASCII code) to the Serial Monitor. For…
roschach
  • 8,390
  • 14
  • 74
  • 124
4
votes
5 answers

I can't get DS3231 RTC to work

I have a DS3231 RTC module and I am trying to read time off of it using my Arduino UNO through I2C. I'm using the sample code provided with the library but it doesn't seem to work. The only thing I get out of the serial monitor is this: 20165-85-165…
Ege F
  • 107
  • 1
  • 1
  • 9
4
votes
3 answers

Mediatek Linkit One Error when compiling in Arduino IDE 1.6.6: arm-none-eabi-g++: no such file or directory

So, as you can see in the title, I am having a problem with my Linkit One. I am using Arduino IDE 1.6.6, and I am using the Linkit One SDK 1.1.17 through the Arduino board's manager. When I compile anything, even a simple bare minimum Arduino…
Fiske Thoe
  • 51
  • 6
4
votes
1 answer

What is the constant ARDUINO for? it used to be 22 but is now 100

I am using thermocouples and downloaded the MAX6675 library. I wondered what the value of the ARDUINO constant in the following lines is for. #if ARDUINO >= 100 lcd.write((byte)0); #else lcd.print(0, BYTE); #endif lcd.print("C "); …
Eugene
  • 335
  • 2
  • 6
4
votes
3 answers

Sending data from arduino through bluetooth serial

I’m currently trying to design a controller that would communicate through Bluetooth to an android phone (Galaxy Nexus). I’m facing a few challenges. Also, I don’t have much practical programming experience. At the core of the controller resides an…
Ethienne
  • 111
  • 1
  • 3
  • 12
1 2
3
84 85