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.

1
vote
0answers
46 views

Configure Arduino IDE to not quit when the last sketch is closed

The Arduino app takes a long time to launch on MacOS. (The Initializing Packages... stage takes over a minute.) It's very frustrating when you accidentally close the last sketch window and the app ...
0
votes
1answer
115 views

Burn hex with optiLoader

Can optiLoader be used to burn custom hex? For example, there's hex representation stored in optiLoader.ino in image_328, if that value is replaced with content of my pre-compiled hex, should that ...
0
votes
2answers
679 views

Burning the Bootloader on Adafruit Feather 32u4

So, the default bootloader in Arduino is oddly set to erase EEPROM with every reboot, rendering the EEPROM, well, useless. I found where the fuses are set in the boards.txt file, but getting this ...
4
votes
2answers
4k views

Use LoLin V3 pins starting with 'S' in Arduino

I have this LoLin NodeMcu V3 board: What are the pins S3, S2, S1, SC, S0, SK? Can I use them as GPIO in Arduino? Thank you for your help!
0
votes
1answer
626 views

expected primary expression before ')' token

#define ANALOG_IN 0 void setup() { Serial.begin(19200); analogReference(INTERNAL); } void loop() { int val = analogRead(ANALOG_IN); Serial.print(0xff, byte); Serial.print( (val >&...
0
votes
0answers
922 views

Find public IP address of ESP32 using Arduino IDE

I am currently working on a project which implements communication between two ESP32 boards over the Internet. In my project, I want to get unlimited range communication by connecting one ESP32 (as ...
4
votes
2answers
1k views

Properly using separate tabs with Arduino IDE

I'm trying to split up a large project of mine into separate tabs in the Arduino IDE and I'm having more than a few troubles with it. My main trouble is finding a way to have routines in extra tabs ...
0
votes
1answer
86 views

Outputs/inputs to Multiple Arduinos in Arduino IDE at once

I apologize if this information could be easily accessed, but I'm new to Arduino and did multiple searches. I'm currently able to write to one Arduino Trinket in Arduino IDE using digitalWrite. ...
0
votes
1answer
40 views

Is an Arduino Uno required to send any sort of command to a NodeMCU?

I have an Amica ESP8266 NodeMCU I want to send some commands to. I have tried sending some commands like 'AT' and 'AT+CWLAP' but I do not get any sort of output for any command I send to it. Actually ...
1
vote
1answer
380 views

Is it possible to add an additional board on Arduino Web Editor (create.arduino.cc)?

I'm using a board that can be programmed via Arduino IDE (a NodeMCU with ESP8266) and I've configured the Windows client successfully. I've added an additional board through "Preferences" menu by ...
3
votes
1answer
48 views

Two Arduino boards - one IDE

Have been using UNO MEGA for small projects. Recently bought an UNO for other projects. Can I just go into the IDE an under Tools select UNO and a different port to do projects and rename sketches to ...
1
vote
1answer
440 views

Ubuntu class string has no member remove

I am running some code that works fine on my windows system using the .remove method. On Ubuntu 16.04 I get the following errror: error: ‘class String’ has no member named ‘remove’ To see if it ...
-3
votes
2answers
1k views

Problem “Didn't find PN53x board” in Arduino Uno E-Card Reader [closed]

This is component to make E-Card reader, using arduino uno pn532 Code if (success) { // Display some basic information about the card Serial.println("Found an ISO14443A card"); Serial....
0
votes
1answer
407 views

Nodemcu connecting to Wi-Fi Problem

I am trying to connect to Wi-Fi with Digital pin declaration in setup() function it's not connecting to wi-fi. But connecting to wi-fi without digital pin diclaration. ` #include <ESP8266WiFi.h>...
1
vote
2answers
2k views

Why I'm getting this error: invalid conversion from 'const char*' to 'char' [-fpermissive]?

Why I'm getting this error? invalid conversion from 'const char*' to 'char' [-fpermissive] Here is my simple sketch: const char data = "should"; //i have also tried: //const char* data = "should"; ...
0
votes
0answers
135 views

DFT using analog read in Teensy 3.2

I am new to arduino world and therefore would like to know how to do DFT using analog read (real time). I know its slow compared to FFT, I checked sample rate to check how fast signalled can be ...
0
votes
1answer
25 views

3D printer firmware version

Is there a way to determine which version of a Marlin firmware I would have installed onto my printer? I am trying to modify the existing arduino sketch rather than starting all over with a wrong, ...
-2
votes
1answer
65 views

functions not running

I have the following code as part of my efforts to clean this all up into more neatly organised functions. I'm trying to run GetTemperatures and RunSerial as part of the main loop, however neither ...
0
votes
2answers
2k views

client.connect() problem

I'm using XAMPP(version-7.2.1) server in my PC to publish my arduino sensor data in a webpage. I have tried the code above and it shows an error like: Ethernet configured via DHCP Connecting......
0
votes
0answers
58 views

Can't power off stepper motor when not being driven

I've tried using various classes from the AccelStepper library to get my stepper driver to switch off its enable pin when the motor isn't being driven to a position. I've got a sketch which allows me ...
2
votes
1answer
513 views

How does DDRD |= _BV(PD2) differ from digitalWrite(2,HIGH)?

I'm attempting to copycat the work of Louis Frigon's Toyota Aux Enabler. I have (with a lot of help on this site) managed to begin capturing and understanding messages on the AVC-LAN bus, but I can't ...
3
votes
0answers
678 views

Send custom 802.11 data frame with ESP8266 [closed]

I would like to send raw 802.11 data frames in order to transmit pictures with the ESP8266. I have the Espressif SDK 1.3 and so far I have tried to construct a packet and send it with ...
0
votes
1answer
1k views

Printing char array from array of structs in progmem to serial

(I apologize if this is a c++ question, I'm too green to know if this is unique to the Arduino IDE) I've moved an array of structs into my PROGMEM because I was running into memory issues: #define ...
0
votes
1answer
47 views

Increasing number of iterations not increasing time

I am using Arduino Uno with Atmel Atmega328. I am using micros() function in Arduino IDE to measure time taken for execution. Here is my code: void setup() { Serial.begin(9600); } void loop() { ...
0
votes
1answer
33 views

Constants within array of structs causes strange compiler errors?

In my sketch I have the following: #define HU_ADDR 0x190; #define ALL_AUDIO_ADDR 0x1FF; #define MY_ADDR 0x360; #define UNKNOWN_ADDR 0xFFF; typedef ...
0
votes
0answers
156 views

Variables are updating in serial interface but not web interface

I have an ESP8266 WeMos D1 R2 running the following code. The DS18B20 temperature sensor is updating its values to the serial console, but not the web interface. I've tried changing the scope of the ...
0
votes
1answer
201 views

Trying to compile code on UNO using ccs811 and LCD

Complete newbie here. I'm really hoping to get something like this to work, and then learn from it. I have a generic UNO board and an LCD/CCS811 on order. I'm trying to do exactly this: (https://...
1
vote
2answers
4k views

Arduino Uno R3 to Wemos D1 R2 project migration - Pinout problems

So i've chosen to purchase a Wemos D1 R2 board in order that my old Arduino Uno R3 projects can get some new IoT features. However, even if my code is working in Uno perfectly, i want to test it using ...
0
votes
0answers
1k views

ESP8266-01 doesn't work when TX is connected (blue LED continuously ON)

I have an ESP8266-01 module and I want to use it with the Arduino firmware. Flashing my code into it via USB-TTL converter and my voltage supply is fine. The problem: I have to attach the ESP to a ...
0
votes
1answer
160 views

How do i run multiple functions simultaneously on a LCD screen?

I have little to no experience in programming and i'm very slowly and gradually getting the hang of it. My next project is that i'm making a clock, and wanted to use multiple functions for the hour:...
2
votes
2answers
118 views

Purposely create compile error to fail the upload [closed]

I would like to create a compile error so sketch does not upload in certain cases. I have written a library with a function that adds pins being used to an array. If the same pin is used twice I ...
-1
votes
1answer
179 views

How to add additional sensors [Arduino]

I am new to Arduino. I have currently connected a FSR sensor to the TOUT pin of ESP WROOM-02. How do I add additional FSR sensor to ESP WROOM-02?
1
vote
1answer
664 views

Segmentation fault at Serial.begin()

I try to communicate with my Arduino clone (Elegoo Uno R3) from Arduino IDE (v1.8.4 installed by dnf from repos) at Fedora 27. Compiling and upload of normal example code works well. However, as I try ...
-1
votes
2answers
713 views

“Soft WDT reset” stack error: RFID-RC522 with NodeMCU

I have been all over the internet to try and find a solution to this, but after one solid week of intense Google searching I have come up with nothing. What I'm trying to accomplish: I am simply ...
1
vote
1answer
482 views

Vcc measurement with internal 1.1V reference fails on 3.3V powered Atmega328

Hello ! I need to monitor a battery plugged to an Atmega running on standalone mode. I use the "ATmega328 on a breadboard (8 MHz internal clock)" bootloader. More info here When the Atmega328 is ...
0
votes
1answer
73 views

Problems recycling c++ lib with templated class for Arduino

I have a header & cpp file located in Arduino\libraries\Parentfolder\Header&Cpp. Arduino IDE recognizes my lib (the class is color coded & Sketch->include library->MyLibrary shows in the ...
1
vote
2answers
598 views

How does one get the correct serial port?

I don't have a correct serial port from the resource I'm working from - Getting Started with Arduino by Massimo Banzi and Micheal Shiloh. I'm using the Arduino Uno. I'm a complete noob to Arduino. In ...
0
votes
1answer
727 views

Manually added boards doesn't work in 1.8.5…?

I'm trying to manually add board definitions in a boards.txt file in hardware subfolder of my sketches folder as per instructions here for instance: https://www.arduino.cc/en/Tutorial/ArduinoISP They ...
0
votes
0answers
85 views

Can't open device “\\.\COM7”

So for Christmas I got 2 genuine Arduino Uno boards and they don't work. This is the error 'can't open device "\.\COM7"' and I have checked everywhere online and there are no solutions that work for ...
0
votes
0answers
36 views

How to reset an Arduino sketch using another Arduino? [duplicate]

I had a Leonardo but I wrote a sketch that acts as a keyboard writing "hm", so I am not able to reprogram it with my computer. I have an another Leonardo. How do I erase the sketch from the broken one?...
3
votes
1answer
1k views

Controlling an LED using SIM900A and Arduino

How can I turn the LED on and off using a received text message? The sim card is able to receive the message but I can't change the pin status. I also can't see anything in the serial monitor upon ...
0
votes
3answers
4k views

How to get the firmware (hex) file from a .ino file containing the code

I currently have a .ino firmware file that I use in the Arduino IDE to program an ATmega328 micro-controller. I would like to get the file that the Arduino IDE uses to program the micro-controller. ...
-1
votes
3answers
74 views

Is there a way to put multiple integers in a method? [closed]

I'm working on a project that has 3 RGB LEDs. I want to make a simple method that I can call to control the LEDs for example: showColor(left, 255, 0, 50); Which would light up the left LED at 100% ...
1
vote
1answer
208 views

DAC using Arduino Leonardo

I am as new to Arduino as it can get. To start off, I am trying to build a DAC using an Arduino Leonardo. I have a digital signal coming from my dual differential comparator. I want to convert this to ...
0
votes
0answers
529 views

Programming with Atmel ICE from Arduino IDE unbearably slow

I am using the Atmel ICE programmer to program an ATTiny84. Doing that from the Arduino IDE takes more than 10 seconds. Calling avrdude from the shell is 5x faster. How can I speed up Arduino IDE's ...
1
vote
4answers
123 views

Multiple delays

I have a sketch with multiple functions in it. The 2 main functions in that sketch are get_data and post_data. Now these functions are called from loop(). The thing is I want these functions to run ...
0
votes
1answer
524 views

How to send MFRC522 data to a C# app using a NodeMCU TCP server?

I am trying to send MFRC522 data to a C# application through a NodeMCU acting as an access point for the C# app. I have modified the code I got from this site. #include ESP8266WiFi.h> #include SPI....
1
vote
0answers
187 views

Arduino hardwareSerial Bluetooth.println not sending string over 310 chars

Hey all I am wondering if my code below can be modified in order for the arduino to send more than 300 chars to a HM-10 bluetooth 4.0 le module? #include <SoftwareSerial.h> #define ...
2
votes
1answer
2k views

How to post JSON data from Arduino?

I want to post data that I'm getting from the sensor every 5 seconds to my application in JSON format. Initially, I'm getting data as int and converting into String. For example: if data=15, it is ...
0
votes
0answers
108 views

Parse JSON data from String [duplicate]

I'm getting JSON data using HTTP methods in Arduino and storing in String Object. The data is: { "item": { "Identity": { "Id": "327681", "ItemId": "64006A962B71A1E7B3A0428637DA997C....