# Robotics Engineering > Global robotics engineering learning, industrial AI, robot fault codes, project builds, components, buying guides and careers — US, EU, UK, India & worldwide. Published by Jaadu Digital; authored by Jignesh S Panchal. Publisher: Jaadu Digital (https://jaadudigital.com/). Author: Jignesh S Panchal (https://www.linkedin.com/in/jignesh-s-panchal/). About the author: https://roboticsengineering.in/about/#jignesh-panchal Editorial policy: https://roboticsengineering.in/editorial-standard/ Illustrative costs and calculations are not supplier quotations, field-test results or safety certification. Refer to each article for its sources and limitations. This is a curated discovery list. The complete public URL inventory is https://roboticsengineering.in/sitemap.xml and the reader-facing directory is https://roboticsengineering.in/sitemap/. - [MCP server](https://roboticsengineering.in/wp-json/jwpo/v1/mcp): read-only Model Context Protocol endpoint for AI agents ## Key pages - [Robotics Engineering: Industrial AI, Robot Fault Codes, Calculators & Guides](https://roboticsengineering.in/): Global robotics engineering workbench: OEM robot fault codes \(FANUC, ABB, KUKA, UR\), Physical AI hubs, ROS 2 CLI, servo/torque calculators & build guides. - [ABB Robot Fault Codes (IRC5 & OmniCore): Alarm List & Recovery Guide](https://roboticsengineering.in/abb-robot-fault-codes-irc5-omnicore-troubleshooting/): Troubleshoot ABB IRC5 and OmniCore fault codes 10010, 20010, 38200 SMB battery, 50056 collision, 50204 motion supervision, and 71058 PROFINET loss. - [About Robotics Engineering in India](https://roboticsengineering.in/about/): Meet Jignesh Panchal, founder of Jaadu Digital, and learn how Robotics Engineering in India works: its sources, review process and funding. - [Affiliate disclosure](https://roboticsengineering.in/affiliate-disclosure/): Read our affiliate disclosure: how affiliate links work on this site, how they affect what we recommend and why editorial picks are never paid placements. - [AI in robotics: vision, YOLO, Jetson and simulation guides](https://roboticsengineering.in/ai/): Practical guides on AI for robots: object detection with YOLO, camera and depth vision, Jetson setup, OpenCV and simulation, for makers in India. - [AI Robotics Manufacturing Hub & Physical AI Stack Selector](https://roboticsengineering.in/ai-robotics-manufacturing-hub/): Select verified industrial AI robotics stacks for 3D bin picking, defect inspection, mixed palletizing, VDA 5050 AMRs, and VLA assembly. - [All Guides A to Z: Robotics Engineering](https://roboticsengineering.in/all-guides/): Every robotics guide, buying guide and career article on the site, listed A to Z by category. - [Automate: industrial robots globally (US / EU / UK / India), costs and safety](https://roboticsengineering.in/automate/): For plant and automation engineers: robot cell costs in rupees, cobots, safety standards, site readiness, financing and training. - [Battery pack calculator: series, parallel, energy and C-rating current](https://roboticsengineering.in/battery-pack-series-parallel-calculator/): Calculate pack voltage, capacity, energy in Wh and maximum continuous current from cell count, series and parallel layout and C rating. - [BLDC vs Stepper vs Servo Motor for Robotics: Torque Curve & Selector](https://roboticsengineering.in/bldc-vs-stepper-vs-servo-motor-robotics/): Choose between BLDC FOC, closed-loop steppers, and industrial servo motors with our interactive torque-RPM curve and robotics actuator selector. - [Build Note: one short email when a build or price is worth your time](https://roboticsengineering.in/newsletter/): Sign up for the Build Note: a short robotics email with new builds, fixes and calculators from Robotics Engineering India. - [Build: projects, parts and fixes for makers and students](https://roboticsengineering.in/build/): Start here to build a robot: costed projects, component guides, error fixes, calculators and the free final-year project pack. - [Cobot vs Industrial Robot ROI & Payback Calculator](https://roboticsengineering.in/cobot-vs-industrial-robot-roi-calculator/): Compare collaborative robot vs caged 6-axis industrial robot payback months, 5-year net gain, and CapEx/OpEx across 1–3 shifts in INR, USD, or EUR. - [Contact Robotics Engineering](https://roboticsengineering.in/contact/): Contact Robotics Engineering with corrections, project questions, training or privacy requests. Read what to include; most get a reply in two working days. - [Daily robotics puzzle: one calculation a day](https://roboticsengineering.in/daily-robotics-puzzle/): A new robotics calculation every day: voltage dividers, LED resistors, wheel speed, gear torque, battery life and stepper frequency, with instant checking. - [DC motor power, efficiency and torque calculator](https://roboticsengineering.in/dc-motor-power-efficiency-calculator/): Calculate electrical power, mechanical power, efficiency and shaft torque of a DC motor from voltage, current, speed and torque. - [Disclaimer](https://roboticsengineering.in/disclaimer/): RoboticsEngineering.in is published by Jaadu Digital as an engineering reference, educational resource, and component comparison guide for robotics builders - [Editorial standard](https://roboticsengineering.in/editorial-standard/): Read the editorial standards behind Robotics Engineering: how sources, calculations, review, testing claims, safety limits and corrections work. - [Encoder counts, distance per tick and odometry calculator](https://roboticsengineering.in/encoder-counts-per-wheel-distance-calculator/): Calculate encoder counts per wheel revolution and millimetres per count for robot odometry, with quadrature decoding and gear ratio. - [FANUC Robot Fault Codes (SRVO, MOTN, INTP, SYST): Troubleshooting & Reset](https://roboticsengineering.in/fanuc-robot-fault-codes-srvo-motn-troubleshooting/): Diagnose FANUC SRVO-001, SRVO-021, SRVO-050, SRVO-062 BZAL, SRVO-068, MOTN & INTP alarms with Zero Position Mastering steps and payload sizing. - [Fix it: Arduino and ESP32 error library](https://roboticsengineering.in/fix/): Plain-English fixes for common Arduino and ESP32 errors: upload failures, brownouts, crashes, I2C and servo problems, with the cause first. - [Free Library: templates, viva questions and checklists for robotics students](https://roboticsengineering.in/free-library/): Free report outline, viva questions, bill of materials and test log for robotics projects. No sign-up needed. - [Free robotics project starter kit: printable pack](https://roboticsengineering.in/free-project-pack/): Download a free robotics project starter kit: BOM sheet, build checklist, test log and report outline for a final-year robotics project. - [Gear train calculator: output speed, torque and ratio](https://roboticsengineering.in/gear-train-calculator/): Free gear train calculator for robots: enter motor speed, torque, gear ratio and efficiency to get output RPM and torque, with a worked example. - [Industrial Robot Cycle Time, Pick-and-Place PPM & Joint Velocity Calculator](https://roboticsengineering.in/robot-kinematics-dh-parameters-cycle-time-calculator/): Calculate pick-and-place robot cycle time \(s\), parts per minute \(PPM\), PPH, peak acceleration, joint angular velocity, and Trapezoidal vs S-Curve profiles. - [Industrial Robot Fault Code Finder (FANUC, ABB, KUKA, Yaskawa, UR)](https://roboticsengineering.in/industrial-robot-fault-code-finder/): Search 50 critical FANUC, ABB, KUKA, Yaskawa Motoman, and Universal Robots fault codes with root causes, recovery steps, and safety lockouts. - [Industrial Robot-to-PLC Protocols Guide: PROFINET, EtherNet/IP, EtherCAT & OPC UA](https://roboticsengineering.in/plc-robot-communication-protocols-profinet-ethernet-ip-modbus/): Compare PROFINET RT/IRT, EtherNet/IP, EtherCAT, Modbus TCP, and OPC UA latency, safety extensions, and standard PLC-robot I/O handshake bit maps. - [Industrial robotics in India: the guides, in the order you need them](https://roboticsengineering.in/industrial-robotics-india/): Every industrial robot guide in the order a plant needs it: cost and payback, the machine, commissioning, safety validation, maintenance and data. - [Industry: factory automation, machine vision and robot cells in India](https://roboticsengineering.in/industry/): Guides for plant and automation teams in India: robot cost, selection, safety, machine vision, maintenance, simulation and industry-specific cells. - [ISO 10218 & ISO/TS 15066 Cobot Safety Standards: SSM Calculator & Force/Pressure Limits](https://roboticsengineering.in/iso-10218-iso-ts-15066-cobot-safety-guide/): Calculate ISO/TS 15066 Speed & Separation Monitoring \(SSM\) minimum distances, search biomechanical force/pressure limits \(N & N/cm2\), and audit ISO 10218-2:2025 cells. ## Pages - [Ohm’s law and power calculator (V, I, R, P)](https://roboticsengineering.in/ohms-law-power-calculator/): Enter any two of voltage, current, resistance and power to get the other two, with the formulas and a worked example. - [Servo pulse width and PWM duty calculator](https://roboticsengineering.in/servo-pulse-width-pwm-calculator/): Convert a servo angle to pulse width in microseconds and PWM duty cycle at 50 Hz, with a worked example. - [ESP32 analogRead returns 0 or garbage when Wi-Fi is on](https://roboticsengineering.in/fix/esp32-analogread-not-working-with-wifi/): Fix ESP32 analogRead giving wrong values when Wi-Fi is on: the ADC2 restriction and which GPIO pins to use instead. - [Stepper motor step frequency and microstepping calculator](https://roboticsengineering.in/stepper-motor-step-frequency-calculator/): Work out the step pulse frequency for a stepper motor from RPM, steps per revolution and microstepping, with a worked example. - [LED resistor and voltage divider calculator](https://roboticsengineering.in/led-resistor-voltage-divider-calculator/): Find the LED series resistor for Arduino or ESP32 and the output of a two-resistor voltage divider, with worked examples. - [Wheel speed and RPM calculator for robots](https://roboticsengineering.in/wheel-speed-rpm-calculator/): Convert wheel RPM to robot speed and back: enter wheel diameter and RPM or target speed to get m/s, km/h and the RPM you need. - [ROS 2 Humble vs Jazzy vs Lyrical Luth (2022–2031 LTS): Comparison & Migration](https://roboticsengineering.in/ros2-humble-vs-jazzy-lts-comparison-migration/): Compare ROS 2 Humble \(Ubuntu 22.04, EOL 2027\) vs Jazzy Jalisco \(Ubuntu 24.04, EOL 2029\), Gazebo Harmonic, ros2\_control, and Zenoh DDS with our interactive project advisor. - [Wiring checker: find pin conflicts on ESP32 and Arduino Uno](https://roboticsengineering.in/wiring-checker/): Paste your pin plan and check an ESP32 or Arduino Uno wiring for duplicate pins, input-only pins, flash pins, strapping pins and ADC2 with Wi-Fi. - [avrdude stk500_recv(): programmer is not responding: fixes](https://roboticsengineering.in/fix/avrdude-stk500-recv-programmer-is-not-responding/): Fix avrdude stk500\_recv programmer is not responding and stk500\_getsync not in sync on Arduino Uno and Nano, in the order that finds the cause fastest. - [Robotics calculators and tools](https://roboticsengineering.in/tools/): Get three free robotics calculators that stop the expensive guesses: servo torque, battery runtime and project cost, all in rupees. - [LiPo, Li-Ion & LiFePO4 Robot Battery Voltage-to-SOC Chart (1S–12S) & AWG Table](https://roboticsengineering.in/lipo-li-ion-robot-battery-voltage-soc-chart/): 1S to 12S LiPo, Li-Ion 18650, and LiFePO4 state-of-charge voltage chart, silicone wire AWG ampacity table, and live battery runtime & C-rate calculator. - [NEMA 8, 11, 14, 17, 23, 34 & 42 Stepper Motor Size, Torque & Driver Chart](https://roboticsengineering.in/stepper-motor-nema-17-23-34-specs-torque-chart/): Complete NEMA 8, 11, 14, 17, 23, 34 & 42 stepper motor dimensions \(mm/in\), holding torque \(Nm/oz-in\), current, driver chart, and live steps/mm calculator. - [ROS 2 CLI Cheatsheet, DDS Discovery & Error Code Troubleshooting (Humble/Jazzy)](https://roboticsengineering.in/ros2-error-codes-cli-cheatsheet-troubleshooting/): Search 34+ ROS 2 Humble/Jazzy CLI commands, FastDDS vs CycloneDDS discovery fixes, TF2 extrapolation errors, QoS checker, and ros2\_control diagnostics. - [Universal Robots Cobot Fault Codes (UR3e, UR5e, UR10e, UR20): Fix Guide](https://roboticsengineering.in/universal-robots-cobot-fault-codes-c150-c153-c204/): Fix Universal Robots UR3e, UR5e, UR10e, and UR20 protective stops and safety faults including C153, C157, C175, C191, C204, C209, and C262. - [Yaskawa Motoman Robot Alarm Codes (DX200 & YRC1000): Troubleshooting Chart](https://roboticsengineering.in/yaskawa-motoman-robot-fault-codes-troubleshooting/): Diagnose Yaskawa Motoman Alarm 1300, 1326 encoder battery, 4100 overload, 4110 shock sensor, 4315 collision, and 4980 home check faults. - [KUKA Robot Fault Codes (KRC4 & KRC5 KSS): Mastering, Torque & Safety Fixes](https://roboticsengineering.in/kuka-robot-fault-codes-krc4-krc5-kss-troubleshooting/): Fix KUKA KRC4/KRC5 KSS00404 safety stop, KSS01031 torque monitoring, KSS01425 mastering lost, KSS15002 CIP/ProfiSafe, and KSS26006 DC bus faults. - [Robot Payload, Wrist Moment & Inertia Calculator](https://roboticsengineering.in/robot-payload-inertia-torque-calculator/): Calculate total flange mass, static gravity moment, dynamic acceleration torque, and parallel-axis wrist inertia J with safety factor checks. - [Robotics Learning Roadmap: One Page, Five Stages](https://roboticsengineering.in/free-library/robotics-learning-roadmap-one-page/): A one-page order for learning robotics from zero, with skills, proof projects and tools for each stage. - [Robot Parts Buying Checklist: Free Printable](https://roboticsengineering.in/free-library/robot-parts-buying-checklist/): A free checklist to run on any robot part listing before you pay: specs, interface, seller and arrival checks. - [Pre-Power-On Checklist for a Robot Build](https://roboticsengineering.in/free-library/pre-power-on-checklist-robot/): A free checklist to run before first power: voltage, polarity, grounds, logic levels and a safe first test. - [Limit switch or button counts twice: debounce with a time check](https://roboticsengineering.in/fix/capacitive-touch-and-limit-switch-bounce-use-debounce-time/): Debounce a switch: ignore changes for a short time after the first edge, using millis\(\) instead of delay. - [HC-SR501 PIR with an ESP32: 5 V supply, 3.3 V output and a slow reset](https://roboticsengineering.in/fix/esp32-pir-hc-sr501-3v3-output-5v-supply/): Use an HC-SR501 with a 3.3 V board: power it from 5 V, read its 3.3 V output on a normal pin and allow for the hold time. - [Mini water pump does not start or resets the board: use a driver, not a pin](https://roboticsengineering.in/fix/mini-water-pump-relay-or-mosfet-wont-start-or-resets-board/): Drive a small pump with a transistor, MOSFET or relay module from its own supply, with a flyback diode and a shared ground. - [Flame sensor module is always on or always off: set the trimmer and check the sunlight](https://roboticsengineering.in/fix/flame-sensor-module-always-high-or-low-adjust-trimmer/): Tune a flame sensor: use the trimmer to set the trip point, shield it from sunlight and room lights and read the analog output if there is one. - [PIR motion sensor triggers by itself: warm-up, sensitivity and supply noise](https://roboticsengineering.in/fix/pir-motion-sensor-false-triggers-warm-up-sensitivity/): Calm a PIR sensor: wait out the start-up period, lower the sensitivity, keep it away from heat and air flow and give it a clean supply. - [MQ gas sensor readings are high or unstable: warm-up time, heater power and calibration](https://roboticsengineering.in/fix/mq-gas-sensor-readings-high-warm-up-calibration/): Use MQ sensors properly: let the heater warm up, give it a steady 5 V supply and calibrate in clean air. Treat the reading as a rough indicator. - [Soil moisture sensor readings drift and the probe corrodes: use a capacitive type](https://roboticsengineering.in/fix/soil-moisture-sensor-corrodes-readings-drift-capacitive/): Fix soil sensing: resistive probes corrode when powered all the time, so switch to a capacitive sensor or power the probe only while reading. - [Line follower misses sharp turns and junctions: slow down and widen the sensor array](https://roboticsengineering.in/fix/line-follower-misses-junctions-and-sharp-turns-speed-too-high/): Fix lost lines: lower the speed on curves, remember the last side the line was seen on and use more sensors, spaced for your line width. - [Robot board resets when the motors start: separate or isolate the logic supply](https://roboticsengineering.in/fix/robot-resets-when-motors-start-separate-logic-and-motor-power/): Stop motor-start resets: add a bulk capacitor, power the logic from its own regulator and keep thick short wires on the motor supply. - [Wall-following robot wobbles or hits the wall: use proportional steering](https://roboticsengineering.in/fix/wall-following-robot-wobbles-or-hits-wall-proportional-control/): Steer in proportion to the distance error from a target distance, with a dead zone and a limit on the turn rate. - [Robot jerks or wheelies when starting: add an acceleration ramp](https://roboticsengineering.in/fix/robot-jerks-when-starting-add-acceleration-ramp/): Smooth the start: change the motor command a small step at a time instead of jumping to the target, which also cuts current peaks. - [Robot keeps driving after the remote connection drops: add a failsafe stop](https://roboticsengineering.in/fix/robot-keeps-driving-after-signal-lost-failsafe-stop/): Add a failsafe: record the time of the last command and stop the motors if no new command arrives within a short limit. - [Sensor readings spike now and then: use a median filter](https://roboticsengineering.in/fix/robot-sensor-spikes-use-median-filter-not-average/): Remove occasional wrong readings: take several samples and use the median, which ignores outliers that an average would include. - [Obstacle-avoiding robot gets stuck in corners: add a backup turn and a stuck check](https://roboticsengineering.in/fix/obstacle-avoiding-robot-stuck-in-corner-loop/): Stop the corner loop: reverse before turning, pick a random or alternating turn direction and detect when the robot has made no progress. - [Arduino freezes when an I2C device is unplugged: timeouts and bus recovery](https://roboticsengineering.in/fix/arduino-i2c-lcd-or-sensor-hangs-forever-wire-timeout/): Stop I2C hangs: check wiring and pull-ups, add a timeout where the library allows it and reset the bus when a device stops answering. - [Python “No module named serial”: install pyserial, not serial](https://roboticsengineering.in/fix/python-importerror-no-module-named-serial-pyserial/): Fix a missing serial module: install the pyserial package for the Python you run, and remove the wrong package named serial. - [Flashing MicroPython onto an ESP32 fails: erase flash first and use the right offset](https://roboticsengineering.in/fix/esp32-micropython-firmware-flash-esptool-erase-first/): Flash MicroPython to an ESP32: put the chip in download mode, erase the flash, then write the firmware at the offset for your chip. - [18650 cells in series drift apart: matched cells and a BMS with balancing](https://roboticsengineering.in/fix/18650-cells-in-series-unbalanced-need-bms-and-matched-cells/): Build a safe series pack: use cells of the same type and charge level, add a BMS for the right cell count and do not mix old and new cells. - [LiPo battery has puffed up: stop using it and handle it safely](https://roboticsengineering.in/fix/lipo-battery-puffed-swollen-stop-using-safe-disposal/): A swollen LiPo is damaged. Stop charging and using it, keep it away from flammable things, and take it to a battery recycling point. - [Pico PWM clashes: pins share slices, so frequency and duty change together](https://roboticsengineering.in/fix/raspberry-pi-pico-pwm-servo-motor-pins-slices/): Plan Pico PWM: pins come in pairs on shared slices, so two outputs on one slice share a frequency; spread servos and motors across slices. - [Pico ADC readings noisy or wrong: the three ADC pins, 3.3 V range and reference](https://roboticsengineering.in/fix/raspberry-pi-pico-adc-reads-noisy-or-wrong-3v3-pins/): Fix Pico analog readings: use GP26 to GP28, keep inputs under 3.3 V, average samples and filter the supply. - [MicroPython MemoryError: memory allocation failed on ESP32, ESP8266 or Pico](https://roboticsengineering.in/fix/micropython-memoryerror-memory-allocation-failed/): Fix MicroPython memory errors: call gc.collect, avoid large strings and lists, import fewer modules and precompile big modules. - [Arduino “exit status 1” compile error: find the first real error](https://roboticsengineering.in/fix/arduino-compilation-error-exit-status-1-read-the-first-error/): Read an Arduino compile failure: scroll to the first red error line, check missing semicolons and brackets, and match the board and library versions. - [Raspberry Pi runs hot and slows down: heatsink, fan and case airflow](https://roboticsengineering.in/fix/raspberry-pi-overheating-throttling-fan-heatsink-case/): Cool a Pi that throttles: add a heatsink, give the case airflow or a fan, and check the temperature and throttle flags. - [RPi.GPIO errors: “Failed to add edge detection” and “channel already in use”](https://roboticsengineering.in/fix/raspberry-pi-gpio-rpi-gpio-runtimeerror-edge-detection/): Fix RPi.GPIO errors: call cleanup at exit, do not set the same pin up twice, and avoid pins another program holds. - [Raspberry Pi SPI does not work: enable it, check /dev/spidev and the chip select](https://roboticsengineering.in/fix/raspberry-pi-spi-device-not-found-enable-in-config/): Fix Pi SPI: enable the interface in the configuration tool, reboot, check the spidev device files and use the right chip select number. - [Arduino “Sketch too big”: how to cut program size](https://roboticsengineering.in/fix/arduino-sketch-too-big-for-flash-reduce-size/): Shrink an Arduino sketch: remove unused libraries, drop float printing and extra Serial text, and pick a smaller library or a bigger board. - [Arduino warns “Low memory available”: stack problems, String use and the F() macro](https://roboticsengineering.in/fix/arduino-low-memory-available-stability-problems-f-macro/): Cut Arduino RAM use: keep text in flash with F\(\), avoid String objects in loops, shrink arrays and read the memory figure after each build. - [SPI TFT display shows a white screen: driver chip, pins and library setup](https://roboticsengineering.in/fix/tft-spi-display-white-screen-wrong-driver/): Fix a TFT screen: pick the library driver that matches the chip, set the pin numbers in the setup file and power the backlight. - [ADS1115 reads wrong values: gain setting, address pin and input range](https://roboticsengineering.in/fix/ads1115-reads-wrong-values-gain-and-address/): Fix an ADS1115: set the gain for your signal range, never exceed supply on an input, and set the ADDR pin for the I2C address. - [TM1637 display shows dashes or wrong digits: pins, brightness and segment order](https://roboticsengineering.in/fix/tm1637-display-shows-dashes-or-wrong-digits/): Fix a TM1637: wire CLK and DIO to the pins in your sketch, use a TM1637 library and set brightness. - [74HC595 shift register outputs wrong or floating: pin order, OE and clear](https://roboticsengineering.in/fix/74hc595-shift-register-outputs-wrong-order-or-float/): Fix a 74HC595: tie OE low and SRCLR high, latch after shifting, and set the bit order to match your wiring. - [MAX7219 LED matrix shows garbage or a mirrored image: module type and chain order](https://roboticsengineering.in/fix/max7219-led-matrix-shows-garbage-or-mirrored/): Fix a MAX7219 matrix: select the right hardware type in the library, check the chain order and power it from 5 V with a shared ground. - [DRV8833 motor driver weak or hot: supply range, current limit and stall](https://roboticsengineering.in/fix/drv8833-motor-driver-weak-or-hot-current-limit/): Fix a DRV8833: keep the supply in range, size the motor to the current limit, and avoid stalling it, since the chip cuts off when too hot. - [RC522 RFID reader does not detect cards: 3.3 V supply, SPI wiring and reset pin](https://roboticsengineering.in/fix/rc522-rfid-reader-no-card-detected-3v3-spi/): Fix an RC522 that reads nothing: power it from 3.3 V only, wire all SPI pins and the reset pin correctly, and hold a 13.56 MHz card close. - [ESP8266 GPIO16 behaves differently: no interrupt, no PWM and the deep sleep wake link](https://roboticsengineering.in/fix/esp8266-gpio16-no-interrupt-no-pwm-deep-sleep/): Know the GPIO16 limits on an ESP8266: it has no interrupt, no PWM and no I2C, and is used to wake the chip from deep sleep when joined to RST. - [Pico W will not join Wi-Fi in MicroPython: country, wait loop and 2.4 GHz](https://roboticsengineering.in/fix/raspberry-pi-pico-w-wifi-micropython-wont-connect/): Fix Wi-Fi on a Pico W: set station mode, connect, wait with a timeout, check the status code and use a 2.4 GHz network. - [STM32 Blue Pill will not upload: BOOT0 jumper, DFU and ST-Link options](https://roboticsengineering.in/fix/stm32-blue-pill-upload-fails-boot0-dfu-stlink/): Fix Blue Pill uploads: check the BOOT0 jumper position, use an ST-Link or a serial bootloader, and pick the right upload method in the IDE. - [ATtiny85 PWM, tone and servo clash: few pins and two timers](https://roboticsengineering.in/fix/attiny85-pwm-pins-and-timer-limits/): Plan ATtiny85 projects: it has two timers and five usable pins, so PWM, tone and servo code compete for them, and some pins have extra jobs. - [Digispark ATtiny85 not recognised on Windows: driver and the 5 second window](https://roboticsengineering.in/fix/digispark-attiny85-driver-windows-not-recognised/): Fix a Digispark that will not upload: install the Digispark driver, plug it in only when the IDE asks and use a short cable or a hub-free port. - [NodeMCU A0 reads 1023 too early: the analog input only accepts up to 1 V](https://roboticsengineering.in/fix/nodemcu-a0-analog-input-maximum-1v/): Fix an ESP8266 analog input that saturates: the bare chip accepts 0 to 1 V, so divide the signal down, or use the board divider if it has one. - [ESP8266 does not boot with something wired to it: GPIO 0, 2 and 15](https://roboticsengineering.in/fix/esp8266-wont-boot-gpio0-gpio2-gpio15-strapping/): Fix an ESP8266 that fails to start: keep GPIO 0 and GPIO 2 high and GPIO 15 low at reset, and do not hang modules on those pins. - [PCA9685 outputs flicker or twitch: frequency, OE pin and supply](https://roboticsengineering.in/fix/pca9685-led-or-servo-output-flicker-frequency-oe/): Fix a PCA9685 board: set 50 Hz for servos, hold the OE pin low, power the servos from the V+ rail and add a bulk capacitor. - [Battery drains much faster than planned: add up every current draw](https://roboticsengineering.in/fix/current-draw-of-sensors-adds-up-battery-life-budget/): Make a current budget: list each part with its current, add them up with peaks, then divide the battery capacity by the average to estimate the run time. - [Small solar panel does not charge the robot battery: charge controller and voltage](https://roboticsengineering.in/fix/solar-panel-robot-battery-not-charging-diode-controller/): Fix solar charging: use a charge controller made for your battery type, a panel with enough voltage and a blocking diode where the controller needs one. - [Compass heading is wrong: magnetometer calibration, hard iron and tilt](https://roboticsengineering.in/fix/mpu9250-magnetometer-heading-wrong-calibrate/): Fix a magnetometer heading: calibrate by rotating through all axes, keep it away from motors and steel, and compensate for tilt. - [HX711 load cell reads zero or drifts: wiring, tare and calibration factor](https://roboticsengineering.in/fix/hx711-load-cell-reads-zero-or-drifts-calibration/): Fix a load cell amplifier: wire the four wires in the right order, tare at start-up, find the calibration factor with a known weight and keep it still and warm. - [BME280 reads too hot: placement, self-heating and calibration offset](https://roboticsengineering.in/fix/bme280-temperature-reads-too-high-self-heating/): Fix a temperature sensor that reads several degrees high: move it away from the board and regulator, vent the case and apply a measured offset. - [BME280 or BMP280 not found: address 0x76 or 0x77 and chip ID](https://roboticsengineering.in/fix/bme280-bmp280-not-found-address-0x76-0x77/): Fix a BME280 that the sketch cannot find: scan the I2C bus, try both addresses, and check the chip because many BME280-labelled boards carry a BMP280. - [Sensor readings shake when the robot moves: mounting and filtering](https://roboticsengineering.in/fix/robot-sensor-mount-vibration-readings-noisy/): Cut noise from vibration: mount IMUs and cameras on soft standoffs, keep them rigid to the frame and filter the readings in code. - [Gear motor is loud or whines on the robot: alignment, mounting and load](https://roboticsengineering.in/fix/motor-gearbox-noise-misaligned-mount-whine/): Reduce gearbox noise: mount motors square and firmly, check the shaft is not bent, avoid side load on the output shaft and use a soft start. - [3D-printed hole too tight for a bearing or screw: add clearance](https://roboticsengineering.in/fix/3d-print-bearing-hole-too-tight-tolerance/): Fix printed holes that are too small: add clearance in the model, test with a calibration print, ream with a drill bit and print holes vertically where you can. - [GT2 belt skips teeth: tension, pulley size and idler alignment](https://roboticsengineering.in/fix/gt2-belt-skips-teeth-tension-pulley/): Fix a timing belt that jumps: tension it so it plays slightly, align the pulleys, use at least ten teeth on the small pulley and keep the belt clean. - [Robot tips over when it brakes or turns: lower the centre of gravity](https://roboticsengineering.in/fix/robot-tips-over-high-centre-of-gravity/): Stop a robot from tipping: put the battery low, widen the wheel base, ramp acceleration and slow down before turns. - [Two-wheel robot turns badly or stalls on a caster: height, size and friction](https://roboticsengineering.in/fix/caster-wheel-drags-robot-turns-badly/): Fix a differential drive robot that drags on its caster: match the caster height to the drive wheels, use a ball caster or a larger wheel and keep it light. - [ESP32 Wi-Fi and Bluetooth together are unstable: share the radio and memory](https://roboticsengineering.in/fix/esp32-wifi-and-bluetooth-together-unstable/): Fix drops when running Wi-Fi and Bluetooth together: they share one radio and much RAM, so reduce traffic, shorten tasks and consider two boards. - [Adafruit-style L293D motor shield: servo, pins and the PWM jumper](https://roboticsengineering.in/fix/arduino-motor-shield-l293d-v1-servo-and-pins/): Use an L293D motor shield: know which pins it takes, power the motors from the external terminal, and keep servos on the headers it provides. - [LCD keypad shield buttons read wrong: analog thresholds and the pin they use](https://roboticsengineering.in/fix/arduino-lcd-keypad-shield-buttons-wrong-values/): Fix an LCD keypad shield: its buttons share analog pin A0, so read it and set thresholds that match your shield. - [ESP32 DAC output is noisy or buzzes: pins 25 and 26, filtering and amplifier](https://roboticsengineering.in/fix/esp32-dac-output-gpio25-26-noisy-audio/): Improve ESP32 DAC audio: use GPIO 25 or 26, add a low-pass filter and a coupling capacitor, feed an amplifier, and keep the supply clean. - [INMP441 I2S microphone gives zeros: pins, channel select and data format](https://roboticsengineering.in/fix/esp32-i2s-microphone-inmp441-no-sound-zero-data/): Fix an I2S microphone that reads silence: wire BCLK, WS and data to the pins in your code, tie L/R to ground or power, and shift the 24-bit data. - [ESP32 touch pin triggers by itself: threshold, wiring and noise](https://roboticsengineering.in/fix/esp32-touch-pin-false-triggers-threshold/): Fix touch inputs on an ESP32: read the idle value, set the threshold under it, shorten wires and keep them away from noise. - [ESP32 static IP does not work: gateway, subnet mask and DNS](https://roboticsengineering.in/fix/esp32-static-ip-not-working-gateway-subnet-dns/): Fix a fixed IP address on an ESP32: use an unused address in your router range, the right gateway and subnet, and set DNS or the internet will fail. - [PID overshoots after a long error: integral windup and how to limit it](https://roboticsengineering.in/fix/pid-integral-windup-overshoot-after-long-error/): Fix a controller that overshoots after being blocked: clamp the integral term, reset it at start and use only the terms you need. - [YOLO runs at 1 frame per second on a Raspberry Pi: smaller model, size and accelerator](https://roboticsengineering.in/fix/yolo-slow-on-raspberry-pi-low-fps/): Speed up object detection on a Pi: use a small model, lower the input size, skip frames and consider an accelerator or a Jetson board. - [ArUco marker is not detected: dictionary, size, lighting and camera focus](https://roboticsengineering.in/fix/aruco-marker-not-detected-dictionary-size-lighting/): Fix undetected ArUco markers: use the same dictionary for printing and detection, a white border, enough pixel size and good light. - [OpenCV colour detection misses the colour: HSV ranges and the red wrap-around](https://roboticsengineering.in/fix/opencv-colour-detection-hsv-range-wrong-red/): Fix colour masks: convert to HSV, find the range with a trackbar, handle red with two ranges and set the lighting steady. - [RPLIDAR gives no data: port permission, motor power and baud rate](https://roboticsengineering.in/fix/rplidar-no-data-permission-or-motor-not-spinning/): Fix a lidar that does not scan: add yourself to the dialout group, power the motor from enough current, use the right baud rate and port name. - [ROS 2 TF error: extrapolation into the future or the past](https://roboticsengineering.in/fix/ros2-tf-extrapolation-into-the-future-error/): Fix TF lookup errors: use the same clock for all nodes, set use\_sim\_time consistently and wait for the transform before you use it. - [Robot turns the wrong angle: encoder, gyro and wheel slip](https://roboticsengineering.in/fix/robot-turns-wrong-angle-gyro-versus-encoder/): Fix turns that over or undershoot: use a gyro for heading, slow down near the target and reduce wheel slip. - [Robot odometry drifts: calibrate wheel diameter, track width and ticks per turn](https://roboticsengineering.in/fix/odometry-drifts-wheel-diameter-track-width-calibration/): Fix odometry that goes off: measure the real wheel diameter and the track width, count encoder ticks per turn and test straight and spin runs. - [Serial.print shows too few decimals or nan: format floats and check the maths](https://roboticsengineering.in/fix/arduino-serial-print-float-two-decimals-format/): Control how floats print: give the number of decimals as a second argument, and look for division by zero when you see nan or inf. - [Arduino 60 * 1000 gives a strange number: integer constants overflow](https://roboticsengineering.in/fix/arduino-60-times-1000-overflow-use-ul-suffix/): Fix long time calculations: constants are int by default, so write 60UL \* 1000 to avoid overflow on a 16-bit board. - [analogRead gives a wrong first value after switching pins: settle the ADC](https://roboticsengineering.in/fix/arduino-analogread-first-value-wrong-after-switching-channel/): Fix a sensor that reads the wrong value when you read many analog pins in turn: read twice and ignore the first, or add a short delay. - [digitalWrite on an INPUT pin turns on the pull-up: a hidden side effect](https://roboticsengineering.in/fix/arduino-digitalwrite-on-input-pin-pullup-surprise/): Understand why a pin changes behaviour: on AVR boards writing HIGH to an input pin enables its pull-up resistor, so set the mode clearly. - [pulseIn() makes the robot slow: set a timeout and avoid waiting](https://roboticsengineering.in/fix/arduino-pulsein-blocks-robot-timeout-slow-loop/): Fix a robot that freezes when a sensor is missing: pulseIn waits up to a second by default, so pass a short timeout. - [attachInterrupt does nothing: only some pins support it](https://roboticsengineering.in/fix/arduino-attachinterrupt-wrong-pin-uno-2-3/): Fix an interrupt that never fires: on an Uno only pins 2 and 3 work, so use digitalPinToInterrupt and pick a supported pin. - [SoftwareSerial prints garbage: baud rate, pins and one port at a time](https://roboticsengineering.in/fix/arduino-softwareserial-garbage-characters-baud-rate/): Fix garbled SoftwareSerial output: use a lower baud rate such as 9600, match both ends, use pins your board supports and listen on one port at a time. - [ESP32 async web server crashes or reboots: heap, big pages and callbacks](https://roboticsengineering.in/fix/esp32-async-web-server-crashes-ram-heap/): Fix ESP32 web server resets: serve big pages from flash storage, avoid long callbacks, build less text in memory and watch the free heap. - [Home Assistant does not show my MQTT device: discovery topic and payload](https://roboticsengineering.in/fix/home-assistant-mqtt-device-not-showing-discovery/): Fix an MQTT device that Home Assistant ignores: connect the integration to the broker, publish to the discovery topic with valid JSON and retain it. - [ESP32 logging to Google Sheets fails: Apps Script URL, redirects and permissions](https://roboticsengineering.in/fix/esp32-google-sheets-logging-apps-script-redirect-error/): Fix logging from an ESP32 to a Google Sheet through Apps Script: deploy as a web app for anyone, use the exec URL and follow redirects. - [ThingSpeak update returns 0: rate limit, API key and field numbers](https://roboticsengineering.in/fix/thingspeak-http-update-returns-0-rate-limit/): Fix ThingSpeak updates that do not appear: write at most about every 15 seconds on a free channel, use the write key and the right field numbers. - [ESP32 Telegram bot does not answer: token, chat ID, time and HTTPS](https://roboticsengineering.in/fix/telegram-bot-esp32-no-messages-token-polling/): Fix an ESP32 Telegram bot: check the bot token and chat ID, sync the clock for HTTPS, poll at a sensible interval and message the bot first. - [ESP32-CAM stream is slow or lags: resolution, quality and Wi-Fi](https://roboticsengineering.in/fix/esp32-cam-stream-lags-slow-low-frame-rate/): Speed up an ESP32-CAM video stream: lower the frame size, raise the JPEG quality number, use a strong signal and a solid 5 V supply. - [ESP32 WebSocket disconnects after a short time: ping, blocking code and buffers](https://roboticsengineering.in/fix/esp32-websocket-disconnects-after-seconds/): Fix a WebSocket that drops: avoid blocking code in loop, send pings, limit message rate and size and keep Wi-Fi power steady. - [Node-RED dashboard shows no data from MQTT: topic, broker node and message format](https://roboticsengineering.in/fix/node-red-dashboard-shows-no-data-from-mqtt/): Fix an empty Node-RED dashboard: check the broker node is connected, the topic matches exactly, and convert the message payload to a number. - [Resistor colour code misread: check the value with a multimeter first](https://roboticsengineering.in/fix/resistor-colour-code-misread-check-with-multimeter/): Avoid wrong resistor values: read from the tolerance band end, use a colour code chart and always confirm with the resistance range of a multimeter. - [Dupont jumper wires work intermittently: bad crimp, loose pin or broken wire](https://roboticsengineering.in/fix/dupont-jumper-crimp-intermittent-connection/): Find a bad jumper wire: test each with continuity, wiggle while measuring, and replace jumpers with broken strands or loose crimps. - [Which fuse for a robot battery: rating, type and where to fit it](https://roboticsengineering.in/fix/fuse-rating-for-robot-battery-which-fuse/): Fit a fuse in a battery robot: place it near the battery positive, pick a rating above normal current and below the wire rating, and use the right voltage type. - [Wires get warm or drop voltage on a robot: choose the right wire gauge](https://roboticsengineering.in/fix/wire-gauge-for-motor-current-too-thin-hot-wire/): Choose wire thickness for motor current: thin wires heat and drop voltage, so use a thicker gauge for battery and motor paths and keep them short. - [Soldering iron tip is black and will not take solder: clean and tin it](https://roboticsengineering.in/fix/soldering-iron-tip-black-wont-take-solder-tinning/): Fix a soldering tip that repels solder: clean it on a brass wool or damp sponge, tin it with fresh solder and do not leave it hot and dry. - [Multimeter continuity test beeps on everything or nothing: how to use it right](https://roboticsengineering.in/fix/multimeter-continuity-beeps-always-or-never/): Use the continuity mode properly: test on an unpowered circuit, check the leads, know the beep threshold and test the meter on a short first. - [Electrolytic capacitor got hot, bulged or popped: polarity and voltage rating](https://roboticsengineering.in/fix/electrolytic-capacitor-reversed-polarity-bulge-hot/): Why an electrolytic capacitor fails: reversed polarity, a voltage rating too close to the supply, or ripple current. Stop at once and replace it. - [MicroPython board runs main.py at boot and Thonny cannot connect: how to stop it](https://roboticsengineering.in/fix/micropython-main-py-runs-at-boot-cannot-connect/): Fix a MicroPython board that you cannot interrupt: press Ctrl+C in the shell, use the Stop button, or remove or rename main.py from the board. - [ACS712 current sensor reads wrong at zero: offset, noise and 5 V supply](https://roboticsengineering.in/fix/acs712-current-sensor-offset-noisy-readings/): Fix an ACS712 module: measure the zero-current offset at start-up, average readings, and mind the 5 V supply and ADC scaling. - [Battery voltage reads wrong on an analog pin: divider values and ADC reference](https://roboticsengineering.in/fix/battery-voltage-monitor-divider-adc-reads-wrong/): Fix a battery monitor: pick divider resistors so the pin never exceeds its limit, calibrate against a multimeter and average readings. - [IR remote receiver prints nothing or random codes: VS1838, library and pin](https://roboticsengineering.in/fix/ir-remote-receiver-vs1838-no-codes-or-garbage/): Fix an IR receiver that gives no codes: check the pin order, use the IRremote library for your version and keep out of strong light. - [Servo gripper buzzes and gets hot when it closes: stop at the object](https://roboticsengineering.in/fix/servo-gripper-stalls-too-hard-overheats/): Fix a servo gripper that stalls on the object: limit the closed angle in code, use a softer target and add a current check. - [Limit switch triggers by itself or homing fails: wiring, pull-up and debounce](https://roboticsengineering.in/fix/limit-switch-bounce-homing-fails-false-trigger/): Fix false limit switch triggers: use normally closed wiring with a pull-up, shield long wires, debounce in code and add a small capacitor. - [TMC2209 stepper driver does not move the motor: enable pin, mode and current](https://roboticsengineering.in/fix/tmc2209-stepper-driver-no-motion-uart-enable/): Fix a silent TMC2209: pull the enable pin low, check the step and direction pins, set the current and fit the capacitor on the motor supply. - [NEMA 17 stepper skips steps: current, speed and acceleration](https://roboticsengineering.in/fix/nema17-stepper-loses-steps-skips-current-speed/): Fix a stepper that loses position: raise the driver current within the motor rating, slow down, add acceleration and check the supply voltage. - [Connecting 3.3 V and 5 V parts: when you need a level shifter](https://roboticsengineering.in/fix/logic-level-shifter-3v3-to-5v-which-to-use/): Know when to use a level shifter between an ESP32 and a 5 V module: one-way divider, bidirectional MOSFET shifter for I2C, or a buffer for fast signals. - [Two ultrasonic sensors read wrong together: crosstalk between them](https://roboticsengineering.in/fix/ultrasonic-sensor-two-robots-interfere-crosstalk/): Fix ultrasonic sensors that disturb each other: fire them one after another with a short gap and avoid pointing them across each other. - [Arduino IDE cannot install the ESP32 board package: download fails or times out](https://roboticsengineering.in/fix/arduino-ide-esp32-board-package-download-fails/): Fix the ESP32 board package install: check the board manager URL, your connection, free disk space and retry or install a version manually. - [ESP-NOW messages are not received: MAC address, Wi-Fi channel and mode](https://roboticsengineering.in/fix/esp-now-messages-not-received-channel-mac/): Fix ESP-NOW between two ESP32 boards: use the right peer MAC address, put both in station mode on the same channel and check the send callback. - [18650 battery holder gives low or flickering voltage: spring contacts and thin wires](https://roboticsengineering.in/fix/18650-battery-holder-voltage-drop-spring-contacts/): Fix power loss from a cheap 18650 holder: poor spring contacts, thin leads and bad series wiring cause a voltage drop under load. - [MT3608 boost converter gives no output or the wrong voltage](https://roboticsengineering.in/fix/mt3608-boost-converter-no-output-or-wrong-voltage/): Fix a boost module: turn the trim pot, remember output cannot be below input, check the input polarity and keep the current within the rating. - [Buck converter output voltage drops when the load starts](https://roboticsengineering.in/fix/buck-converter-output-drops-under-load/): Fix a buck converter whose output sags: check its current rating, input voltage margin, input wiring and add input and output capacitors. - [3D print has thin strings between parts: retraction, temperature and wet filament](https://roboticsengineering.in/fix/3d-print-stringing-wisps-retraction-wet-filament/): Fix stringing: lower the nozzle temperature a little, tune retraction, speed up travel moves and dry the filament. - [3D print corners lift off the bed: warping and bed adhesion](https://roboticsengineering.in/fix/3d-print-warping-corners-lift-bed-adhesion/): Fix warping on robot chassis parts: clean the bed, level and set the first layer, raise the bed temperature, add a brim and avoid drafts. - [Jetson Nano restarts or will not boot on USB power: use the barrel jack](https://roboticsengineering.in/fix/jetson-nano-powers-off-with-usb-power-use-barrel-jack/): Fix a Jetson Nano that reboots under load: use a 5 V 4 A barrel supply with the power jumper fitted, instead of micro-USB. - [USB serial port name keeps changing on Linux: use by-id paths or a udev rule](https://roboticsengineering.in/fix/linux-usb-serial-port-name-changes-udev-rule/): Fix /dev/ttyUSB0 and ttyUSB1 swapping between reboots: use the stable names in /dev/serial/by-id or write a udev rule. - [pip: error: externally-managed-environment on Linux and Raspberry Pi](https://roboticsengineering.in/fix/python-pip-externally-managed-environment-error/): Fix the externally managed environment error: use a virtual environment, or the system package, instead of forcing pip into the system Python. - [RPi.GPIO “channel is already in use” warning: cleanup and ownership](https://roboticsengineering.in/fix/raspberry-pi-gpio-in-use-or-cleanup-warning/): Fix the already in use warning: call GPIO.cleanup\(\) at exit, stop the other script and avoid using one pin in two programs. - [Raspberry Pi i2cdetect shows no devices: enable I2C and check wiring](https://roboticsengineering.in/fix/raspberry-pi-i2c-device-not-found-i2cdetect/): Fix an I2C device that the Pi cannot find: enable the I2C interface, install the tools, wire to the right pins and read the address table. - [Raspberry Pi will not boot after power was cut: SD card corruption](https://roboticsengineering.in/fix/raspberry-pi-sd-card-corruption-after-power-off/): Why a Pi fails to boot after sudden power loss: shut down properly, use a good card, keep a backup image and consider read-only or SSD storage for robots. - [Raspberry Pi lightning bolt or under-voltage warning: power supply](https://roboticsengineering.in/fix/raspberry-pi-undervoltage-lightning-bolt-power-supply/): Fix the Pi under-voltage warning: use the official or a good supply for your model, a short thick cable and keep USB loads low. - [Raspberry Pi does not join Wi-Fi on first boot: headless setup](https://roboticsengineering.in/fix/raspberry-pi-wifi-headless-not-connecting/): Fix a headless Raspberry Pi that never appears on the network: set Wi-Fi in the imager, use 2.4 GHz if needed, set the country and check the password. - [Raspberry Pi SSH: connection refused or timed out](https://roboticsengineering.in/fix/raspberry-pi-ssh-connection-refused-or-timed-out/): Fix SSH to a Raspberry Pi: enable SSH, find the right IP address, use the same network and check the user name. - [analogWrite does nothing on ESP32: use ledcWrite or the new core](https://roboticsengineering.in/fix/arduino-pwm-pins-analogwrite-not-working-esp32/): Fix PWM on an ESP32: older cores have no analogWrite, so set up a LEDC channel with ledcSetup, ledcAttachPin and ledcWrite, or use the newer core. - [Servo does not reach full travel: pulse range 500 to 2500 microseconds](https://roboticsengineering.in/fix/hobby-servo-signal-pulse-range-500-2500/): Fix a servo that turns less than its full range: set the minimum and maximum pulse widths in the library, and avoid pushing past the stop. - [LiPo charger shows a cell count or balance error: check the lead and the setting](https://roboticsengineering.in/fix/lipo-charger-balance-lead-error-cell-count/): Fix charger errors on a LiPo pack: set the cell count to match, plug the balance lead in fully and never charge a puffed or damaged pack. - [Brushless motor stutters or vibrates: phase wires and sensor setting](https://roboticsengineering.in/fix/brushless-motor-vibrates-stutters-phase-order/): Fix a brushless motor that shakes: swap two phase wires if it runs backwards, check the ESC type and the motor sensor mode. - [Brushless ESC beeps and the motor does not start: arming and throttle range](https://roboticsengineering.in/fix/esc-brushless-motor-not-arming-beeps/): Fix an ESC that only beeps: send the minimum throttle pulse at start-up, calibrate the throttle range and check the battery. - [RC receiver gives no signal to the Arduino: PWM, PPM or SBUS](https://roboticsengineering.in/fix/rc-receiver-no-signal-pwm-ppm-sbus/): Fix an RC receiver that reads nothing: check which output type it has, bind the transmitter, supply 5 V and use the right pin and library. - [MPU6050 angle drifts over time: gyro offset, calibration and filtering](https://roboticsengineering.in/fix/mpu6050-gyro-drift-calibration-offset/): Why a gyro angle slowly drifts: subtract the offset measured at rest, and combine the gyro with the accelerometer in a complementary filter. - [Gear motor encoder gives no pulses: power, phases and pull-ups](https://roboticsengineering.in/fix/gear-motor-encoder-no-pulses-hall-power/): Fix a motor encoder that counts nothing: power the encoder from the right voltage, check the A and B wires, and use pull-ups where the outputs are open collector. - [DC motor spins the wrong way: swap the wires or swap the code](https://roboticsengineering.in/fix/dc-motor-spins-wrong-direction-swap-wires/): Fix a motor that turns backwards: swap the two motor wires or invert the direction in code, and keep both sides of a robot consistent. - [L293D drives the motor weakly and gets warm: voltage drop and current limit](https://roboticsengineering.in/fix/l293d-motor-driver-weak-hot-low-voltage/): Why an L293D gives a weak motor: it drops about 1 to 2 V, handles only about 600 mA per channel, and needs the logic and motor supplies connected properly. - [Arduino EEPROM wears out: write only when the value changes](https://roboticsengineering.in/fix/arduino-eeprom-write-wear-limit-save-only-on-change/): Protect EEPROM from wear: it lasts about 100,000 writes per cell, so use update\(\) and save only on a change or a stop. - [Serial.parseInt() or readString() makes the sketch slow: the 1 second timeout](https://roboticsengineering.in/fix/serial-parseint-parsefloat-slow-timeout/): Fix a sketch that pauses about a second after reading serial: set Serial.setTimeout shorter or read until a known end character. - [Arduino crashes after running a while with String objects: use char arrays](https://roboticsengineering.in/fix/arduino-string-class-memory-crash-use-char-arrays/): Fix random resets from heavy use of the String class on small boards: memory fragmentation, and how to use char arrays and the F\(\) macro. - [Arduino interrupt changes a variable but the loop never sees it: volatile](https://roboticsengineering.in/fix/arduino-interrupt-variable-not-updating-volatile/): Fix an interrupt flag that the main loop ignores: declare shared variables volatile and copy multi-byte values with interrupts off. - [Arduino millis() timing breaks after days: use unsigned long and subtract](https://roboticsengineering.in/fix/arduino-millis-timer-overflow-use-unsigned-long/): Fix timers that fail after about 49 days or misbehave early: store millis\(\) in unsigned long and compare with subtraction. - [Arduino map() gives odd values: integers, limits and constrain](https://roboticsengineering.in/fix/arduino-map-function-wrong-range-integer/): Fix map\(\) surprises: it works on integers, does not clamp the output and needs constrain when the input goes outside its range. - [Arduino calculation returns 0: integer division and float values](https://roboticsengineering.in/fix/arduino-integer-division-returns-zero/): Fix a result that is always 0 or rounded: integers divide without decimals, so use a float and write numbers like 2.0. - [Analog joystick drifts at rest: centre value is not 512](https://roboticsengineering.in/fix/analog-joystick-drifts-centre-not-512/): Fix a joystick that moves the robot when untouched: read the centre at start-up, add a dead zone and use an ADC reference that does not move. - [LoRa SX1278 sends but nothing arrives: frequency, antenna and settings](https://roboticsengineering.in/fix/lora-sx1278-no-packets-frequency-antenna/): Fix LoRa modules that do not hear each other: same frequency and sync word, the antenna fitted before transmitting, and SPI and reset wiring. - [HC-SR04 reads 0 or jumps around: trigger timing, echo and surface](https://roboticsengineering.in/fix/hc-sr04-reads-zero-or-random-values/): Fix an ultrasonic sensor that returns 0 or random distances: pulseIn timeout, 10 microsecond trigger, supply voltage and soft or angled surfaces. - [SSD1306 OLED stays blank: I2C address 0x3C or 0x3D and display call](https://roboticsengineering.in/fix/ssd1306-oled-blank-i2c-address-0x3c/): Fix a blank SSD1306 OLED: scan the I2C bus, use the right address, call display\(\) after drawing and check the screen size in the library. - [SD card module: initialization failed on Arduino or ESP32](https://roboticsengineering.in/fix/sd-card-module-initialization-failed-arduino/): Fix SD.begin failing: format the card as FAT32, check the chip-select pin, use a 5 V module on 5 V logic and keep wiring short. - [nRF24L01 does not communicate: 3.3 V power, capacitor and SPI wiring](https://roboticsengineering.in/fix/nrf24l01-no-communication-power-capacitor-wiring/): Fix an nRF24L01 radio that never sends or receives: stable 3.3 V supply, a capacitor across the power pins, correct SPI and CE/CSN pins, and matching address and channel. - [Battery protection board cuts power when the motors start](https://roboticsengineering.in/fix/bms-protection-board-cuts-off-under-load/): Why a lithium pack with a protection board shuts off under motor load: over-current limit, voltage sag and what to check. - [Robot wheels slip on the floor: traction and weight fixes](https://roboticsengineering.in/fix/robot-wheels-slip-on-floor-traction/): Fix a robot whose wheels spin without moving it: softer tyres, more weight over the drive wheels, a clean floor and gentler acceleration. - [3D-printed wheel or gear slips on the motor shaft: D-shaft and set screw fixes](https://roboticsengineering.in/fix/3d-printed-wheel-or-gear-slips-on-motor-shaft/): Stop a printed wheel or gear from spinning on a motor shaft: match the D flat, add a set screw or a metal hub, and avoid a loose bore. - [Intermittent fault from a cold solder joint: how to spot and redo it](https://roboticsengineering.in/fix/soldering-cold-joint-dull-grey-intermittent/): Spot a cold solder joint \(dull, grainy, cracked or blobby\), reheat it with fresh solder and test again. - [Connecting lithium cells in parallel: match their voltage first](https://roboticsengineering.in/fix/li-ion-cells-parallel-different-voltage-before-connecting/): Why you must match the voltage of lithium cells before wiring them in parallel, how to check them and what can go wrong. - [PC817 optocoupler gives no output: LED resistor and pull-up on the output](https://roboticsengineering.in/fix/optocoupler-pc817-no-output-resistor-pull-up/): Fix a PC817 optocoupler that does not switch: a series resistor on the input LED, a pull-up on the output transistor and the right wiring side. - [NPN transistor does not switch the load: base resistor and wiring](https://roboticsengineering.in/fix/transistor-2n2222-bc547-base-resistor-load-not-switching/): Fix a 2N2222 or BC547 that does not switch a relay, buzzer or LED strip: base resistor value, emitter to ground, load on the collector and the current rating. - [IRF540 MOSFET does not switch fully from an Arduino or ESP32: logic-level gate](https://roboticsengineering.in/fix/mosfet-irf540-not-switching-on-3v3-logic/): Fix a MOSFET that stays hot or does not turn on from a 3.3 V or 5 V pin: use a logic-level MOSFET or a gate driver, with a gate resistor and pull-down. - [WSL cannot see the USB serial port: attach it with usbipd](https://roboticsengineering.in/fix/wsl-usb-serial-port-not-visible-usbipd/): Fix a USB board that does not appear in WSL: install usbipd on Windows, bind and attach the device, and check /dev/ttyUSB0 or /dev/ttyACM0. - [Raspberry Pi camera not detected: ribbon cable, port and software test](https://roboticsengineering.in/fix/raspberry-pi-camera-not-detected-ribbon-cable/): Fix a Raspberry Pi camera that is not found: reseat the ribbon cable the right way round, use the right camera port and run the camera test tool. - [ModuleNotFoundError: No module named cv2: install OpenCV in the right Python](https://roboticsengineering.in/fix/python-modulenotfounderror-no-module-named-cv2/): Fix No module named cv2: install opencv-python with the same Python you run, check the virtual environment and avoid mixed installs. - [OpenCV imshow window is black or freezes: add waitKey](https://roboticsengineering.in/fix/opencv-imshow-window-black-or-freezes/): Fix an OpenCV window that stays grey, black or not responding: call cv2.waitKey after imshow and check the image is not empty. - [OpenCV VideoCapture cannot open the camera: index, backend and permissions](https://roboticsengineering.in/fix/opencv-cannot-open-camera-wrong-index/): Fix OpenCV that cannot open a webcam: try camera index 0, 1 or 2, use the DirectShow backend on Windows and close other apps using the camera. - [Python serial: Permission denied /dev/ttyUSB0 or /dev/ttyACM0 on Linux](https://roboticsengineering.in/fix/python-serial-permission-denied-dev-ttyusb0/): Fix permission denied on a Linux serial port: add your user to the dialout group, log out and in, and check that no other program holds the port. - [ros2 topic list is empty or nodes cannot see each other: ROS_DOMAIN_ID](https://roboticsengineering.in/fix/ros2-topic-list-empty-domain-id/): Fix ROS 2 nodes that cannot see each other: set the same ROS\_DOMAIN\_ID, check the network and firewall, and source the right setup file. - [ROS 2 “package not found” after colcon build: source install/setup.bash](https://roboticsengineering.in/fix/ros2-package-not-found-after-colcon-build/): Fix package not found after colcon build: source the workspace install/setup.bash in the terminal where you run the node. - [ros2: command not found: source the ROS 2 setup file](https://roboticsengineering.in/fix/ros2-command-not-found-source-setup-bash/): Fix ros2 command not found in a new terminal: source the setup.bash file of your ROS 2 install, and add it to your shell start-up file. - [ESP32 hostname.local does not open: mDNS problems](https://roboticsengineering.in/fix/esp32-mdns-hostname-local-not-resolving/): Fix an ESP32 mDNS name that does not resolve: call MDNS.begin, use the IP address as a test, and know that some systems handle .local poorly. - [ESP32 BLE device not visible in the phone Bluetooth settings](https://roboticsengineering.in/fix/esp32-ble-not-visible-in-phone-bluetooth-settings/): Why an ESP32 BLE server does not appear in the phone Bluetooth list, and how to find it with a BLE scanner app. - [ESP32 HTTPS fails: certificate errors and WiFiClientSecure](https://roboticsengineering.in/fix/esp32-https-certificate-error-secure-client/): Fix HTTPS requests that fail on an ESP32: set the root certificate, check the clock, and use setInsecure only for testing. - [ESP32 HTTPClient returns a negative code: -1, -11 and what they mean](https://roboticsengineering.in/fix/esp32-httpclient-negative-error-code/): Fix ESP32 HTTP requests that return negative codes: -1 connection refused, -11 read timeout, and checks for DNS, certificates and server address. - [MQTT connect fails on ESP32 or Arduino: PubSubClient state codes](https://roboticsengineering.in/fix/mqtt-pubsubclient-connect-failed-state-codes/): Read PubSubClient state codes: -2 connection failed, -4 timeout, 4 bad credentials, 5 unauthorized, and what to check for each. - [ESP32 access point mode: connect to 192.168.4.1](https://roboticsengineering.in/fix/esp32-access-point-mode-ip-192-168-4-1/): Use an ESP32 as a Wi-Fi access point: WiFi.softAP, the default address 192.168.4.1, password length rules and phones that drop the network. - [Sketch uploads but the robot does nothing: a short checklist](https://roboticsengineering.in/fix/arduino-sketch-uploads-but-robot-does-nothing/): A checklist for a robot that uploads fine but does not move: power, grounds, pin numbers, driver enable pins and printing debug values. - [Library fails on Arduino Uno R4: AVR-only libraries and what to do](https://roboticsengineering.in/fix/arduino-uno-r4-library-not-compatible/): Fix compile errors for libraries on the Arduino Uno R4: some libraries use AVR-only registers, so find an updated version or an alternative. - [Breadboard rails dead at one end: split power rails](https://roboticsengineering.in/fix/breadboard-power-rail-split-in-the-middle/): Fix parts that get no power on a long breadboard: many boards have power rails split in the middle, so bridge the gap with jumpers. - [Raspberry Pi Pico not detected: BOOTSEL mode and the RPI-RP2 drive](https://roboticsengineering.in/fix/raspberry-pi-pico-not-detected-bootsel/): Fix a Raspberry Pi Pico that does not show up: hold BOOTSEL while plugging in, look for the RPI-RP2 drive and use a data cable. - [ESP32-S3 Serial Monitor is blank: USB CDC On Boot setting](https://roboticsengineering.in/fix/esp32-s3-usb-cdc-serial-monitor-blank/): Fix an ESP32-S3 or ESP32-C3 board with native USB that prints nothing: enable USB CDC On Boot, pick the right port and re-enter download mode if needed. - [A3144 Hall sensor gives no output: open-collector pull-up and magnet pole](https://roboticsengineering.in/fix/hall-sensor-a3144-no-output-needs-pull-up/): Fix an A3144 or similar Hall switch that reads wrong: the output is open-collector so it needs a pull-up, and it responds to one magnet pole. - [Servo library does not work on ESP32: use the ESP32Servo library](https://roboticsengineering.in/fix/esp32-servo-library-error-use-esp32servo/): Fix servo code that fails to compile or move on an ESP32: install ESP32Servo, attach on a PWM-capable pin and set the pulse range. - [Two identical I2C sensors give wrong data: address conflict](https://roboticsengineering.in/fix/two-same-i2c-sensors-address-conflict/): Fix two I2C devices with the same address: change the address pin, use a multiplexer such as the TCA9548A, or use a second bus. - [ESP32 analogRead is noisy or not linear: averaging, attenuation and ADC2](https://roboticsengineering.in/fix/esp32-adc-readings-noisy-or-nonlinear/): Fix noisy or uneven ESP32 ADC readings: average samples, set the attenuation, keep away from Wi-Fi on ADC2 and add a capacitor. - [Buzzer gives only a click or one tone: active vs passive buzzer](https://roboticsengineering.in/fix/active-vs-passive-buzzer-no-tone/): Fix a buzzer that clicks or beeps at one pitch: active buzzers have a built-in oscillator, passive buzzers need a tone signal from the pin. - [SG90 servo spins continuously or does not reach 0 and 180 degrees](https://roboticsengineering.in/fix/sg90-servo-rotates-continuously-or-wrong-angle/): Fix an SG90 or similar hobby servo that spins forever or gives the wrong angle: continuous-rotation type, pulse range and attach limits. - [ESP32 cannot see my Wi-Fi: it works on 2.4 GHz only](https://roboticsengineering.in/fix/esp32-cannot-see-5ghz-wifi-network/): The classic ESP32 and ESP8266 support only 2.4 GHz Wi-Fi. Fix a network that does not appear: split bands, channel and security mode. - [ESP32 GPIO LED and load current: use a resistor or a transistor](https://roboticsengineering.in/fix/esp32-gpio-led-current-limit-use-resistor-transistor/): ESP32 GPIO pins give only a small current. Use a series resistor for LEDs and a transistor or driver for relays, buzzers and motors. - [L298N 5 V jumper: when to remove it and what the 5 V pin does](https://roboticsengineering.in/fix/l298n-5v-jumper-12v-regulator-remove/): The L298N module has a jumper that enables its on-board 5 V regulator. Learn when to keep it, when to remove it and what the 5 V pin does. - [Relay or motor makes the board reset: add a flyback diode](https://roboticsengineering.in/fix/flyback-diode-relay-motor-spikes-reset-board/): Why switching a relay coil or motor can reset a microcontroller, and how a flyback diode across the coil or motor protects it. - [Arduino library not found: install it from the Library Manager](https://roboticsengineering.in/fix/arduino-library-not-found-install-library-manager/): Fix fatal error: xxx.h: No such file or directory by installing the right library with the Library Manager or from a ZIP. - [ESP32 boot log “rst:0x..”: reset reason codes explained](https://roboticsengineering.in/fix/esp32-boot-log-rst-reset-reason-meaning/): Read the rst: code in an ESP32 boot log: POWERON, deep sleep, watchdog, software reset and brownout, and what to check for each. - [HC-SR04 echo pin 5 V into ESP32 GPIO: use a voltage divider](https://roboticsengineering.in/fix/hc-sr04-echo-5v-to-esp32-voltage-divider/): The HC-SR04 echo pin outputs 5 V, but ESP32 GPIOs are 3.3 V. Use a divider or level shifter, or a 3.3 V sensor. - [Two-wheel robot drifts to one side: motor mismatch and fixes](https://roboticsengineering.in/fix/robot-drifts-to-one-side-motor-speed-mismatch/): Why a differential-drive robot curves: motors of different speed, wheel size, friction and how to fix it with trim or encoder feedback. - [ledcSetup or ledcAttachPin was not declared: ESP32 Arduino core 3 PWM change](https://roboticsengineering.in/fix/esp32-ledcsetup-ledcattachpin-not-declared-core-3/): Fix ledcSetup and ledcAttachPin compile errors on ESP32 Arduino core 3.x, where PWM uses ledcAttach\(pin, freq, resolution\) instead. - [I2C pull-up resistors: which value to use on ESP32 and Arduino](https://roboticsengineering.in/fix/esp32-i2c-pull-up-resistor-values/): Choose I2C pull-up resistor values: about 4.7 kohm for 100 kHz, lower for 400 kHz, and when too many modules make the bus fail. - [Serial.print makes the robot slow or jerky](https://roboticsengineering.in/fix/arduino-serial-print-slows-robot/): Why Serial.print slows an Arduino loop and how to fix it: baud rate, print less often, buffer limits and timed output. - [ESP32 SPIFFS or LittleFS mount failed: partition and format fixes](https://roboticsengineering.in/fix/esp32-spiffs-littlefs-mount-failed/): Fix SPIFFS mount failed or LittleFS mount failed on the ESP32: format on first use, partition scheme and uploading the data folder. - [ESP32 GPIO 34, 35, 36 and 39 do not output: input-only pins](https://roboticsengineering.in/fix/esp32-gpio-34-35-36-39-input-only/): ESP32 GPIO 34 to 39 are input only with no internal pull-up or pull-down. Fix LEDs, motors and buttons wired to them. - [ESP32 deep sleep does not wake up: timer, GPIO and RTC fixes](https://roboticsengineering.in/fix/esp32-deep-sleep-wont-wake-up/): Fix an ESP32 that never wakes from deep sleep: timer value in microseconds, RTC-capable wake pins, pull resistors and power draw. - [Stepper motor vibrates or buzzes but does not turn](https://roboticsengineering.in/fix/stepper-motor-vibrates-but-does-not-turn/): Fix a stepper motor that vibrates without turning: coil pairs wired wrongly, step rate too fast, current too low or an unpowered driver. - [L298N driver gets very hot: why and what to use instead](https://roboticsengineering.in/fix/l298n-gets-very-hot/): Why an L298N motor driver overheats: about 2 V drop per side, bipolar transistors, heat sink limits and better MOSFET drivers. - [Motor whines or hums with analogWrite: Arduino PWM frequency](https://roboticsengineering.in/fix/arduino-pwm-motor-whine-frequency/): Why a motor whines on Arduino analogWrite PWM and how to change the frequency: Uno default 490 Hz and 980 Hz, timers and driver limits. - [PCA9685 servo driver: servos do not move](https://roboticsengineering.in/fix/pca9685-servo-driver-not-moving/): Fix a PCA9685 16-channel servo driver that does nothing: I2C address 0x40, separate V+ servo power, OE pin, 50 Hz frequency and pulse values. - [ESP32-CAM will not upload: GPIO 0, FTDI wiring and reset](https://roboticsengineering.in/fix/esp32-cam-wont-upload-gpio0-ftdi/): Fix an ESP32-CAM that fails to upload: GPIO 0 to ground during upload, TX and RX crossed, a stable 5 V supply and pressing reset. - [MPU6050 returns all zeros or does not wake up](https://roboticsengineering.in/fix/mpu6050-returns-zeros-or-wont-wake/): Fix an MPU6050 that reads zeros: the sleep bit in PWR\_MGMT\_1, the I2C address 0x68 or 0x69, wiring and the AD0 pin. - [TB6612FNG motor driver: motors do not spin (STBY, PWM and supply fixes)](https://roboticsengineering.in/fix/tb6612fng-motor-driver-not-spinning/): Fix a TB6612FNG that does not drive motors: the STBY pin must be high, PWM and direction pins, VM and VCC supplies and common ground. - [ESP32 default I2C and SPI pins: which GPIOs and how to change them](https://roboticsengineering.in/fix/esp32-default-i2c-spi-pins/): The default I2C and SPI pins on a common ESP32 DevKit and how to move them with Wire.begin and SPI.begin when a sensor does not answer. - [Viva questions for an ESP32 IoT project](https://roboticsengineering.in/free-library/viva-questions-esp32-iot-project/): Common viva questions for an ESP32 Wi-Fi or IoT project with what a good answer must cover: protocols, power, security and reliability. - [Viva questions for a robotic arm project](https://roboticsengineering.in/free-library/viva-questions-robotic-arm-project/): Common viva questions for a robotic arm project with what a good answer must cover: degrees of freedom, servo torque, kinematics and payload. - [Viva questions for a line follower robot](https://roboticsengineering.in/free-library/viva-questions-line-follower-robot/): Common viva questions for a line follower robot project with what a good answer must cover: sensors, PID, motor driver and testing. - [Robotics project poster checklist: layout, text and figures](https://roboticsengineering.in/free-library/robotics-project-poster-checklist/): A free checklist for a robotics project poster: layout blocks, text sizes, figure rules and print checks. - [Robotics project presentation outline: slide by slide](https://roboticsengineering.in/free-library/robotics-project-presentation-outline/): A free slide-by-slide outline for a robotics project presentation, with what to put on each slide and a timing guide. - [Relay module works backwards (on at HIGH or off at LOW): active-low fix](https://roboticsengineering.in/fix/relay-module-always-on-active-low/): Fix a relay module that switches the wrong way on Arduino or ESP32: active-low inputs, the idle state at boot and safe wiring. - [HC-05 Bluetooth module does not respond: baud rate, AT mode and wiring](https://roboticsengineering.in/fix/hc-05-bluetooth-module-no-response/): Fix an HC-05 Bluetooth module that gives no reply: crossed TX and RX, baud rate, AT command mode and the 3.3 V logic level on RX. - [DHT11 or DHT22 returns NaN: wiring, pull-up and read interval](https://roboticsengineering.in/fix/dht11-dht22-returns-nan/): Fix DHT11 and DHT22 temperature sensors that return NaN or fail to read: wiring, pull-up resistor, pin choice and the minimum read interval. - [Arduino IDE: ESP32 board missing from the Tools > Board list](https://roboticsengineering.in/fix/arduino-ide-esp32-board-not-listed/): Fix an Arduino IDE that does not list ESP32 boards: add the Espressif board manager URL, install the esp32 package and pick the right board. - [ESP32 Wi-Fi keeps disconnecting: stable connection checklist](https://roboticsengineering.in/fix/esp32-wifi-keeps-disconnecting/): Fix an ESP32 that connects to Wi-Fi and then drops: reconnect handling, power-saving mode, supply, signal and router limits. - [URDF viewer and checker: tree, joints and a quick skeleton drawing](https://roboticsengineering.in/urdf-viewer/): Paste a URDF and get the link and joint tree, joint types and limits, structural errors and a side-view skeleton, all in your browser. - [Robot arm playground: two-link inverse kinematics you can drag](https://roboticsengineering.in/robot-arm-playground/): Drag a target and watch a two-link robot arm solve inverse kinematics live: shoulder and elbow angles, reach limits and elbow up or down. - [Servo does not move on an ESP32: library, pin and power](https://roboticsengineering.in/fix/servo-does-not-move-esp32/): Fix a servo that does nothing on an ESP32: use an ESP32 servo library, a PWM-capable pin, a separate 5 V supply and a shared ground. - [DS18B20 reads -127 or 85 degrees: pull-up and wiring fixes](https://roboticsengineering.in/fix/ds18b20-reads-minus-127-or-85/): Fix a DS18B20 temperature sensor that reads -127 or 85 degrees C: the 4.7k pull-up, wiring, parasite power and read timing. - [DC motor runs only one direction with an H-bridge driver](https://roboticsengineering.in/fix/dc-motor-only-runs-one-direction/): Fix a DC motor that only turns one way with an L298N, TB6612 or similar driver: direction pins, PWM pins and wiring faults. - [ESP32-CAM “Camera init failed with error 0x105”: fixes](https://roboticsengineering.in/fix/esp32-camera-init-failed-0x105/): Fix ESP32-CAM camera init failed with error 0x105 or 0x20001: wrong camera model pins, loose ribbon cable, power and PSRAM settings. - [Robot bill of materials and test log template (copy and paste)](https://roboticsengineering.in/free-library/robot-bill-of-materials-and-test-log-template/): A plain-text bill of materials and test log template for Arduino and ESP32 robot builds that you can paste into a spreadsheet. - [Viva questions for robotics projects, with how to answer them](https://roboticsengineering.in/free-library/viva-questions-for-robotics-projects/): Common viva questions for Arduino and ESP32 robotics projects, grouped by topic, with what a good answer must cover. - [Robotics project report template: chapter outline you can copy](https://roboticsengineering.in/free-library/robotics-project-report-template/): A free chapter-by-chapter outline for a robotics mini-project or final-year report, with what to write in each section and what examiners look for. - [L298N motor driver: motors do not spin or run one way only](https://roboticsengineering.in/fix/l298n-motor-not-spinning/): Fix an L298N motor driver that does not spin: enable jumpers, ENA and ENB PWM, supply voltage drop, shared ground and the 5 V jumper. - [Serial Monitor shows nothing: ESP32-S3, baud and Serial.begin](https://roboticsengineering.in/fix/serial-monitor-shows-nothing/): Fix an empty Arduino or ESP32 Serial Monitor: Serial.begin, the baud rate, the right port and USB CDC On Boot for ESP32-S3 and C3 boards. - [Serial Monitor shows garbage characters: baud rate and boot text](https://roboticsengineering.in/fix/serial-monitor-shows-garbage-characters/): Fix garbled text in the Arduino Serial Monitor: baud rate mismatch, the ESP8266 boot message and clock or line-ending problems. - [ESP32 boot loop: “invalid header: 0xffffffff” or “flash read err”](https://roboticsengineering.in/fix/esp32-invalid-header-flash-read-err/): Fix an ESP32 that boot-loops with invalid header 0xffffffff or flash read err 1000: strapping pins, erase and reflash, and power. - [ESP32 “Task watchdog got triggered”: causes and fixes](https://roboticsengineering.in/fix/esp32-task-watchdog-got-triggered/): Fix the ESP32 task watchdog got triggered reset: loops that never yield, blocking calls and how to give the idle task time. - [ESP32 will not connect to Wi-Fi: checks in order](https://roboticsengineering.in/fix/esp32-wifi-wont-connect/): Fix an ESP32 that stays disconnected from Wi-Fi: 2.4 GHz only, SSID and password, station mode, signal and router settings. - [Arduino servo jitters or twitches: causes and fixes](https://roboticsengineering.in/fix/arduino-servo-jitter-twitching/): Fix an Arduino servo that jitters, twitches or resets the board: separate supply, common ground, capacitor and the pin 9 and 10 PWM side effect. - [ESP32 “Guru Meditation Error: LoadProhibited”: what it means](https://roboticsengineering.in/fix/esp32-guru-meditation-error-loadprohibited/): Fix the ESP32 Guru Meditation Error Core 1 panic'ed LoadProhibited crash: null pointers, objects used before begin and how to read the backtrace. - [Robot motors hum but do not move at low PWM: find the minimum start value](https://roboticsengineering.in/fix/robot-motors-hum-but-wont-move-at-low-pwm-deadband/): Fix low-speed control: find the smallest PWM value that starts each motor, and map your speed range from that value upward. - [Pro Micro or Leonardo disappears after a bad upload: double reset to recover](https://roboticsengineering.in/fix/arduino-pro-micro-leonardo-bootloader-double-reset/): Recover a Pro Micro: short RST to GND twice quickly to enter the bootloader for a few seconds, and pick the port that appears right then. - [TCS34725 colour readings change all the time: light, integration time and gain](https://roboticsengineering.in/fix/tcs34725-colour-sensor-readings-change-with-light/): Stabilise a colour sensor: shield it from ambient light, use its own LED at a fixed distance, set the integration time and gain, and calibrate on white. - [M3 screw strips the thread in a 3D print: use heat-set inserts or longer engagement](https://roboticsengineering.in/fix/m3-screw-strips-in-3d-printed-plastic-heat-set-insert/): Fix screws that will not hold in plastic: fit brass heat-set inserts, use self-tapping screws once, or add a nut trap. - [ROS 2 robot does not move: check cmd_vel has a publisher and a subscriber](https://roboticsengineering.in/fix/ros2-robot-does-not-move-cmd-vel-no-subscriber/): Fix a robot that ignores velocity commands: look at the cmd\_vel topic with ros2 topic info, check the type, the name and the namespace. - [Mosquitto: connection refused from other devices: listener and anonymous access](https://roboticsengineering.in/fix/mosquitto-broker-connection-refused-remote-clients/): Fix an MQTT broker that only works on localhost: add a listener, allow clients with a password file, open the port and restart the service. - [Robot arm sags or droops: servo torque, arm length and counterweight](https://roboticsengineering.in/fix/robot-arm-sags-droops-servo-torque-too-low/): Fix a robot arm that cannot hold its pose: shorten the arm, lighten it, add a counterweight or spring and use a stronger servo or gearing. - [Raspberry Pi shows no picture: green LED blink patterns and boot checks](https://roboticsengineering.in/fix/raspberry-pi-boots-no-display-led-blink-pattern/): Fix a Pi with a black screen: reseat the card, use the right HDMI port, test another cable and read the green LED pattern. - [DS3231 or DS1307 clock loses time: backup battery and coin cell type](https://roboticsengineering.in/fix/ds3231-rtc-loses-time-battery-cr2032/): Fix an RTC module that resets after power off: fit a good CR2032 coin cell, do not charge a non-rechargeable cell and set the time once. - [ESP32 fails to boot when a sensor is on GPIO 12 (MTDI)](https://roboticsengineering.in/fix/esp32-gpio-12-boot-fail-flash-voltage/): Fix an ESP32 that will not boot with a part wired to GPIO 12: the strapping pin that selects flash voltage, and safe pins to use instead. - [Acrylic chassis cracks when you drill it: speed, bit and support](https://roboticsengineering.in/fix/acrylic-sheet-cracks-when-drilling-cutting/): Drill acrylic without cracks: use a sharp bit made for plastic, low speed, light pressure, a backing board and start with a small pilot hole. - [ESP32 Bluetooth serial does not pair: name, pin and classic versus BLE](https://roboticsengineering.in/fix/esp32-bluetooth-classic-serial-not-pairing-btserial/): Fix BluetoothSerial on an ESP32: use a classic ESP32 chip, start the serial after reset, remove old pairings and check which chip you have. - [tone() or the Servo library breaks PWM on some pins: timer conflicts](https://roboticsengineering.in/fix/arduino-tone-breaks-pwm-servo-timer-conflict/): Fix PWM that stops when you use tone\(\) or Servo: they share hardware timers with analogWrite on certain pins, so move the PWM pin or the feature. - [XT60 connector gets hot or loose: soldering, fit and polarity](https://roboticsengineering.in/fix/xt60-connector-gets-hot-loose-or-wrong-solder/): Fix a hot XT60 plug: solder the cup fully, check the fit, fit heat shrink on each pin and keep to the correct polarity. - [Line sensor cannot tell black from white: calibration and sensor height](https://roboticsengineering.in/fix/line-follower-sensor-threshold-black-white-calibrate/): Fix an IR line sensor that reads the same on both colours: set the sensor height, calibrate on your floor and lines, and shield it from ambient light. - [TT or BO gear motor draws too much current and stalls: size the supply and driver](https://roboticsengineering.in/fix/tt-motor-draws-too-much-current-stalls-driver/): Check the stall current of a small gear motor and match the driver and battery to it, so the robot does not reset or overheat. - [Line follower wobbles side to side: tune Kp and Kd step by step](https://roboticsengineering.in/fix/line-follower-oscillates-wobbles-pid-too-high/): Fix a line follower that oscillates: lower Kp, add Kd to damp it, keep Ki small or zero and change one value at a time. - [RViz: Fixed Frame does not exist, or nothing is shown](https://roboticsengineering.in/fix/rviz-fixed-frame-does-not-exist/): Fix RViz messages about a missing fixed frame: choose a frame that exists in the TF tree, publish transforms and check the timestamps. - [Arduino Uno 5 V pin current limit: what it can and cannot power](https://roboticsengineering.in/fix/arduino-uno-5v-pin-current-limit-sensors-servos/): The Uno 5 V pin is limited by the USB supply and on-board regulator. Power servos, motors and strips from a separate supply. - [ESP32 “waiting for download” or “wrong boot mode detected”](https://roboticsengineering.in/fix/esp32-wrong-boot-mode-waiting-for-download/): Fix an ESP32 stuck on waiting for download or wrong boot mode detected: GPIO 0, the BOOT and EN buttons and what to unplug. - [ArduinoJson deserializeJson fails: InvalidInput, NoMemory and IncompleteInput](https://roboticsengineering.in/fix/arduinojson-deserialization-failed-invalid-input-nomemory/): Fix ArduinoJson errors: InvalidInput means bad JSON text, NoMemory means the document is too small, IncompleteInput means the text was cut off. - [TP4056 charger module: LED meaning, wiring and what not to power from it](https://roboticsengineering.in/fix/tp4056-charger-module-led-meaning-and-wiring/): Use a TP4056 lithium charging module: the red and blue or green LEDs, B+ and B- wiring, the protected version and loads on OUT. - [Thonny cannot connect to ESP32 MicroPython: port, firmware and boot mode](https://roboticsengineering.in/fix/thonny-cannot-connect-esp32-micropython/): Fix Thonny that cannot find or talk to an ESP32 running MicroPython: choose the interpreter, the right COM port, flash the firmware and use a data cable. - [LM2596 buck converter: set the output voltage before connecting your robot](https://roboticsengineering.in/fix/lm2596-buck-converter-set-voltage-before-connecting/): Set an LM2596 buck converter module with a multimeter before connecting a microcontroller, and check input headroom and current. - [Rotary or motor encoder counts jump or drift: bounce, noise and missed pulses](https://roboticsengineering.in/fix/rotary-encoder-wrong-counts-bounce/): Fix an encoder that counts wrongly: both channels needed, interrupt pins, noise from motors, debounce and pulse rate limits. - [Robot ignores sensors while moving: delay() blocks the sketch, use millis()](https://roboticsengineering.in/fix/arduino-delay-blocks-robot-use-millis/): Why an Arduino robot reacts late: delay\(\) freezes the loop. Replace it with millis\(\) timing so sensors and motors run together. - [Robot resets when the lithium battery sags: internal resistance and cut-off](https://roboticsengineering.in/fix/lithium-cell-voltage-sags-robot-resets/): Why a robot powered by an 18650 or LiPo cell resets under load: voltage sag from internal resistance, low charge and low-voltage protection. - [Arduino “exit status 1: Error compiling for board”: how to find the real error](https://roboticsengineering.in/fix/exit-status-1-error-compiling-for-board/): Fix the vague Arduino exit status 1 error compiling for board message by reading the first red error line and checking the board, library and code. - [Privacy policy](https://roboticsengineering.in/privacy/): Read our privacy policy: what this site collects, why it is stored, how long it is kept and how to have newsletter or contact data corrected or removed. - [Robotics tutorials that build on each other](https://roboticsengineering.in/learn/): Start with robotics tutorials that build on each other: a pin, a sensor, a control loop, a node. Written in plain English for people who build. - [Robotics Glossary: Plain-Language Definitions](https://roboticsengineering.in/free-library/robotics-glossary/): Plain-language definitions of robotics and electronics terms, from ADC and PWM to odometry and URDF. - [Robotics Formula Cheat Sheet: Free Printable](https://roboticsengineering.in/free-library/robotics-formula-cheat-sheet/): Free cheat sheet of robotics formulas with worked examples: Ohm law, batteries, gears, wheels, encoders and steppers. - [Start Here: Robotics Guides by Goal](https://roboticsengineering.in/start-here/): Pick your path: learn robotics, build a robot, buy parts, find a calculator or explore industrial robotics careers. - [LCD 1602 I2C shows blocks or nothing: contrast, address and backlight](https://roboticsengineering.in/fix/lcd1602-i2c-blank-or-black-boxes/): Fix a 1602 I2C LCD that is blank or shows solid boxes: contrast trimmer, I2C address 0x27 or 0x3F, power and library setup. - [SSD1306 OLED stays blank: I2C address, init and display() fixes](https://roboticsengineering.in/fix/ssd1306-oled-blank-screen/): Fix a blank SSD1306 OLED on Arduino or ESP32: I2C address 0x3C or 0x3D, wiring, display size, begin\(\) result and the missing display\(\) call. - [Arduino “fatal error: No such file or directory” for a library](https://roboticsengineering.in/fix/arduino-no-such-file-or-directory-library/): Fix Arduino fatal error No such file or directory for a header: install the library, check the exact name and the board support. - [HC-SR04 ultrasonic sensor returns 0 or wrong distance](https://roboticsengineering.in/fix/hc-sr04-returns-zero-or-wrong-distance/): Fix an HC-SR04 that returns 0 or random distances: wiring, the 5 V echo level on 3.3 V boards, trigger pulse, range and time-out. - [ESP32 NTP time is wrong: set the time zone for India (UTC+5:30)](https://roboticsengineering.in/fix/esp32-ntp-time-wrong-timezone-india/): Fix the ESP32 clock showing the wrong hour: configTime offsets, India Standard Time is 19800 seconds from UTC, and waiting for the sync. - [Check for a short circuit with a multimeter before you power the robot](https://roboticsengineering.in/fix/check-short-circuit-with-multimeter-before-power-on/): A short checklist for testing a new robot circuit with a multimeter: continuity, supply to ground resistance and polarity before power-on. - [Circuit works then stops: loose breadboard and jumper contacts](https://roboticsengineering.in/fix/loose-breadboard-contacts-intermittent-robot/): Fix intermittent faults caused by breadboard contacts: worn sockets, thin wire legs, wrong wire gauge and moving to a soldered board. - [analogRead gives random values on an unconnected pin](https://roboticsengineering.in/fix/arduino-analogread-random-values-unconnected-pin/): Why an Arduino analog pin with nothing connected reads random numbers, and how to wire a sensor or divider so the reading is stable. - [INA219 current sensor reads zero: wire it in series with the load](https://roboticsengineering.in/fix/ina219-reads-zero-current-wiring/): Fix an INA219 that shows zero current: VIN+ and VIN- must be in series with the load, the shared ground, I2C address and calibration. - [Arduino Serial Plotter shows nothing or a flat line](https://roboticsengineering.in/fix/arduino-serial-plotter-shows-nothing/): Fix an empty Arduino Serial Plotter: baud rate, println format, comma or space separated values and closing the Serial Monitor. - [MG996R servo buzzes, gets hot or jitters: current and stall limits](https://roboticsengineering.in/fix/mg996r-servo-buzzing-overheating-stall/): Fix a high-torque servo such as MG996R that buzzes or overheats: a separate power supply, stall current, travel limits and pulse range. - [HC-06 Bluetooth pairing: default PIN 1234 and baud 9600](https://roboticsengineering.in/fix/hc-06-bluetooth-pairing-pin-1234-baud-9600/): Pair an HC-06 Bluetooth module: usual default PIN 1234 or 0000, usual baud rate 9600, and checks when the phone cannot connect. - [SD card module “initialization failed” on Arduino and ESP32](https://roboticsengineering.in/fix/sd-card-init-failed-arduino/): Fix SD card initialization failed on Arduino and ESP32: wiring, chip select pin, 3.3 V logic, card format and power. - [Arduino “Sketch too big”: text section exceeds available space](https://roboticsengineering.in/fix/arduino-sketch-too-big-text-section-exceeds/): Fix the Arduino sketch too big error on Uno and Nano: shrink flash use, remove unused libraries, use F\(\) and move to a bigger board. - [ESP32 “Failed to connect: Timed out waiting for packet header”: fixes](https://roboticsengineering.in/fix/esp32-failed-to-connect-timed-out-waiting-for-packet-header/): Fix ESP32 failed to connect timed out waiting for packet header on upload: boot mode, cable, driver and the EN capacitor trick. - [Two SPI devices on one bus interfere: chip select pins](https://roboticsengineering.in/fix/spi-two-devices-share-bus-chip-select/): Fix an SD card, display or radio that stops working when another SPI device is added: separate chip select pins and set unused ones high. - [Arduino on a 9 V battery dies in hours: why and what to use](https://roboticsengineering.in/fix/arduino-9v-battery-drains-fast-use-better-supply/): Why a 9 V block battery lasts only a short time on an Arduino with motors or servos, and better supply choices for robots. - [ESP32 OTA update fails: partition space, network and password](https://roboticsengineering.in/fix/esp32-ota-update-fails-no-space-or-wrong-network/): Fix ESP32 over-the-air updates that fail: the partition scheme needs two app slots, the PC and board on one network, and the OTA password. - [Raspberry Pi GPIO is 3.3 V only: do not feed it 5 V](https://roboticsengineering.in/fix/raspberry-pi-gpio-5v-input-damage/): Raspberry Pi GPIO pins are 3.3 V tolerant only and cannot supply much current. Use level shifters and drivers for 5 V parts and motors. - [Arduino Nano clone not detected on Windows: CH340 driver and cable](https://roboticsengineering.in/fix/arduino-nano-clone-not-detected-ch340-driver/): Fix an Arduino Nano clone that gives no COM port: the CH340 USB chip driver, a data-capable cable and port selection. - [WS2812B NeoPixel flickers or shows wrong colours](https://roboticsengineering.in/fix/ws2812b-neopixel-flicker-wrong-colours/): Fix WS2812B LEDs that flicker, show wrong colours or fail on an ESP32: 5 V supply, data resistor, capacitor, 3.3 V data and colour order. - [A4988 or DRV8825 stepper driver does nothing: enable, reset and supply](https://roboticsengineering.in/fix/stepper-driver-a4988-drv8825-not-moving/): Fix an A4988 or DRV8825 stepper driver that does not move: the active-low enable pin, reset and sleep pins, motor supply with a capacitor and the current limit. - [Line follower robot does not detect the line: IR sensor fixes](https://roboticsengineering.in/fix/line-follower-sensors-not-detecting-the-line/): Fix a line follower robot whose IR sensors do not see the line: sensor height, threshold, ambient light, wiring and calibration. ## Posts - [ROS 2 TF2 Extrapolation Error Into Past or Future: Time Sync and Buffer Fix](https://roboticsengineering.in/ros2-tf2-extrapolation-into-past-future-error-fix/): Fix ROS 2 Humble and Jazzy TF2 extrapolation errors into past or future using view\_frames, use\_sim\_time, chrony sync, and Nav2 costmap tuning. - [KUKA KRC4 and KRC5 KSS01133 Gear Torque Exceeded and KSS01422 Mastering Fix](https://roboticsengineering.in/kuka-krc4-krc5-kss01133-gear-torque-kss01422-mastering-fix/): Diagnose KUKA KSS01133 gear torque and KSS01422 mastering faults on KRC4/KRC5. Check $LOAD via LDD, 24 V SBM2 brakes, EMD offsets, and 12 V batteries. - [ABB IRC5 and OmniCore 50204 Motion Supervision Triggered: LoadIdentify and Reset](https://roboticsengineering.in/abb-irc5-omnicore-50204-motion-supervision-triggered-fix/): Resolve ABB IRC5 and OmniCore 50204 Motion Supervision Triggered faults. Verify MotionSup 1-300% tuning, LoadIdentify tooldata, and AccSet 50, 50. - [Painting Robot Cost in India: ₹18–45 Lakh, Itemised](https://roboticsengineering.in/painting-robot-cost-india/): Painting robots in India: ₹7 lakh for a bare arm, ₹18–45 lakh for a working cell. Where the money goes, what explosion-proofing adds, and realistic payback. - [Humanoid robots in India: what is real and what they cost](https://roboticsengineering.in/humanoid-robots-india/): See what humanoid robots in India can do in 2026, what they cost landed here, and the questions to ask before a lab or factory buys one. - [Universal Robots C204 Path Sanity and C74 48V Power Supply Fault Recovery](https://roboticsengineering.in/universal-robots-c204-path-sanity-c74-48v-psu-fault-fix/): Fix Universal Robots C204 path sanity and C74 48V PSU faults on CB3 and e-Series cobots with SCB rail, Energy Eater, RS-485, and M8 tool checks. - [FANUC SRVO-062 BZAL and SRVO-075 Pulse Not Established: Quick Master Reset Guide](https://roboticsengineering.in/fanuc-srvo-062-bzal-srvo-075-pulse-not-established-reset/): Reset FANUC SRVO-062 BZAL and SRVO-075 on R-30iB controllers. Swap 6 V D-cells power-on, run RES\_PCA, jog 20 deg, and Quick Master accurately. - [Oscilloscope or Logic Analyser: Which One for Robotics](https://roboticsengineering.in/oscilloscope-vs-logic-analyser/): Oscilloscope or logic analyser for robotics: what each shows, bandwidth and sample rate needs, decoding and a starter setup. - [Weighted Sensor Fusion: Combining Two Estimates](https://roboticsengineering.in/weighted-sensor-fusion-maths/): How inverse variance weights combine two noisy sensor readings, with a worked example and the link to a simple Kalman update. - [Pure Pursuit Path Tracking for Small Robots](https://roboticsengineering.in/pure-pursuit-path-tracking/): How pure pursuit steers a small robot to a lookahead point, with the curvature formula and a worked example. - [Trapezoidal Velocity Profiles for Smooth Motion](https://roboticsengineering.in/trapezoidal-velocity-profile-robot/): A trapezoidal velocity profile moves a robot axis by accelerating at a constant rate, cruising at a set top speed, then decelerating at the same rate. - [Servo Horns and Splines: Checklist Before Buying Spares](https://roboticsengineering.in/servo-horns-splines-checklist/): Match spline count, horn material and centre screw before buying spare servo horns, with a spares-box list and common fitting errors. - [AMR vs AGV in Smart Factories: SLAM Navigation, VDA 5050 & Warehouse ROI Guide](https://roboticsengineering.in/amr-vs-agv-smart-factory-warehouse-automation/): Compare AMRs vs AGVs for smart manufacturing and warehousing: magnetic tape vs LiDAR SLAM, VDA 5050 fleet control, floor tolerances, LFP charging, and payback. - [Motor Shaft Couplers: Types to Buy for Robot Drives](https://roboticsengineering.in/motor-shaft-couplers-types/): A motor shaft coupler joins the motor shaft to the load shaft, and the right type depends on how well the two shafts line up. - [Finding an Object’s Centroid in an Image](https://roboticsengineering.in/image-centroid-detection-opencv/): Find an object centroid with OpenCV moments, work an example by hand, and turn pixel error into steering. - [Arduino sensor filtering: average vs median](https://roboticsengineering.in/arduino-sensor-filtering-moving-average-median/): Compare moving average, exponential and median filters on the same readings, with hand-worked numbers, to steady noisy Arduino robot sensors. - [Watchdog Timers: Stopping Motors When Code Hangs](https://roboticsengineering.in/watchdog-timer-robot-safety/): How a watchdog timer resets a hung robot controller, how to set its timeout, and why motor driver pull-downs matter. - [Stepper Driver Checklist: Current, Voltage and Microstepping](https://roboticsengineering.in/stepper-driver-buying-checklist/): Checklist for choosing a stepper driver: motor current, supply headroom, microstepping, noise, heat and wiring protection. - [Harmonic Drive vs Planetary Gearbox vs Cycloidal Reducer: Robot Joint Selector](https://roboticsengineering.in/harmonic-drive-vs-planetary-gearbox/): Compare harmonic strain-wave drives, precision planetary gearboxes, and cycloidal RV reducers across J1–J6 robot joints with our live backlash & shock-load selector. - [PID tuning for robot motion: a practical method](https://roboticsengineering.in/pid-tuning-robot-motion/): Tune robot joint and PLC PID loops with our live Ziegler-Nichols & Tyreus-Luyben calculator. Avoid integral windup, flexspline resonance, and derivative kick. - [Battery Internal Resistance and Voltage Sag](https://roboticsengineering.in/battery-internal-resistance-voltage-sag/): How internal resistance causes voltage sag, how to measure it with two loads, and a worked 3S2P robot pack example. - [Conveyor Buying Checklist for an Automation Line](https://roboticsengineering.in/conveyor-buying-checklist-automation-line/): A conveyor buying checklist for an automation line, with a worked throughput example and checks on drive, guarding and controls. - [Takt Time: How to Calculate It for a Production Line](https://roboticsengineering.in/takt-time-calculation-production-line/): Takt time is available time divided by demand. A worked example compares it with cycle time and shows how a robot can close a gap. - [Barcode Readers for Automation Lines: What to Check](https://roboticsengineering.in/barcode-readers-automation-lines/): What to check when choosing a barcode reader for an automation line: read distance, symbologies, glare, triggering and real-label trials. - [Time Constant and Step Response in a Motor Test](https://roboticsengineering.in/step-response-time-constant-motor-test/): Run a motor step test, read the 63.2 percent point and calculate the time constant, with Arduino logging code. - [Battery State of Charge: Coulomb Counting Explained](https://roboticsengineering.in/battery-state-of-charge-estimation/): How coulomb counting estimates battery state of charge, how sensor error causes drift, and how to correct it with rest voltage. - [Cobot vs 6-Axis Industrial Robot: Engineering Selection, Safety & TCO Guide](https://roboticsengineering.in/cobot-vs-6-axis-industrial-robot-selection-guide/): Compare cobots vs 6-axis industrial robots: ISO/TS 15066 vs ISO 10218-2, wrist torque & inertia limits, cycle speed, IP ratings, and Indian factory ROI. - [AI Vision-Guided Robotics: 3D Bin Picking, Hand-Eye Calibration & Defect Detection](https://roboticsengineering.in/ai-vision-guided-robotics-bin-picking-defect-detection/): Complete engineering guide to AI vision-guided robotics: 2D vs 3D structured light, hand-eye calibration, specular metal bin picking, and inline AI defect models.