Category: Arduino - Page 14 of 16

159 articles found.

NRF24L01+ with Arduino - Response Timed Out

Historical nRF24L01 supply capacitor connection, nRF24L01 troubleshooting, Arduino SPI, wireless packet diagnostics

Hello friends! Today we will troubleshoot the “Failed, response timed out” message that can appear while using an nRF24L01 or nRF24L01+ radio with Arduino. We will work through the local SPI connection, radio settings, power supply and the reply expected by the example program. The original experiment on this page improved after adding a 100-microfarad capacitor across the radio supply. That is useful experience to retain, but it is not a universal diagnosis. A timeout reports a missing event; it does not identify the reason that event was missing. If you are wiring the radios for the first time, begin with our nRF24L01 and Arduino interfacing tutorial. Here, we will concentrate on finding faults systematically rather than changing several settings until the link happens to work. The wording comes from the example sketch, not directly from a universal hardware error register. Read the lines of code that print it. In a ping-and-pong example, the sender may first attempt a radio transmission and then wait for a separate reply from the other Arduino. There are at least three different things to distinguish: A successful first step does not prove the second or third. Similarly, an automatic acknowledgment can confirm reception by the remote radio without proving that the remote application processed the request or performed a requested action. Start by recording the exact message, the example version, which node prints it and whether the other node prints anything. That turns ...

Interfacing of LM35 with Arduino in Proteus ISIS

LM35 temperature sensor connected to Arduino Uno, LM35 sensor, Arduino Uno, temperature measurement

Hello friends! Today we will connect an LM35 temperature sensor to an Arduino Uno and reproduce the measurement in Proteus ISIS. We will start with the sensor's analog output, convert that voltage into temperature, and display Celsius and Fahrenheit readings on a serial terminal. Libraries Libraries used in this tutorial Arduino Library for Proteus: V2.0 (2021, used in this tutorial) · latest version: V4.0 (October 2026) Helping Tools The circuit is small, but it teaches several important measurement concepts: ADC resolution, reference voltage, sensor accuracy and the difference between a simulated value and a physical reading. Understanding these details will help you improve the result without adding complicated code. We will use the classic ATmega328P-based Uno and its 10-bit ADC. If you use another Arduino family, check its ADC resolution, reference options and input limits before copying the conversion constants. The LM35 produces an analog voltage proportional to temperature in degrees Celsius. Its nominal scale factor is 10 mV per degree Celsius. At 25 degrees Celsius, the nominal output is 250 mV; at 50 degrees, it is 500 mV. This is a voltage signal, not a digital message. There is no I2C address, serial command or sensor library needed to read it. The Arduino measures the voltage at an analog input and calculates the corresponding temperature. The Texas Instruments LM35 datasheet distinguishes the available grades, packages and specified temperature ranges. Do not ...

Traffic Signal Control using Arduino

Arduino traffic signal LED demonstration, Arduino traffic light demonstration, red yellow green LEDs, timed state machine

Hello friends! Today we will build a traffic-signal demonstration with Arduino using red, yellow and green LEDs. We will connect the three indicators, define their sequence and write a program that changes states using elapsed time. The same idea can be explored on a breadboard or in a suitable Proteus Arduino simulation. This is an educational model of one signal head. It teaches output control and timed state transitions; it is not a controller for a public road or a complete intersection. Real installations require coordinated phases, fault handling and jurisdiction-specific timing that cannot be established by a three-LED sketch. The original tutorial used long delays and changed directly from green to red before showing yellow. In this revision, we will use a clearly defined red, green, yellow sequence and keep the older flowchart as a historical illustration. We will also include an individual current-limiting resistor for every physical LED and explain why simulation alone cannot replace that electrical requirement. The red LED connects to digital pin 2, yellow to pin 3 and green to pin 4, preserving the original pin assignment. Only one LED is deliberately on at a time. The demonstration starts red, remains red for ten seconds, changes to green for ten seconds, then shows yellow for three seconds before returning to red. These durations are chosen to make the classroom sequence easy to observe. They are not recommended road-clearance times. We could choose different ...

Interfacing of RFID RC522 with Arduino

RC522 RFID reader connected to Arduino Uno, MFRC522 RFID reader, Arduino SPI interface, RFID card identification

Hello friends! Today we will interface an RC522 RFID reader with Arduino and read the identifier of a compatible card. We will begin with the radio and wiring requirements, install the MFRC522 library and then build a complete sketch that prints the whole UID and compares it with a demonstration record. The original tutorial used this idea as the starting point for an attendance project. That is a useful learning exercise, but reading a card identifier is only one part of such a system. We must also handle repeated scans, unknown cards, reliable records and the difference between identification and secure authentication. Our example uses an Uno R3 and an MFRC522-based RC522 module communicating over SPI. The original module and connection images remain below. Because the Uno uses 5 V logic while the reader is a 3.3 V device, the revised wiring discussion explicitly includes logic-level compatibility rather than assuming that every inexpensive module contains protection or level shifting. RFID stands for radio-frequency identification. A reader exchanges information with a compatible tag through an electromagnetic field. A passive contactless card can obtain operating energy from the reader's field, so it does not require its own battery for this interaction. The MFRC522 operates at 13.56 MHz and supports specified ISO/IEC 14443 Type A, MIFARE and NTAG interactions. It is not a universal reader for every product sold as RFID. A 125 kHz access tag, for example, is not made ...

NRF24L01 Arduino Interfacing

nRF24L01 radio wiring example with Arduino Uno, nRF24L01 radio module, Arduino Uno SPI, RF24 packet communication

Hello friends! Today we will connect two nRF24L01 radio modules to two Arduino boards and send a small command from one board to the other. We will start with the radio interface and wiring, install the RF24 library, and then use one complete sketch with a selectable transmitter or receiver role. The useful part of this project is not simply making a number appear in Serial Monitor. We also want to understand which settings must match, what an acknowledgment proves and how to distinguish an SPI connection problem from a wireless communication problem. Those distinctions make the same hardware much easier to use in a sensor node or remote-control experiment. The examples below target two Uno R3 boards and ordinary nRF24L01+ modules. The original wiring illustrations, demonstration video and library archive remain available. The revised code uses the maintained RF24 interface and explicit packet bytes, so it does not depend on both processors storing an unsigned long in the same format. The nRF24L01 family provides a small 2.4 GHz packet radio controlled through SPI. It is a transceiver, meaning it can both transmit and receive. However, one radio operates in one direction at a time; it does not transmit and receive simultaneously. Automatic acknowledgment works by switching direction during the packet exchange. The nRF24L01+ supports air rates of 250 kbit/s, 1 Mbit/s and 2 Mbit/s. The earlier non-plus device does not support the 250 kbit/s mode. Packet payloads can contain up ...

Getting Started with Arduino Programming

Introduction to Arduino programming and sketch structure, Arduino programming tutorial, Uno R3 sketch, Arduino IDE example

Hello friends! Today we will get started with Arduino programming by learning how a sketch is organized and how it interacts with the board's pins. We will begin with comments and the setup and loop functions, then move through digital input, digital output, analog measurement and pulse-width modulation. Libraries Arduino Simulation Libraries Arduino boards: UNO · Mega 2560 · Mega 1280 · Nano · Pro Mini · Mini (V4.0) All six V4.0 boards in one package: Arduino Library for Proteus V4.0 Helping Tools If you have not installed the software or uploaded your first sketch, begin with Getting Started with Arduino Software. Here we will concentrate on the meaning of the code rather than the installation process. The examples use the classic Arduino Uno R3 with an ATmega328P, so its pin capabilities and resolutions provide our reference. We will finish with a small project that reads a potentiometer and controls an LED while a button is pressed. This gives each new concept a practical purpose. The original IDE screenshots are retained as historical illustrations; their appearance may differ from your installed IDE, while the basic programming structure remains recognizable. An Arduino sketch is a program written using C++ together with the functions and libraries supplied by the selected board's core. The IDE prepares the source, compiles it and links the required code into a program for that board. Uploading then transfers the resulting program through the board's supported ...

Interfacing PIR sensor with Arduino

PIR motion sensor connected to an Arduino Uno, PIR motion detection, Arduino Uno interface, digital sensor wiring

Hello friends! Today we will interface a PIR sensor with Arduino and build a motion indicator that reports when activity starts and when the sensor has been quiet for a selected time. We will begin with the sensing principle, connect the module, and then write a sketch that separates sensor startup, motion detection and the delay before switching an output off. Libraries PIR Sensor Simulation Libraries Latest library: PIR Sensor Library for Proteus V4.0 (October 2026): HC-SR501 with time delay, the H / L jumper, warm-up, Simple and Advance devices and an Arduino demo Other distance and motion sensors: Ultrasonic HC-SR04 · JSN-SR04T · Sharp IR · TF-Luna LiDAR · VL53L0X · RCWL-0516 · IR Obstacle FC-51 Helping Tools A PIR module makes this project approachable because its onboard circuit converts a small detector signal into a digital output. However, a digital output is not a guarantee that a room is occupied or empty. Understanding what the sensor actually measures will help you avoid a light that switches off while somebody is sitting still, or an alarm that responds to a changing heat source. We will use an Arduino Uno R3 and a three-wire digital PIR module of the commonly used HC-SR501 style. Check your module's markings and supplier specifications before applying power because pin order and supply requirements vary. The original connection images remain below, while the revised program adds a real startup interval and avoids blocking delays during normal operation. PIR ...

Getting Started with Arduino Software

Getting started with the Arduino development environment, Arduino software tutorial, legacy IDE screenshots, beginner sketch workflow

Hello friends! Today, we will get started with Arduino software and upload our first sketch. If you have just connected an Arduino board and are wondering what to do next, this tutorial will take you through the essential steps: installing the editor, selecting the board, writing a small program, compiling it and transferring it to the hardware. Libraries Arduino Simulation Libraries Arduino boards: UNO · Mega 2560 · Mega 1280 · Nano · Pro Mini · Mini (V4.0) All six V4.0 boards in one package: Arduino Library for Proteus V4.0 Helping Tools The original article used Arduino IDE 1.0.5. Its screenshots are retained as a guide to the older interface, but new installations should follow the current software and instructions available from Arduino. Menu positions can change between versions; understanding what each operation does is more useful than memorizing one toolbar arrangement. We will use the classic Arduino Uno as our example and begin with its built-in LED. That avoids external wiring while we establish that the computer, USB connection, board selection and upload process all work. Once this basic path is reliable, adding sensors and libraries becomes much easier. IDE means integrated development environment. The Arduino IDE combines a source-code editor with tools that compile a program and upload the resulting machine code to a supported board. The program you write is called a sketch, commonly stored in an.ino file. The IDE runs on your computer; the uploaded sketch ...

Display ADC value on LCD using Arduino

Historical Arduino ADC display with energy meter labels, Arduino Uno ADC, LCD voltage display, Proteus measurement example

Hello friends! Today we will read analog voltages with an Arduino Uno and display both the ADC readings and calculated voltages on a 20 × 4 LCD. We will build the circuit in Proteus, connect the display, write the sketch and work through the conversion from a digital count to volts. Libraries LCD Simulation Libraries Latest library: LCD Library for Proteus V3.0 (October 2026): LCD 16x2, LCD 20x4 and both I2C LCDs in one library, with our own HD44780 model and an Arduino demo One LCD only? LCD 16x2 · LCD 20x4 · I2C LCD 16x2 · I2C LCD 20x4 Helping Tools The central idea is simple: analogRead() returns a number that represents the input relative to the ADC reference voltage. To interpret that number correctly, we need to know the board, ADC resolution and reference. We will also average several readings to make a slowly changing display easier to read. The original article included an experimental energy-meter diagram. We will preserve that material but correct its interpretation: two ADC voltages are not automatically voltage and current measurements, and multiplying them does not create a calibrated power measurement. Our first working exercise uses only low-voltage DC inputs. This tutorial targets the classic Uno R3 with an ATmega328P. Its ADC is 10-bit, giving 1024 possible output codes from 0 through 1023. Other Arduino families can have different ADC hardware, reference voltages and default resolutions, so these numbers should not be applied to every board. With an ideal ...

Installation of Arduino driver in Windows

Historical Arduino driver installation progress, Arduino Uno, Windows driver installation, USB serial connection

Hello friends! Today we will install or troubleshoot an Arduino USB driver in Windows. If you have followed our introduction to what Arduino is, this is the next practical step: making sure the computer can recognize your board before uploading a sketch. Many boards work as soon as they are connected because Windows already has a suitable driver. Others need a board package or a driver for their USB interface. We will first identify which situation applies, then use Device Manager to inspect the connection and complete a small upload test. The screenshots below come from the original Windows tutorial. They remain useful for understanding the manual installation sequence, but their dialog labels and Arduino software version are historical. Follow the corresponding controls in your Windows installation rather than searching for exactly the same screen layout. A USB driver allows Windows to communicate with a device through the USB connection. For many Arduino boards, the useful result is a serial port with a name such as COM4. Arduino software can open that port to communicate with a bootloader or running sketch. The driver does not compile your sketch and does not decide which processor you are programming. Those jobs belong to the development tools and selected board configuration. A working COM port is therefore an important step, but it is not proof that every upload setting is correct. We need to distinguish three things that beginners often call “the Arduino driver”: the ...