Hello friends! This page brings together our electronics projects using Arduino, PIC microcontrollers, 8051 devices and the 555 timer. You can use it as a learning path: begin with a simple input or output, understand the circuit, then combine those building blocks into a more complete application. Many linked tutorials include Proteus simulations, source code or other supporting files. Read each project for its exact requirements and download details. I encourage you to rebuild the circuit yourself before studying the supplied solution, because identifying a wrong connection or timing assumption teaches skills that copying a finished schematic cannot provide. We will keep the original project links grouped by platform, explain what each group teaches and add a practical method for choosing, building and evaluating a project. The aim is a circuit you can explain and improve, with clear limits on what its simulation or demonstration proves. Start by writing a measurable objective. For example, “display the temperature once per second” is easier to evaluate than “make a smart room.” The smaller objective identifies the sensor, update interval and output. Additional features can follow once the basic measurement is reliable. Next, decide what you already understand and what you want to learn. An LCD project develops digital interfacing and formatting. A sensor project introduces measurement and units. A motor project adds power electronics and timing. A wireless project ...
Hello friends! Today, we will compare three useful C compiler choices for PIC microcontrollers: Microchip's MPLAB XC tools, mikroC PRO for PIC and CCS C. Choosing a compiler affects how you configure peripherals, reuse libraries, debug the circuit and maintain the project later. The original article introduced MPLAB C18 alongside mikroC and CCS. That historical context still helps when opening older tutorials, but C18 is not the starting recommendation for a new 8-bit PIC project. We will explain the current XC8 path, preserve the older learning links and identify the settings that matter whichever compiler you choose. Our aim is to select a tool for a particular microcontroller and project, not declare a universal winner. We will start with the difference between an IDE and a compiler, compare practical strengths, and finish with a small evaluation procedure you can apply before committing an entire design. You write application logic in C source files. The build tools process those files, translate the program for the selected processor, resolve references to libraries and place the resulting code and data into the device's memory layout. A build may produce a HEX file for programming and additional files for debugging and inspection. A HEX file describes programming data and addresses; it is not the original C source. Keeping only that file loses the explanations, symbolic names and build settings needed to modify the project reliably. Preserve the source, headers, project ...
Hello friends! Today, we will interface an LM35 temperature sensor with a PIC16F876A microcontroller and display the measured temperature on an LCD. We will build the circuit in Proteus, write the program in mikroC PRO for PIC and work through the conversion from sensor voltage to degrees Celsius. 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 LM35 produces an analog voltage, so this project is also a useful introduction to the PIC's analog-to-digital converter. We will examine the ADC reference, input configuration, numerical scaling and display formatting instead of relying on an unexplained multiplication factor. The original circuit, result images and downloadable project remain included. The revised example keeps the same PIC and LCD pin mapping while using explicit units and fixed-width output. We will also distinguish the number of displayed decimal places from the accuracy that the measurement circuit can actually achieve. The LM35 is an analog temperature sensor with a nominal scale factor of 10 millivolts per degree Celsius. Its output rises as its temperature rises. In the positive-temperature arrangement used here, a nominal 25°C corresponds to 250 mV and 100°C corresponds to 1 V. The Texas Instruments LM35 datasheet provides the ...
Hello friends! Today we will send an SMS using a PIC18F452 microcontroller and a SIM900 modem. We will use mikroC PRO for PIC and the hardware UART, beginning with the electrical connection and then following the command exchange that submits a text message. The command sequence is related to our earlier Arduino SMS sending project. The microcontroller code changes, but the modem still needs a valid supply, compatible serial signals, network registration and correctly terminated AT commands. We will improve the original example by waiting for responses instead of assuming that fixed delays prove success. For the opposite direction, see SMS reception with Arduino and SMS reception with PIC. SIM900 is an older GSM/GPRS-generation modem. Verify that a compatible network remains available from the intended operator in your location. A phone showing a modern mobile-data signal does not establish that this modem can register there. The following procedure applies to your own modem and a recipient who expects the test message. Choose a short diagnostic text and send it once while establishing the interface. Repeated automatic retries can create duplicate messages and unnecessary charges. The historical photograph shows a SIM900 carrier. A carrier may include a regulator, level conversion and a power-key circuit. Those additions determine its external input requirements, so finding TX and RX is only part of identifying the board. The bare SIM900's supply is specified in the SIMCom ...
Hello friends! Today we will control a servo motor with the PIC16F877A and observe its movement in Proteus ISIS. We will begin with the three servo connections, understand the command waveform, and then write a small program that selects positions using two pushbuttons. In the previous tutorials, we explored DC motor direction control and stepper motor sequencing. A positional hobby servo is different because the motor, gearbox, position sensor, and controller are already assembled together. Our PIC requests a position rather than switching the motor windings itself. We will keep the original PIC and button arrangement, but use a repeated control pulse with a sensible frame period. Along the way, we will separate what the simulated angle display tells us from what a physical servo must be calibrated to do. The example is deliberately small enough that you can trace every input and output. A conventional positional hobby servo contains a motor connected through a reduction gearbox to an output shaft. A position sensor measures that shaft's position. Internal electronics compare the requested position with the measured position and drive the motor to reduce the difference. This closed-loop arrangement is the reason we can request a position with one signal wire. The signal does not provide motor power. The other two connections supply energy to the servo electronics and motor. A three-wire cable therefore normally contains supply, ground, and command, but their physical order ...
Hello friends! In the previous tutorial, we controlled the direction of a DC motor in Proteus. Now we will work with a stepper motor, where rotation depends on applying an ordered sequence to the windings. We will begin with the original six-wire simulation, inspect the sequence manually, and then explain how a microcontroller and driver can generate it. The original screenshots use Logic State sources to make individual winding states visible. They are useful for understanding the sequence, but they are not a physical driver circuit. We will preserve the images and add the missing distinction between simulated logic sources, microcontroller outputs, and the winding-current path. By the end, you should understand unipolar and bipolar wiring, wave drive and half stepping, direction reversal, and the relationship between step frequency and shaft speed. We will also add a small PIC16F877A example that continues the controller used in the preceding tutorial. A stepper motor has windings arranged so that different excitation states create different magnetic-field orientations. The rotor tends to align with the resulting field. Advancing through a suitable sequence moves that field and produces successive mechanical steps. The sequence order matters as much as the logic levels. Energizing windings in an arbitrary order can make the rotor vibrate, reverse unexpectedly, or remain near one position. Correct sequencing is the first thing to establish before increasing the update rate. ...
Hello friends! In this tutorial, we will design a DC motor control demonstration in Proteus ISIS and then connect its control logic to a PIC16F877A. We will begin by observing how voltage polarity changes the direction of a simulated motor, then explain the driver stage needed between a microcontroller and a physical motor. The original article used Logic State sources and a simplified direct connection to illustrate direction changes. We will preserve those screenshots, but label their purpose clearly. Logic sources and PIC output pins are not substitutes for a motor power driver. The updated practical interface uses an L293D bridge example, with separate logic and motor supplies. We will also correct the relationship between the original schematic and code, add explicit stopping behavior for the buttons, and discuss current, braking, and PWM. If you need supply background, our 5 V supply tutorial and LM317 supply example are useful companion reading. A brushed DC motor develops torque when current flows through its winding in a magnetic field. Reversing the applied polarity reverses the direction of current and the resulting torque. The direction you call clockwise depends on the shaft viewing direction and the order of the motor leads. The important electrical quantity is the voltage difference between the motor terminals. If one terminal is at 5 V and the other at 0 V, the applied difference is 5 V. Swapping those levels reverses its sign. Setting both terminals to the ...
Hello friends! In this tutorial, we will learn how to use Virtual Terminal in Proteus ISIS to inspect serial data and send simple commands to a simulated circuit. It is particularly useful when working with microcontrollers, GSM modules, GPS receivers, and other devices whose behavior can be understood through a serial interface. We will begin with the simplest arrangement: a simulated microcontroller communicating directly with Virtual Terminal. Then we will return to the original article's COMPIM example, which connects a simulation to a real computer serial port. Keeping those two arrangements separate will help you choose the correct components and avoid unnecessary COM-port problems. The aim is to make serial communication visible before building a larger application around it. We will cover connections, terminal settings, a small PIC example, baud-rate calculations, and a practical debugging sequence. If you need background first, read What Is a Serial Port?. Virtual Terminal is a Proteus instrument that displays received serial characters and can transmit keyboard input. It lets us observe the data exchanged by a simulated circuit without first writing a desktop user interface. The terminal window is therefore a debugging tool as well as a convenient output display. A serial interface is not necessarily a nine-pin connector. A microcontroller's UART commonly appears as logic-level transmit and receive signals, while a traditional PC RS-232 port uses a different ...
Hello friends! In this tutorial, we will design a circuit that connects a 16×2 character LCD to a PIC18F452 microcontroller in Proteus ISIS. We will select the components, wire the display, write a small program in mikroC PRO for PIC, load its HEX file into the simulated microcontroller, and display text on both rows. This is a useful first microcontroller simulation because it combines several skills in one manageable circuit: choosing the correct device, matching software pins to schematic wires, setting the clock frequency, and checking the result. If you are new to the workspace, start with our Proteus ISIS and ARES guide, then return here for the practical example. We will preserve the original PORTD connections and two-line website message. The explanation now also covers the LCD control pins, contrast adjustment, compiler settings, and the difference between loading a simulation program and programming a physical PIC. The PIC18F452 runs our program and sends commands and character data to the LCD. We use a parallel character display compatible with the HD44780 interface, operating in four-bit mode. Four data wires carry each byte in two transfers, while separate control wires tell the display how to interpret that information. The display does not understand C source code. Our compiler converts the program into machine instructions for the PIC, and the PIC then uses its output pins to communicate with the LCD. Proteus simulates that interaction when a suitable ...
Hello friends! In this tutorial, we will learn how to program a PIC microcontroller with code compiled in mikroC PRO for PIC, using a PICkit 3 programmer. The useful idea is simple: mikroC builds the firmware, and Microchip's programming software loads the resulting HEX file into the selected device. The original project behind this lesson required mikroC, while the available programmer was a USB-connected PICkit 3. Moving from a serial-port programmer to PICkit 3 made the laptop connection easier, but the compiler and programmer still needed a common file format. The HEX file provides that connection without requiring us to compile the project again in another C compiler. We will preserve the original MPLAB IDE screenshot sequence, explain what each step does, and cover the important checks for target power, device selection and configuration bits. We will also distinguish the old MPLAB interface from MPLAB X and IPE so that you do not search for menus that belong to a different application. mikroC translates your source code and linked libraries into instructions for the selected PIC device. The programmer does not normally need the original C source to write those instructions into program memory. It needs the programming image, the correct device definition and a working electrical connection to the target. This explains why the original requirement for the C18 compiler was unnecessary for the transfer itself. If mikroC has already produced a valid image, a second ...