Skip to content

Make: Electronics Book Experiment 10 – Transistors for switching and amplification

This post is part of a series in which I attempt to build experiments from Charles Platt’s excellent introductory electronics book Make: Electronics.

You can find an index of all the posts in this series here: Electronics Index.

In this post I learn about the component that revolutionised electronics – the transistor.

In a previous post I explored switches. They’re great components that allow a bit of human interaction with a circuit. But what do you do if you need to switch without human intervention? Well in another post I looked at relays, which do exactly that. This type of switch operates when we pass current through a relay coil. The problem with relays is that they’re elecromechanical, which means they’re prone to failure over a period of time.

And the other problem with them is they’re slow. Yes, in an analogue circuit, they seem to work instantly, but when we move on from analogue to digital electronics, we want switching to happen quickly. Theoretically you could build a computer out of relays, and people have done and it’s quite interesting (Check out this YouTube playlist for an example). But these computers are big and power hungry and ponderously slow.

So what happens when you want to switch things on and off but really fast and without all the other issues that come with using an electromechanical device? Well, then you’d use one of the wonders of modern electronics, a solid state switch, otherwise known as a transistor.

The first transistor cicruit in the book uses a type of transistor called an NPN transistor. It is encased in a small plastic body with three leads. The two outer leads are the collector and the emitter. The current flow we’re interested is the one between these two leads. That current flow is controlled by the middle lead, the base.

With an NPN type transistur, when a positive voltage is applied to the base then current will flow from collector to emitter. If there’s no positive voltage at the base then current will not flow.

In the first circuit. a momentary pushbutton switch connects the positive supply to the collector. The emitter is connected in series with an LED and a current limiting resistor. Another momentary pushbutton switch connects the positive supply to the base but via a large value resistor, so the current is quite small.

A first transistor circuit.

If I press only the button to supply power to the base, I do see a small glow in the LED. That’s because there is a small amount of leakage current between the base and the emitter. But because I’m not supplying current to the collector, we’re not getting a large current flow through the LED.

If I press only the button to supply power to the collector, the LED still does not light up. That’s because, at this point, there is no current to the base.

If, however, I press both buttons, I’m now supplying power to both the base and the collector and the LED lights up. As soon as I remove power to the base, the transistor switches off again and the LED goes out.

So, just as with the relay, to make it switch we had to supply power to the coil, with the transistor, to make it switch on, we need to supply power to the base.

Because the base supply is connected via a 100KΩ resistor, that means the current through the base is small, so effectively we have a small current controlling a much larger current. A similar property can be found in relays where a small current, enough to energise the relay coil, can be used to switch a much larger current through the relay contacts.

The ability of the transistor to work as a switch is the basis for digital electronics. The other useful thing a transistor can do is work as an amplifier and the book shows a second circuit to test this.

This is the same as the previous circuit except that the button switching power to the base has been removed, the 100KΩ resistor is now replaced with a 33KΩ resistor and this is now connected in series with a multimeter set up to measure current.

A circuit to measure current through the base of a transistor.

I used this circuit to measure the base current with three different resistor values. I then put the meter in series with the collector and measured the collector current with the same three resistors. Here are the results, along with the amplification factor (beta):

Base resistance (kΩ)

Base current (mA)

Collector-Emitter current (mA)

Beta

33

0.125

23.5

188

100

0.055

10.5

190.1

330

0.019

3.6

189.5

Given how close the amplification figures are to each other, this indicates a linear response in terms of amplification.

I now built the third circuit in the book. This was a modification of the previous circuit with the multimeter removed and the base resistor removed and replaced with a couple of unconnected wires with bare ends. I could use my finger to bridge the gap between the two wires and the current flowing into the base was enough to generate a sufficient collector-emitter current to light the LED.

A circuit demonstrating that the conductivity of my skin provides a base current that generates a sufficient collector-emiitter current to light an LED.

Because of the amplification factor, as I pushed down harder to provide a less resistive path for current to flow to the base, the LED become brighter.

The book now shows a circuit in which an LED is connected to the normally open terminal of a relay. The relay coil is powered by the collector-emitter current through a transistor, but the base current to the transistor is supplied via a switch and an RC circuit. If you viewed earlier posts in this series, you’ll know that an RC circuit takes a certain time to charge up based on the values of the resistor and capacitor.

A circuit in which an LED lighting up is delayed by using an RC circuit controlling the current to the base of a transistor, with that transistor;s collector-emitter current supplying the relay coil in a relay used to turn on the LED.

When the switch to supply power to the base is turned on, the LED doesn’t light up immediately because the slow charging of the RC circuit means it takes a while before there is sufficent collector-emitter current to energise the coil in the relay. With the fixed resistance I got a delay of about 1 second.

By adding a variable resistor in series with the fixed resistor I could control the length of the delay. To do this, the book suggests using a miniature potentiomer designed to be adjusted with a precision screwdriver. These are often referred to as trimpots as they are designed to fine tune or calibrate a circuit.

A circuit in which the length of the delay to turn on the LED is controlled using a trimpot.

I started with the variable resistor at its minimum setting, so it added no additional resistance and, as you might expect, I got a delay of about the same duration. But using the trimpot to add more resistance gives a longer delay. With the resistor at its maximum setting, I got a delay of around 15 seconds.

In the next post I build a circuit to generate flashing lights and siren sounds.

Published inAnalogue ElectronicsElectronics

2 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *