dept: Electronics Engineering - Page 116 of 116

1154 articles found.

Relay Interfacing With Microcontroller using ULN2003A

black relay housing, through-hole terminals, enclosed coil and contacts, relay component photograph

Hello friends, I hope you are doing well. In the previous tutorial, we studied the working principle of a relay. Today, we will connect a 12 V relay to a PIC18F4550 microcontroller through a ULN2003A driver. A relay coil needs more voltage and current than a microcontroller pin should provide. It is also an inductive load, so it produces a voltage transient when switched off. The ULN2003A solves these interface problems by providing seven low-side Darlington drivers and seven internal clamp diodes in one package. The key point is that the ULN2003A does not convert a 5 V logic signal into a 12 V output. The 12 V energy comes from a separate 12 V supply. A logic high merely turns on one internal driver, which connects the low side of the relay coil to ground. We will examine that current path, calculate the important values, build the circuit and write a small test program. Suppose the relay has a 12 V coil rated at 400 mW. Its approximate current is: Icoil = Pcoil / Vcoil = 0.400 W / 12 V = 0.0333 A = 33.3 mA The approximate coil resistance is: Rcoil = Vcoil / Icoil = 12 V / 0.0333 A = 360 ohms A PIC18F4550 output operates from its logic supply and is not a 12 V power output. Microchip's PIC18F2455/2550/4455/4550 datasheet lists 25 mA per pin under absolute maximum ratings, but an absolute maximum is a damage boundary rather than a recommended operating point. Output-voltage specifications, total port current and device power dissipation impose additional restrictions. A 33.3 ...

Introduction to Relay

relay pinout diagram, coil and contact schematic, 12 V relay photograph, labeled terminal overview

Hello everyone! I hope you are doing well. In this tutorial, we will study the relay from its basic construction to practical selection and control. A relay allows one electrical circuit to operate contacts in another circuit. This makes it useful when a low-power controller must switch a different voltage, a larger load or an electrically isolated circuit. Libraries Relay Simulation Libraries Latest library: Relay Module Library for Proteus V1.0 (October 2026) Other motor drivers: L298 · L9110S · TB6612FNG · BTS7960 · A4988 / DRV8825 · 28BYJ-48 + ULN2003 · PCA9685 Servo · 30A Brushless ESC · TB6600 Stepper Driver · 60A Brushed ESC · DRV2605L Haptic Driver · ZS-X11H BLDC Driver · SimpleFOC Mini Driver · AC Dimmer Module · TMC2209 Stepper Driver · DRV8833 Motor Driver · L293D Motor Shield Helping Tools We will focus first on the common electromechanical relay because its moving contacts make the operating principle easy to understand. We will then compare electromagnetic, reed, solid-state, thermal and hybrid relays, calculate coil current, discuss contact ratings and examine a safe microcontroller driver. A relay is often described as an automatic switch, but that short definition hides several important details. The coil and contacts have separate ratings, the terms normally open and normally closed refer to the unenergized state, and an inductive load can be much harder to switch than a resistive load carrying the same steady current. Let us build the complete picture step ...

LED Blinking Project using PIC16F877a

PIC16F877A microcontroller, eight illuminated LEDs, external crystal circuit, Proteus simulation

Hello friends! In this tutorial, we will design an LED blinking project using the PIC16F877A microcontroller. It is a simple project, but it introduces several ideas that appear in almost every embedded system: configuring an I/O port, choosing an oscillator, building a reset circuit, calculating LED resistors, generating a time delay, compiling a program, and loading the resulting HEX file into Proteus. We will connect eight LEDs to PORTB and switch the complete port between logic low and logic high. Once this basic version works, you can change the output patterns and timing to create a running light, binary counter, or status display. The important objective is to understand why every connection and every program statement is present. The PIC16F877A is an 8-bit microcontroller from Microchip's PIC16F87XA family. It has a 14-bit instruction word, Flash program memory, RAM, data EEPROM, timers, an analog-to-digital converter, two Capture/Compare/PWM modules, a USART, and serial interfaces that can operate as SPI or I²C. For this first project, we only need its clock, reset, power, and PORTB digital-output functions. The 40-pin PDIP device provides eight PORTB pins named RB0 through RB7. The TRISB register controls their direction. A TRIS bit equal to 1 makes its corresponding pin an input; a bit equal to 0 makes it an output. Therefore, writing TRISB = 0x00 configures all eight PORTB pins as outputs. Microchip lists the PIC16F877A as an in-production device and provides the ...

XBee Arduino Interfacing

XBee radio module, wire antenna, blue circuit board, pin header connections

Hello friends! We have already covered the Introduction to XBee Module and Interfacing of XBee with Computer. In this tutorial, we will connect our configured radios to two Arduino UNO Rev3 boards and use a pushbutton on one board to control the built-in LED on the other. Libraries XBee Simulation Libraries Latest library: XBee Library for Proteus V1.0 (January 2016) Other RF modules: nRF24L01 · nRF24L01 PA LNA · CC1101 · RFM69HCW · HC-12 · 433MHz RF Helping Tools We will build the project in stages. First, we will establish the power and serial connections. Next, we will define the messages sent between the boards. Finally, we will write separate sender and receiver sketches and examine how they handle button bounce, incomplete messages, and a lost wireless connection. The example assumes two compatible radios already configured for transparent serial communication at 9600 baud. The address values carried forward from the previous lesson apply to classic S1 802.15.4 firmware. Radios using another supported protocol can carry the same application messages after you configure their network using the correct product instructions. Arduino A reads a pushbutton. When you hold the button down, it asks Arduino B to turn its built-in LED on. Releasing the button asks B to turn the LED off. The sender also repeats the current state once per second, allowing the receiver to recover when an individual message is missed. Arduino B accepts only two complete commands: LED,1 and LED,0, each ...