Questions tagged [error]
The error tag has no usage guidance.
72
questions
1
vote
2
answers
118
views
Communicating via Serial Monitor but not able to get comms via Terminal outside of Arduino IDE
I am using Arduino Nano 33 BLE. I am able to communicate via Serial Monitor within Arduino IDE, but not able to communicate via Terminal, outside of Arduino IDE. I am using Teraterm, do I need to do ...
1
vote
0
answers
29
views
Arduino MEGA crashes with Ethernet shield to connect to two TCP servers
I have Arduino MEGA with Ethernet Shield and a SD card connected to a RUT950 GSM router. Then, I also have two sensors connected to the router and they run a TCP server that sends measurements ...
4
votes
2
answers
575
views
STM32 "black pill" won't enter DFU mode reliably
I'm following the standard process to put an STM32 "black pill" (STM32F401CC) into DFU mode so that I can upload from the Arduino IDE over USB:
Hold down boot0.
Press and release rst.
...
3
votes
1
answer
3k
views
A fatal error occurred: Failed to connect to ESP32: Wrong boot mode detected (0x13)! The chip needs to be in download mode. [upload] Error 2
I have seen so many people complain about this same error and they were given a multitude of answers to help with this error, but nothing so far has worked for me.
Everything was working fine until I ...
2
votes
2
answers
1k
views
WiFiClient.cpp:517 flush(): fail on fd 48, errno: 11, "No more processes" what it mean?
Hello i wrote this sketch that upload a temperature reading of a DHT22 sensor to a phpMyAdmin server in localHost, the sketch work fine, the data been upload every 5 min to the server than ESP go t ...
-1
votes
1
answer
84
views
RGB LED randomized colors and LDR fading at the same time
Im trying too make an RGB LED that keeps changing color's randomly, and makes the brightness fade at the same time with an LDR, yet I keep getting an error that says too many arguments to functions.
...
1
vote
1
answer
125
views
Arduino Output Panel Font Color Change
I am using Arduino IDE 2.0.3. When compiling code if there is an error it shows on a black background with a red font, that is hard for me to read. Can I change either the background or the font? ...
1
vote
0
answers
199
views
Getting “Open the GPS power failure” on module SIM808
I tried to get the gps coordinates with this program:
#include <DFRobot_sim808.h>
#include <SoftwareSerial.h>
#define PIN_TX 8
#define PIN_RX 7
SoftwareSerial mySerial(PIN_RX,PIN_TX)...
-1
votes
1
answer
245
views
ESP32 Rebooting while converting String to Hex Array
I wrote this code to convert String to Hex Array.
const char* hexstring = "0x21 0x73 0x10 0xfa 0x7a 0x00 0xff .../*40995 character long string*/....0xaa"
void setup() {
char* temp;
...
0
votes
3
answers
4k
views
text section exceeds available space in board
When I compile this code it gives the error mentioned above.
I saw online a way to resolve this: Serial.println(F("..."));
For fixed string literal I changed it but still didn't work.
I'm ...
1
vote
0
answers
521
views
ESP32 WIFI error when trying to initialize WIFI after stopping and deinit WIFI driver
I have a firebeetle ESP32 board and I use VScode with platformIO. My platform is espressif32 v5.0.0 and the framework is arduino.
I am currently implementing a WIFI connection as follows:
bool ...
5
votes
2
answers
114
views
Not enough memory error using OneSheeld.h
I'm a dairy farmer and I'm new to playing around with Arduino's. I created a code to send me SMS's when my equipment stops working as it should, but I run into a "Not enough memory" error. ...
2
votes
4
answers
14k
views
esp32, platformio A fatal error occurred: Packet content transfer stopped (received 8 bytes) *** [upload] Error 2
When i try to upload code to the esp32 the following error shows up in the command line:
A fatal error occurred: Packet content transfer stopped (received 8 bytes).
I use platformio in VScode the ...
1
vote
0
answers
303
views
Unable To Upload Source Code on Arduino UNO(Windows 11)
I was trying to upload the source code of a project to the Arduino UNO and this is the error that I keep on receiving.
After I closed and reopened it again, the Port option is gray. I tried everything ...
1
vote
0
answers
114
views
Motor rotates well in one direction but runs slower in other with L298N and L293d
I connected 2 motors with an L293Nn driver. When I control it with my joystick, one motor works fine (Out 1 and 2 of driver.) It rotates in one direction and the other very smoothly.
The problem ...
1
vote
0
answers
1k
views
When i upload the code to nodeMCU this error comes I have checked libraries ,ports made enviroment for nodemcu but error always come to screen
Arduino: 1.8.7 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use ...
1
vote
0
answers
98
views
Error compiling arduino sketch to seeduino xiao for RF24 Module
I am trying to get 2 rf24 modules talking to each other. This is my first real arduino project so bear with my ignorance please. I could get them to work with 2 arduino nano but, when trying to ...
0
votes
1
answer
596
views
LoRa recieves only 2-4 packets, then stops working
I'm working on LoRa project using [Ai-Thinker RA-01 SX1278 433MHz LoRa][1] with [sandeepmistry/arduino-LoRa][2] library. I modified LoRaReciever example so it looks like this
#include <SPI.h>
#...
0
votes
4
answers
804
views
What should I do with stackOverflow in compile error?
I don't have port, but when I want to compile my code (even empty files),
I encounter this error:
Sketch uses 444 bytes (1%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 ...
1
vote
3
answers
1k
views
What does avrdude: Device signature = 0x000000 mean? Faulty wiring? Software issue? Incorrect tutorial?
I followed this tutorial a couple of times and when I clicked on bootloader I get this error:
avrdude: Device signature = 0x000000
To see the configuration file click here.
Why do I get this error (...
1
vote
0
answers
24
views
avrdude: stk500_recv(): programmer is not responding Arduino LCD_I2C Upload problem ( port not found and ...) [duplicate]
i have problem to upload the LCD I2c Example program to Arduino UNo. the code are shown below:
//YWROBOT
//Compatible with the Arduino IDE 1.0
//Library version:1.1
#include <Wire.h>
#include &...
1
vote
0
answers
59
views
How to set maximal execution time of operation
I'm JSON deserializing output from ESP8266 in my Arduino UNO, but when it fails (for some reason every time after it deserializes successfully) the program lags for few seconds and I don't want that ...
1
vote
1
answer
199
views
error: expected primary-expression before ',' token edit status 1 [closed]
Im using tinkercad for my robotics class and I can't seem to figure out a solution for this problem.
Heres my codes:
#include <LiquidCrystal.h> //LCD library
#define echo 2
#define trig 3
// ...
1
vote
1
answer
106
views
Node MCU not functioning correctly
i have a node mcu and i uploaded one example code to test it for rf signal decoding it worked. so after that i have written a code based on that and when i uploaded the code my node MCU suddenly isn't ...
1
vote
1
answer
1k
views
Using functions in header files [closed]
I want to include a function in my sketch I moved to a .h file.
I did it as follows:
My code:
#include "header.h"
void setup() {
fct();
}
void loop() {
}
My header:
#include "...
1
vote
0
answers
549
views
Using MPU6050 with ESP32 Cam- MPU Not Detected
Hi I'm trying to build a self balancing robot using my esp32 cam, but so far I haven't been able to setup my mpu6050 with it.I'm using the adafruit libraries with the given example sketches.
The only ...
1
vote
1
answer
217
views
DFRobot GSM / GPS shield with UNO init error
Apologies, but I have little experience of Arduino etc. Has the "Sim808 init error" been resolved anywhere please? I have tried every example I can find including the ones on these ...
0
votes
0
answers
219
views
Help with ESP32-CAM "AI THINKER" module
I'm trying to make a RC car (with a surveillance camera if possible, using the web-cam code that comes with the ESP library) using a ESP-32 CAM as a wifi module to control the car using my computer. ...
1
vote
2
answers
703
views
Arduino freezing frequently
I'm using an Arduino Nano for programing an automatic hand sanitizer that has a thermometer. But after running for some time the board freezes and only restarting can solve the issue. While checking ...
1
vote
0
answers
985
views
Wemos d1 mini code not uploading
I have a wemos d1 mini. I uploaded a code in wemos d1 mini and after that my wemos mini not working. I tried to upload another code in it even the led blink sketch and even a blank sketch but whenever ...
3
votes
2
answers
411
views
Can't sync with programmer Arduino Uno
I have a weird problem, and it's probably because I'm doing something wrong. I'm quite new to Arduino.
My Uno R3 (Elegoo) has been working fine for a month. It has been sitting on a bench for the past ...
-1
votes
1
answer
40
views
I get an error?
void setup()
{
Serial.begin(9600);
pinMode(13,OUTPUT);
}
void loop() {
if(Serial.available()>0)
{s_num =Serial.read();}
if(s_num=='0'){
digitalWrite(13,HIGH);
delay(100); //the specified time for 0
...
2
votes
1
answer
51
views
Movement and storage of servo positions via bluetooth
I am trying to program a 4DOF robotic arm (using 4 servo motors). I would like to move the servos using an Android app, by means of bluetooth (HC-05).
I developed the app, in whose interface there are ...
-1
votes
2
answers
2k
views
Arduino sketch uses too much memory storage space?
I've never used arduino before but am using one for a school project. I am using an arduino leonardo and I've uploaded the sample code below
#include "Adafruit_CCS811.h"
Adafruit_CCS811 ccs;
...
1
vote
1
answer
99
views
Error message - Need help
I found this Haptic Headband project on YouTube (link below) and I am trying to verify the code that was given in the instructions with the Arduino IDE. However, I keep getting the message below and ...
0
votes
1
answer
2k
views
I get an error saying, "exit status 1 expected initializer before 'void'." [closed]
I will be wiring a switch to the Arduino that controls the voltage. When the I turn the switch it can adjust the voltage from 0 to 5. The overall task is to print the output voltage. The print is to ...
1
vote
0
answers
40
views
Uploading doesn't work on MKR1000 [duplicate]
I received the error bellow when I tried to upload any sketch on my MKR100. I uninstall/reinstall de COM drivers and the arduino IDE and nothing solve the problem. I bought another MKR1000 thinking ...
1
vote
1
answer
2k
views
ESPTool 3-run stub fail error
I'm trying to program my NodeMCU ESP8266 ESP-12E module with AT commands. However, whenever I try and flash to my ESP8266 using ESPTool, I get a 3-run stub fail error. Can anyone tell me why I get ...
1
vote
2
answers
3k
views
Function declared in another file not recognized (undefined reference to)
I am making a multi-file arduino project, but the compiler can't recognize a function.
I am using the arduino-cli version 0.10.0
This is the error I received
undefined reference to pin_init() collect2....
0
votes
2
answers
33
views
New to Arduino and I have a WIP code for a class. ERROR with LEDs working?
(EDIT) My goal with this code is to use two potentiometers, pot0 and pot1 respectively, to control 8 leds. Pot0 controls which sequence the leds are running (1, 2, or 3) and pot1 controls which LEDs ...
1
vote
0
answers
248
views
Trouble Uploading Sketch - Issues with SPISettings
Full disclosure - I'm very new to Arduino. I am probably missing something simple. However, I've scoured the internet and can't seem to figure it out. I am trying to use an Arduino Duo Wifi rev2 to ...
0
votes
1
answer
636
views
Im having another problem with my code the error is "redefinition of 'AF_DCMotor motor'? [duplicate]
Heres the code
#include <AFMotor.h>
AF_DCMotor motor(1, MOTOR12_8KHZ);
AF_DCMotor motor(2, MOTOR12_8KHZ);
AF_DCMotor motor(3, MOTOR34_1KHZ);
void setup() {
Serial.begin(9600);
Serial....
-1
votes
1
answer
2k
views
TX, RX, ON, L LEDs were red at all time
Before seeing this error I did a project with my Uno board using a Bluetooth module.
After that, when I powered the board to upload another program, 4 LEDs (L, TX, RX, ON) went red without blinking.
...
2
votes
1
answer
2k
views
Arduino Firebase connection refused error
I am making a project for school where I have to send data from a sensor to a webpage. After doing some research I decided to use a Real-Time Firebase database. Security is not really important and I ...
0
votes
1
answer
2k
views
How can I fix this error "invalid operands of types 'const char [17]' and 'float' to binary 'operator+'"?
#include <Wire.h>
long aX,aY,aZ,gX,gY,gZ;
float rtX,rtY,rtZ,gfX,gfY,gfZ;
void setup()
{
Serial.begin(9600);
Wire.begin();
setupMPU ();
}
void loop()
{
recordAccelregisters();
...
0
votes
1
answer
31
views
program evaluating if clause incorrectly [closed]
As the title says i'm having a problem with an if clause evaluating incorrectly in one particular function
uint16_t getSleepTime()
{
volatile uint8_t flag = EEPROM.read(3);
uint8_t high ...
2
votes
0
answers
175
views
Arduino uno wifi rev2 error compiling sketch to board [duplicate]
I'm having an irritating situation with my Arduino Uno wifi rev2 board.
I made an installation with an LCD, keypad and little servo motor. I first wrote the code for my regular Arduino Uno and ...
-1
votes
1
answer
2k
views
4:1: error: expected initializer before 'void' [closed]
int button
void setup()
{
pinMode(13, OUTPUT);
pinMode(12, OUTPUT);
button 4;
pinMode(4=INPUT);
}
void loop()
{
if(digitalRead(4)== LOW);
{
digitalWrite (13, HIGH);
delay (250);
...
0
votes
1
answer
67
views
Serial.println Issue with Flame Sensor
I'm really new to coding and Arduino so I would be eternally grateful for the help.
I'm trying to make a really basic flame sensor that beeps, lights up an LED and displays the distance from the ...
1
vote
1
answer
1k
views
Error when compiling code NODE MCU ESP8266-12E module in Arduino ide
Here is my sketch:
#include<ESP8266WiFi.h>
char* ssid = "xxxxxxxx";
char* pass = "xxxxxxx";
void setup() {
WiFi.begin(ssid,pass);
Serial.begin(9600);
while(WiFi.status()!=WL_CONNECTED)
{
...