Posts Tagged ‘electric relay’

Transistors – Voltage Regulation Part VIII

Sunday, September 9th, 2012
     Back in the early 1970s my dad, a notorious tightwad, coughed up several hundred dollars to buy his first portable color television.  That was a small fortune back then.  The TV was massive, standing at 24 inches wide, 18 inches high, and 24 inches deep, and weighing in at about 50 pounds.  I think the only thing that made this behemoth “portable” was the fact that it had a carrying handle on top.

     A major reason for our old TV being so big and clunky was of course due to limitations in technology of the time.  Many large, heavy, and expensive electronic components were needed to make it work, requiring a lot of space for the circuitry.  By comparison, modern flat screen televisions and other electronic devices are small and compact because advances in technology enable them to work with far fewer electronic components.  These components are also smaller, lighter, and cheaper.

     Last time we looked at the components of a simple unregulated power supply to see how it converts 120 volts alternating current (VAC) to 12 volts direct current (VDC).  We discovered that the output voltage of the supply is totally dependent on the design of the transformer, because the transformer in our example can only produce one voltage, 12 VDC.  This of course limits the supply’s usefulness in that it is unable to power multiple electronic devices requiring two or more voltages, such as we’ll be discussing a bit further down.

     Now let’s illustrate this power supply limitation by revisiting our microprocessor control circuit example which we introduced in a previous article in this series on transistors. 

microprocessor control

Figure 1

 

     In Figure 1 we have to decide what kind of power to supply to the circuit, but we have a problem.  Sure, the unregulated power supply that we just discussed is up to the task of providing the 12 VDC needed to supply power for the buzzer, light, and electric relay.  But let’s not forget about powering the microprocessor chip.  It needs only 5 VDC to operate and will get damaged and malfunction on the higher 12 VDC the current power supply provides.  Our power supply just isn’t equipped to provide the two voltages required by the circuit.

     We could try and get around this problem by adding a second unregulated power supply with a transformer designed to convert 120 VAC to 5 VAC.  But, reminiscent of the circuitry in my dad’s clunky old portable color TV, the second power supply would require substantially more space in order to accommodate an additional transformer, diode bridge, and capacitor.  Another thing to consider is that transformers aren’t cheap, and they tend to have some heft to them due to their iron cores, so more cost and weight would be added to the circuit as well.  For these reasons the use of a second power supply is a poor option.

     Next time we’ll look at how adding a transistor voltage regulator circuit to the supply results in cost, size, and weight savings.  It also results in a more flexible and dependable output voltage.

____________________________________________

Transistors – Voltage Regulation Part V

Sunday, August 19th, 2012
     I’m sure you’ve seen the television commercials warning about harmful interactions between prescription medications.  By the same token electronic circuitry can also be adversely affected by certain combinations of electrical components, as we’ll discuss in today’s blog.

     Last time we looked at a circuit schematic containing an unregulated power supply.  This power supply was connected to an external supply circuit containing a number of components such as electric relays, buzzers, and lights.  Each of these components has a resistance factor, and combined they have a total resistance of RTotal.  We saw that when RTotal increases, the electrical current, I, decreases, and when RTotal decreases, I increases. 

     In contrast to this increasing/decreasing activity of the total resistance RTotal,  the fixed internal resistance of the unregulated power supply, RInternal, doesn’t fluctuate.  Let’s explore Ohm’s Law further to see how the static effect of RInternal  combines with the changing resistance present in RTotal to adversely affect the unregulated power supply output voltage, VOutput, causing it to fluctuate.

unregulated power supply circuit

Figure 1

 

     In Figure 1 RTotal and RInternal are operating in series, meaning they are connected together like sausage links.  In this configuration their two resistances add together as if they were one larger resistor.  

     Generally speaking, Ohm’s Law sets out that the current, I, flowing through a resistor in an electrical circuit equals the voltage, V, applied to the resistor divided by the resistance R, or:

I = V ÷ R

     In the case of the circuit represented in Figure 1, the resistors RInternal and RTotal are connected in series within the circuit, so their resistances must be added together to arrive at a total power demand.  Voltage is applied to these two resistors by the same voltage source, VDC.  So, for the circuit as a whole Ohm’s Law would be written as:

I = VDC ÷ (RInternal + RTotal)

     But, Ohm’s Law can also be applied to individual parts within the circuit, just as it can be applied to a single kitchen appliance being operated on a circuit shared with other appliances.  Let’s see how this applies to our example circuit’s RTotal next week.

____________________________________________

Transistors – Voltage Regulation Part IV

Sunday, August 12th, 2012
     We’ve all popped a circuit breaker sometime in our lives, often the result of making too heavy of an electrical demand in a single area of the house to which that circuit is dedicated.  Like when you’re making dinner and operating the microwave, toaster, mixer, blender, food processor, and television simultaneously.  The demand for current on a single circuit can be taxed to the max, causing it to pop the circuit breaker and requiring that trip to the electrical box to flip the switch back on.

      Last time we began our discussion on unregulated power supplies and how they’re affected by power demands within their circuits.  Our schematic shows there are two basic aspects to the circuit, namely, its direct current source, or VDC,  and its internal resistance, RInternal.  Now let’s connect the power supply output terminals to an external supply circuit through which electrical current will be provided to peripheral devices, much like all the kitchen gadgets mentioned above.

Figure 1

 

     The external supply circuit shown in Figure 1 contains various electronic components, including electric relays, lights, and buzzers, and each of these has its own internal resistance.  Combined, their total resistance is RTotal, as shown in our schematic.

     Current, notated as I, circulates through the power supply, through the external supply circuit, and then returns back to the power supply.  The current circulates because the voltage, VDC, pushes it through the circuit like pressure from a pump causes water to flow through a pipe.

     RTotal and I can change, that is, increase or decrease, depending on how many components the microprocessor has turned on or off within the external supply circuit at any given time.  When RTotal increases, electrical current, I, decreases.  When RTotal decreases, electrical current I increases. 

     Next time we’ll continue our discussion on Ohm’s Law, introduced last week, to show how the static effect of RInternal  interacts with the changing resistance present in RTotal to adversely affect an unregulated power supply’s output voltage.

____________________________________________

Transistors – Voltage Regulation Part III

Tuesday, August 7th, 2012
     When my daughter was seven she found out about Ohm’s Law the hard way, although she didn’t know it.  She had accidentally bumped into her electric toy train, causing its metal wheels to derail and fall askew of the metal track.  This created a short circuit, causing current to flow in an undesirable direction, that is, through the derailed wheels rather than along the track to the electric motor in the locomotive as it should.

    What happened during the short circuit is that the bulk of the current began to follow through the path of least resistance, that of the derailed wheels, rather than the higher resistance of the electric motor.  Electric current, always opportunistic, will flow along its easiest course, in this case the short, thick metal of the wheels, rather than work its way along the many feet of thin metal wire of the motor’s electromagnetic coils.  With its wheels sparking at the site of derailment the train had become an electric toaster within seconds, and the carpet beneath the track began to burn.  Needless to say, mom wasn’t very happy.

     In this instance Ohm’s Law was at work, with a decidedly negative outcome.  The Law’s basic formula concerning the toy train would be written as:

I = V ÷ R

where, I is the current flowing through the metal track, V is the track voltage, and R is the internal resistance of the metal track and locomotive motor, or in the case of a derailment, the metal track and the derailed wheel.  So, according to the formula, for a given voltage V, when the R got really small due to the derailment, I got really big.

     But enough about toy trains.  Let’s see how Ohm’s Law applies to an unregulated power supply circuit.  We’ll start with a schematic of the power supply in isolation.

Figure 1

     The unregulated power supply shown in Figure 1 has two basic aspects to its operation, contained within a blue dashed line.  The dashed line is for the sake of clarity when we connect the power supply up to an external circuit which powers peripheral devices later on.  The first aspect of the power supply is a direct current (DC) voltage source, which we’ll call VDC.  It’s represented by a series of parallel lines of alternating lengths, a common representation within electrical engineering.

     And like all electrical components, the power supply has an internal resistance, such as discussed previously.  This resistance, notated RInternal, is the second aspect of the power supply, represented   by another standard symbol, that of a zigzag line.

     Finally, the unregulated power supply has two output terminals.  These will connect to an external supply circuit through which power will be provided to peripheral devices.  Next time we’ll connect to this external circuit, which for our purposes will consist of an electric relay, buzzer, and light to see how it all works in accordance with Ohm’s Law.

____________________________________________

Transistors – Voltage Regulation Part II

Sunday, July 29th, 2012
     I joined the Boy Scouts of America as a high schooler, mainly so I could participate in their Explorer Scout program and learn about electronics.  I will forever be grateful to the Western Electric engineers who volunteered their personal time to stay after work and help me and my fellow Scouts build electronic projects.  The neatest part of the whole experience was when I built my first regulated power supply with their assistance inside their lab.  But in order to appreciate the beauty of a regulated power supply we must first understand the shortcomings of an unregulated one, which we’ll begin to do here.

     Last time we began to discuss how the output voltage of an unregulated power supply can vary in response to power demand, just as when sprinklers don’t have sufficient water flow to cover a section of lawn.  Let’s explore this concept further.

Figure 1

 

     Figure 1 shows a very basic representation of a microprocessor control system that operates three components, an electric relay (shown in the blue box), buzzer, and light.  These three components have a certain degree of internal electrical resistance, annotated as RR, RB, and RL respectively.  This is because they are made of materials with inherent imperfections which tend to resist the flow of electric current.  Imperfections such as these are unavoidable in any electronic device made by humans, due to impurities within metals and irregularities in molecular structure.  When the three components are activated by the microprocessor chip via field effect transistors, denoted as FET 1, 2 and 3 in the diagram, their resistances are connected to the supply circuit.

     In other words, RR, RB, and RL create a combined level of resistance in the supply circuit by their connectivity to it.  If a single component were to be removed from the circuit, its internal resistance would also be removed, resulting in a commensurate decrease in total resistance.  The greater the total resistance, the more restriction there is to current flow, denoted as I.  The greater the resistance, the more I is caused to decrease.  In contrast, if there is less total resistance, I increases.

     The result of changing current flow resistance is that it causes the unregulated power supply output voltage to change.  This is all due to an interesting phenomenon known as Ohm’s Law, represented as this within engineering circles:

V = I × R

where, V is the voltage supplied to a circuit, I is the electrical current flowing through the circuit, and R is the total electrical resistance of the circuit.  So, according to Ohm’s Law, when I and R change, then V changes.

     Next time we’ll apply Ohm’s Law to a simplified unregulated power supply circuit schematic.  In so doing we’ll discover the mathematical explanation to the change in current flow and accompanying change in power supply output voltage we’ve been discussing.   

____________________________________________

Transistors – Voltage Regulation

Sunday, July 22nd, 2012
     Electrical voltage flow and water flow have a lot in common.  They’re both affected by fluctuations in supply, fluctuations which can adversely impact both performance and equipment integrity.  Take for example a sprinkler that fails to cover a designated section of lawn due to heavy neighborhood demand.  Everybody wants to water on the weekend when it’s been 90 degrees all week, and low water pressure is the result.  There are times when it’s hard to get a glass of water.  By contrast in the winter months, when water demands tend to be lower, water supplies are plentiful.  This scenario of varying water pressure is analogous to what sometimes occurs within electric circuits.

     In my previous blog article on wall warts, I described the operation of a simple power supply consisting of a transformer, diode bridge, and capacitor.  Together, these components converted 120 volts alternating current (VAC) to 12 volts direct current (VDC).  The wall wart power supply is fine for many applications, however it is unregulated, meaning if there are any sudden surges in power, such as spikes or dips caused by lightning strikes or other disturbances on the electric utility system, there could be problems.

     Take for example a power supply that is used in conjunction with sensitive digital logic chips, like the one used in my x-ray film processor design shown in my last blog article.  These chips are designed to run optimally on a constant voltage, like 5 VDC, and when that doesn’t happen input signals can fail to register with the computer program and cause a variety of problems, such as output signals turning on and off at will.  In the film processor the drive motor may start at the wrong time or get stuck in an on modality.  If power surges are high enough, microprocessor chips can get damaged, compromising the entire working unit.

     The output voltage of an unregulated power supply can also vary in response to power demand, just as when sprinklers don’t have sufficient water flow to cover a section of lawn.  Demand for power can change within a circuit when electrical components like relays, lights, and buzzers are turned on and off by digital logic chips.

     Next time we’ll take a look at a basic concept of electrical engineering known as “Ohm’s Law” and how it governs the variable output voltage response of unregulated power supplies.

____________________________________________

Transistors – Digital Control Interface, Part V

Sunday, July 15th, 2012
     ­­­­­Last time we looked at my electric relay solution to a problem presented by a 120 volt alternating current (VAC) drive motor operating within an x-ray film processing machine.  Now let’s see what happens when we press the button to set the microprocessor into operation. 

 electronic control

Figure 1

 

     Figure 1 shows that when the button is depressed, the computer program contained within the microprocessor chip goes into action, signaling the start of the control initiative.  5 volts direct current (VDC) is supplied to Output Lead 2, and FET 2 (Field Effect Transistor 2) becomes activated, which allows electric current from the 12 VDC supply to course into the 12 VDC electric relay, through the relay’s wire coil, then conclude its travel into electrical ground.

     The electric relay components, including a wire coil, steel armature, spring, and normally open (N.O.) contact, are shown within a blue box in our illustration.  Current flow is represented by red lines.  The control initiative passes from the microprocessor to FET 2, and then to the 12 VDC electric relay, just as the Olympic Torch is relayed through a system of runners.

     We learned in one of my previous articles on industrial control that when an electric relay coil is energized, electromagnetic attraction pulls its steel armature towards the wire coil and the N.O. electrical contact.  In Figure 1 this attraction is represented by a blue arrow.  With the N.O. contact closed the drive motor is connected to the 120 VAC input, and the motor is activated.

microprocessor control

Figure 2

 

     Figure 2 shows what happens after the button is depressed.  The computer program is activated, directing the microprocessor chip to keep 5 VDC on Output Lead 2 and FET 2 while the prerequisite 40 minutes elapses.  Thus the relay remains energized and the motor remains on during this time.

MOSFET

Figure 3

 

     In Figure 3, at the end of the 40 minute countdown, the computer program applies 0 VDC to Output Lead 2.  FET 2 then turns off the current flow to the relay and it begins to de-energize, causing the spring to pull the steel armature away from the N.O. contact and the 120 VAC power supply to be interrupted.  The motor is deactivated.

     At the same time, the computer program applies 5 VDC to Output Lead 1 and FET 1 for 2 seconds.  FET 1 turns on the flow of current through the buzzer, causing it to sound off and signal that the x-ray film processing machine is ready for use.

     Next time we’ll look at how transistors are used to regulate voltage within direct current power supplies like the one shown in Figure 3 above.

____________________________________________

Transistors – Digital Control Interface, Part IV

Monday, July 9th, 2012
     The Olympic Torch relay, soon to culminate in London, is the grand daddy of all relays, starting in one country, traversing many others, then ending its journey at the site of the Olympic Games.  It passes through many athletes’ hands while on its journey, its final purpose being to light the Olympic Flame.  Less glamorous, though still useful, is the relay race that often takes place within digital controls.

      Last time we looked at my design solution for the control of a microprocessor controlled medical x-ray film developing machine, where a field effect transistor (FET) acted as a digital control interface between a 5 volt direct current (VDC) microprocessor and a 12 VDC buzzer.  Well, controlling the buzzer wasn’t the only function of the microprocessor.  It also had to control a 120 volt alternating current (VAC) drive motor, the purpose of which was to move x-ray film through a series of processes within the machine.  Yet another requirement was that the machine’s drive motor run 40 minutes upon activation by a start button, then shut off.

     One of the challenges presented by this specification was that an FET standing alone is only suited to control direct current devices like the buzzer, but not alternating current devices like electric motors.  Direct current flows in one direction only when traveling through wire, and since an FET can only pass current in one direction it is the perfect match for those applications.  

     Now, as the name would imply, alternating current flow alternates, that is, it reverses direction and varies in intensity many times each second.  This is a scenario that FETs are not equipped to handle because they can’t deal with reverse flow.  This meant that, for the purpose of my developing machine, I could not use an FET to directly control the 120 VAC motor.  Now let’s take a look at Figure 1 to get a basic look at how I solved the problem.

microprocessor electric relay control

Figure 1 

 

     Figure 1 shows not one, but two green FET’s, each branching off from the microprocessor chip.  We’ll call them FET 1 and FET 2.  If you recall from last time, the buzzer works on 12 VDC, so FET 1 works well as a direct interface between it and the microprocessor chip.  But in the case of FET 2 we need an intermediary device to handle the alternating current motor.  That device is a 12 VDC electric relay.

     In an earlier blog series on industrial controls I discussed how electric relays use electromagnets to power light bulbs and motors on and off in response to someone pressing a button on a control panel.  We have very much the same mechanics at play in our developing machine.  The relay will power the motor on and off in response to the computer program running within the 5 VDC microprocessor, a programming sequence that is initiated by someone pressing a button. 

     To get the motor control to work in the machine, the gate (G) of FET 2 is connected to another output lead on the microprocessor.  We’ll call that Output Lead 2.  Then, the source (S) of FET 2 is connected to the wire coil in the relay.  To tap into the power source for the relay, the drain (D) of FET 2 is connected to the 12 VDC supply.   Finally, the other end of the relay coil is connected to electrical ground.

     Next time we’ll activate the pushbutton and see how the control initiative passes along a path in a manner reminiscent of the flame in an Olympic Torch relay, but here it passes between the microprocessor, the FET and electrical relay, culminating in power to the drive motor.

 ____________________________________________

Transistors – Digital Control Interface, Part III

Sunday, July 1st, 2012
     When I was in engineering school in the mid 1970s microprocessor chips were still a fairly new concept.  Scientific calculators were the size of a brick back then, and they weighed almost as much, and there were no personal computers.

     I remember doing homework on the UNIVAC 1108 mainframe computer at school.  To program it I had to sit at a monster of a keypunching machine for which I punched an endless array of holes into paper cards.  These holes acted as the programming logic to instruct the computer what functions to perform.  The 1108 computer’s mainframe was so huge it was housed in an adjoining room the size of a house.  Since the 1980s advances in microprocessor technology have increased computing power and dramatically reduced the size of components, making things like laptops, smart phones, and sophisticated electronic products possible.

     Last time we began looking at my design solution for the control of a machine which developed medical x-ray film and made use of a microprocessor chip to automate its operation.  A field effect transistor (FET) acts as a digital control interface between its 5 volt direct current (VDC) microprocessor and a 12 VDC buzzer.  Figure 1 shows what happens when someone presses the button to put everything into action and the microprocessor starts timing. 

 microprocessor control using a MOSFET

Figure 1

 

     With the button depressed the chip senses 5 VDC from the power supply on its input lead.  This in turn signals the computer program to turn the product on.  The program then begins counting down the minutes, all the while maintaining a 0 voltage output from the chip’s output lead.  With no voltage present on its G lead, the FET does not permit electrical current to flow from the 12 VDC supply, through the buzzer, through D and S, and down to electrical ground.  The buzzer remains silent.

Field Effect Transistor

Figure 2

 

     Figure 2 shows what happens when the program begins its 40-minute warming sequence.   The chip raises the output lead voltage to 5 VDC and applies it to G, then the FET permits electric current to flow through it to ground from the 12 VDC supply and the buzzer.  Now supplied with power, the buzzer sounds.  Then, per programming instructions, after 2 seconds the program shuts off the voltage in the chip’s output lead, current is cut off, and the buzzer goes silent.

     Next time we’ll see how an FET can be used as an interface between a microprocessor and another higher powered device, that of a 120 VAC motor that’s used to move x-ray film through a series of processes within the developer.

____________________________________________

Transistors – Digital Control Interface, Part I

Monday, June 18th, 2012
     In the navy, the captain is the brains behind a ship’s operations.  He gathers information, makes important decisions, then issues orders.  He’s not there to roll up his sleeves and swab the decks.  The captain relies on the ship’s officers to act as an interface between himself and the sailors that perform the physical labor required on deck.

     In this article we’ll see how the FET, that is, the field effect transistor, performs much the same role as the ship’s officers when it is used within electronic controls.  There it acts as an interface between electronic components that issue commands and the electrical devices that carry them out.

     Last week we became familiar with field effect transistors and how their control of electrical current flow is analogous to how a faucet controls the flow of water.  Although FETs can be used to vary the flow of current, they’re usually employed to perform a much simpler task, that of simply turning flow on or off, with no in-between modality.

     Like the captain of a ship, microprocessor and logic chips are the brains behind the operation in all sorts of industrial and consumer electronics.  Figure 1 shows a few of them.

Digital Chips

Figure 1

 

     The chips, which operate on low voltage, contain entire computer programs within them that gather information, make decisions, then instruct the higher voltage devices like motors, electrical relays, light bulbs, and audible alarms to follow.  By “information,” I mean data signals received by the chip from its input connections to sensors, buttons, and other electrical components.  This data informs the chip’s computer program of important operational information, like whether buttons have been pressed, switches are activated, and temperatures are normal.  Based on this data, “decisions” are made by the chip using the logic contained within its program, then, depending on the decisions made, “commands” are issued by the chip.  The commands, in the form of electrical output signals, are put into action by the work horses, the higher voltage devices.  They, like a ship’s sailors, perform the actual physical work.

     There is one problem presented by this scenario, however.  The electric output signals from the lower voltage chips are not suited to directly control the higher voltage devices because the signal voltage put out by the chips is too low.  Even if the chip was designed to work at a higher voltage, the high level of current drawn by the motors, relays, and bulbs would lead to damage of the delicate circuitry within the chip.  The chips must therefore rely on the FET to act as a digital control interface between them and the higher voltage devices, much as the ship’s captain depends on his subordinates to carry out his orders.

     Next week we’ll look at a real life example of how a digital interface is put into operation within an industrial product.

____________________________________________