Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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, Mac OS X, and Linux.

0
votes
1answer
20 views

MemoryFree library showing Irregular Behaviour..!

I simply burned the code written below but it is showing me irregular behaviour.. as in output's last paragraph, free memory increases after a runtime allocation, how it is possible? The output is ...
0
votes
1answer
75 views

Arduino Mega upload issue

I have made my own version of an Arduino Mega and I am encountering some issues. Whenever I try to upload any sketch to the Mega, I get the following error message: avrdude: stk500v2 ReceiveMessage():...
0
votes
0answers
34 views

MemoryFree library showing free memory more than capacity of Atmega328Pu MCU

I simply burned the code written below but it is showing me free memory as 2299 bytes please somebody clarify that how in an Atmega328pu can have 2299 bytes free with an overall capacity of 2048 bytes....
0
votes
1answer
89 views

stk500 getsync() attempt 10 of 10 atmega328pu [duplicate]

I've been getting this very common error on my atmega328pu circuit. avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x83 Some things ...
0
votes
1answer
57 views

Where does arduino IDE store the latest board selection?

I'm building a tool to help me automate my uploading process. How do I know where Arduino stores the current preferences - which board, which com port, what serial speed? If devs are familiar with ...
-1
votes
1answer
137 views

Arduino IDE won't upload sketches

I recently updated my Arduino IDE to 1.8.5 from 1.6.9. I am getting issues with uploading sketches. The sketch compiles, but when I try to upload it I get this message: Arduino: 1.8.5 (Mac OS X), ...
0
votes
1answer
88 views

How do I make Arduino IDE use a specific version of GCC in Debian?

Using Raspbian Stretch. I installed gcc-4.9 with specified version. Then I installed arduino (2.1.0.5) which in turn pulled gcc 4.6. When I try to compile Marlin in it, it says Marlin requires C++...
1
vote
1answer
67 views

Using the Arduino compiler, is it possible to use Atmega2560 interrupt pins that are unused by Mega?

Looking into the schematics for the Arduino Mega I noticed that pins PE6 and PE7 are interrupt-enabled (INT6 and INT7 respectively); however, they remain unconnected to any Arduino I/O pin. I'm ...
0
votes
1answer
259 views

Help in “An error occurred while uploading the sketch”

Trying to test THIS. Got following error: esptool v0.4.13 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de> setting board to nodemcu setting baudrate from 115200 to 9600 setting port ...
0
votes
1answer
23 views

In the latest version of Arduino Desktop IDE, are there all features of Arduino Web Editor?

I would like to know if there are always the latest features in Arduino Desktop IDE if I update it every day. I mean if there is a new feature in Arduino Web Editor, can I get it on Arduino Desktop ...
0
votes
1answer
188 views

Arduino IDE and subfolders

I have a sketch with multiple source files and folders arranged like so. I've divided up the project like this to keep things clean. | \---project | project.ino | types.h | +---...
0
votes
1answer
54 views

How do I reset my libraries back to original condition?

How do I reset my arduino installation back to its original state? i.e., no extra downloaded libraries, etc. If I delete Documents/Arduino/libraries is there any other state that needs to be cleaned ...
3
votes
1answer
82 views

Correct way of having loop end when required?

I'm brand new to Arduinos. I'm currently trying to modify a script from here which at the moment, simply turns an LED on or off depending on which HTTP GET request it receives. However, I want to ...
0
votes
1answer
253 views

NodeMCU capable of key injection?

Short version: Is the NodeMCU capable of key injection in the same way that an Arduino Teensy can be programmed with Duckuino script to function as a HID? Long version: Recently, my 7+ year old iMac ...
1
vote
1answer
110 views

Flashing NodeMCU with .ino file?

I'm brand new to the Arduino world. I recently purchased a NodeMCU in order to have it act as a sort of foothold to get into Arduinos as it's something I've always wanted to do. However, it was only ...
1
vote
3answers
44 views

The Arduino IDE can’t find my Arduino Uno

My Arduino has all of its LEDs on. The Rx, Tx and L LEDs are all on and my computer can’t see it (it's an SMD edition).
0
votes
1answer
579 views

NodeMCU V3 + SD Card with Arduino IDE Not working

I am trying to connect CATALEX MicroSD Card adaptor to new NodeMCU V3 and PIN configuration are as below, NodeMCU ---------> SD Card GPIO13 (D7) ------> MOSI GPIO12 (D6) ------> MISO GPIO14 ...
0
votes
1answer
157 views

Replying with a html page in HTTP Web Server using esp01 and ArduinoIDE

Now there are many ways to reply with a webpage content to a user who is accessing the web server, But Keeping in mind to use as less space as possible, I was trying something new, Since i didnt got ...
0
votes
0answers
186 views

SIM800C, CPIN: NOT READY (ERROR CODE : +CME ERROR: 10)

I'm using a SIM800C module, and usually it works fine, but lately it has started giving the error "+CPIN: NOT READY" with ERROR CODE : +CME ERROR: 10(SIM NOT INSERTED). As soon as I get this message, ...
3
votes
1answer
284 views

Adding a custom board to the Arduino IDE

I would like to know what is the procedure for adding a custom board to the Arduino IDE? My custom board is similar to the Arduino Zero. Instead of using the ATSAMD21G18, my board is based around the ...
0
votes
2answers
118 views

Do serial ports on Arduino UNO / Leonardo initialize differently?

What are the differences in serial communication between PC <---> Arduino UNO (ATMEGA328p) and PC <---> Arduino Leonardo (ATMEGA32u4)? I am asking because of a problem related to using these ...
1
vote
1answer
72 views

Which platform is better to debug Arduino memory problems? Linux or Windows?

I am developing a product. I developed every module in the firmware individually. Now I am integrating them but getting memory issues. I am not able to see how the memory is allocated inside the MCU ...
2
votes
2answers
155 views

Setting pinMode(pin,input/output) as per user requirement

I am working on arduino IDE and esp8266 nodemcu. As i am going through the IDE I saw that there is a structure of void loop() and void setup() and all examples in the internet included defining the ...
1
vote
1answer
2k views

NodeMCU (Arduino IDE) 'DynamicJsonBuffer' was not declared in this scope

#include <Arduino.h> #include <ESP8266WiFi.h> #include <ESP8266WiFiMulti.h> #include <ArduinoJson.h> #include <ESP8266HTTPClient.h> #define USE_SERIAL Serial ...
0
votes
1answer
123 views

Updating Server using ESp8266 with Direction Button Pressed IN

I've connected a 5-way tactile switch to a ESP8266 module and am using the Arduino IDE to create an automatically updating web server that displays the direction that the button is pressed in when ...
1
vote
0answers
144 views

Prevent Arduino IDE from rebuilding the core library after every restart

I have an Arduino IDE 1.8.5 setup (installed from the ZIP file) which I use to work exclusively with a single board. Every time the IDE is restarted, the first compilation takes much longer than ...
0
votes
1answer
985 views

Nextion Dual State Button

I am having an issue with my Nextion display. I have uploaded the following code via Arduino IDE to my Arduino MEGA 2560. My Nextion Editor shows the button as ID:9 on page0 named floor. I am not ...
-2
votes
4answers
782 views

How to find the index of the maximum value in an array? [closed]

Say we have an array named myMeasurements int myMeasurements[9]={3,4,8,12,7,2,1,67,8}; How can I find the index of the maximum element of this array? For example the MATLAB code would be: ...
0
votes
0answers
63 views

NodeMCU 1.0 (ESP 12 E Module) 2pcs ESP8266 Port Grayed Out

I recently got an ESP8266 NodeMCU board and installed the necessary drivers but the port is still grayed out in the arduino IDE.
1
vote
1answer
571 views

How to install your own library with Arduino IDE 1.8.5?

I'm struggling a bit with Arduino language + its IDE not being 100% real C++. I wrote my own I2C library for a sensor but can't get the IDE's compiler to recognise it. I'm using Ubuntu 18.04. I get ...
0
votes
0answers
35 views

Main loop not executing after calling other void function

I am using Teensy 3.2/ Arduino micro to develop an air quality monitoring system. The principle is quite easy. Get the data from the sensors, (PM 2.5 ,CO2) , Send it back to Teensy to calculate one ...
0
votes
0answers
88 views

Arduino ESP8266 Board Port Greyed Out

I just got a NodeMCU ESP8266 board and when I try to use the IDE, the port is grayed out. Please Help. NodeMCU 1.0 (ESP 12 E Module) 2pcs ESP8266 WiFi Microcontroller with CP2102 Works Great with ...
0
votes
1answer
268 views

Arduino Uno Motor control using 2 Relays, 2 Limit switches and Bluetooth. Forward Reverse Stop

Modified existing project from this link: Problem : Trigger limit switch to stop DC motor I modified this code to control two relays which are wired to motor poles for Forward or Reverse movements ...
4
votes
4answers
3k views

Arduino IDE Permision Denied For Upload, Ubuntu

I am having issues uploading to my Arduino from the IDE on Ubuntu 18.04. The error message I have received is: Arduino: 1.6.10 (Linux), Board: "Arduino/Genuino Uno" avrdude: ser_open(): can't ...
0
votes
1answer
190 views

Arduino ide vs embedded C for Atmel AVR [closed]

Is there any difference in the end product when coding the atmel avr using arduino ide and in embedded c are there advantages with embedded c?
0
votes
2answers
1k views

To send data perpetually from multiple clients to a server using NodeMCU?

I am working on sending data from multiple clients to a server, all of which are NodeMCUs. I have been able to send data for a single iteration. Trouble arises when I want it to send data repeatedly ...
0
votes
1answer
46 views

Arduino IDE giving a blow to battery back-up of PC [closed]

When I have serial plotter open in the Arduino IDE with serial communication going on, the fans of my PC go full speed. On checking I found that Java(TM) Platform SE binary(32 bit) is using about 29% ...
0
votes
1answer
240 views

Sending multiple messages over the serial monitor in nodeMCU

I am trying to send multiple messages wirelessly from one ESP8266-12E NodeMCU to another. I have successfully established the connection and am able to send and receive single messages. The MAC ...
0
votes
2answers
61 views

Run Time Error in arduino

I am trying to communicate multiple clients to a server, all using nodeMCUs. I am getting a weird run time error at the Server Serial Monitor of Arduino IDE when I upload the code. Here's my server ...
0
votes
0answers
46 views

Fab Lab Octopus - Board Type - Arduino IDE

I have a 'Fab Lab Octopus' board an I want to upload a script to it. In the Arduino IDE I couldn't find the "Octopus" under board type (Tools > Board) If I click 'Get Board Information' I get ...
0
votes
1answer
63 views

Shock sensor is not running in the file

I have faced an issue where the shock sensor is not running in the file. My idea is that when the ultrasonic sensor sense that when it is 4cm, the garage door will open. When the car reverses, the ...
1
vote
1answer
44 views

Arduino 3rd party cores

I am trying to use Arduino platform.txt to run some extra pre-processing on my Arduino codes. As far as I can understand the best way to do that is to use prebuild hooks as mentioned below https://...
1
vote
0answers
87 views

Strange things happening with Arduino PROGMEM

I am currently working on a display library. The font should be stored in PROGMEM. The code looks something like this: unsigned int i = 0; Serial.println(pgm_read_byte(&font[1]),HEX); unsigned ...
0
votes
1answer
154 views

Compile Problem with RFDuino RFD22301

I have the following setup: - Arduino IDE for Mac 1.8.5 - RFDuino RFD220301 - CP2102 USB to UART connector - Board set to "RFduino" - port set correctly (but shouldn't matter as it is a compile error) ...
-1
votes
1answer
94 views

Arduino IDE - Ubuntu Mono Font Name?

I know that you go to preferences.txt and there is editor.font= line setting, but I can't get what font name to type in there to use Ubuntu Mono. I would like to use that font please. I've tried: ...
1
vote
1answer
458 views

Increase sample rate in ESP32 board

For my final project on the university as a Systems Engineer, I'm working on a "electronic stethoscope", which is giving me a lot of headaches. I bought a Adafruit Feather ESP32 Huzzah (https://learn....
0
votes
1answer
131 views

Error compiling to teensy 3.6

Problem: In short, the Arduino IDE won't compile a sketch for the Teensy 3.6. It gives the error: exec: "A:\\arduino-1.8.5\\hardware\\teensy/../tools/teensy_post_compile": file does not exist Error ...
0
votes
1answer
104 views

DLHR differential pressure sensor SPI

I am new to using SPI with an Arduino. But I'm trying to wrap my head around the "coding protocols"/syntax of the Arduino IDE code. I understand the basics of how SPI works conceptually, just not how ...
2
votes
1answer
752 views

How to transmit string data using the rc-switch library?

I am using the rc-switch library for sending and receiving data. In rcswitch library, there is no method to send string data. I am using below method to send the string message in char buffer. ...
0
votes
1answer
146 views

USB upload to Pro Micro (32u4)

My project is based around the ATMEGA32u4 microcontroller. I followed the Arduino Pro Micro schematic to design my own board layout and build a custom PCB, soldered on the components. Then I used ...