uc: Arduino Uno - Page 37 of 40

398 articles found.

How to use 18B20 in Proteus ISIS

DS18B20 temperature displayed on an LCD in Proteus, DS18B20 sensor, Arduino Uno, LCD temperature display

Hello friends! Today we will use the DS18B20 temperature sensor with Arduino Uno in Proteus and display its reading on a character LCD. The sensor is sometimes shortened to 18B20 in project descriptions, but DS18B20 is the part name we will use when selecting the device and checking its specifications. We will begin with the sensor connections, add a 20-column by 4-row LCD, and write a sketch that requests a temperature conversion before displaying the result. We will also handle a missing sensor explicitly instead of presenting an error value as though it were a real temperature. The Proteus model lets us change the simulated temperature using its controls. It does not measure the room around your computer. This makes it useful for checking the program and display workflow before building the physical circuit. The DS18B20 is a digital temperature sensor. Arduino communicates with it over a 1-Wire data connection, rather than measuring an analogue output voltage. The bus still needs a ground reference, and our recommended beginner circuit also provides a separate supply connection. The DS18B20 datasheet specifies a measurement range of -55 to +125 degrees Celsius and an accuracy of plus or minus 0.5 degrees Celsius over -10 to +85 degrees Celsius. Its selectable resolution is 9 to 12 bits. Resolution is the size of the numerical step, while accuracy concerns how closely the reading represents the actual temperature. Printing several decimal places cannot improve the sensor's ...

Getting Started with Pixy Camera

Getting started with the original Pixy camera, Pixy CMUcam5, camera setup, colour detection

Hello friends! Today we will get started with the Pixy camera and understand how it can add colour-based vision to a microcontroller project. Before connecting it to a robot, we will identify the board, choose the correct cables and establish what information the camera can actually provide. The board in this tutorial is the original Pixy CMUcam5, often called Pixy1. Its software, firmware and Arduino library belong to that product generation. If you have Pixy2, use its own documentation and downloads; similar names do not make the two software packages interchangeable. Our first objective is simple: connect the original camera to a computer, view a useful scene, and prepare it to recognize a coloured target. Once that works, we can pass compact detection results to Arduino and decide how our project should respond. Pixy combines an image sensor with onboard processing. Instead of asking a small microcontroller to process every pixel from a conventional camera, we let Pixy perform its supported detection work and send the resulting object information to the controller. This division of work is the main reason it fits beginner robotics projects. Arduino can handle decisions, buttons, indicators and actuators while the camera handles the image analysis needed for its colour signatures. Adding Pixy does not turn Arduino into a general-purpose computer-vision workstation. A trained colour signature describes a colour class. When a suitable region appears in the scene, Pixy can ...

Control Servo Motor with Arduino in Proteus

Arduino servo position selection with five buttons, Arduino Uno, servo motor control, Proteus simulation

Hello friends! In this tutorial, we will control a servo motor with Arduino in Proteus. We will begin with a simple sweep, understand the signal that commands the position, and then add five push buttons so we can select individual positions. Libraries Libraries used in this tutorial Arduino UNO Library for Proteus: V1.0 (2015, used in this tutorial) · latest version: V4.0 (October 2026) Helping Tools A positional hobby servo is convenient because its motor, gearbox and position controller are assembled in one unit. Arduino supplies a command signal while the servo's internal electronics move the shaft towards the requested position. This makes it useful for small mechanisms, camera mounts and steering experiments. We will keep the original circuit's control connection on Arduino pin 4. Along the way, I will explain how the angle shown by a Proteus model relates to the value in our sketch, why a servo needs a suitable power supply, and how to avoid confusing a software command with an accurate mechanical measurement. This project uses a positional servo. Its control input requests a position within a limited travel range. A continuous-rotation servo behaves differently: a similar input generally requests direction and speed, so it cannot replace the positional model in this exercise without changing the meaning of the program. A servo is not the only way to obtain controlled motion. A stepper motor can move through commanded steps, and a DC motor with suitable feedback can ...

How to Reset Arduino Programmatically

Historical Arduino D4 to RESET wiring discussed in the tutorial, Arduino Uno, reset behavior, watchdog tutorial

Hello friends! Today we will learn how to restart an Arduino program deliberately and, more importantly, distinguish a real microcontroller reset from simply starting our application logic again. These operations can look similar on the Serial Monitor while leaving the hardware in different states. For the main example, we will use a classic Arduino Uno with an ATmega328P and its watchdog timer. We will also revisit the two approaches in the original tutorial: connecting an output pin to RESET and calling a function pointer at address zero. Both need important qualifications before they are used in a project. The original wiring image is retained below for reference, but the recommended example does not need that jumper. Remove any output-to-RESET connection before following the watchdog procedure. This tutorial is specific to the classic AVR Uno; other Arduino architectures use different reset facilities. A processor reset returns the microcontroller's execution and hardware control state to the conditions defined by its reset circuitry. Startup code then initializes the application environment before setup and loop begin running. It does not normally erase the stored sketch. Flash retains the application across a reset, and EEPROM is nonvolatile storage. If your own startup code writes or clears EEPROM, that is an application action rather than an inherent consequence of pressing RESET. Ordinary initialized variables are prepared again by the runtime. This does not mean the ...

How to Upload Bootloader in Atmega328

Two Arduino Uno boards wired for bootloader programming, ATmega328P, Arduino as ISP, bootloader installation

Hello friends! Today we will install the Arduino bootloader on an ATmega328P using a second Arduino Uno as the programmer. This is useful when replacing the socketed processor on a classic Uno or restoring a compatible target whose serial bootloader has been erased. We will follow the original two-board arrangement: board B is the working programmer, and board A contains the target processor. Giving the boards separate roles helps prevent a common mistake, which is changing settings for one board while accidentally programming the other. The title uses the familiar ATmega328 family name, but the standard classic Uno configuration targets the ATmega328P. Read the marking on your chip before starting. An ATmega328, ATmega328P and ATmega328PB are different device selections; a similar name is not sufficient reason to ignore a signature mismatch. A bootloader is a small program stored in part of the microcontroller's flash memory. On a classic Uno, it allows suitable firmware to be received through the serial interface and written into the application area. It is not a Windows driver, and it does not translate Arduino source code inside the chip. The compiler on your computer still converts the sketch into machine code. The bootloader handles one method of transferring that compiled program to flash. The Uno's USB interface is a separate part of the board. Burning the ATmega328P bootloader does not repair a broken USB connector or automatically reprogram the USB-to-serial ...

Arduino UNO PCB Design for Proteus ARES

Original Arduino Uno R3 header footprint for Proteus ARES, Arduino Uno R3, Proteus ARES, PCB footprint

Hello friends! Today we will use an Arduino Uno footprint in Proteus ARES and turn it into a reusable package for our own PCB projects. This is useful when you want a removable Uno to plug into a larger board containing sensors, connectors or interface circuits. Libraries Arduino UNO Simulation Libraries Latest library: Arduino UNO Library for Proteus V4.0 (October 2026): working LEDs, a RESET button and a built-in serial monitor Other Arduino boards: 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 download in this tutorial contains the original header-layout design. It is a starting point for an Uno carrier or shield connection, not a complete replacement for the Uno's processor, USB interface and power circuitry. Keeping that distinction clear makes the rest of the design much easier to understand. We will first open the layout, examine its connector positions and save the package. Then we will map the electrical pins, plan the mounting arrangement and check the design before producing manufacturing files. A footprint that looks correct on screen still needs both electrical and mechanical review. The retained layout shows the Uno header groups and a board-shaped outline. It allows a larger project PCB to connect to the Uno's external pins. You still use a separate, working Arduino board as the controller. There are two related mounting arrangements. A shield normally plugs into ...

USB Communication between Android and Arduino

Android and Arduino USB communication test setup, Android USB host, Arduino Uno, serial communication

Hello friends! Today we will connect an Android phone to an Arduino through USB and exchange commands in both directions. This is useful when you want a wired control panel, a portable instrument display or a direct connection without configuring Bluetooth or Wi-Fi. We will start with one classic Arduino Uno and a small LED-control sketch. After that, we will revisit the original two-Arduino arrangement, which lets a computer monitor the bytes travelling through the phone connection. The second board is a debugging aid, not a requirement for Android communication. The important details are the phone's USB host support, the board's USB interface, permission to open the device and a clearly defined message format. Once these are understood, we can build a useful connection without treating USB as a mysterious pair of wires. In this arrangement, the Android device acts as the USB host and the Arduino appears as a USB device. The host discovers the connected device and manages communication. A classic Uno uses a separate USB-to-serial interface to carry the sketch's Serial data between USB and the ATmega328P UART. This is why we do not need an Arduino USB Host Shield for this tutorial. A host shield belongs to a different arrangement in which the Arduino must control a USB peripheral. Here, the phone already performs that host role. The original Uno R3 uses an ATmega16U2 interface, while compatible boards may use CH340, CP210x or another bridge. Their connectors can look similar ...

How to get Hex File from Arduino

Historical Arduino build output containing a HEX path, Arduino firmware export, Intel HEX, compiled binary

Hello friends! Today we will learn how to get the compiled HEX file from an Arduino sketch. This is useful when you want to load firmware into a Proteus model, program a compatible AVR microcontroller or keep a specific compiled version of a project. Libraries Libraries used in this tutorial Arduino Library for Proteus: V1.0 (2015, used in this tutorial) · latest version: V4.0 (October 2026) Arduino UNO Library for Proteus: V1.0 (2015, used in this tutorial) · latest version: V4.0 (October 2026) Helping Tools Arduino does generate compiled firmware during its normal build process. The IDE simply handles much of that work for you when you click Verify or Upload. You do not need to find a temporary folder manually every time you want to keep the result. We will use the classic Arduino Uno with its ATmega328P as the main example. Other Arduino boards can produce different output formats, so a missing.hex extension does not necessarily mean compilation failed. Open and save your sketch, select the correct board and any relevant processor options, then choose Sketch, Export Compiled Binary. The IDE builds the sketch and exports the platform's firmware output to the sketch's export location. The exact subfolder and filenames depend on the IDE and selected board platform. Use the export result and folder contents from your current installation rather than assuming that an old temporary path shown in a screenshot exists on your computer. A physical board does not have to be connected ...

Intelligent Energy Saving System

Historical Arduino energy-saving system overview, Arduino energy control, doorway counting, infrared sensors

Hello friends! Today we will build an intelligent energy-saving demonstration using an Arduino Uno, two doorway sensors, an LCD and controlled loads. The idea is to count completed entries and exits, then switch the model room's loads according to that count. The interesting part is not simply turning a relay on. We need to recognize direction, handle an interrupted crossing, avoid counting the same person repeatedly and decide what to do when the count becomes uncertain. We will develop those rules before looking at the complete program. This is a controlled educational demonstration. Two narrow beams cannot reliably count a crowd or guarantee that a real room is empty. We will use low-voltage demonstration loads and make the limitations visible rather than treating an imperfect counter as an unquestionable occupancy sensor. Place beam A on the outside of the doorway and beam B slightly farther inside. A person entering encounters A before B; a person leaving encounters B before A. Neither sensor is permanently an “entry sensor” or an “exit sensor.” Direction comes from their sequence. For the program in this tutorial, choose the spacing so a single crossing normally blocks both beams during part of the passage. A complete entry is A only, both blocked, B only, then both clear. Exit follows the reverse sequence. This overlap requirement is deliberate. If the geometry permits a person to clear A completely before reaching B, the state machine below will reject the sequence. ...

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 ...