Fix an error
Every maker gets stuck. Find your error below: what it means, why it happens, and how to fix it step by step.
Uploading & USB ports
The code won't go into the Arduino.
- avrdude: programmer is not responding / not in syncArduino Uno · Arduino Nano · Arduino Mega
- The port is greyed out, or "cannot open port COM…"Arduino Uno · Arduino Nano · Clone boards (CH340)
- Port busy or "Access is denied"Arduino · ESP32 · ESP8266
- Upload fails only when a part is connected to pins 0 and 1Arduino Uno · HC-05 / HC-06 · 7-segment display
- Invalid device signatureArduino Uno · Arduino Nano · Arduino Mega
- Compiled sketch not foundArduino CLI · Arduino IDE
- Serial Monitor shows strange symbolsArduino · ESP32 · ESP8266
- Serial Monitor is emptyArduino · ESP32 · ESP8266
Arduino code errors
Red text when you press Verify.
- expected ';' before …Arduino C++ · ESP32 · ESP8266
- '…' was not declared in this scopeArduino C++ · ESP32 · ESP8266
- a function-definition is not allowed here / expected '}' at end of inputArduino C++ · ESP32 · ESP8266
- undefined reference to 'loop' (or 'setup')Arduino C++
- redefinition of 'void setup()'Arduino C++ · ESP32
- 'Void' does not name a typeArduino C++
- stray '\342' in programArduino C++ · ESP32 · ESP8266
- conversion from 'int' to 'String' is ambiguousArduino C++
- The if is always trueArduino C++ · JavaScript · PictoBlox blocks don't have this
- data section exceeds available space in boardArduino Uno · ESP32
- The project ignores you while it waits (delay)Arduino · ESP32
Libraries
Missing, wrong or mixed-up libraries.
- fatal error: …h: No such file or directoryArduino · ESP32 · ESP8266
- WiFi.h or ESP8266WiFi.h not found (wrong board chosen)ESP32 · ESP8266
- Platform not installed / board not in the listESP32 · ESP8266
- no matching function for call to 'LiquidCrystal_I2C::begin()'I2C LCD 16x2
- DHT code won't compile: two DHT librariesDHT11 · DHT22
- Multiple libraries were found for …Arduino · ESP32
- The Arduino Servo library doesn't compile for the ESP32ESP32 · Servo
ESP32 & ESP8266 boards
Boot button, restarts and special pins.
- A fatal error occurred: Failed to connect to ESP32ESP32 · ESP8266
- Could not open COM…, the port is busy or doesn't existESP32 · ESP8266
- Brownout detector was triggeredESP32
- Guru Meditation Error: the ESP32 crashes and restartsESP32
- Task watchdog got triggeredESP32
- Strange text when the ESP32 starts (rst:0x1, ets Jul 29 2019…)ESP32
- ESP32 won't start or upload when a part is on GPIO 0, 2, 5, 12 or 15ESP32
- Nothing happens on GPIO 34, 35, 36 or 39ESP32
- analogRead stops working when Wi-Fi is onESP32
- ESP32 and 5 V partsESP32 · ESP8266
- 'ledcSetup' was not declared in this scopeESP32 core 3.x
- too many arguments to function 'hw_timer_t* timerBegin(uint32_t)'ESP32 core 3.x
- ESP-NOW: invalid conversion in esp_now_register_recv_cbESP32 core 3.x
- ESP-NOW says Delivery Fail, or nothing arrivesESP32
- NodeMCU won't start or upload with a part on D3, D4 or D8ESP8266 NodeMCU
- The wrong NodeMCU pin reacts (D4 is not pin 4)ESP8266 NodeMCU
Wi-Fi & web servers
No connection, no page, no IP address.
- Stuck on "Connecting to WiFi…" with dotsESP32 · ESP8266
- This site can't be reached (the ESP32's page won't open)ESP32 · ESP8266
- The web page works at home but not from outsideESP32 · ESP8266
- The page opens but the buttons do nothingESP32 · ESP8266 · HTML for Gadgets
- ESPAsyncWebServer or AsyncTCP won't compileESP32
- The page shows %TEMPERATURE% or --ESP32
- Firebase: Permission denied or sign-up failedESP32 · ESP8266 · Firebase
- Firebase_ESP_Client is no longer supportedESP32 · ESP8266 · Firebase
- The ESP8266 can't send the emailESP8266
Bluetooth
Phone can't pair, or nothing arrives.
Displays
Blank LCD, boxes, dark OLED.
- I2C LCD lights up but shows nothing16x2 LCD with I2C
- LCD shows a row of solid boxes16x2 LCD
- LCD without I2C shows nothing at all16x2 LCD (16 pins)
- LCD shows wrong or strange letters16x2 LCD
- SSD1306 allocation failedOLED SSD1306
- OLED stays completely darkOLED SSD1306
- 'SSD1306_I2C_ADDRESS' was not declared in this scopeOLED SSD1306
- I2C scanner finds no devicesI2C LCD · OLED · I2C sensors
- 7-segment shows the wrong shapes, or everything inverted7-segment display
Sensors
NaN, zero, or numbers that jump about.
- DHT11 / DHT22 shows nan, 0 or -999DHT11 · DHT22
- HC-SR04 always shows 0 or a huge numberHC-SR04
- Ultrasonic readings jump aboutHC-SR04
- Sensor value jumps about, or stays at 0 or 1023LDR · Soil sensor · Gas sensor · Potentiometer · LM35
- The project switches at the wrong time, or neverLDR · Soil sensor · Gas sensor · Sound sensor · IR
- ESP32 reads up to 4095 but the code expects 1023ESP32
- LM35 temperature is far too high or lowLM35
- PIR sensor triggers all the time, or not at allPIR HC-SR501
- IR obstacle sensor sees nothing, or sees everythingIR sensor
- MQ gas sensor reads high even in clean airMQ-2 · MQ-3 · MQ-135 · MQ-7
- Soil moisture sensor gets worse after some daysSoil moisture sensor
- pH or turbidity readings are wrong or driftpH probe · Turbidity sensor
- Flow rate keeps climbing, or stays 0YF-S201 flow sensor
- RC522 doesn't read any cardRC522 RFID
- Colour sensor gives the wrong colourTCS34725 · TCS3200
- Heart rate shows nonsensePulse sensor
- SD card initialization failedSD card module
Motors, relays & power
Won't turn, shakes, or resets the board.
- Servo shakes, buzzes or doesn't reach the angleServo SG90
- analogWrite on pin 9 or 10 stops working with a servoArduino Uno · Servo
- The Arduino restarts when the motor, pump or relay switches onArduino · ESP32 · Motors · Pumps · Relays
- Motor connected straight to an Arduino pinDC motor · Pump · Arduino
- Motor driver is on but the motor doesn't turnL298N · L293D
- Robot turns in circles or goes backwardsRobot car · DC motor
- Relay works backwards (on when it should be off)Relay module
- Relay LED lights but it doesn't clickRelay module · ESP32 · ESP8266
- Before connecting 220 V mains to a relayRelay · AC appliances
- Stepper motor vibrates but doesn't turn28BYJ-48 stepper
- Buzzer is silent, or only clicksBuzzer
Wiring & breadboards
The circuit looks right but does nothing.
- The LED doesn't lightLED · Breadboard · Arduino
- LED flashed once and died (no resistor)LED
- LED is dim (pinMode missing)LED · Arduino
- Everything looks right but nothing works (breadboard)Breadboard
- Two power supplies but no shared groundMotors · Servos · Two supplies
- Button triggers by itself, or works backwardsPush button
- Something is hot, or the board switches off when I connect a wireArduino · Batteries · Breadboard
- Multimeter shows 1 or OL, or nothingMultimeter
mBlock & PictoBlox
Block coding that won't connect or run.
- mBlock can't find or connect to the ArduinomBlock 5 · Arduino Uno
- mBlock: upload failedmBlock 5 · Arduino Uno
- Blocks run but nothing happens on the boardmBlock · PictoBlox
- PictoBlox camera is black or not foundPictoBlox
- PictoBlox doesn't detect my face, hand or objectPictoBlox AI
- My trained classifier guesses wrongPictoBlox Machine Learning
- PictoBlox AI is slow, or the model won't loadPictoBlox AI
- PictoBlox Arduino blocks don't work in Stage modePictoBlox · Arduino Uno
- PictoBlox won't save my projectPictoBlox · Windows 11
HTML, CSS & JavaScript
Pages and buttons that misbehave.
- My page doesn't change after I edit itHTML · CSS
- Everything after a line looks wrong (missing closing tag)HTML
- Picture doesn't show (broken picture icon)HTML
- Link opens "File not found"HTML
- CSS has no effectCSS
- The page is tiny on my phoneHTML · ESP32 pages
- Cannot read properties of null (reading 'addEventListener')JavaScript
- Failed to fetch, or blocked by CORS policyJavaScript · Flask · ESP32
- The browser won't open the cameraJavaScript · Webcam
Python
Modules, indents and serial ports.
- ModuleNotFoundError: No module named '…'Python
- pip: No matching distribution foundPython · TensorFlow · MediaPipe
- IndentationError or TabErrorPython
- SyntaxError or NameErrorPython
- could not open port (Python and Arduino)Python · Arduino · ESP32
- Flask page doesn't open, or returns nothingFlask · Raspberry Pi
- Claude API: authentication errorPython · Claude API
OpenCV & AI models
Cameras, pictures and models.
- OpenCV can't open the webcamPython · OpenCV
- 'NoneType' object has no attribute 'shape'Python · OpenCV
- imshow: size.width>0 && size.height>0Python · OpenCV
- imshow: The function is not implementedPython · OpenCV
- The video window freezes or won't closePython · OpenCV
- module 'cv2' has no attribute 'imread'Python · OpenCV
- Colours look wrong: faces are bluePython · OpenCV
- Shapes or index errors in NumPyPython · NumPy
- Can't parse 'center'. Sequence item with index 0 has a wrong typePython · OpenCV
- YOLO: Dataset error, or the model file isn't foundYOLO · Ultralytics
- CUDA out of memory, or training is very slowYOLO · TensorFlow · Colab
- TensorFlow: input shape is incompatibleTensorFlow · Keras
Raspberry Pi
GPIO, I2C, camera and SSH.
Not sure which tutorial to follow? Compare tutorials.

