Author - Ligo George

Interfacing Ultrasonic Distance Sensor : ASCII Output with PIC Microcontroller

In some of our projects, we may want to measure the distance of an object from a point. Ultrasonic Distance Sensors are the best sensor which provides stable, accurate, precise, non-contact distance measurements from 2cm to 4m. Ultrasonic Sensors can be used to measure distance between moving or stationary objects. Being very accurate and stable, these devices find large number of applications in robotics fields. For example it can be used as an excellent replacement for IR sensors in  a Micromouse. In...

Interfacing Relay with PIC Microcontroller

A relay is an electromagnetic switch which is used to switch High Voltage/Current using Low power circuits. Relay isolates low power circuits from high power circuits. It is activated by energizing a coil wounded on a soft iron core. For detailed working of relay please visit this page. A relay should not be directly connected to a microcontroller, it needs a driving circuit. A relay should not be connected directly to a microcontroller due to...

ULN2003 High Voltage and High Current Darlington Transistor Array

ULN2003 The ULN2003 is a monolithic IC consists of seven NPN darlington transistor pairs with high voltage and current capability. It is commonly used for applications such as relay drivers, motor, display drivers, led lamp drivers, logic buffers, line drivers, hammer drivers and other high voltage current applications. It consists of common cathode clamp diodes for each NPN darlington pair which makes this driver IC useful for switching inductive loads. Schematic Diagram of each Darlington Pair - ULN2003 The output of...

DC Motor Speed Control using PWM with PIC Microcontroller

I already posted about Interfacing DC Motor with PIC Microcontroller. In our robotics applications we may have to control the speed of the DC Motor. In this tutorial we will see how to control the speed of a DC Motor using Pulse Width Modulation (PWM). By using PWM we can easily control the average power delivered to a load and by thus we can easily control the speed of the DC...

Generating PWM with PIC Microcontroller using CCP Module

PWM is a technique used to generate analog output signal using digital signals. It is commonly used to control average power delivered to a load, motor speed control, generating analog voltage levels and for generating analog waveforms. CCP Modules are available with a number of PIC Microcontrollers. CCP stands for Capture/Compare/PWM. Using PWM module is far more easier and cost effective than using extra chips for PWM generation.  MikroC Pro for PIC Microcontroller provide built-in library for PWM which makes our...

Expanding IO Ports of PIC Microcontroller using MCP23S17

Usually a microcontroller comes with a limited number of IO ports called General Purpose Input Output (GPIO) ports. But some applications require more IO ports than that available on a microcontroller. In these cases we can use IO Port Expanders to increase the IO capability of a microcontroller. MCP23017 and MCP23S17 are two such 16 bit IO expander with Serial Interface  manufactured by Microchip. MCP23017 uses high speed I2C interface while MCP23S17 used high speed SPI interface. MCP23S17 In this tutorial...

TransformerLess Low Cost DC Power Supply : Resistive & Capacitive

One on the major part of our electronics products is the DC Power Supply that converts mains AC voltage to a lower DC voltage. Usually we use a step down transformer to reduce mains AC voltage to desired low voltage AC and then convert it to DC or we use Switched Mode Power Supplies. But in both cases cost is very high and it takes considerable amount of space. Another Low Cost alternative for Transformer and Switcher based power supply...

Zener Diode Voltage Regulator

Zener Diode is a general purpose diode, which behaves like a normal diode when forward biased. But when it is reverse biased above a certain voltage known as  zener breakdown voltage or zener voltage or avalanche point or zener knee voltage the voltage remains constant for a wide range of current. Clarence Zener is the scientist who discovered this electrical property and the device is named after him. Zener Diode Ordinary diodes will not have any significant current (only leakage current ) when reverse biased...

>