Professional Documents
Culture Documents
1) REGULATOR IC 7805
Features
Voltage regulators are very common in electronic circuits. They provide a constant
output voltage for a varied input voltage. In our case the 7805 IC is an iconic regulator IC that
finds its application in most of the projects. The name 7805 signifies two meaning, “78” means
that it is a positive voltage regulator and “05” means that it provides 5V as output. So our 7805
will provide a +5V output voltage.
The output current of this IC can go up to 1.5A. But, the IC suffers from heavy heat loss
hence a Heat sink is recommended for projects that consume more current. For example if the
input voltage is 12V and you are consuming 1A, then (12-5) * 1 = 7W. This 7 Watts will be
dissipated as heat.
2) DRIVER IC ULN2003
Features
ULN2003 IC is one of the most commonly used Motor driver IC. This IC comes in handy
when we need to drive high current loads using digital logic circuits like Op-maps, Timers,
Gates, DRIVERS, PIC, ARM etc. For example a RELAY that requires 12V and 300mA to run
cannot be powered by an PIC I/O hence we use this IC to source enough current and voltage for
the load. This IC is commonly used to drive Relay modules, Motors, high current LEDs and even
Stepper Motors. So if you have anything that anything more than 5V 80mA to work, then this IC
would be the right choice for you.
The ULN2003 is a 16-pin IC. It has seven Darlington Pairs inside, where each can drive
loads up to 50V and 500mA. For these seven Darlington Pairs we have seven Input and Output
Pins. Adding to that we can a ground and Common pin. The ground pin, as usual is grounded
and the usage of Common pin is optional. It might be surprising to note that this IC does not
have any Vcc (power) pin; this is because the power required for the transistors to work will be
drawn from the input pin itself.
Like any other microcontroller, PIC16F886 needed to be programmed before getting the
chip working. So for working of PIC16F886, first we need to save the appropriate program file
in the controller FLASH memory. Once power is provided, the controller executes this code
saved in FLASH memory to create the response.
Pin Configuration
PIC16F886 is a 28 pin IC and each pin can perform multiple functions as shown in above
PIC16F886 pin diagram. The description for each of these pins is given below.
8 VSS Ground
19 VSS Ground
5) RELAY
How to Use a Relay.
Relays are most commonly used switching device in electronics. There are two important
parameters of relay, first is the Trigger Voltage, this is the voltage required to turn on the relay
that is to change the contact from Common → NC to Common → NO. The other parameter is
your Load Voltage & Current, this is the amount of voltage or current that the NC, NO or
Common terminal of the relay could withstand, in our case for DC it is maximum of 30V and
10A. Make sure the load you are using falls into this range.
The above diagram is for relay triggering circuit. Since the relay has 12V trigger voltage
we have used a +12V DC supply to one end of the coil and the other end to ground through a
switch. For switching we are using a transistor as a switching device. You can also notice a diode
connected across the coil of the relay, this diode is called the Fly back Diode. The purpose of the
diode is to protect the switch from high voltage spike that can produced by the relay coil. As
shown one end of the load can be connected to the Common pin and the other end is either
connected to NO or NC. If connected to NO the load remains disconnected before trigger and if
connected to NC the load remains connected before trigger.
The operation and theory behind a Center tapped transformer is very similar to a normal
secondary transformer. A primary voltage will be induced in the primary coil (I1 and I3) and due
to magnetic induction the voltage will be transferred to the secondary coil. Here in the secondary
coil of a centre tapped transformer, there will be an additional wire (T2) which will be placed
exactly at the center of the secondary coil, hence the voltage here will always be zero.
If we combine this zero potential wire (T2) with either T1 or T2, we will get a voltage of
12V AC. If this wire is ignored and voltage across T1 and T2 is considered then we will get a
voltage of 24V AC. This feature is very useful for the function of a full wave rectifier.
SERVO
Wire Configuration
3 Orange PWM signal is given in through this wire to drive the motor
Servo motors operates from 4.8V to 6.5V, the higher the voltage higher the torque we can achieve, but most
commonly they are operated at +5V. Almost all hobby servo motors can rotate only from 0° to 180° due to
their gear arrangement so make sure you project can live with the half circle if no, you can prefer for a 0° to
360° motor or modify the motor to make a full circle. The gears in the motors are easily subjected to wear and
tear, so if your application requires stronger and long running motors you can go with metal gears or just stick
with normal plastic gear.
Next comes the most important parameter, which is the torque at which the motor operates. Again
there are many choices here but the commonly available one is the 2.5kg/cm torque which comes with the
Tower pro SG90 Motor. This 2.5kg/cm torque means that the motor can pull a weight of 2.5kg when it is
suspended at a distance of 1cm. So if you suspend the load at 0.5cm then the motor can pull a load of 5kg
similarly if you suspend the load at 2cm then can pull only 1.25. Based on the load which you use in the
project you can select the motor with proper torque. The below picture will illustrate the same.
How to use a Servo Motor
After selecting the right Servo motor for the project, comes the question how to use it. As we know there are
three wires coming out of this motor. The description of the same is given on top of this page. To make this
motor rotate, we have to power the motor with +5V using the Red and Brown wire and send PWM signals to
the Orange colour wire. Hence we need something that could generate PWM signals to make this motor work,
this something could be anything like a 555 Timer or other Microcontroller platforms like Arduino, PIC, ARM
or even a microprocessor like Raspberry Pie. Now, how to control the direction of the motor? To understand
that let us a look at the picture given in the datasheet.
From the picture we can understand that the PWM signal produced should have a frequency of 50Hz that is the
PWM period should be 20ms. Out of which the On-Time can vary from 1ms to 2ms. So when the on-time is
1ms the motor will be in 0° and when 1.5ms the motor will be 90°, similarly when it is 2ms it will be 180°. So,
by varying the on-time from 1ms to 2ms the motor can be controlled from 0° to 180°
Applications
Used as actuators in many robots like Biped Robot, Hexapod, robotic arm etc..
Commonly used for steering system in RC toys
Robots where position control is required without feedback
Less weight hence used in multi DOF robots like humanoid robots
MOTOR DRIVER IC L293D
Features
Applications
L298 - Dual Full-Bridge Driver IC
L298 is a high power version of L293 motor driver IC. It is a high voltage, high current,
dual full-bridge driver designed to accept standard TTL logic levels (Control Logic) and drive
inductive loads such as relays, solenoids, DC and Stepper motors. Two enable inputs are
provided to Enable or disable the device independently of the input signals. The emitters of the
lower transistors of each bridge are connected together and the corresponding external terminal
can be used for the connection of an external sensing resistor.
For understanding the working of L298 IC, consider the simple circuit configuration shown
below.
Here we are using one of H-BRIGES of l298 IC. As shown in circuit we have two push
buttons Q1 and Q2 which act as controls inputs for bridge-A. These logic inputs are provided by
Microcontroller or Microprocessor in application circuits. The four diodes are FLYBACK
diodes used for protecting the IC form inductive voltage spikes. The enable pin is pulled high
through a resistor so bridge-A will be functioning all the time. If it’s pulled to ground the bridge-
A will be disabled no matter the input control logic.
After all the circuit is setup we need to press the buttons Q1 and Q2 to change the flow of current
between pins OUT1 and OUT2.
IRFZ44N N-Channel Power MOSFET
The IRFZ44N is a N-channel MOSFET with a high drain current of 49A and low Rds value of
17.5 mΩ. It also has a low threshold voltage of 4V at which the MOSFET will start conducting.
Hence it is commonly used with microcontrollers to drive with 5V. However a driver circuit is
needed if the MOSFET has to be switched in completely.
Features
• Small signal N-Channel MOSFET
• Continuous Drain Current (ID) is 49A at 25°C
• Pulsed Drain Current (ID-peak) is 160A
• Minimum Gate threshold voltage (VGS-th) is 2V
• Maximum Gate threshold voltage (VGS-th) is 4V
• Gate-Source Voltage is (VGS) is ±20V (max)
• Maximum Drain-Source Voltage (VDS) is 55V
• Rise time and fall time is about 60ns and 45ns respectively.
• It is commonly used with Arduino, due to its low threshold current.
• Available in To-220 package
Applications
The SG3524 IC incorporates all the functions required in the construction of a regulating power
supply, inverter, or switching regulator on a single chip. SG3524 also can be used as the
control element for high-power-output applications.
The ADXL335 is a small, low power, complete 3-axis accelerometer with signal conditioned voltage outputs.
It can measure the static acceleration of gravity in tilt-sensing applications, as well as dynamic acceleration
resulting from motion, shock, or vibration.
ADXL335 Pinout Configuration
VCC The Vcc pin powers the module, typically with +5V
Operating Voltage: 3V to 6V DC
Operating Current: 350μA
Sensing Range: ±3g
3-axis sensing
High Sensitivity for small movements
Needs no external components
Easy to use with Microcontrollers or even with normal Digital/Analog IC
Small, cheap and easily available
GSM MODEM
The SIM900A is a readily available GSM/GPRS module,used in many mobile phones and PDA. The module
can also be used for developing IOT (Internet of Things) and Embedded Applications. SIM900A is a dual-
band GSM/GPRS engine that works on frequencies EGSM 900MHz and DCS 1800MHz. SIM900A features
GPRS multi-slot class 10/ class 8 (optional) and supports the GPRS coding schemes CS-1, CS-2, CS-3 and
CS-4.
GPS MODULE
A GPS (Global Positioning System) module and is used for navigation. The module
simply checks its location on earth and provides output data which is longitude and latitude of its
position.It is from a family of stand-alone GPS receivers featuring the high performance 65
positioning engine. These flexible and cost effective receivers offer numerous connectivity
options in a miniature (16 x 12.2 x 2.4 mm) package. The compact architecture, power and
memory options make CH-65 modules ideal for battery operated mobile devices with very
strict cost and space constraints. Its Innovative design gives CH-65 excellent navigation
performance even in the most challenging environments.
This module is one of popular GPS modules on the market and is also cheap to buy. The
location data provided by it is accurate enough to satisfy most applications. And for it to be
included in smart phones and tablets design points out its efficiency. This module is famous
among hobbyist and engineers altogether who want to work on applications involving
navigation.
After circuitry you need to set the baud rate of the controller matching the module, if it’s
not matched you will get error. With baud rate setting done you can read the serial data directly
from the module. This data will be longitude and latitude values and the user can play with them
as desired.
The raw values provided by the module are cumbersome to read directly and so a simple
decimal calculation can be done in programming for getting easy to read values.
RFID READER
The term RFID stands for Radio Frequency Identification, as the name defines the
operation of the device is based on the Radio frequency signals. The RFID systems consists of
RFID Reader and a tag which is normally used in identification and tracking of objects. Before
discussing more about the RFID, let’s see the uniqueness of this technology and its general
application. Today in most cases barcodes are used for identifying an item in a warehouse or a
supermarket using a barcode scanner, this existing system can be upgraded with the RFID
technology. Similar to barcode the RFID can also give unique identification number to all
products but the added advantage is unlike the barcode system’s line of sight, this system can
detect the RFID tag within its proximity range. Meaning you do not need a human to search for
the barcode and point the barcode scanner on it. With this feature most of the system can be
automated and human intervention can be minimized because the tag can be scanned and billed
automatically when it reaches the RFID reader. RFID door locks and RFID attendance
system are very popular now days and many hotels provide provide RFID tag to their customer
to lock and unlock the door.
Any RFID System will consist of a RFID reader and a RFID tag. The tag will often be small and
portable with little to no electronics in it. We will learn more about the tags later in this article, a
simple RFID system can be represented using the below block diagram.
RFID Reader
It is a device which consists of an antenna, transceiver and a decoder.
Transceiver: It can be used either as a transmitter or a receiver. It consists of an oscillator
to generate a continuous signal which is modulated to a required frequency and then
transmitted into air through an antenna.
Antenna: It is a device which converts the electrical signal into electromagnetic signal
which is efficient in propagating the signal in air.
Decoder: When a RF signal is detected at the antenna from a tag, the decoder helps in
retrieving the data.
Low frequency RFID: Its range is in between 30 kHz to 500 kHz but the exact frequency
used by it is 125 kHz. Its detection range is 10 -15 cm.
High frequency RFID: Its range is in between 3 MHz to 30 MHz, the exact frequency
used by the module is 13.56 MHz. Its detection range is up to 1.5 meters.
Ultra High frequency RFID: Its range is 300 MHz to 960 MHz but the exact frequency
used is 433 MHz. The detection range is up to 20 meters.
Microwave RFID: It uses a frequency of 2.45 GHz and the detection range is up to 100
meters far.
So based on the application and the detection range required the suitable RFID should be chosen.
The detection range varies based on the size of antenna size and tuning.
Transponders:
As the name itself specifies that it receives a RF signal and emits another RF signal (usually
data) as a response. The transponders are not active (powered up) all the time but they become
active only when it detects a signal from a Reader and then powers up the microchip to get the
data which is then transmitted back to the Reader. So transponders are the active tags which
power ups only when the Reader transmits the signal. This allows the transponders to have high
battery life compared to Beacons.
Beacons:
Beacons are the active tags which are powered up all the time but transmit the data only in
specified time intervals (time interval can be once in a minute or once in a day). When the data is
transmitted, corresponding Reader within its proximity detects the signal and respective action
can be performed. Battery life span is low when compared to Transponders but is faster since it
stays active all the time.
2. Passive RFID system:
This is the most commonly used type of system that you can find in ID cards, banking cards etc.
It consists of passive tags which doesn’t have any battery to power up the chip in the tag. Instead
the Reader transmits the RF signals which are detected by the tag. These RF signals induce
current into the tag’s antenna which is then used to power up the chip. Then the tag responds
with the data in the chip through the coiled antenna which is detected by the Reader and
respective action will be performed. These are generally seen in maintaining attendance systems
at offices and colleges.
EM18 RFID Reader is a module which reads the ID information stored in RFID TAGS. This ID information
is unique for every TAG which cannot be copied.
NC No Connection
NC No Connection
In the circuit BUZZER is not compulsory. When a TAG is read the BUZZER turns ON. As given in circuit,
TX is given to CONTROLLER which is to receive DATA.
Consider a TAG is brought near the MODULE. The MODULE reads the ID and sends the information to
controller in 12 ASCII CHARACTERS. In them, 10CHARACTERS represent the TAG ID and 2
CHARACTERS are XOR of previous 10 CHARACTERS.
So DATA sent = 10ASCII DATA (tag no.) + 2ASCII DATA (XOR result)
Once the Information is sent, the MODULES stop sending DATA. This serial DATA received by the
controller though RX pin contains TAG information which is ready for processing. We can program the
controller to save the DATA or process it to provide response immediately.
Applications
Robotics
Security systems
Medical tags
Computer Peripherals
Package Identification
Theft protection systems
Data authorization
Unique Identity
Body implants
Triac MOC3021
MOC3021 Features and Specifications
Applications
AC Light dimmers
Strode lights
AC motor speed control
Noise coupling circuits
Controlling AC loads using MCU/MPU
Ac/DC Power control
TRIAC BT16
The BT16 is TRIAC with 16A maximum terminal current. The gate threshold voltage of the
BT16 is also very less so can be driven by digital circuits.
Since TRIACs are bi-directional switching devices they are commonly used for switching AC
applications. So if you looking to switch of control (dim, speed control) an AC load which
consumes less than 8A with a digital device like microcontroller or microprocessor then BT16
might be the right for you.
In this circuit the TRIAC can be turned using the switch, when the switch is pressed the TRIAC closes the
connection for the AC bulb though the AC mains. For this to happen, the gate pin of the TRIAC should receive
a voltage greater than the threshold gate voltage and should also get a current that is greater than gate trigger
current. This will make the TRIAC turn on.
Since the TRIAC and SCR share most of the same characteristics, just like SCR the TRIAC will also not turn
off when the gate voltage is removed. We need special type of circuit called commutation circuit to turn of the
SCR again. This commutation is normally done by reducing the load current (forced commutation) less than
the holding current. To put it simple the TRIAC will remain turned on only till the load current is greater than
the holding current of the TRIAC.
Note: Commutation is not required in AC switching circuits because the TRIAC will not latch in on state since
the AC voltage reaches zero for every half cycle.
Other than controlling through switch the BT16 can also be controlled through a microcontroller or a
microprocessor. To do this we need an Opto-isolator like MOC3021 to isolate the AC circuit form Digital
electronics. This way the Load can not only be switched but also the output coltage can be controlled by using
PWM signals for fast switching.
All TRIAC circuits suffer from an effect called Rate Effect. This occurs when the TRIAC is switching
frequently and a sudden high voltage occurs at either main terminal of the TRIAC and damages the TRIAC
itself. It can be avoided by using a snubber circuit.
Similarly there is another effect called backlash effect. This occurs due to the capacitance that gets
accumulated between the two terminals of the MT1 and MT2 of the TRIAC. Due to this the TRIAC will
not turn on even if the gate voltage is applied. This problem can be solved by providing a resistance in
series for the capacitance to discharge.
When controlling the output AC voltage for dimmer or speed control applications a Zero crossing
method is always recommended to be used.
In switching circuits the TRIAC is easily subjected to harmonics and EMI interference hence should
be isolated from other digital electronics.
There is chance of backward current when the TRIAC is switching inductive loads, so an alternate
discharge path has to be provided for the load to drain the inrush current.
Applications
AC Light dimmers
Strode lights
AC motor speed control
Noise coupling circuits
Controlling AC loads using MCU/MPU
Ac/DC Power control
Features
Flow Sensor
Huge industrial plants, commercial and residential buildings require a large amount of water
supply. The public water supply system is used to meet this requirement. To monitor the amount
of water being supplied and used, the rate of flow of water has to be measured. Water flow
sensors are used for this purpose.
Water flow sensors are installed at the water source or pipes to measure the rate of flow of water
and calculate the amount of water flowed through the pipe. Rate of flow of water is measured as
liters per hour or cubic meters.
Working Principle
Water flow sensor consists of a plastic valve from which water can pass. A water rotor along
with a hall effect sensor is present the sense and measure the water flow. When water flows
through the valve it rotates the rotor. By this, the change can be observed in the speed of the
motor. This change is calculated as output as a pulse signal by the hall effect sensor. Thus, the
rate of flow of water can be measured. The main working principle behind the working of this
sensor is the Hall effect. According to this principle, in this sensor, a voltage difference is
induced in the conductor due to the rotation of the rotor. This induced voltage difference is
transverse to the electric current.
When the moving fan is rotated due to the flow of water, it rotates the rotor which induces the
voltage. This induced voltage is measured by the hall effect sensor and displayed on the LCD
display.
Now, have a look at the maths behind this Arduino Sketch. In our lab experiment, we used one
YF-S201 water flow sensor bought from ebay (www.ebay.in ), and done the homework well
with observed readings (±10 accuracy). In order to measure the quantity of water being passed in
particular time through the water flow sensor it was first passed through the water flow sensor
which was taken as input interface in the flow. Formulas are applied in order to measure the
number of rotations/pulses in a minute of rotation.
Flow rate can be determined inferentially by different techniques like change in velocity or
kinetic energy. Here we have determined flow rate by change in velocity of water. Velocity
depends on the pressure that forces the through pipelines. As the pipe’s cross-sectional area is
known and remains constant, the average velocity is an indication of the flow rate.
The basis relationship for determining the liquid’s flow rate in such cases is
Q=VxA,
where Q is flow rate/total flow of water through the pipe, V is average velocity of the flow
and A is the cross-sectional area of the pipe (viscosity, density and the friction of the liquid in
contact with the pipe also influence the flow rate of water).
In other words:
Minimum and Maximum Input Voltage is 35V and -2V respectively. Typically 5V.
Can measure temperature ranging from -55°C to 150°C
Output voltage is directly proportional (Linear) to temperature (i.e.) there will be a rise of 10mV
(0.01V) for every 1°C rise in temperature.
±0.5°C Accuracy
Drain current is less than 60uA
Low cost temperature sensor
Small and hence suitable for remote applications
Available in TO-92, TO-220, TO-CAN and SOIC package
2 High/Low Ouput Digital pulse high (3.3V) when triggered (motion detected) digital
(Dout) low(0V) when idle(no motion detected
Sensor Features
Wide range on input voltage varying from 4.V to 12V (+5V recommended)
Output voltage is High/Low (3.3V TTL)
Can distinguish between object movement and human movement
Has to operating modes - Repeatable(H) and Non- Repeatable(H)
Cover distance of about 120° and 7 meters
Low power consumption of 65mA
Operating temperature from -20° to +80° Celsius
There are two important materials present in the sensor one is the pyroelectric crystal which can detect the heat
signatures from a living organism (humans/animals) and the other is a Fresnel lenses which can widen the
range of the sensor. Yes the white colour things is just a lense that is used to widen the range of the sensor, if
you remove the lense you can find the Pyroelectric sensor inside it covered inside a protective metal casing as
shown above.
Features
A photoresistor or LDR (Light Dependent Resistor), as the name suggests will change it resistance based on
the light around it. That is when the resistor is placed in a dark room it will have a resistance of few Mega
ohms and as we gradually impose light over the sensor its resistance will start to decrease from Mega Ohms to
few Ohms.
This property helps the LDR to be used as a Light Sensor. It can detect the amount of light falling on it and
thus can predict days and nights. So if you are looking for a sensor to sense light or to distinguish between
days and nights then this sensor is the cheap and modest solution for us.
Applications