In Arduino programming, working with strings is a common task, whether you’re sending data over serial communication, displaying messages on an LCD, or interacting with other hardware components. The String class in Arduino provides a convenient way to handle text, but there are situations where you need to convert this String into a C-style string […]
Category: Arduino
Imagine you have two Arduinos, and you want them to talk to each other—maybe one collects data, and the other controls a motor based on that data. There could be many reasons where you may have to use multiple arduinos to communication with each other and there could be many ways to accomplish this task. […]
Serial communication is one of the most commonly used forms of communication in Arduino. It enables the board to communicate with a computer or another devices. In some instances, you might have to transmit a string or a sequence of characters from Arduino to the connected device. Reading strings from serial input on Arduino can […]
Arduino sprintf() function is used to format strings. This helps us to include many variables in one strings. You may face this problem very often when you need to display the strings to LCD or via Serial, which includes many variables. What is Sprintf()? sprintf() stands for “string print formatted”. It formats and stores a series […]
This code is about basic example where we interface a 4×4 keypad with Arduino and one 20×4 LCD with Arduino. You can also use 16×2 LCD with Arduino in same code. Here is the complete working code example.
In this post we are going to demonstrate how to read “N” number of bytes from Serial port in Arduino. This is very common problem where we are only focusing on specific number of bytes which are being transmitted from different sensor or even from different microcontroller board. For example in my current case I […]
Before you wonder how to lock the atmega328p microcontrollers which are backbone of Arduino Uno, this is done with lock bits which you can program in atmega328p microcontroller to protect from reading. In this post we are going to summarize the lock fuse bits in atmega328p microcontrollers. We will describe how to use these available […]
Car Parking system using Arduino and IR Sensor is very interesting project to start playing or to demonstrate your basic understanding of Arduino Programming and Sensor Interfacing. There are many options and Algorithms to build a car parking system but here we will discuss the Arduino Car Parking system using IR Sensors. IR sensor could […]
Arduino Tachometer using Interrupt
In this article we are explaining how to create a tachometer using Arduino. Although you can use any Arduino board you want, but we are using Arduino Nano in this article. Tachometer is usually used to measure the rpm of some rotational unit. This is one of the most widely used meter in industrial applications. […]
Reading the environment temperature is one of the most important task for the majority of the applications. We are going to use LM35 Temperature sensor with Arduino in this example. Even in embedded systems, temperature sensors are one of the most basic and most important sensors used in wide variety of products. Some of the […]