ROBOTICS Module: Switches: Pull-Up Pull-Down Relay As A Switch Transistor As A Switch
ROBOTICS Module: Switches: Pull-Up Pull-Down Relay As A Switch Transistor As A Switch
Switches:
• Pull-up
• Pull-down
• Relay as a switch
• Transistor as a switch
Switch
Simple switch has an open state and a
closed state.
A switch requires a pull-up or pull-down
resistor to produce a definite high or low
voltage when it is open or closed.
Their function is the same, to create a
default value for a circuit, but one pulls the
line high, the other pulls it low.
Pull-up
Pull-up
The pull-up term is used when the resistor connects the pin
to the +
The key function for the resistor itself is to prevent too much
current from flowing through the pull-up circuit.
• If the load is a motor, relay or solenoid (or any other device with a
coil) a diode must be connected across the load to protect the
transistor from the brief high voltage produced when the load is
switched off.
• The diagram shows how a protection diode is connected
'backwards' across the load, in this case a relay coil.
• Current flowing through a coil creates a magnetic field which
collapses suddenly when the current is switched off. The sudden
collapse of the magnetic field induces a brief high voltage across the
coil which is very likely to damage transistors and ICs.
• The protection diode allows the induced voltage to drive a brief
current through the coil (and diode) so the magnetic field dies away
quickly rather than instantly. This prevents the induced voltage
becoming high enough to cause damage to transistors and ICs.
TRANSISTOR AS A SWITCH
The bipolar transistor ,whether NPN or PNP, may be used as
a switch.
When used as a switch, the bipolar transistor is operated in
the cut-off region (the region wherein the transistor is not
conducting, and therefore makes the circuit 'open') and
saturation region (the region wherein the transistor is in full
conduction, thereby closing the circuit).
When a transistor is used as a switch it must be either OFF or
fully ON. In the fully ON state the voltage VCE across the
transistor is almost zero and the transistor is said to be
saturated because it cannot pass any more collector current
Ic. The output device switched by the transistor is usually
called the 'load'.
TRANSISTOR AS A SWITCH
The procedure explains how to choose a suitable switching transistor.
1) The transistor's maximum collector current Ic(max) must be greater
than the load current Ic.
load current Ic = supply voltage Vs
load resistance RL
2) The transistor's minimum current gain h FE(min) must be at least five
times the load current Ic divided by the maximum output current from
the IC.
hFE(min) > 5 × load current Ic
max. IC current
3) Choose a transistor which meets these requirements and make a note of
its properties: Ic(max) and hFE(min).
4) Calculate an approximate value for the base resistor:
RB = Vc × hFE where Vc = IC supply voltage
5 × Ic (in a simple circuit with one supply this is Vs)
5) For a simple circuit where the IC and the load share the same power
supply (Vc = Vs) you may prefer to use:
RB = 0.2 × RL × hFE
6) Then choose the nearest standard value for the base resistor.
7) Finally, remember that if the load is a motor or relay coil a protection
diode is required.