Practical solutions

Arduino Howtos How-To Guides

Solve the problem. Keep building. Collection of Arduino how-to articles

Find the answer you need

Browse practical solutions, grouped by the task you're working on.

__COUNT__ entries on this page

How to Print New Line in ArduinoLearn how Serial.print() and Serial.println() format Arduino serial output, how to add a line break, and how to print labels and values in a sketch. How to Get Arduino Array Length Using the sizeof() OperatorDiscover how to count elements in a fixed-size Arduino array with the sizeof() operator. Learn how byte sizes produce an element count, how to apply the formula to different types and dimensions, and why array lengths must be passed separately to functions. How to Delete Arduino Libraries From Arduino IDELearn how to delete Arduino libraries from the Arduino IDE effectively. This guide covers locating libraries, using Git commands for management, and manual deletion methods. Keep your development environment organized and efficient with these easy steps. Arduino memcpy and memmoveLearn how memcpy() and memmove() copy bytes in Arduino, when their memory regions may overlap, and how to size a destination safely. How to Split String in ArduinoLearn how to extract Arduino String fields by index or delimiter, find the last line, and split mutable character arrays safely. How to Return Array From Function in ArduinoLearn why C++ functions cannot return built-in arrays by value and how to share array data safely in an Arduino sketch. How to Print Multiple Variables in Arduino SerialDisplay Arduino variable values in the Serial Monitor with Serial.print() and Serial.println(). How to Select Pin for I2c on an Arduino UnoFind the Arduino Uno I2C pins, connect SDA and SCL, and initialize the bus with the Wire library. How to Print to Console in ArduinoThis tutorial will discuss printing text or variables on the console using the Serial Monitor of Arduino IDE. How to Wait for Input in ArduinoChoose serial, digital, or analog input in Arduino and learn how polling waits affect the rest of your sketch. How to Round a Float to the Nearest Integer in ArduinoLearn how Arduino round() rounds float values to the nearest integer, how positive and negative halfway values behave, and how to round to a chosen number of decimal places. Arduino printf FunctionLearn why printf() is not universal in Arduino and compare sprintf() with Serial.print() for formatted serial output, including float and buffer limits. Arduino Pull-Down ResistorLearn how to wire an Arduino pull-down resistor and switch, choose a resistor value, and read the input in a sketch. How to Make a Counter in ArduinoBuild a button-driven Arduino counter, wire an LED safely, and view counts in the Serial Monitor with an optional reset limit. Arduino Strcpy FunctionUse strcpy() with Arduino character arrays, size destination buffers, and compare bounded-copy options. Arduino Serial FlushLearn what Arduino Serial.flush() does, how to use it in a sketch, and how PySerial's ser.flush() differs when sending serial data. Arduino memset() FunctionOne can set the bytes of a value to destination using the memset() function in Arduino. Fix Arduino Exit Status 1 by Reading the Actual ErrorArduino exit status 1 is a generic failure result. Find the diagnostic above it, fix common compile errors, and separate upload problems from build problems. How to Stop a Loop ArduinoThere are various ways to stop a loop in Arduino, and we are going to tackle them all in this article. How to Reset ArduinoLearn how to reset your Arduino effectively with our comprehensive guide. Explore methods like using the reset button, SoftwareReset library, and Adafruit SleepyDog library. Perfect for developers and hobbyists, this article provides clear explanations and code examples to enhance your Arduino projects. Whether troubleshooting or restarting, discover the best practices for resetting your Arduino. How to Convert String to Char in ArduinoLearn how to convert strings to char arrays in Arduino using the toCharArray() function and the append operator. This comprehensive guide covers essential methods, provides clear code examples, and explains how to handle various data types effectively. Enhance your Arduino programming skills today! How to Convert Integer to String in ArduinoThis article provides a streamlined approach on how to convert integers to strings and vice-versa in Arduino. Discover various methods, including using the String class, itoa() function, and string concatenation. With clear examples and explanations, you'll learn to handle these conversions efficiently for your Arduino projects. How to Power Arduino Nano With BatteryLearn how to power your Arduino Nano with a battery using the Vin and 5V pins. This comprehensive guide covers the methods, materials needed, and provides clear code examples to help you successfully run your Arduino projects without a power outlet. Perfect for portable applications, this article is a must-read for hobbyists and makers. How to Convert Float to String in ArduinoLearn how to convert float to string in Arduino using the String() and concat() functions. This comprehensive guide provides clear examples and detailed explanations, ensuring you can easily implement these methods in your projects. Enhance your coding skills and improve your Arduino applications with effective string manipulations.