In this tutorial, we will be building a simplearduino maze solving robot. The robot uses IR sensor to detect the maze and employs an algorithm called hand on wall rule to navigate through the maze and find the exit. Please note we have used lines to create the maze instead of building w...
In this Arduino code, we declare two integer variables,firstandsecond, assigning them values of100and200, respectively. Then, we initialize the serial communication usingSerial.begin(9600). To display these values on the serial monitor, we utilizeSerial.println(first)andSerial.println(second). This...
So, the airplane is entirely made out of Styrofoam. For making the shapes I used my Arduino CNC Foam Cutting Machine which I already showed you how I built it in a previous video. Although I’m using a CNC machine for building this Arduino RC airplane, I can still say it’s 100% DI...
The sensor’s output is fed to the microcontroller, which gives commands to the motor driver to drive the motor accordingly. In our project, the Arduino Uno is programmed to make the robot move forward, turn right or turn left and stop according to the input coming from the sensor. The ...
In this tutorial I will show you how I built an Arduino based hexapod. As the name suggests, the hexapod has 6 legs but in addition to that, it also has...
If you’ve ever encountered the dreaded Arduino Error –‘does not name a type’ – you know how frustrating it can be. Fortunately, there’s no need to panic; this problem is easy to fix. In this blog post, we’ll explore what causes the Arduino error ‘does not name a type’, ...
Arduino While Loop: There are two forms of this loop construct which make it easier than using the for-loop. How you can create an infinite while loop.
Converting integer values to floating-point numbers in Arduino can be simply done by type casting the two variables together. Read more in this guide.
For more detailed information on Arduinosprintf()function read the articleHow to Print Multiple Variables Using sprintf() function in Arduino Serial Monitor. Example Code In given code anintvariable is initialized. After that using thesprintf()function this integer value is converted to string and ...
void setup() { String s1 = "Hello"; String s2 = " Arduino"; // Concatenate s2 to s1 using the concat() function s1.concat(s2); Serial.begin(9600); Serial.println(s1); } void loop() {} In this example, we start by declaring two string variables, s1 and s2, initialized with...