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
3
votes
1 answer

Can I use my Arduno Uno Wifi to write to a SQL Database?

I recently bought an Arduino Uno Wifi in order to write sensor data right from my Arduino into an existing MySQL Database. I thought since there are some existing libraries (like this one) that do exactly the same thing with the help of a ethernet…
Felix Bockemuehl
  • 157
  • 1
  • 3
  • 14
3
votes
4 answers

while...else Statement for Arduino

Is there a possibility to add an else after a while-Loop in Arduino, like there is in Java or C#? Something like this: while(condition){ doThingA; } else{ doThingB; }
Dj-Wawa
  • 31
  • 1
  • 1
  • 3
3
votes
1 answer

Adding custom C library in Arduino 1.5.7 IDE

Context: I would like to add a custom library to a piece of Arduino code in the Arduino 1.5.7 IDE to ensure code is decentralized and readable Attempted solution: I make a folder called "mathsfunctions". In it I put two text files, one with a .c and…
Dean P
  • 1,841
  • 23
  • 23
3
votes
3 answers

Cannot upload sketches to Arduino Uno R3 -- avrdude: stk500_recv(): programmer is not responding

Update: I have been told (in the first answer to this question) that I should install the Windows drivers for the ATmega 16U2 chip onboard my Arduino. Unfortunately, I have been unable to locate these drivers (I am looking specifically for Windows…
Matthew
  • 99
  • 1
  • 2
  • 10
3
votes
2 answers

How to make sure a data type is as large as it needs to be in C++

Is there a simple way to make sure data types remain the same size across different platforms and architectures in C/C++? In C++, let's say I have written a hypothetical, bare-bones program: #include int foo; int main(void) { …
Mason Watmough
  • 495
  • 6
  • 19
3
votes
1 answer

Arduino Zero Wifi

Has anyone gotten WiFi to work on the Zero? When I so much as include any Wifi header files my code compiles but stops executing all together. I have tried using the Library Manager and it auto included the following: #include #include…
Justin
  • 243
  • 5
  • 15
3
votes
5 answers

arduino suddenly shows "avrdude: ser_open(): can't open device "\\.\COM3" after last upload

I am using arduino uno to make a sound detector. I uploaded a program, found error in the code that it returns unintended numbers unreasonably big. I also think I used wrong code for the module, but it was connected in the way that can work…
Keon Kim
  • 740
  • 3
  • 12
  • 27
3
votes
2 answers

How to make AT commands work programatically in arduino for ESP8266 wifi module

I am doing a simple tcp communication from an arduino to raspberry-pi wirelessly with an ESP8266 wifi module on arduino uno.The tcp server is running on the raspberry-pi.I am able to do TCP communication with the following AT commands in arduino…
lost Coder
  • 577
  • 2
  • 8
  • 34
3
votes
1 answer

Unable to communicate with arduino using QSerialPort if the arduino-ide has not opened the connection before

I am using the following code to open a serial port to communicate with the arduino. const qint32 baud = Global::getInstance().getSettings().value("Hardware/baudRate", 115200).toInt(); const QString portName =…
Arne Böckmann
  • 467
  • 2
  • 16
3
votes
2 answers

Arduino Due conditional compilation constant for custom library

I'm writing a custom library and it is working correctly on an Arduino Uno. However I've now got my hands on an Arduino Due and I need to define some board specific pin constants. I know for most boards you can do this through an #ifdef directive…
will-hart
  • 3,742
  • 2
  • 38
  • 48
3
votes
2 answers

Arduino development with embedXcode in Xcode

I've been recently using embedXcode for some Arduino related projects. Those who are familiar to Arduino knows that code sense is not an option you can get in the Arduino IDE. That's why embedXcode gives you the freedom to get the code sense of…
3
votes
3 answers

Operator new for Arduino

I've been told (specifically in an answer to C++ Standard Library on Arduino, and in Stack Overflow question C++ string and Arduino String. How to combine them?)) that the Arduino compiler does not implement the new operator. However, I've written a…
Michael Dorst
  • 8,210
  • 11
  • 44
  • 71
2
votes
2 answers

Why does my C++ Arduino Program interrupt when I write to an array?

I am trying to create a class that will handle events. class2 represents events, class1 is a structure where events are stored and handled. Here is my simplified code to prove the concept, it doesn't work: class TestClass2{ public: …
boiledRice
  • 31
  • 4
2
votes
6 answers

PermissionError(13, 'A device attached to the system is not functioning.', None, 31)Serial port COM4

I'm very new to using ESP8266,I tried to upload this simple script void setup() { pinMode(D4, OUTPUT); } void loop() { digitalWrite(D4, HIGH); delay(1000); digitalWrite(D4, LOW); delay(1000); } to the node mcu(ESP8266) but I keep on…
Durai Murugan
  • 39
  • 1
  • 5
2
votes
1 answer

Using PyFirmata with a simulator like SimulIDE

I'm trying to learn PyFirmata, but don't want to get all of the hardware I need to do so. Instead I want to use a simulator, right now I'm using SimulIDE. In order to use PyFirmata, a board has to be connected to a COM port. Is there a way to get…
kmoore1616
  • 23
  • 3