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.

Filter by
Sorted by
Tagged with
0
votes
0answers
8 views

FatalError('Invalid head of packet (0x%s)' % hexify(b)) while uploading on ESP8266

I have this error while uploading my code to ESP8266 despite the fact that the code runs without errors. I have the git version of installation for the board. ERROR: File"C:/../../AppData/Local/...
1
vote
1answer
22 views

#include <ESP8266WiFi.h> Error with WiFiClientSecureBearSSL.h

I am new to the Arduino world and it seems that this simple problem is keeping me at the start line. I use the Generic ESP8266 Module as Board In my sketch I just write: #include < ESP8266WiFi.h &...
0
votes
0answers
23 views

how to get text box values from webserver of esp32 and print them in to serial monitor by using <webserver.h> library

Actually I'm trying to get the values from esp32 server webpage. Suppose there is a web page containing some text box fields, user has to enter some details in it and this details I want to be print ...
0
votes
0answers
32 views

I need help with attaching codes in arduino [duplicate]

I'm in a project and I need to put multiple grove sensors in arduino and I've done with the others, but when I put the code of MQ3 sensor all the sensors stop showing in the serial monitor. I'm going ...
1
vote
0answers
32 views

reference to 'File' is ambiguous. Why am I getting this error?

The program is supposed to take photo and store the picture into the SD card with the timestamp. My Program Code: #include <SdFat.h> #include <Adafruit_VC0706.h> #include <SPI.h> #...
0
votes
1answer
19 views

How do I use PlatformIO to flash ESP-12F (ESP8266MOD)

In PlatformIO while creating a project , in the board selection there is no ESP-12F in the boards. While there is ESP-12E. I can flash ESP-12F while choosing ESP-12E from the boards without any ...
-1
votes
1answer
34 views

How to upload already compiled code when no changes were made?

How do I use the Arduino IDE to upload the last compiled code? I don't want to have to wait 2 minutes to upload compiled code when there are no changes. It's a big codebase where I frequently make one ...
0
votes
0answers
15 views

How to use void swap with multi-dimensional array to control motor with openCR board

i am a beginner. About my problem, there is an "invalid conversion' error in the swap(goal_positionall) #include <DynamixelWorkbench.h> #define Device_Name "" #define BAUDRATE 57600 #define ...
3
votes
0answers
62 views

Weird Arduino Code Problem

I'm currently getting started with Arduino, so I do not have very much knowledge. In this project I have a receiver and a transmitter with 2 buttons. So, I'd like to switch something to on, when I ...
0
votes
1answer
15 views

Second item in array not gets assigned from struct object, ArduinoJson

I got the below code generated this amazing tool. const size_t capacity = JSON_ARRAY_SIZE(2) + JSON_OBJECT_SIZE(1) + JSON_OBJECT_SIZE(4) + 2*JSON_OBJECT_SIZE(7); DynamicJsonDocument doc(capacity); ...
-1
votes
0answers
23 views

NODEMCU - Max30102 heart rate sensor stability

I am using MAX30102 heart rate sensor and I only want to get one stable value from that sensor and display it. I am using a for loop to do so and it is not really working really well for me. Can ...
0
votes
0answers
16 views

Nodemcu single server with 2 clients

I am trying to connect my nodemcu server with 2 nodemcu clients. One client is connected and it works perfectly. I am unable to configure what to do for the other client to be connected and share data ...
0
votes
0answers
9 views

NOT UPLOAD SKETCH PROGRAM [duplicate]

Arduino: 1.8.9 (Windows 7), Board: "Arduino/Genuino Uno" Sketch uses 6650 bytes (20%) of program storage space. Maximum is 32256 bytes. Global variables use 405 bytes (19%) of dynamic memory, leaving ...
-1
votes
2answers
46 views

Do comments occupy space in compiled C++ sketch? Arduino / NodeMCU

I tend to leave old code around as comments until I am sure that my current version is stable. Just the way I like working. I am concerned that I may be unnecessarily bloating up my sketches. Do ...
2
votes
1answer
32 views

How to produce a .o file from code using Arduino IDE (primarily for LGPL3 compliance)

I spent a great deal of time looking for any posts regarding this and came up empty. The reason I needed to do this is that I am working on some proprietary code that will be released in an embedded ...
0
votes
1answer
24 views

Changing preferences.txt to 4-space tabs, how to AutoFormat existing code?

Title says it all really, but to elaborate, in my preferences.txt file, I've changed the editor.tabs.size variable to 4, which works wonderfully, and now produces 4-space tabs as do my other IDEs for ...
0
votes
1answer
30 views

Can't Compile .ino using ArduinoJson Library

I am using an ESP32 NodeMCU for which I wrote working software before. This also occurs when I just try to compile without uploading, so no hardware problem. I am using the newest version of ...
0
votes
1answer
33 views

Nodemcu Server with multiple sensors

I am trying to connect my nodemcu client with nodemcu server, while my client is connected with two sensors (DHT11 and Soil Moisture) and it is workign perfectly, but on the server side I am unable to ...
0
votes
1answer
29 views

Using Arduino fix_fft or arduinoFFT library to filter some specific sound?

I would like to know if there is a way to filter some specific sound using FFT on arduino. For instance, there is wind sound frequency in my analysis and I want to take it off. I searched for that a ...
0
votes
1answer
12 views

Global JsonObject (ArduinoJson)

I know a global JsonObject shouldn't be used, but I have my reasons. I have a JsonObject* functions and I want him to save the content of a file. With functions=new JsonObject(jsonBuffer.as<...
0
votes
4answers
96 views

Can I do something like this to simplify the code for arduino?

Can I simplify the code in arduino where it doesn't promote any error. Example: Int led =13; Blink = digitalWrite(led, HiGH); delay(1000); digitalWrite(led, LOW); ...
0
votes
2answers
39 views

How do I code the release of a momentary touch sensor in IDE?

I am a performing musician and quite new to the Arduino community. Just learning as I go. I am interested in using a momentary touch sensor with Adafruit's MP3 shield or Wave Shield. I have ...
0
votes
1answer
24 views

qMenuSystem Oled I2C can't make it work

I'm trying to make the qMenuSystem to work with my I2C Monochrome OLED display but without any luck. To summarize all here's what's with it : - the qMenuSystem is using a library called : ...
0
votes
1answer
29 views

How to set PC (Program Counter) register to another function (for scheduler)

I am trying to implement a scheduler for Arduino Mega 2560. I think I lack understanding of how to set the PC register to another instruction. Here is my simple approach so far: void dummy(){ ...
0
votes
1answer
34 views

Error while reburning bootloader to atmega328p by usbasp in Arduino IDE

I have got the Bootloaded ATMega328P-PU from China and I want to reburn new bootloader into it. For this I use UsbAsp programmer. I want to do it in Arduino IDE. But when I try to flash, for example, ...
0
votes
0answers
40 views

WebSocketsServer.h: No such file or directory

I'm trying use the NodeMCU WebSocket. I downloaded the required libraries from: https://github.com/Links2004/arduinoWebSockets and pasted them in my Arduino libraries folder. I uploaded my code but ...
0
votes
1answer
23 views

Editing a particular position in a file stored in SD card

I am trying to store some variables in a text file which is saved in a SD card, using the SD library. Every time my program runs, it load the values of those variables from the file. After a few ...
0
votes
0answers
32 views

Error: " stray '##' in program in

I am trying to use #define in Arduino IDE as I used to do in Atmel Studio like: #define PROGRAM(N) void PROG_##N(void) However I am getting a stray error because of the hashes, is there a way to ...
-1
votes
1answer
76 views

5 minute timer output time remaining

I am trying to create a timer that outputs the time remaining in minutes. I am using an Adafruit Circuit Playground Express. For example, if the timer is 5 minutes, then every minute it should output ...
0
votes
0answers
44 views

Voice receiver arduino

I have the following situation. I would like to develop a bracelet prototype that identifies when a person is on the go and also issue a question to the person for that bracelet and get an ...
0
votes
0answers
24 views

can I use Arduino cuurent-shield-sensor to measure very small voltage?

I want to measure very small voltage in small Range -100/+100 mv from a circuit, can Arduino-shield ACS712 (max471) do that direkt ?
0
votes
1answer
41 views

How to return Char Array Value in Arduino IDE Function?

Function char* getConnectDetail(int starting){ String data; for(int i=0;i< 1024 ;i++) { if(EEPROM.read(i+starting) != 0){ data += char(EEPROM.read(i+starting)); } } int ...
1
vote
1answer
46 views

How to delegate code compilation to a remote machine?

Sometime I write Arduino code on a slow Windows laptop that I use for controlling hardware projects and 3D printing. My main Windows computer and also my Linux home server are located somewhere else ...
0
votes
0answers
63 views

Using ESP32-CAM (with ov2640 camera image sensor) to send image via USB

I was trying to obtain image from ESP32-CAM (with ov2640 camera image sensor). I obtained the image through camera web server by connecting the ESP32-CAM and PC to same wifi network. A USB to TTL ...
0
votes
1answer
32 views

STM32 “Blue Pill” Serial.print freezes Serial Monitor

I am having difficulties when printing any type of variable using the Serial.print(ln) command. The Serial Monitor becomes inactive after printing for approximately 7 - 15 times. I currently have ...
0
votes
0answers
20 views

About split string

Sorry my English is poor. I use nodemcu to get a json data. By this String alldata = client.readString(); But it turn this: HTTP/1.1 200 OK Server: nginx Date: Sat, 10 Aug 2019 04:53:16 GMT ...
0
votes
0answers
48 views

What is the format specifier for string in arduino

I have a string formattedDate. When I am trying to give sprintf(payload,"{\"timestamp\":\"%s\",\"temperature\":%f,\"humidity\":%f}",formattedDate,t,h); Its not printing the date and time.
0
votes
1answer
56 views

Control two stepper motors simulatenously?

I'm using Arduino Mega 2560, A4988 motor driver for 5 stepper motors. There are X1, X2, Y, Z, A axis, and if I control Y and Z at once, it works. But when I just change axis from Y&Z to X1&X2, ...
0
votes
2answers
23 views

My push button code doesn't work properly

I'm using an OLED display connected to a push button. I am trying to get my display to show two different values independently by using the push button to switch between them. Here is a snap of my ...
-1
votes
1answer
46 views

Why is my Arduino code for running a Bluetooth controlled robot with obstacle sensor not working as it should be?

I have created a Bluetooth based smartphone controlled robot (a 4 wheel car) earlier using Arduino and an obstacle avoidance robot. Now, I wanted to combine both of them. So, I combined their ...
0
votes
1answer
31 views

My device doesn't recognize my Arduino

I'm planing to use the ESP8266 to create a web server as a start. My set up is: Arduino nano- Esp8266- Logic level converter as shown in the diagram. After I connected everything my device doesn’t ...
0
votes
0answers
99 views

input from push button

I have connected three push buttons to node mcu which are working properly, but display of output on COM port is very slow. It works properly when two buttons are connected, but not when three are ...
2
votes
1answer
72 views

How to send UDP data packet between two access point?

I am new to arduino programming and nodeMcu boards.I have two ESP8266 bards as access points and one board get some data form WiFi stations and resend that data to other access point. but the problem ...
0
votes
0answers
34 views

ESP32 OTAWebUpdater only works on mobile

I'm experiencing something strange. I opened the default ESP32 example "OTAWebUpdater" in the ArduinoIDE and modified just the network part (I created a soft AP instead). The problem is, when I ...
0
votes
2answers
62 views

flash read err, 1000

I know this question has been asked multiple times but solutions giving there hasn't been working, I've got an esp32 soldered to my own designed PCB board with a UART to USB converter all that is ...
0
votes
0answers
30 views

How to re-send UDP data packet to a esp8266 board? [duplicate]

I have several connected esp8266 boards. Lower level client boards connect to middle level esp8266 board and middle level board connects to the top level Esp8266 board (AP).When a client sends UDP ...
0
votes
0answers
25 views

Adding bootloader to Feather M0 Bluefruit LE

I want to make a custom Feather M0 Bluefruit LE. I know this means that I will have to add a bootloader to the ATSAMD21G18. I have seen that there are many useful articles in relation to adding ...
0
votes
1answer
31 views

global volatile variable not being updated in ISR

Running on atmega168p, I've got an interesting behavior I can't explain. A global volatile var that's called pos over here is not updated as it should. Once I add some code below the assignment, it ...
1
vote
1answer
19 views

Arduino IDE display DEBUG PORT Serial1 output

How can I display / capture Arduino IDE's Serial1 output? Can I display it using Arduino IDE or using a script in Python? This python script (courtesy of Chad G) works for the Serial: #!/usr/bin/env ...
0
votes
1answer
17 views

NodeMCU what is my esp3286 core version

How do I find out what my esp3286 core version using Arduino IDE?