This document is displayed in one window, without navigation, for easy printing.

Print | Close Window

List All Datasheets

In each of the data sheets, a diagram is used to show the type of unit and the kind of signals that come into it and go out from it.

Types of signals

Input Sensors – detect changes outside the electronic system

Input Unit

555 Astable
Turns something on, and then off, and keeps repeating this.

Debounced Switch
Produces a switch that produces a sharp change from low to high, suitable for use with a counter.

Hall Effect Sensor
The Hall effect sensor produces an output sighnal that changes when a magnet is near.

Infrared photo module
This unit is used for remote control using infrared over a distance of up to about 10m. Depending on the circuit details, it can provide simple on-off operation, or it can receive data from a hand-held remote control or a PIC.

Keypad
A keypad is used for data entry. It needs to be used with a PIC.

Light Sensor
The light sensor is used to detect changes in the amount of light in its surroundings.
Linear temperature sensor
Linear temperature sensors are used to monitor temperature accurately. They are particularly useful with PICs which have an analogue to digital converter.
Moisture sensor
The moisture sensor is used to detect changes in the wetness of its surroundings.
Movement sensor
The movement sensor is a switch. It is 'on' (closed) if the sensor is not moved. With the circuit arrangement suggested this gives a low output signal. If the sensor is moved (accelerated) the switch opens and the signal goes high.
Optoswitch
There are two types of optoswitch - the slotted optoswitch and the reflective optoswitch. Both are used to detect nearby objects. The slotted optoswitch detects when an object is in the slot. The reflective optoswitch detects when a reflective object is near the optoswitch.

Photodetector
Photodectors are semiconductor devices which respond to light. They can replace light dependent resistors and have the advantage of lower pollution and smaller size.

Pulse Unit
Turns something on, and then off, and keeps repeating this.
Quantum Tunnelling Composite
QTC comes in the form of sheet, 'pills' and cable. QTC sheet can be used to make very low cost touch switches that can be placed on the case of products. QTC 'pills' can be used to produce low cost force/pressure sensors whose resistance varies with the applied force.
Reed Switch / Proximity Switch
The reed switch is used to detect the presence of a magnet.

Rotation Sensor / Voltage Unit
The rotation sensor uses a potentiometer to sense rotation. It can also be used to produce a variable voltage.

Sound Sensor
The sound sensor provides an output signal voltage that responds to sound detected by a microphone. It will only respond to loud sounds.
Switch Unit
The switch subsystem provides a switch that closes when pressed. The output signal from the switch subsystem goes high when the switch is pressed.
Temperature Sensor (Thermistor)
The temperature sensor is used to detect changes in the temperature of its surroundings.
Tilt Switch
The tilt switch is ued to detect movement.

Go to Top

Process Units – change the electronic signals

555 Monostable
The 555 monostable subsystem provides an output signal that is triggered high for a period of time before returning to low.
AND Gate
Makes something happen when both inputs are activated.
CMOS Integrated Circuits
CMOS integrated circuits are widely used as Process units.
Comparator
The comparator provides a large change in signal when the input signal only changes slightly and converts an analogue signal into a digital signal. It 'compares' the voltage input signal and the voltage from a potentiometer.
Counter
The counter subsystem counts the number of signal pulses connected to its clock input.
Delay
The delay subsystem produces a delay after the input signal goes high.
Difference Amplifier (or Subtractor)
The difference amplifier is used with two analogue input signals. It gives an analogue output signal which is proportional to the difference between the two input voltages.
Exclusive OR Gate (XOR/EOR)
Makes something happen when either, but not both, inputs are activated.
Inverter (NOT Gate)
The inverter subsystem, also know as a NOT gate, provides an output signal which is opposite to the input signal. When the input signal is high, the output signal is low, and vice versa.
NAND Gate
Turns something off when both inputs are activated.
Negative Latch
The negative latch produces an output signal that goes high and remains high when the input signal has been low. It is useful for turning something on until a second signal switches it off.
Non-Inverting Amplifier
The non-inverting amplifier subsystem is used to amplify an analogue input signal.
NOR Gate
Turns something off when either input is activated.
OR Gate
Turns something on when either input is activated.
PIC Microcontrollers
PIC microcontrollers are general purpose programmable process units.
Positive latch
The positive latch produces an output signal that goes high and remains high when the input signal has been high. It is useful for turning something on until a second signal switches it off.
Retriggerable Monostable
The retriggerable monostable subsystem produces a delay after the input signal goes high.
Schmitt Inverter
The Schmitt inverter subsystem, also known as a Schmitt NOT gate, provides an output signal which is opposite to the input signal. The Schmitt inverter is ideal for converting analogue signals into digital signals.
Summing Amplifier
The summing amplifier subsystem is used to add two analogue input signals together.

Go to Top

Driver Units – boost the power from process units

Darlington Driver
The Darlington driver subsystem is an electronic switch that provides an output signal powerful enough to drive output subsystems requiring high current.

L293D Driver
The L293D driver subsystem is particularly useful for use with d.c. motors because it can control two motors and can drive them forwards and backwards.
MOSFET (Transducer Driver)
The MOSFET driver subsystem is an electronic switch that provides an output signal powerful enough to drive output subsystems requiring very high current.
Relay
The relay subsystem is an electrically-operated switch. It requires a separate electrical supply to provide power to an output device. It is often used for reversing motors.
Thyristor
The transistor driver subsytem is an electronic switch that provides an output signal powerful enough to drive output subsytems requiring medium current.
Transistor
A thyristor is used to drive a load. It is switched on by applying a positive voltage to its input pin (the 'gate').

Go to Top

Output Devices – make something happen outside the electronic system

7 Segment Display
The 7-segment display is used to display numbers.
Bar Graph Display
A bargraph display is usually used to give a visual indication of an analogue voltage signal.
Bulb (or Lamp)
The bulb subsystem converts the input signal into light.
Buzzer (and Piezo sounder)
The buzzer subsystem produces an audible tone when powered.
LED
The LED (light-emitting diode) subsystem converts the input signal into light.
Liquid Crystal Display (LCD)
Liquid crystal displays are very useful for displaying both text and numbers. They display information sent from a PIC.
Loudspeaker
Loudspeakers are used to produce sounds.
Motor
The motor subsytem provides rotational motion when powered.
Piezo Transducer
Piezo transducers are used to produce sounds.
Servo Motor
Servo motors turn through a precise angle. They are controlled by a series of pulses. The width of the pulses to the servo motor controls the angle through which it turns.
Solenoid
The solenoid subsystem provides linear motion.
Sound and Music
Units are available that will play a variety of tunes and interesting sounds and that record and replay sounds.
Stepper Motor
A stepper motor turns through precise steps. So it is useful for moving things through an exact angle or distance.

We are grateful to New Wave Concepts for permission to adapt these data sheets based on their own data sheets for Control Studio software.

Go to Top

Other Subsystems and Components

Alternative Power Sources

Battery
Batteries are used to provide electrical power to portable electronic systems.
Capacitors - Component
Capacitors store electrical charge. They are often used for reducing 'noise' on a voltage or for controlling timing operations.
Resistor - Component
Resistors resist the flow of electricity. They are used in a wide variety of electronic subsystems to regulate current and control voltage.
Voltage Regulator
Voltage regulators are used to produce a stable power supply voltage (+Vs) from a higher (varying) d.c voltage. They can also be used to limit the current supplied.

Go to Top

Notes on Combining Subsystems from data sheets

555 Astable - Input Unit

What does it do?

Turns something on, and then off, and keeps repeating this. Input Unit

How does it operate?

The 555 Astable provides an output signal that is high, then low, then high, low...
The time between the signal going from high to low and going from high to low again can be controlled by the values of two resistors.

Low Frequency pulses

low frequency pulses

High Frequency pulses

High Frequency pulses

555 astable circuit
555 astable circuit

Click on the circuit diagram to download a Livewire file of the 555 Astable that you can investigate and add to your own circuit.

The 555 astable is based on the 555 timer IC.

The time that the output signal is high, known as the mark of the pulse, can be calculated:

Time high = 0.693 x (R1 + R2) x C

where R is in M ohms and C is in µF. So, if C = 10µF, R1 + 100k and R2 = 150k, the output signal is high for about 1.7 seconds.

The time that the output signal is low, known as the space of the pulse, can also be calculated:

Time low = 0.693 x R2 x C

So, if C = 10µF and R2 = 150k, the output signal is low for about 1.7 seconds, and the total time period (the time for one complete cycle) is 1 + 1.7 = 2.7 seconds.

There is one quite subtle point to watch with a 555. Nearly all the digital process ICs discussed on this web site are 4000 series CMOS devices. The 555 timer is not in this family and there can be problems in mixing families. In particular, a 4000 CMOS device with a supply voltage of 5V needs an input signal voltage of at least 3.5V to guarantee that it is recognised as a logic '1' or 'high'.

However, at the same supply voltage, a 555 produces an output signal voltage of typically 3.3V, and it can be as low as 2.75V. In other words, the 'high' from a 555 may not be recognised as a 'high' if it is fed to a 4000 series process subsystem.

The safest way to deal with this is to use a CMOS version of the 555 e.g. the ICM7555 (which is more expensive) or a pulse unit – which uses 4000 series CMOS.

A mark : space ratio is the ratio of the ‘mark’ time to the ‘space’ time.

From these two calculations we can obtain the frequency (the number of oscillations per second) of the pulse generated by the 555 astable:

further 555 info

So, if C = 10µF, R1 = 100k and R2 = 150k, the frequency is 0.36 Hz (which is 1/2.7s).

The 555 timer IC works with a d.c. power supply with a voltage between 4.5V and 16V. The 555 timer is able to provide an output current of 100mA and can therefore drive low and medium current output devices directly.

Capacitor types
Ceramic disc capacitors should not be used for the timing capacitor C. They are not sufficiently stable in capacitance to operate properly for timing. Suitable capacitor types are: silver mica, mylar, polycarbonate, polystyrene, tantalum, or similar types.

Possible applications

Making

Pins of 555 timer

Pins of 555 timer IC

How part of the PCV might look

Use a Dual In Line (DIL) socket for the IC. Before inserting the IC, connect the power supply and use a voltmeter to check that the voltage on pin 1 is low (0V) and the voltage on pins 4 and 8 is high (the supply voltage).

Connect the negative lead of the capacitor to 0V. Insert the IC the right way round.

Testing

Make sure that the signal going out (on the green PCB track) changes from high to low and that the time period is correct.

Fault finding

If there is a fault, check that:

If there is a fault, check the tracks and solder joints.

Alternatives

Web links

Return to list of datasheets

Go to Top

Debounced Switch - Input Sensor

What does it do?

Provides a switch that produces a sharp change from low to high, suitable for use with a counter.

How does it operate?

Whenever a mechanical switch (such as a push switch, slide switch, microswitch or reed switch) is pressed, the switch contacts will bounce, producing several very quick on and off signals. Each of these signals would be counted by a counter subsystem.

To overcome this, a debouncing circuit is used to produce a clean output signal from the switch.

NB: the graph is purely illustrative and shows stylised bounce patterns


Possible debounced switch circuit

Click on the circuit diagram to download a Livewire file of the debounced switch that you can investigate and add to your own circuit.

The debounced switch circuit uses a push-to-make (PTM) switch:

A capacitor along with a pair of Schmitt triggers are used to clean the signal.

Schmitt triggers are logic gates that have both an upper and a lower threshold level.

This ability of the Schmitt trigger to switch on and off at different voltage levels is known as hysteresis.

Possible Actions

Making

Pins of 40106B Schmitt inverter


How part of the PCB might look

The PCB shows the basic circuit. Several gates in the IC are not used in this simple design; they can be applied in other subsystems. Any unused input pins should be connected to 0V or Vs, to prevent damage by static electricity.

Use a Dual In Line (DIL) socket for the IC. Before inserting the IC, connect the power supply and use a voltmeter to check that the voltage on pin 7 is low (0V) and the voltage on pin 14 is high (the supply voltage).

Connect the negative lead of the capacitor to 0V. Insert the IC the right way round.

Testing

Make sure that the signal going out (on the green PCB track) changes from low to high when the switch is pressed.

Fault finding

If there is a fault, check that:

If there is a fault, check the tracks and solder joints.

Alternatives

Web links

Return to list of datasheets

Go to Top

Hall Effect Sensor - Input Unit

What does it do?

The Hall effect sensor produces an output signal that changes when a magnet is near.




How does it operate?

 

 

 

 

 

Hall effect sensor circuit

There is no symbol for a Hall effect
sensor in Livewire or Circuit Wizard.
The sensor’s action can be simulated with a potential divider.

The Hall effect sensor senses the ‘magnetic field’ (the field near a magnet or around a wire carrying a current).

These notes apply to the Allegro A1301 (Rapid order code 82-1020) Hall effect sensor.

The supply voltage needs to be in the range 4.5 to 6.0V.

The output signal voltage from the sensor changes in proportion to the magnetic field.

If there is no magnetic field, the output signal voltage is equal to half the supply voltage.

If a south magnetic pole (or face) of a magnet is brought next to the front face of the sensor the output signal voltage increases. A north magnetic pole (or face) decreases the output signal voltage.

The rate of change of the output signal voltage with magnetic field is typically 2.5 V per tesla

If the signal from the Hall effect sensor is to be used with a digital system then the analogue signal from the sensor needs to be fed to a comparator.

Possible applications

Making

Pins of Hall effect sensor


How part of the PCB might look

Testing

Make sure that the signal going out (on the green PCB track) changes from half of the value of +Vs (the supply voltage) when a magnet is brought near.

Fault finding

If there is a fault, check that:

If there is a fault, check the tracks and solder joints.

Alternatives

Web links

Return to list of datasheets

Go to Top

Infrared photo module - Input Unit

What does it do?

This unit is used for remote control using infrared over a distance of up to about 10m. Depending on the circuit details, it can provide simple on-off operation, or it can receive data from a hand-held remote control or a PIC.

How does it operate?

IR circuit

Circuit for detecting any IR pulses

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit. The infrared photo module in the Livewire circuit is a socket with the same pin arrangements as the actual detector, not a functioning detector.

Hand-held infrared remote controls used for TV, hi-fi’s etc. send out bursts of pulses of infrared at 38kHz.

Infrared photo modules are specially ‘tuned’ to pick up these pulses.

These remote controls produce bursts of pulses of infrared at 38kHz. When the detector receives these, its output signal falls to 0V i.e. a digital low (when there are no infrared pulses the signal from the detector is a digital high). The other components in the circuit smooth out the bursts, so the output signal from the subsystem stays low while any button on the remote control is pressed.

The output signal can be fed to a further subsystem, such as a PIC or a CMOS 4000B IC.

Infrain circuit


 

 

 

 

Circuit for use with Sony IR remote control

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit. The infrared photo module in the Livewire circuit is a socket with the same pin arrangements as the actual detector, not a functioning detector.

The circuit on the left uses the same infrared photo module, but it is able to receive data (not just a single on/off signal) and needs to be linked to a PICAXE microcontroller.

The signal can come from either a Sony TV remote control, or it can be generated by a PICAXE 08M microcontroller.

A special command called ‘InfraIn’ in PIC Logicator and PICAXE Program Editor is used to check the data. The InfraIn command waits until it receives a code from the infrared detector. This happens when a button is pressed on the TV remote control (or a code is sent from a PICAXE 08M). So pressing different buttons on the TV remote can give different results on the receiving PIC.
Full details of the operation of this system are given on this web site.

Two infrared photo modules are available. They are almost identical except for the voltage supply they require.

The HRM138BB5100 operates reliably with a supply voltage in the range 2.7V to 5.5V and so is suitable for battery operation. The HRM538BB5100 is a few pence cheaper but needs a supply voltage in the range 4.5V to 5.5V and so is only suitable for use with a 5V power supply.

The HRM138BB5100 is available from Rapid Electronics (order code 55-0902). The HRM538BB5100 is available from Rapid Electronics (order code 55-0901) and from Revolution Education (order code LED020). It is also in the Revolution AXE040 kit (which includes a Sony IR TV remote control).

Possible applications

Making


Pins of IR photo module


How part of the PCB for the circuit for detecting any IR pulses might look

Testing

To test the circuit for detecting any IR pulses, make sure that the signal going out (on the green PCB track) is high when no IR signal is being transmitted, and goes low when a button on the remote IR control is pressed.

To test the circuit for use with a Sony TV IR remote control, make sure that the signal going out (on the green PCB track) is high when no IR signal is being transmitted. Connect a PICAXE microcontroller to the detector. Write a short test program to turn an output device off and on when the correct IR code is detected. Extend this to test the response to different buttons.

Fault finding

If there is a fault, check that:

If there is a fault, check the tracks and solder joints.

Alternatives

Web links

Return to list of datasheets

Go to Top

Keypad - Input Unit

What does it do?

A keypad is used for data entry. It needs to be used with a PIC.

How does it operate?

The keys on a keypad form a matrix of push-to-make switches. This data sheet gives details of the Rapid 78-0305 keypad.

There are 12 push switches, arranged on a matrix of four rows and three columns. These are connected to seven pads at the bottom of the keypad.

If no key is pressed there is no electrical contact between the rows and the columns.

When a key is pressed it makes an electrical connection between the row and the column that it is on.

So, for example, if the key labelled ‘6’ is pressed, this makes electrical contact between row 2 (connected to pad 7) and column 3 (connected to pad 5).

So, if key ‘6’ is pressed this creates an electrical connection between pad 7 and pad 5.

The connections are:

Pad is connected to
1 column 2
2 row 1
3 column 1
4 row 4
5 column 3
6 row 3
7 row 2



Keypad and PIC connections


Keypads are designed for use with PICs.

The four rows of the keypad are connected to four of the output signals from the PIC. The three columns of the keypad are connected to three of the input signals to the PIC.

The circuit diagram on the left shows the kinds of connections that might be used but the actual pins used on the PIC depend on the PIC and software used.

The PIC detects which key is pressed by ‘scanning’ the keypad. The principle involved is shown in the section of subroutine.

First the PIC sets the signal going to Row 1 high (a digital ‘1’). All the other Rows are made low (a digital ‘0’).

Then it tests the input signals coming from each Column in turn. If any of the Column signals is high, this means that the corresponding key in Row 1 has been pressed.

If a key has been pressed the software sets a variable (‘A’ in the example) to the value of the key pressed and then returns from the subroutine.

After testing the three Columns, the PIC then sets the signal going to Row 2 high and again tests the three columns.

In the case of the ‘*’ and the ‘#’ keys, the variable can be given other values (such as 10 and 11).

The variable should also be set to another value (such as 13) if none of the keys are being pressed.

The main program can then check the value of the variable to find the key that has been pressed.

Because a PIC works so quickly the entire scanning process can be completed in a very short time (about a hundredth of a second).

Possible applications

Making

The keypad can be mounted on the case, with wires connecting it to the PCB, or it can be mounted directly on the PCB (which gives a more reliable connection).

If it is PCB-mounted, double sided terminal pins can be used to make connections between the PCB and the pads on the keypad (the holes in the keypad pads need to be slightly enlarged to allow the terminal pins to fit).

Testing

Use a multimeter on the resistance setting to check that the columns and rows are connected in the way that you expect when the keys are pressed.

After connecting the keypad, the PIC and an output device, write a test program to test just one switch. Then write a set of programs each of which test a different row.

Fault finding

If there is a fault, check:

Alternatives

Web links

Return to list of datasheets

Go to Top

Light Sensor - Input Sensor

What does it do?

The light sensor is used to detect changes in the amount of light in its surroundings.

How does it operate?

The usual light sensor circuit gives a low voltage when it is dark and a high voltage when the light is bright.

The light sensor can be followed by a subsystem that processes analogue signals. If the changes in the light level are small and the signal is to be fed to a digital subsystem then the light sensor needs to be followed by a comparator or Schmitt inverter.


Normal circuit (light sensor)


Inverted circuit (dark sensor)

The light sensing circuit uses an LDR (light-dependent resistor) to measure light.

In the normal circuit, the output voltage increases as the light level increases.

In the inverted circuit (the dark sensor) the output voltage falls as the light level increases.

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit. The light sensor forms a potential divider whose output voltage is determined by the upper and lower parts of the circuit.

The resistance of the LDR falls as the amount of light falling on the sensor increases.

Possible applications

Making

How part of the PCB might look

The PCB shows the light sensor.

In the dark sensor the position of the two components is reversed.

Testing

Make sure that the signal going out (on the green PCB track) changes from high to low when the light level changes from bright to dark.

In the case of the dark sensor, the signal should be high when it is dark.

How part of the PCB might look

Fault finding

If there is a fault, check that:

If there is a fault, check the tracks and solder joints.

Alternatives

Web links

Return to list of datasheets

Go to Top

Linear temperature sensor - Input Unit

What does it do?

Linear temperature sensors are used to monitor temperature accurately. They are particularly useful with PICs which have an analogue to digital converter. Signal

How does it operate?

There are a number of linear temperature sensors available. This data sheet gives details of the LM35DZ (the simplest). The output signal voltage from the LM35DZ is proportional to the temperature in degrees C.

Simple linear temperature sensor circuit

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit.

The supply voltage +Vs needs to be in the range 4V to 30V.

The output signal voltage (between pins 1 and 2) is 0V when the temperature is 0oC (the freezing temperature of water). For every 1oC increase in temperature, the output signal voltage increases by 10mV. So, at 25oC, the output signal voltage is 25 x10mV = 250mV = 0.25V. At 100oC (the boiling point of water) the output signal voltage is 1,000mV = 1.00V.
The LM35DZ is not available as a component in circuit simulation software popular in schools. In the circuit diagram on the left it is represented by a 3-pin single-in-line socket, which has the same ‘footprint’ on the PCB.

To produce a variable voltage for use in circuit simulations a potentiometer could be used.

Linear temperature sensor circuit for temperatures below 0oC

In the simple linear temperature sensor circuit shown above, the LM35DZ can be used to monitor temperatures down to 0oC.

For temperatures below 0oC the circuit on the left (to which a diode has been added) can be used.

The voltage across a forward-biased diode is 0.7V = 700mV.

If the temperature is 0oC, the voltage between pins 1 and 2 of the LM35DZ will be 0V, but the voltage across the diode will be 700mV, so the voltage between pin 2 of the LM35DZ (the output signal) and the 0V line will be 700mV.


If the temperature is 100oC, the voltage between pins 1 and 2 of the LM35DZ will be 1,000mV, the voltage across the diode will still be 700mV, so the output signal voltage will be 1000mV + 700mV = 1,700mV = 1.70V.
If the temperature is -20oC, the voltage between pins 1 and 2 of the LM35DZ will be
-20 x 10mV = -200mV, the voltage across the diode will be 700mV, so the output signal voltage will be -200mV + 700mV = 500mV = 0.50V.

The LM35DZ is accurate to at least 2oC.

If it is being used with a PIC which has an analogue to digital converter (ADC) the PIC needs to be powered from a stabilised 5V supply or a 5V voltage regulator; the voltage signal is measured relative to the power supply voltage – so this needs to be stable.

With a stable 5V supply, the reading from the ADC increases from 0 to 255 (which is 1111 1111 in binary) as the input voltage to the ADC increases from 0V to 5V. So, an increase by one in the reading from the ADC means that the input voltage to the ADC has increased by:

So, for example, if the simple linear temperature sensor circuit is being used and the reading from the ADC is 18, the input voltage to the ADC must be 18 x 20mV = 360mV. Since the output signal voltage of the LM35DZ increases by 10mV for each oC, the temperature must be 360/10 = 36oC.

If the linear temperature sensor circuit for temperatures below 0oC is being used and the reading from the ADC is again 18, the input voltage to the ADC must again be 18 x 20mV = 360mV. However, since there is a voltage of +700mV across the diode, the voltage across the linear temperature sensor must be 360 – 700 = -340mV. Since the output signal voltage of the LM35DZ increases by 10mV for each oC, the temperature must be -340/10 = -34oC.

Possible applications

Making

Pins of the LM35DZ
Pins of the LM35DZ

PCB diagram for simple linear temperature circuit
How part of the PCB for the simple linear temperature sensor circuit might look


How part of the PCB for the simple linear temperature sensor circuit might look

Make sure that the linear temperature sensor is connected the right way round. If (looking down on the components) the flat side of the package is on the left (as in the PCB diagram) the positive supply +Vs should be connected to the top pin (pin 3) and 0V should be connected to the bottom pin (pin 1).

Testing

Measure the voltage signal going out (on the green PCB track) with a multimeter on the voltage setting at room temperature. Measure room temperature with a thermometer. The voltage signal should be equal to room temperature (in oC) x 10mV.

Warm the temperature sensor with your fingers. The output voltage signal should increase by a few tens of mV.

Fault finding

If there is a fault, check that:

If there is a fault, check the tracks and solder joints.

Alternatives

Web links

Return to list of datasheets

Go to Top

Moisture Sensor - Input Sensor

What does it do?

The moisture sensor is used to detect changes in the wetness of its surroundings.

How does it operate?

The usual moisture sensor circuit gives a low voltage when it is dry and a high voltage when the sensor is wet. The dryness sensor gives a low voltage when it is wet and a high voltage when the sensor is dry.

If the changes in the moisture level are small then the moisture sensor needs to be followed by a comparator.

Normal circuit (moisture sensor)



Inverted circuit (dry sensor)

The moisture sensor circuit uses a moisture probe to test moisture levels.

A simple low cost moisture probe can be made up from a small piece of strip board – with leads connected to a pair of the copper strips.

When the probe is dry there is a very high resistance between the strips. When it is wet the water reduces the probe’s resistance.

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit. The moisture sensor forms a potential divider whose output voltage is determined by the upper and lower parts of the circuit.

A PCB-mounting terminal block

The moisture sensor is connected to the PCB by wires connected to a terminal block mounted on the PCB.

Possible applications

Making

How part of the PCB might look

Connect the moisture probe to the PCB with wires and a PCB-mounted terminal block.

Testing

Turn the variable resistor to its mid point. Make sure that the signal going out (on the green PCB track) changes from high to low.

Fault finding

If there is a fault, check that:

If there is a fault, check the tracks and solder joints.

Alternatives

Web links

Return to list of datasheets

Go to Top

Movement Sensor - Input Unit

What does it do?

Signals

The movement sensor is a switch. It is ‘on’ (closed) if the sensor is not moved. With the circuit arrangement suggested this gives a low output signal. If the sensor is moved (accelerated) the switch opens and the signal goes high.
 

 

How does it operate?

These notes apply to the Rapid movement sensors (Order codes 78-2088 – horizontal sensor, and 78-2104 – vertical).

Both sensors act as a normally closed switch. If they are moved the switch opens. They are quite sensitive to movement – shaking by hand opens the switch.

To work reliably, the sensor needs to be mounted in either the horizontal or vertical position, depending on the type.

 

 

Movement sensor circuit

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit. Note that there is no Livewire Symbol for a movement sensor - a push to break switch has been used.

 

 

In the suggested circuit diagram the movement sensor switch is in the lower part of a potential divider. In the normal switch subsystem the switch is in the upper part of the potential divider.
The result is that, when the sensor is not moved (and the switch is closed) the output signal is low. When the sensor is moved the output goes high.

The signal is only high while the sensor is accelerating, and this is usually only for a short time. Therefore the subsystem to which the sensor is connected must be able to respond quickly to this brief high signal.

Possible applications

Making

How part of the PCB might look

If there is no symbol for the movement sensor in the PCB design package you are using then place pads in suitable positions (0.5” spacing for the horizontal movement sensor).

In the example on the left a 0.5” long resistor was used to mimic the dimensions of the movement sensor.

Testing

Make sure that the signal going out (on the green PCB track) briefly changes from low to high when the sensor is moved.

Fault finding

If there is a fault, check that:

If there is a fault, check the tracks and solder joints.

Alternatives

The tilt switch, microswitch and optoswitch can also be used to detect movement.

Return to list of datasheets

Go to Top

Optoswitch - Input Unit

What does it do?

There are two types of optoswitch – the slotted optoswitch and the reflective optoswitch. Both are used to detect nearby objects. The slotted optoswitch detects when an object is in the slot. The reflective optoswitch detects when a reflective object is near the optoswitch.

How does it operate?

Optoswitch circuit

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit.

An optoswitch consists of an infrared LED and a phototransistor combined in a single package.

The phototransistor is arranged so that it can detect the infrared from the LED.

In the case of the slotted optoswitch the infrared beam travels through a slot. If an object is placed in the slot it blocks the beam.

In the case of the reflective optoswitch the infrared beam is only detected by the phototransistor if it is reflected by an object close to the switch.

In the circuit diagram the resistor R1 is used to limit the current into the LED. The value of 220R is suitable for a power supply of about 5V.

The best value for R2 depends on the ambient lighting conditions. Reducing R2 makes the opto switch less sensitive to ambient light. The value of 100k shown in the circuit diagram is usually appropriate. In the case of the Kingbright KTIR0821DS and Kingbright KTIR0221DS a suitable value for R2 is 1k.

The LED has an anode and a cathode. The phototransistor has an emitter and a collector. It is important that these are correctly connected in the circuit.


In the downloadable Livewire file the circuit symbol is for an ‘opto-isolator’. This has been used because it has the same symbol as an optoswitch (though an opto-isolator is used for a different purpose – eliminating noise in circuits). There is no package in Livewire for an optoswitch.

Possible applications

Making

A variety of optosensors are available. Details are given below for four low cost sensors:

Pin arrangements for two slotted optoswitches. The signal from the slotted optoswitch
is high when an object blocks the beam.

Examples of slotted optoswitches
Kingbright KTIR0221DS. Note that the Anode and Cathode of the LED are marked ‘+’ and ‘E’. The Collector and Emitter of the Darlington pair are marked ‘+’ and ‘D’. Kingbright KTIR0611S. Note the pip on the bottom surface near to the cathode. There is also a diode symbol and a C/E marked on the top surfaces

Pin arrangements for two reflective optoswitches. The signal from the reflective
optoswitch is low when a reflective surface is close to the switch.

Kodenshi SG-2BC. Note the flat side nearer to the collector and cathode. Omron EE-SY171. Note the dot on the top surface next to the anode.

How part of the PCB for a slotted
optoswitch might look

If the Livewire symbol for an opto-isolator is used the default PCB component will be a 6 pin DIL IC. This is not suitable for any of the optoswitches described.

The PCB on the left was produced by changing the package for the ‘optoisolator’ to ‘None’ and adding the necessary pads and tracks for the slotted optoswitch manually.

Testing

Make sure that the signal going out (on the green PCB track) changes from high to low when an object is placed in the slot (for the slotted optoswitch) or a reflective object is nearby (for a reflective optosensor).

Fault finding

If there is a fault, check that:

If there is a fault, check the tracks and solder joints.

Alternatives

Web links

Return to list of datasheets

Go to Top

Photodetector - Input Unit

What does it do?

Photodetectors are semiconductor devices which respond to light. They can replace light dependent resistors and have the advantages of lower pollution and smaller size. Signal input sensor

How does it operate?

There are several kinds of photodetector.

Photodiodes are similar to normal diodes but, if they are reverse biased, the current through the diode increases with the light level.

Phototransistors (and photodarlingtons) are like ordinary transistors (and Darlington drivers) but the ‘base current’ is produced by the light falling on the device – there in no actual electrical connection to the base.

Phototransistor circuit

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit.

The circuit diagram on the left is for a phototransistor.

As the light level increases the current through the phototransistor and R1 increases, so the output signal voltage increases.

To allow the sensitivity to be adjusted the fixed resistor R1 could be replaced with a variable resistor.

To produce a ‘dark sensor’ the positions of the phototransistor and the resistor are interchanged, so that the output signal voltage increases as the light level falls.

Note – the output current available from a phototransistor is small – enough for the input signal to a PIC, a CMOS integrated circuit or a MOSFET, but not large enough to drive a transistor.

Possible applications

Making

The pin connections and PCB shown are applicable to both the SFH309F phototransistor (Rapid Electronics Order code 58-0425) and the SFH300-4 (Rapid Electronics Order code 58-0480).

How part of the PCB might look

Note – the shorter leg of the phototransistor, and the side with the flat, is the collector. The collector should be connected to the +Vs supply voltage. This is the opposite way round from a LED (hotlink to data sheet), where the shorter leg is the cathode or negative lead.


Testing

Make sure that the signal going out (on the green PCB track) changes from high to low when the photodetector is covered.

Fault finding

If there is a fault, check:

If there is a fault, check the tracks and solder joints.

Alternatives

Web links

Return to list of datasheets

Go to Top

Pulse Unit - Input Block

What does it do?

Turns something on, and then off, and keeps repeating this.

How does it operate?


Low frequency pulses


High frequency pulses

A possible pulse unit circuit

Click on the circuit diagram to download a Livewire file of the pulse unit that you can investigate and add to your own circuit.

The pulse subsystem provides an output signal that is high, then low, then high, low...

The time between the signal going from high to low and going from high to low again can be controlled by a variable resistor.

The pulse unit uses an oscillator consisting of three inverters along with an electrolytic capacitor and some resistors.

A variable resistor is used to control the pulse rate.

The time period can be changed by choosing different capacitors (C).

The time period for one pulse with the circuit on the left, when the variable resistor is on its maximum setting, can be calculated:

Time period = 0.044 ´ C

where C is the capacitance in mF.

For example, if C=22mF, the time period is about one second.

The pulse generated has a mark:space ratio of 1:1 meaning that the high and low parts of the pulse last for the same length of time.

Possible applications

Making

The inverters can be from a 4069UB inverter, or NAND or NOR gates could be used.

The PCB shows the basic circuit. Several gates in the IC are not used in this simple design; they can be applied in other subsystems. Any unused input pins should be connected to 0V or Vs, to prevent damage by static electricity.

Use a Dual In Line (DIL) socket for the IC. Before inserting the IC, connect the power supply and use a voltmeter to check that the voltage on pin 7 is low (0V) and the voltage on pin 14 is high (the supply voltage).

Connect the negative lead of the capacitor to 0V. Insert the IC the right way round.

Testing

Make sure that the signal going out (on the green PCB track) changes from high to low. Check the time period and make sure it changes with the variable resistor.

Fault finding

If there is a fault, check that:

If there is a fault, check the tracks and solder joints.

Alternatives

Web links

Return to list of datasheets

Go to Top

Quantum Tunnelling Composite (QTC) - Input Unit

What does it do?

QTC comes in the form of sheet, ‘pills’ and cable. QTC sheet can be used to make very low cost touch switches that can be placed on the case of products. QTC ‘pills’ can be used to produce low cost force/pressure sensors whose resistance varies with the applied force.

How does it operate?

Quantum tunnelling composite is a recently developed ‘smart’ material that exhibits extraordinary electrical properties. In its normal state it is an insulator, but when it is compressed it conducts. The material owes its unusual properties (and its name) to a strange phenomenon of quantum mechanics which mean that electrons are able to ‘tunnel’ through some materials i.e. conduct, if their physical structure is slightly changed (by pressure).

QTC sheet

The main application of QTC sheet in schools is in making low cost touch switches.

QTC sheet consists of three layers:

  • a thin layer of (light grey) QTC
  • a conductor, and
  • a (white) plastic insulator



To make up a simple switch on the case of an electronic product, self adhesive copper track can be trapped under screw heads and the screws connected to the electronic circuit.

The copper track can then be stuck onto the product surface so that the two sides of the switch come to the required switch position. A small piece of QTC sheet (cut from the larger sheet in which it is supplied) with the white plastic side on top is used for the switch, held in position by sellotape.


Only stick the tape over one side of the QTC sheet, not on the area where there is a gap between the copper tracks; sticking it over the entire sheet can create pressure on the switch and make it close all the time.

Graphics can be added on top of the switch, but should not be stuck directly onto the QTC sheet because again this can ‘press’ the switch. A thin sheet of foam can be placed over the QTC switch and the graphics stuck onto the foam. This prevents the graphics from pressing the switch.

QTC sheet switch circuit


The QTC sheet switch is included in the circuit in the usual way. A pull-down resistor (R1) of about 3k3 is suitable. The value of this resistor is not critical. If a larger value is used the switch becomes more sensitive (operates with lower force). The value of 3k3 gives a switch that only requires moderate force and is not triggered by light pressure e.g. from the weight of the foam sheet over the switch.

The resistance of the QTC sheet switch when moderate pressure is applied is around 1 – 2k.


Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit. The ‘QTC sheet’ in the Livewire circuit is represented by a variable resistor.

QTC ‘pills’

Unlike QTC sheet (which switches quite quickly between a high and low resistance), QTC pills are pressure sensitive variable resistors.

They can be used as input sensors in electronic systems and the signal from them can go to analogue processing units (such as PICs with analogue to digital converters or amplifiers) to produce a system that responds to weight or force.



One way to arrange for contact between the pill and the electronic circuit is to use a pair of self adhesive copper tracks, with the QTC ‘pill’ sandwiched between them (it is not necessary to remove the glue).

QTC pills are more expensive than QTC sheet and so QTC sheet is a better choice if all that is needed is a simple touch switch.


To represent a QTC pill in a circuit simulation on a computer, use a variable resistor.



Possible applications

QTC sheet can be used to produce:

QTC pills can be used to produce:

Making

QTC sheet switches can be incorporated into the product design for the case, creating adaptable membrane switches. It is best to protect them with a thin foam cover to which graphics can be applied.

When using QTC sheet to make touch switches, it is important to make sure that:

Testing

QTC sheet touch switches should be tested by checking the signal going out with a multimeter on the voltage setting. The signal should be low if the switch is not pressed and high when it is pressed.

QTC pills should be tested (before connecting the power supply) using a multimeter on the resistance setting. When no force is applied the resistance should be megohms. Applying a force of about two kg weight should reduce the resistance to less than 100W.

Fault finding

If there is a fault with QTC sheet, check that:

If there is a fault with a QTC pill, check that:

Alternatives

Web links

Return to list of datasheets

Go to Top

Reed Switch/Proximity Switch - Input Sensor

What does it do?

The reed switch is used to detect the presence of a magnet.

How does it operate?

The contacts of the reed switch are normally open, but close when a magnet is brought near.

In the usual circuit its output signal goes high when a magnet is brought near. The inverted circuit gives a low voltage when a magnet is near.

Normal circuit

Inverted circuit

The reed switch circuit uses a reed switch which is normally open but is closed when a magnet comes near.

In glass-cased reed switches the contacts can be seen moving when a magnet is near.

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit. The reed switch component is part of a potential divider whose output voltage is determined by the upper and lower parts of the circuit.


A PCB-mounting terminal block

The reed switch is connected to the PCB by wires connected to a terminal block mounted on the PCB.

Possible applications

Making

How part of the PCB might look

Testing

Make sure that the signal going out (on the green PCB track) changes from low to high when a magnet is brought near to the reed switch (or the opposite way round for the inverted circuit).

Fault finding

If there is a fault, check that:

If there is a fault, check the tracks and solder joints.

Alternatives

Web links

Return to list of datasheets

Go to Top

Rotation Sensor/Voltage Unit - Input Sensor

<

What does it do?

The rotation sensor uses a potentiometer to sense rotation. It can also be used to produce a variable voltage.

How does it operate?

Click on the circuit diagram to download a Livewire file of the Rotation Sensor that you can investigate and add to your own circuit.

As the potentiometer dial is turned, the resistance of the output signal voltage gradually increases from 0V to the supply voltage Vs. The rotation sensor acts as an input voltage unit.

The rotation sensing circuit uses a potentiometer or potential divider:

Potentiometers can be mounted on the PCB or on the case.

A potential divider The resistance across the potentiometer remains constant. However, as the dial is turned the resistance of R1 falls and the resistance of R2 increases. This causes the output voltage at the wiper to rise. Turning the dial the other way reverses this.

Possible applications

Making

How part of the PCB might look

 

 

 

 

Testing

Make sure that the voltage signal going out (on the green PCB track) changes as the knob on the potentiometer is turned.

Fault finding

If there is a fault, check that:

If there is a fault, check the tracks and solder joints.

Alternatives

Web links

Return to list of datasheets

Go to Top

Sound Sensor - Input unit

What does it do?

The sound sensor provides an output signal voltage that responds to sound detected by a microphone. It will only respond to loud sounds.

How does it operate?

If no sound is picked up, the output voltage is low, close to 0V.

If the microphone picks up sound the voltage pulses rapidly above 0V in response to the sound wave.

The graph shows the kind of output signal that would be produced by a sudden loud noise, such as a hand clap.

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit.



Microphone circuit diagram symbol

The symbol used for the microphone in the circuit diagram is a drawing imported into Livewire. Therefore the operation of the microphone cannot be simulated in Livewire.


When a sound wave strikes the microphone it produces a very small a.c. voltage, proportional to the pressure changes produced by the sound wave. This a.c. voltage is amplified by the two operational amplifier circuits.

A wide range of microphones is available. The one that has been tested with this circuit diagram was not actually designed as a microphone; it is an uncased piezo transducer (Rapid order code 35-0200). This is low in cost and works effectively.

The circuit will respond to loud sounds (such as a hand clap). Its sensitivity can be increased (so that it responds to quite loud music) by reducing the value of the resistor R6 in the circuit diagram from 10k to 1k. However, if the resistor R6 is reduced even further to give higher sensitivity, electrical noise can swamp the output signal and give random output voltages.

Because the output signal (like the sound wave) changes very rapidly it is usually necessary to follow the sound sensor with a subsystem that will react quickly to the oscillations, such as a delay unit, a retriggerable monostable, a 555 monostable, a positive latch or a thyristor.


Possible applications

Making


How part of the PCB might look

The ‘microphone’ (the piezo transducer) is connected to the two pads highlighted in blue.

Testing

This subsystem is difficult to test because of the unusual a.c. output signal. If you have an oscilloscope you can use it to ‘see’ the rapidly varying output signal.

If you do not have access to an oscilloscope then the unit can be tested by adding the next subsystem and checking that its output signal is triggered when there is a loud sound.

Fault finding

If there is a fault, check that:

If there is a fault, check the tracks and solder joints.

If you have access to an oscilloscope, check the output signal from the first operational amplifier stage (pin 1). When there is a loud noise this should be an a.c. signal of a few hundred mV.

Web links

Return to list of datasheets

Go to Top

Switch Unit - Input Unit

What does it do?

The switch subsystem provides a switch that closes when pressed. The output signal from the switch subsystem goes high when the switch is pressed.

How does it operate?

Click on the circuit diagram to download a Livewire file of the Push Switch that you can investigate and add to your own circuit.

The switch circuit uses a push-to-make switch:

The push switch forms part of a potential divider whose output voltage is determined by the upper and lower parts of the circuit.

When the switch is not pressed its resistance is very high and the output signal is low. When the switch is pressed its resistance is very low and the output signal is high.

Slide switch

Microswitch

Instead of using a push switch, a slide switch (that stays in the on or off position) or a microswitch (that is designed to be pushed by an object) can be used.

It is also possible to manufacture contact switches in various ways.

Possible applications

Making

How part of the PCB might look

Use a multimeter (on the resistance setting) to check that the switch is working before soldering it in place.

 

 

Testing

Make sure that the signal going out (on the green PCB track) changes from low to high when the push switch is pressed.

Fault finding

If there is a fault, check that:

If there is a fault, check the tracks and solder joints.

Alternatives

Web links

Return to list of datasheets

Go to Top

Temperature Sensor (Thermistor) - Input Sensor

What does it do?

The temperature sensor is used to detect changes in the temperature of its surroundings.

How does it operate?

Usually the temperature sensor produces a voltage signal that increases as the temperature increases. The inverted temperature sensor (cold sensor) produces a voltage signal that increases as the temperature decreases.

If the temperature sensor is being used with a digital process unit then it needs to be followed by a comparator or Schmitt inverter to give a sharp change of signal from low to high.


Normal circuit


Inverted circuit

The temperature sensing circuit uses an NTC (negative-temperature coefficient) thermistor to monitor temperature.


The resistance of a NTC thermistor falls as its temperature increases.

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit. The temperature sensor circuit is a potential divider whose output voltage is determined by the upper and lower parts of the circuit.

In the normal circuit, the thermistor is placed in the upper half of the potential divider.  In the inverted circuit, the thermistor is placed in the lower half of the potential divider.

Accurate temperature measurement

By using a precision thermistor e.g. the Rapid 10k thermistor 61-0515, it is possible to measure temperatures to an accuracy of „b2oC. The resistance if the thermistor varies with temperature as shown on the graph below:

If the thermistor is placed in a potential divider with a fixed value 10k resistor (not the variable resistor shown in the 'Normal circuit' above) then, with a 5V supply voltage, the Output signal voltage varies with temperature as shown below. For accurate temperature measurements, the 10k resistor needs to have a +/- 1% tolerance, rather than the usual +/- 5%.



If this output signal voltage is fed to a PIC with an analogue to digital converter (ADC) reading between 0 and 255, the reading on the ADC will look like:

Precise values of resistance, output signal voltage and ADC reading can be found by downloading an Excel spreadsheet from this web site. This makes use of what is called the 'B parameter equation' (explained in an article in Wikipedia).

Using these graphs or the spreadsheet, a monitoring or control system can be designed to respond at an accurately predicted temperature. By using a PIC with an ADC, the software can test if the ADC reading is close to the calculated ADC value for the temperatures of interest and activate an output device. By using a liquid crystal display this approach can be used to produce a digital thermometer.

Note - for precise measurements the thermistor should not be placed in water because water conducts electricity and the apparent resistance of the thermistor will be reduced.

Possible applications

Making

Before soldering it into the PCB, make sure (by testing with a multimeter on the resistance setting) that the resistance of the thermistor falls when it is warmed up.

In the case of the precision thermistor, note that a fixed value resistor needs to be used.



How part of the PCB might look

Testing

Turn the variable resistor to its mid-point.

Make sure that the voltage signal going out from the normal circuit (on the green PCB track) increases when the thermistor is warmed up.

In the case of the inverted circuit the signal voltage should fall as the temperature increases.

Fault finding

If there is a fault, check that:

If there is a fault, check the tracks and solder joints.

Alternatives

Web links

Return to list of datasheets

Go to Top

Tilt Switch - Input Sensor

What does it do?

The tilt switch is used to detect movement.

How does it operate?


Tilt Switch Circuit

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit.

 


A PCB-mounting terminal block

The tilt switch unit gives an output signal which changes from low to high when the tilt switch sensor is turned.

The tilt switch circuit is a potential divider whose output voltage is determined by the upper and lower parts of the circuit.

Health and Safety
Some tilt switches contain mercury. If these are damaged the mercury (which is poisonous) can escape. Always use a non-mercury tilt switch.

The tilt switch is connected to the PCB by wires connected to a terminal block mounted on the PCB.

Possible applications

Making

How part of the PCB might look

 

 

 

 

 

Testing

Make sure that the signal going out (on the green PCB track) changes from low to high when the tilt switch sensor is rotated.

Fault finding

If there is a fault, check that:

If there is a fault, check the tracks and solder joints.

Alternatives

Web links

Return to list of datasheets

Go to Top

555 Monostable - Process Unit

What does it do?

The 555 monostable subsystem provides an output signal that is triggered high for a period of time before returning to low.

How does it operate?

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit.

It is similar to the Delay subsystem but is able to provide a wider range of time delays.

The 555 monostable is based on the 555 timer IC.

To use a 555 timer IC as an oscillator, use the 555 astable subsystem instead.

A single pulse is generated by the 555 monostable when it is triggered by a low input signal. The delay time starts as soon as the trigger signal goes low.

Once triggered the output remains high for a short time period afterwards. This time period can be calculated:

where R is in M ohms and C is in µF. For example, if R = 100k (= 0.1M) and C = 22µF then the delay time is equal to 1.1 ´ 0.1 ´ 22 = 2.4s.

So, by choosing different component values and adjusting the variable resistor, the delay time can be varied.

The 555 timer IC works with a d.c. power supply with a voltage between 4.5V and 16V. The 555 timer is able to provide an output current of 100mA and can therefore drive low and medium current output devices directly.

There is one quite subtle point to watch with a 555. Nearly all the digital process ICs discussed on this web site are 4000 series CMOS devices. The 555 timer is not in this family and there can be problems in mixing families. In particular, a 4000 CMOS device with a supply voltage of 5V needs an input signal voltage of at least 3.5V to guarantee that it is recognised as a logic '1' or 'high'.

However, at the same supply voltage, a 555 produces an output signal voltage of typically 3.3V, and it can be as low as 2.75V. In other words, the 'high' from a 555 may not be recognised as a 'high' if it is fed to a 4000 series process subsystem.

The safest way to deal with this is to use a CMOS version of the 555 e.g. the ICM7555 (which is more expensive), or a delay unit or retriggerable delay unit – both of which use 4000 series CMOS.

Capacitor types
Ceramic disc capacitors should not be used for the timing capacitor C. They are not sufficiently stable in capacitance to operate properly for timing. Suitable capacitor types are: silver mica, mylar, polycarbonate, polystyrene, tantalum, or similar types.

Possible applications

Making


Pins of 555 timer IC


How part of the PCB might look

Build and test the unit that will trigger the 555 astable before building the 555 astable.

Use a Dual In Line (DIL) socket for the IC. Before inserting the IC, connect the power supply and use a voltmeter to check that:

Insert the IC the right way round.

Testing

Make sure that the signal going out (on the green PCB track) is low at first (while the input signal is high) and then, when the input signal goes low for a short time, the signal going out goes high for the expected time and then goes low.

Fault finding

If there is a fault, check that:

If there is a fault, check the tracks and solder joints.

Alternatives

Web Links

Return to list of datasheets

Go to Top

AND gate

What does it do?

Makes something happen when both inputs are activated.

How does it operate?


AND gate circuit

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit.

For an AND gate with two input signals (Input A and Input B), the Output signal goes high if both input signals are high.

The output from the AND gate is shown in the truth table below, with 0 meaning “low” and 1 meaning “high”


Truth table for a 2-input AND gate

American (ANSI) Symbol

European (DIN) Symbol

The simplest AND gate ICs (such as the 4081B) hve two input signals. Other AND gate ICs are available with more input signals. The 4073B CMOS IC has three input signals and the 4082B has four input signals. In all AND gates the Output signal goes high when all the Input signals are high.

It is possible to combine NAND gates to produce an AND gate

Possible applications

Making


Pins of 4081B


How part of the PCB might look

The PCB shows the basic circuit. Several gates in the IC are not used in this simple design; they can be applied in other subsystems. Any unused input pins should be connected to 0V or Vs, to prevent damage by static electricity.

In the example PCB, the two input signals go to pins 1 and 2, and the output signal comes from pin 3. Any of the other three AND gates in the IC could be used.

Build and test the units that will provide the input signals before adding the AND gate IC.

Use a Dual In Line (DIL) socket for the IC. Before inserting the IC, connect the power supply and use a voltmeter to check that:

Insert the IC the right way round.

Testing

Make sure that the signal going out (on the green PCB track) follows the AND gate truth table.

Fault finding

If there is a fault, check that:

If there is a fault, check the tracks and solder joints.

Alternatives

Web links

Return to list of datasheets

Go to Top

CMOS Integrated Circuits - Process Units

What do they do?

CMOS integrated circuits are widely used as Process units.

How do they operate?

Most of the ‘Process’ units covered in these data sheets are Complementary Metal Oxide Semiconductor (CMOS) 4000B series integrated circuits. The only exceptions are PICs, 555 timers and operational amplifiers. This data sheet gives general information about this important family of ICs.

CMOS ICs are designed so that they all share a set of common features, which are listed below. This makes it easy to connect CMOS ICs to each other.

CMOS ICs are made up of a large number of MOSFETs, all on a single piece of silicon.

Common features of all CMOS ICs

Power supply voltage (Vs) Any d.c. voltage between 3 and 15V.
Digital ‘high’ or ‘1’ voltage At least 0.7 ´ Vs. So, for a supply voltage of 5V, the input signal voltage must be more than 3.5V to give a digital ‘high’.
Digital ‘low’ or ‘0’ voltage Less than 0.3 ´ Vs. So, for a supply voltage of 5V, the input signal voltage must be less than 1.5V to give a digital ‘low’.
Output signal current Up to 0.12mA is guaranteed if Vs = 5V. In practice, CMOS ICs can usually provide more current (and many published circuit diagrams make use of this) but it is bad practice to design circuits which exceed the manufacturer’s specification.
Input signal current Up to 1mA.
Operating temperature Between -40oC and +85oC

Power supply

On nearly all CMOS ICs, if pin 1 (information on IC pins) is at the ‘top left hand corner’, then the negative side of the power supply (0V) is connected to the ‘bottom left-hand corner’ pin. On manufacturers’ data sheets this pin is labelled VSS (standing for the ‘Source’ voltage).

The positive side of the power supply (+Vs) is usually connected to the ‘top right-hand corner’ pin (labelled VDD – ‘Drain’ voltage – on manufacturers’ data sheets).

 

 

Using ‘spare’ gates

Most CMOS ICs used for gates contain several gates. For example, the 4011B CMOS IC contains four two-input NAND gates

If a circuit needs, for example, one AND gate, one NAND gate and one inverter it is possible to produce all three of these gates using just one 4011B IC. This saves money and makes the PCB simpler and more reliable.

 

Pins of 4011B NAND IC

 

To make an inverter out of a NAND (or NOR) gate, we simply connect the two input pins together.

From the truth table for the NAND gate:

We can see that if both input pins are connected together (so that both input signals are the same) then:

  • if the input signal is ‘0’ then the output signal will be ‘1’;

  • if the input signal is ‘1’ then the output signal will be ‘0’.
This is exactly what we would expect from an inverter.

In a similar way, from the truth table for a NOR gate, if both its input pins are connected it will also act as an inverter.

If we compare the truth table for a NAND gate:

and the truth table for an AND gate:

it is clear that the output signal from an AND gate is the inverse of the signal from a NAND gate. So, if we follow a NAND gate with an inverter, the two in combination will act as an AND gate.

So, if we use a NAND gate, followed by a second NAND gate with its input pins connected (so that it works like an inverter) we have made an AND gate out of two NAND gates.

In just the same way, a NOR gate, followed by a second NOR gate with its input pins connected will work as an OR gate.

So, the circuit on the left will act as:

  • an AND gate – with input signals A and B and output signal X

  • a NAND gate – with input signals C and D and output signal Y, and
  • an inverter – with input signal E and output signal Z

The PCB on the left is based on the above circuit. As can be seen, by using these techniques, the AND, NAND and inverter can all be produced with just one 4011B IC.

The PCB also illustrates that, if this approach is used, it is difficult to avoid using links, unless the tracks are run between IC pins.

Some common CMOS ICs

The pin connections of the CMOS ICs mentioned in these data sheets are shown below.


4001 NOR Gates


4011 NAND Gates


4026 Counter


4029 Counter


4069 Inverters


Pins of 4070B


4071 NOR Gates


4081 AND Gates


40106B Schmitt Inverter

Making

CMOS ICs should not be stored in plastic containers (unless the containers are suitable for electronic components) since this can generate excessive static which can damage them. For the same reason, when designing the PCB, any unused input pins should be connected to 0V or Vs.

A dual in line (DIL) socket should be used with all ICs. This makes testing and repair much easier.

Before inserting the IC, connect the power supply and use a voltmeter to check that:

Insert the IC the right way round.

Alternatives

Web links

Return to list of datasheets

Go to Top

Comparator - Process Unit

What does it do?

The comparator provides a large change in signal when the input signal only changes slightly and converts an analogue signal into a digital signal. It ‘compares’ the voltage input signal and the voltage from a potentiometer.

How does it operate?

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit.

The comparator subsystem provides an output signal that stays high while the input signal is higher than the reference signal or threshold from a potentiometer. The output signal remains low otherwise.

The comparator circuit uses an operational amplifier, or op amp, to amplify the input signal relative to the reference signal thus forcing the output signal to be either high or low.

Operational amplifiers have two inputs, an inverting input ('-') and a non-inverting input ('+').

A potentiometer or potential divider connected to the inverting input provides control over the reference signal voltage.

There is a wide range of operational amplifiers available. It is important to select one that provides a clear high and low output voltage and can work from a single power supply. The LM324 is inexpensive, contains four operational amplifiers and can work from a d.c. power supply with a voltage anywhere between 3 and 32V. It can give and output current of up to 20mA, and so can drive some low current output devices directly.

Rather than using a potentiometer, the reference voltage can be provided by other analogue input sensors. For example, the light level at two places could be compared using a pair of light sensors, one to provide the input signal and the other to provide the reference signal.

Possible applications

Making

In the example PCB, the input signals goes to pin 3, and the output signal comes from pin 1. Any of the other three comparators in the IC could be used.

Build and test the unit that will provide the input signal before building the comparator.

Use a Dual In Line (DIL) socket for the IC. Before inserting the IC, connect the power supply and use a voltmeter to check that:

Insert the IC the right way round.

Testing

Turn the potentiometer to its mid-point. Make sure that the signal going out (on the green PCB track) changes from low to high when the input signal voltage increases above the threshold voltage.

Fault finding

If there is a fault, check that:

If there is a fault, check the tracks and solder joints.

Alternatives

Web links

Return to list of datasheets

Go to Top

Counter - Process Unit

What does it do?

The counter subsystem counts the number of signal pulses connected to its clock input.

How does it operate?

A range of counter ICs is available. All of them count up (and sometimes down) every time there is a pulse on their ‘clock’ input pin.

The clock pulse needs to be a clean sharp pulse. If it is being produced by any type of mechanical switch it is important to use a debounced switch unit. Otherwise switch bounce can cause multiple counts.

Electrical noise on an analogue signals can trigger counters. This can be removed by using a Schmitt inverter.

Some counters are decade counters, meaning that they count up in the sequence 0, 1, 2, … 8, 9 and then restart at 0. Binary counters use the binary number code and count up in binary: 0000, 0001, 0010, … 1110, 1111 and then restart at 0000.

Some have an input signal that can control whether they count up or down.

Counters are often used with a 7-segment display to show the count value. In most cases this means that a decoder-driver IC needs to be included.

This data sheet provides details of two useful counter ICs; the 4026B and the 4029B.


4026 Counter

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit.

The big advantage of the 4026B counter IC is that it can drive a 7-segment display without needing a decoder driver IC.

The value of the count increases by one every time the Clock input signal (pin 1) changes from low to high.

If the Reset input signal (pin 15) is high the count value is reset to zero. For counting to occur this input signal needs to be low.

The output signals labeled a, b … g are connected (via current limiting resistors) to the corresponding pins of a 7-segment display. Most CMOS ICs can give output current of up to 0.12mA. The 4026B (with a power supply voltage of 5V) can typically provide 3.2mA which is enough for most 7-segment displays.

The Output signal to a second counter (pin 5) can be used to produce the ‘tens’ digits by connecting it to the clock pin of a second 4026B.

A big advantage of the 4026 is that it can be used with PICs to control one or more 7-segment displays and it only needs two of the PIC’s output signals.


4029 Decade Counter circuit

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit.

The 4029B is a versatile counter IC. Depending on how it is connected it can:

  • Act as a decade or a binary counter
  • Count up or down

The value of the count changes by one every time the Clock input signal (pin 15) changes from low to high.

If the U/D (Up / Down) input signal (pin 10) is high the counter counts up. If it is low the counter counts down.

The output signals labeled Q1 (pin 6), Q2 (pin 11), Q3 (pin 14) and Q4 (pin 2) represent the count as a binary number. They can be fed to a decoder driver and 7-segment display. The Output signal to a second counter (pin 7) can be fed to the clock pin of a second 4026B.

In the example circuit diagram the B/D (Binary/Decade) input signal (pin 9) is connected to 0V which makes the counter work as a decade counter. If this pin is connected to +Vs it works as a binary counter.

Possible applications

Making


Pins of 4026B


How part of the 4026 PCB might look


Pins of 4029B


How part of the 4029 PCB might look

Build and test the unit that will provide the input signals before building the counter.

Use a Dual In Line (DIL) socket for the IC. Before inserting the IC, connect the power supply and use a voltmeter to check that:

Insert the IC the right way round.

Testing

Make sure that the signals going out (on the green PCB tracks) change from high to low.

Fault finding

If there is a fault, check that:

If there is a fault, check the tracks and solder joints.

Alternatives

Web links

Return to list of datasheets

Go to Top

Delay - Process Unit

What does it do?

The delay subsystem produces a delay after the input signal goes high.

How does it operate?

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit.

The timing period begins after the input signal has returned from high to low.

If the input signal changes from low to high during the timing period, the timing starts again.

The delay circuit uses the ability of an electrolytic capacitor to store charge.

The two inverters sharpen up the input signal. A high input signal switches on the transistor and causes the capacitor to discharge. During this period, the output signal is forced high by the right-most inverter.

Timing begins as soon as the input signal goes low. The transistor switches off causing the capacitor to charge through the variable resistor.

Once the capacitor has charged to about 50%, the right-most inverter will trigger the output back to low.

The maximum length of the delay can be calculated:

Delay time (t) = 0.7 ´ C where C is the capacitance in mF.

So, if C = 10mF, the maximum delay is 0.7 ´ 10 = 7s.

If a longer delay time is needed then a larger capacitor can be used.

Possible applications

Making


Pins of 4069B IC


How part of the PCB might look

The PCB shows the basic circuit. Several gates in the IC are not used in this simple design; they can be applied in other subsystems. Any unused input pins should be connected to 0V or Vs, to prevent damage by static electricity.

The transistor used on the PCB is the BC337, but any low power NPN transistor e.g. the BC547B, can be used.

Build and test the unit that will provide the input signal before building the delay unit.

Use a Dual In Line (DIL) socket for the IC. Before inserting the IC, connect the power supply and use a voltmeter to check that:

Insert the IC the right way round.

Testing

Turn the variable resistor to its mid-point. Make sure that the signal going out (on the green PCB track – from pin 6) changes from high to low.

Fault finding

If there is a fault, check that:

If there is a fault, check the tracks and solder joints.

Alternatives

Web links

Return to list of datasheets

Go to Top

Difference Amplifier (or Subtractor) - Process Unit

What does it do?

The difference amplifier is used with two analogue input signals. It gives an analogue output signal which is proportional to the difference between the two input voltages.


How does it operate?

When the two input signals are the same, the output signal will remain steady at half the supply voltage. The output signal will go above or below this steady voltage when one input signal is greater than the other.

The output signal is measured relative to a reference signal, which is fixed at half the power supply voltage. (An alternative is to use a pair of power supplies, +Vs and –Vs, and then the reference signal is 0V.)

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit.

The difference amplifier circuit uses an operational amplifier, or op amp, to subtract the input signals.

Operational amplifiers have two inputs, an inverting input ('-') and a non-inverting input ('+').

The amount of amplification, or gain, can be varied by changing R1, R2, R3 and R4. If (as in the circuit diagram) all four resistors are equal then:

R1 must always be the same as R2 and R3 must always be the same as R4. But if all four resistors are not equal then:

The LM324 is a suitable inexpensive IC, contains four operational amplifiers and can work from a d.c. power supply with a voltage anywhere between 3 and 32V.

Possible applications

Making


Pins of LM324 IC


How part of the PCB might look

The PCB shows the basic circuit. Three operational amplifiers in the IC are not used in this simple design; they can be applied in other subsystems.

Build and test the unit that will provide the input signals before building the difference amplifier.

Use a Dual In Line (DIL) socket for the IC. Before inserting the IC, connect the power supply and use a voltmeter to check that:

Insert the IC the right way round.

Testing

Make sure that the signal going out (on the green PCB track) is proportional to the difference between the voltages of the input signals.

Fault finding

If there is a fault, check that:

If there is a fault, check the tracks and solder joints.

Alternatives

Web links

Return to list of datasheets

Go to Top

Exclusive OR Gate (XOR/EOR)

What does it do?

Makes something happen when either, but not both, inputs are activated.

How does it operate?


Exclusive OR gate circuit

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit.

The exclusive-OR gate (XOR) subsystem provides an output signal that is low if either both input signals are high or both input signals are low. Otherwise, the output signal is high.

The output from the Exclusive OR gate is shown in the truth table below, with 0 meaning “low” and 1 meaning “high”.

Truth table for an Exclusive OR gate

The 4070B CMOS IC contains four Exclusive OR gates.

American (ANSI) Symbol

European (DIN) Symbol


Possible applications

Making


Pins of 4070B


How part of the PCB might look

The PCB shows the basic circuit. Several gates in the IC are not used in this simple design; they can be applied in other subsystems. Any unused input pins should be connected to 0V or Vs, to prevent damage by static electricity.

In the example PCB, the two input signals go to pins 1 and 2, and the output signal comes from pin 3. Any of the other three Exclusive OR gates in the IC could be used.

Build and test the units that will provide the input signals before adding the Exclusive OR gate IC.

Use a Dual In Line (DIL) socket for the IC. Before inserting the IC, connect the power supply and use a voltmeter to check that:

Insert the IC the right way round.

Testing

Make sure that the signal going out (on the green PCB track) follows the Exclusive OR gate truth table.

Fault finding

If there is a fault, check that:

If there is a fault, check the tracks and solder joints.

Alternatives

Web links

Return to list of datasheets

Go to Top

Inverter (NOT Gate) - Process Unit

What does it do?

The inverter subsystem, also known as a NOT gate, provides an output signal which is opposite to the input signal. When the input signal is high, the output signal is low, and vice versa.

How does it operate?

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit.

The output from the inverter is shown in the truth table below, with 0 meaning “low” and 1 meaning “high”.


Truth table for an inverter

American (ANSI) Symbol

European (DIN) Symbol

Possible applications

Making


Pins of 4069B


How part of the PCB might look

The PCB shows the basic circuit. Several gates in the IC are not used in this simple design; they can be applied in other subsystems. Any unused input pins should be connected to 0V or Vs, to prevent damage by static electricity.

Build and test the unit that will provide the input signal before building the Inverter.

Use a Dual In Line (DIL) socket for the IC. Before inserting the IC, connect the power supply and use a voltmeter to check that:

Insert the IC the right way round.

Testing

Make sure that the signal going out (on the green PCB track) changes from high to low when the input signal (on the blue track) changes from low to high.

Fault finding

If there is a fault, check that:

Check the tracks and solder joints.

Alternatives

Web links

Return to list of datasheets

Go to Top

NAND gate - Process Unit

What does it do?

Turns something off when both inputs are activated.

How does it operate?


NAND Gate Circuit

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit.

When two input signals are used with a NAND gate, the NAND gate subsystem provides an output signal that is low when both input signals are high. Otherwise, the output signal is high.

The output signal from the NAND gate is shown in the truth table below, with 0 meaning “low” and 1 meaning “high”.


Truth table for a 2-input NAND Gate

American (ANSI) Symbol

European (DIN) Symbol

The simplest NAND gate ICs (such as the 4011B) have two input signals. Other NAND gate ICs are available with more inputs. The 4023B CMOS IC has three input signals, the 4012B has four input signals and the 4068B has eight input signals. In all NAND gates the output signal goes low when all the input signals are high.

It is possible to combine NAND gates to produce an AND gate. NAND gates can also be made to work like inverters.

Possible applications

Making


Pins of 4011B


How part of the PCB might look

The PCB shows the basic circuit. Several gates in the IC are not used in this simple design; they can be applied in other subsystems. Any unused input pins should be connected to 0V or Vs, to prevent damage by static electricity.

In the example PCB, the two input signals go to pins 1 and 2, and the output signal comes from pin 3. Any of the other three NAND gates in the IC could be used.

Build and test the units that will provide the input signals before adding the NAND gate IC.

Use a Dual In Line (DIL) socket for the IC. Before inserting the IC, connect the power supply and use a voltmeter to check that:

Insert the IC the right way round.

Testing

Make sure that the signal going out (on the green PCB track) follows the NAND gate truth table.

Fault finding

If there is a fault, check that:

If there is a fault, check the tracks and solder joints.

Alternatives

Web links

Return to list of datasheets

Go to Top

Negative Latch - Process Unit

What does it do?

The negative latch produces an output signal that goes high and remains high when the input signal has been low. It is useful for turning something on until a second signal switches it off.

How does it operate?

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit.

The negative latch subsystem is a resetable memory block. The output signal goes high as soon as the input signal goes low. Pressing the push switch resets the output signal back to low.

An alternative form of latch is provided by the positive latch subsystem. The positive latch is easier to understand and work with.

The negative latch circuit uses a pair of cross-coupled NAND Gates to provide a simple form of memory.

This form of latch is often referred to as an RS bistable or flip-flop. RS stands for Reset and Set.

Rather than using a push switch, the reset signal can come from another sensor or processing block.

The negative latch is an example of positive feedback – the output signal from each NAND gate is fed back to an input pin of the other NAND gate. It is this feedback that produces the latching action.

Possible applications

Making


Pins of 4011 NAND gate IC


How part of the PCB might look

The PCB shows the basic circuit. Several gates in the IC are not used in this simple design; they can be applied in other subsystems. Any unused input pins should be connected to 0V or Vs, to prevent damage by static electricity.

Build and test the unit that will provide the input signal before building the latch.

Use a Dual In Line (DIL) socket for the IC. Before inserting the IC, connect the power supply and use a voltmeter to check that:

Add the switch and resistor and test that the signal on pin 6 goes low when the switch is pressed. Insert the IC the right way round.

Testing

Make sure that the signal going out (on the green PCB track) goes high and stays high after a low signal on the input pin.

Fault finding

If there is a fault, check that:

If there is a fault, check the tracks and solder joints.

Alternatives

Web links

Return to list of datasheets

Go to Top

Non-Inverting Amplifier - Process Unit

What does it do?

The non-inverting amplifier subsystem is used to amplify an analogue input signal.

How does it operate?

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit.

The non-inverting amplifier circuit uses an operational amplifier, or op amp, to amplify the signal.

The signal is amplified relative to a reference signal, which is fixed at half the power supply voltage by the potential divider R2 and R3.

An alternative is to use a pair of power supplies, +Vs and –Vs, and then the reference signal is 0V.

Operational amplifiers have two inputs, an inverting input ('-') and a non-inverting input ('+').

The amount of amplification, or gain, can be varied by changing RF and R1, where RF is the feedback resistor.

In this formula, the input voltage and the output voltage are measured relative to the reference voltage, which is half the supply voltage Vs.

The LM324 is a suitable inexpensive IC, contains four operational amplifiers and can work from a d.c. power supply with a voltage anywhere between 3 and 32V.

Possible applications

Making


Pins of LM324IC


How part of the PCB might look

In the example PCB, the input signals goes to pin 3, and the output signal comes from pin 1. Any of the other three operational amplifiers in the IC could be used.

Build and test the unit that will provide the input signal before building the comparator.

Use a Dual In Line (DIL) socket for the IC. Before inserting the IC, connect the power supply and use a voltmeter to check that:

Insert the IC the right way round.

Testing

Turn the potentiometer to its mid-point. Make sure that the signal going out (on the green PCB track) increases as the input signal increases.

Fault finding

If there is a fault, check that:

If there is a fault, check the tracks and solder joints.

Alternatives

Web links

Return to list of datasheets

Go to Top

NOR gate - Process Units

What does it do?

Turns something off when either input is activated.

How does it operate?


NOR Gate Circuit

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit.

When two input signals are used with a NOR gate, the NOR gate subsystem provides an output signal that is low when either input signals are high. Otherwise, the output signal is low.

The output from the NOR gate is shown in the truth table below, with 0 meaning “low” and 1 meaning “high”


Truth table for a 2-input NOR gate

American (ANSI) Symbol

European (DIN) Symbol

The simplest NOR gate ICs (such as the 4001B) have two input signals. Other NOR gate ICs are available with more inputs. The 4025B has three input signals, the 4002B has four input signals and the 4078B has eight input signals. In all NOR gates the output signal goes low when any of the input signals is high.


It is possible to combine NOR gates to produce an OR gate. NOR gates can also be made to work like inverters.

Possible applications

Making


Pins of 4001B


How part of the PCB might look

The PCB shows the basic circuit. Several gates in the IC are not used in this simple design; they can be applied in other subsystems. Any unused input pins should be connected to 0V or Vs, to prevent damage by static electricity.

In the example PCB, the two input signals go to pins 1 and 2, and the output signal comes from pin 3. Any of the other three NOR gates in the IC could be used.

Build and test the units that will provide the input signals before adding the NOR gate IC.

Use a Dual In Line (DIL) socket for the IC. Before inserting the IC, connect the power supply and use a voltmeter to check that:

Insert the IC the right way round.

Testing

Make sure that the signal going out (on the green PCB track) follows the NOR gate truth table.

Fault finding

If there is a fault, check that:

If there is a fault, check the tracks and solder joints.

Alternatives

Web links

Return to list of datasheets

Go to Top

OR gate - Process Unit

What does it do?

Turns something on when either input is activated.

How does it operate?


OR Gate Circuit

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit.

When two input signals are used with a OR gate, the OR gate subsystem provides an output signal that is high when either input signals are high. Otherwise, the output signal is low.

The output from the OR gate is shown in the truth table below, with 0 meaning “low” and 1 meaning “high”.


Truth table for a 2-input NOR gate

American (ANSI) Symbol

European (DIN) Symbol

The simplest OR gate ICs (such as the 4071B) have two input signals. Other OR gate ICs are available with more inputs. The 4075B CMOS IC has three input signals and the 4072B has four input signals. In all OR gates the output signal goes high when any of the input signals is high.

It is possible to combine NOR gates to produce an OR gate.

Possible applications

Making


Pins of 4071B


How part of the PCB might look

The PCB shows the basic circuit. Several gates in the IC are not used in this simple design; they can be applied in other subsystems. Any unused input pins should be connected to 0V or Vs, to prevent damage by static electricity.

In the example PCB, the two input signals go to pins 1 and 2, and the output signal comes from pin 3. Any of the other three OR gates in the IC could be used.

Build and test the units that will provide the input signals before adding the NOR gate IC.

Use a Dual In Line (DIL) socket for the IC. Before inserting the IC, connect the power supply and use a voltmeter to check that:

Insert the IC the right way round.

Testing

Make sure that the signal going out (on the green PCB track) follows the OR gate truth table.

Fault finding

If there is a fault, check that:

If there is a fault, check the tracks and solder joints.

Alternatives

Web links

Return to list of datasheets

Go to Top

PIC Microcontrollers - Process Unit

What does it do?

PIC microcontrollers are general purpose programmable process units.

How do they operate?

PIC microcontrollers are ‘computers on a chip’. They can replace the large number of fixed-function integrated circuits, such as CMOS ICs.

The way in which a PIC microcontroller behaves is controlled by a program. Depending on the program, a PIC can behave like combinations of gates, timers, counters, latches etc., as well as perform other functions that would be very complicated using ‘hard-wired’ logic.

The section on Software Engineering on this web site gives details of PIC programming.

This data sheet gives outline information relevant to PICs used in schools.

Selecting a suitable PIC

There is a potentially bewildering range of PICs available. In practice the selection process is not as complicated as it looks.

Once the PIC is selected it is important to be aware of the supply voltage needed. It is convenient, where possible, to use the same power supply for all the electronic subsystems. Most PICs can provide an output current of 25mA per pin, but some have a lower limit. PICs are therefore able to drive some low to medium power devices, such as piezo transducers, some LEDs and some buzzers, without the need for a driver.

PICs available

Notes

Possible applications

Making

Use a Dual In Line (DIL) socket for the PIC. Before inserting the PIC, connect the power supply and use a voltmeter to check that:

Insert the PIC the right way round.

Testing

Solder in place the components needed for just one output device. Write a short test program that pulses this output device on and off. When you are sure this is working properly, add and test each output device in this way one at a time.

When all the output devices are working, solder in place the components for one input sensor. Write a short test program that turns one of the output devices on and off when the signal from this input device is high or low. When you are sure the input sensor is working properly, add and test each input sensor one at a time.

Fault finding

If there is a fault, check that:

If there is a fault, check the tracks and solder joints.

Alternatives

Web links

Suppliers (many of these websites include information about the relevant PICs plus circuit and PCB information):

Further circuits and PCB information:

Return to list of datasheets

Go to Top

Positive Latch - Process Unit

What does it do?

The positive latch produces an output signal that goes high and remains high when the input signal has been high. It is useful for turning something on until a second signal switches it off.

How does it operate?

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit.

The positive latch subsystem is a resetable memory block. The output signal goes high as soon as the input signal goes high. Pressing the push switch resets the output signal back to low.

An alternative form of latch is provided by the negative latch subsystem. The positive latch is easier to understand and work with.

The positive latch circuit uses a pair of cross-coupled NOR gates to provide a simple form of memory.

Rather than using a push switch, the reset signal can come from another sensor or processing block.

The positive latch is an example of positive feedback – the output signal from each NOR gate is fed back to an input pin of the other NOR gate. It is this feedback that produces the latching action.

Possible applications

Making


Pins of 4001 NAND gate IC


How part of the PCB might look

The PCB shows the basic circuit. Several gates in the IC are not used in this simple design; they can be applied in other subsystems. Any unused input pins should be connected to 0V or Vs, to prevent damage by static electricity.

Build and test the unit that will provide the input signal before building the latch.

Use a Dual In Line (DIL) socket for the IC. Before inserting the IC, connect the power supply and use a voltmeter to check that:

Add the switch and resistor and test that the signal on pin 6 goes low when the switch is pressed. Insert the IC the right way round.

Testing

Make sure that the signal going out (on the green PCB track) goes high and stays high after a high signal on the input pin.

Fault finding

If there is a fault, check that:

If there is a fault, check the tracks and solder joints.

Alternatives

Web links

Return to list of datasheets

Go to Top

Retriggerable Monostable - Process Unit

What does it do?

The retriggerable monostable subsystem produces a delay after the input signal goes high.

How does it operate?

Retriggerable monostable circuit

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit. Note that Livewire does not include the 4098B monostable IC, so the circuit diagram uses a 16 pin IC outline as a substitute. The circuit operation therefore cannot be simulated.

The timing period begins as soon as the input signal changes from low to high.
If the input signal changes from low to high again during the timing period, the timing starts again.

The retriggerable monostable is slightly different from the delay subsystem where the timing period begins when the input signal goes low.

The retriggerable monostable circuit uses the ability of an electrolytic capacitor to store charge.

The 4098B IC actually contains a pair of monostables as shown in the pin diagram below. So the IC can be used to produce a pair of independent monostables. For full details see the IC data sheet.


The length of the delay can be calculated:

Delay time (t) = 0.5 ´ R1 ´ C1 where R1 is the resistance in megohms and C1 is the capacitance in mF.

So, if R1 = 1M and C1 = 10mF, the delay is 0.5 ´ 1 ´ 10 = 5s.

If a longer delay time is needed then a larger capacitor can be used.

Possible applications

Making


Pins of 4098B IC


How part of the PCB might look

Build and test the unit that will provide the input signal before building the retriggerable monostable unit.

Use a Dual In Line (DIL) socket for the IC. Before inserting the IC, connect the power supply and use a voltmeter to check that:

Insert the IC the right way round.

Testing

Make sure that the signal going out (on the blue PCB track – from pin 10) changes from high to low.

Fault finding

If there is a fault, check that:

If there is a fault, check the tracks and solder joints.

Alternatives

Web links

Return to list of datasheets

Go to Top

Schmitt Inverter (Schmitt NOT Gate) - Process Unit

What does it do?

The Schmitt inverter subsystem, also known as a Schmitt NOT gate, provides an output signal which is opposite to the input signal. The Schmitt inverter is ideal for converting analogue signals into digital signals.

How does it operate?


Schmitt Inverter Circuit

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit.

When the input signal goes above an upper threshold voltage, the output signal goes low and remains low until the input signal falls below the lower threshold, when the output signal goes high.

This action provides a cleaner output signal by removing electrical noise and makes the Schmitt inverter ideal for converting analogue signals into digital signals.

When used with a digital input signal, the Schmitt inverter acts like a normal inverter subsystem.

The Schmitt inverter circuit uses a Schmitt trigger. Schmitt triggers are logic gates that have been designed to include both an upper and a lower threshold level.

This ability of the Schmitt trigger to switch on and off at different voltage levels is known as hysteresis.

Possible applications

Making


Pins of 40106B Schmitt inverter

How part of the PCB might look

The PCB shows the basic circuit. Several gates in the IC are not used in this simple design; they can be applied in other subsystems. Any unused input pins should be connected to 0V or Vs, to prevent damage by static electricity.

Build and test the unit that will provide the input signal before building the Inverter.

Use a Dual In Line (DIL) socket for the IC. Before inserting the IC, connect the power supply and use a voltmeter to check that:

Insert the IC the right way round.

Testing

Make sure that the signal going out (on the green PCB track) changes from high to low.

Fault finding

If there is a fault, check that:

If there is a fault, check the tracks and solder joints.

Alternatives

Web links

Return to list of datasheets

Go to Top

Summing Amplifier - Process Unit

What does it do?

The summing amplifier subsystem is used to add two analogue input signals together.

How does it operate?

In this circuit the input voltages and output voltage are measured relative to a reference voltage, equal to half the supply voltage, and set by the potential divider consisting of R4 and R5.

The output voltage (relative to this reference voltage of +Vs/2) is proportional to the sum of the two input voltages (again, relative to the reference). (An alternative is to use a pair of power supplies, +Vs and –Vs, and then the reference signal is 0V.)

 

 

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit.


The summing amplifier circuit uses an operational amplifier, or op-amp, to add the input signals.

Operational amplifiers have two inputs, an inverting input ('-') and a non-inverting input ('+').

The amount of amplification, or gain, can be varied by changing R1, R2 and the feedback resistor VR1.

R1 must always be the same as R2.

Note that the gain of the circuit is negative. So, if the two input voltages VA and VB are above the reference voltage, then Vout will be below the reference voltage.

The LM324 is a suitable inexpensive IC, contains four operational amplifiers and can work from a d.c. power supply with a voltage anywhere between 3 and 32V.

Possible applications

Making


Pins of LM324 IC


How part of the PCB might look

The PCB shows the basic circuit. Three operational amplifiers in the IC are not used in this simple design; they can be applied in other subsystems.

Build and test the unit that will provide the input signals before building the difference amplifier.

Use a Dual In Line (DIL) socket for the IC. Before inserting the IC, connect the power supply and use a voltmeter to check that:

Insert the IC the right way round.

Testing

Make sure that the signal going out (on the green PCB track) is proportional to the sum of the voltages of the input signals.

Fault finding

If there is a fault, check that:

If there is a fault, check the tracks and solder joints.

Alternatives

Web links

Return to list of datasheets

Go to Top

Darlington Driver - Driver Unit

What does it do?

The Darlington driver subsystem is an electronic switch that provides an output signal powerful enough to drive output subsystems requiring high current.

How does it operate?


Inside a Darlington Driver

The subsystem acts as an inverter; the output signal is the inverse of the input signal.

The darlington driver circuit consists of two transistors connected together to form a darlington pair.

The first transistor boosts the current to the second transistor, giving much more current gain than an ordinary transistor.


Darlington Driver circuit

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit.

To turn on a Darlington Driver the base voltage (the input voltage) needs to be 1.4V (twice the value needed for a single transistor.

While it is possible to construct a Darlington Driver using a pair of transistors, it is simpler and cheaper to use manufactured Darlington Drivers (with two transistors already combined inside them), such as the BCX38B, the more modern BCX38C and the MPSA13.

These are shown in a circuit diagram using the same symbol as a single transistor.

The BCX38C can provide up to 0.8A for a load. The MPSA13 can provide up to 0.4A.

The resistor R1 is used to limit the current from the previous subsystem. For use with a CMOS IC R1 should be about 22k. For use with a PIC R1 should be about 1k2. Full details on selecting this resistor are given in a section of this web site.

The output subsystem is connect between the supply rail (+Vs) and the output signal. The output subsystem is sometimes called the load resistance.

The resistor R2 is included to help with testing – it pulls the output signal up to Vs when the transistor is off.


ULN2803A Darlington Driver IC

ICs are available that contain several Darlington Drivers. These are useful when more than one load is being driven. This is quite common when using a PIC.

As an example, the ULN2803A IC contains eight Darlington Drivers and each of these can provide up to 0.5A.

All the Darlington Drivers in the IC include a base resistor, so it is not necessary to include one. They also include a protective diode, so it is not necessary to add one to an output device that could generate a 'back emf', such as a motor, solenoid or relay.

Possible applications

Making


Pins of the BCX38B, BCX38C and MPSA13


How part of the PCB might look

When using a Darlington Driver it is important to be clear about which pin is the collector (C), which is the base (B) and which is the emitter (E).

Manufacturer’s data sheets usually show the pins viewed from underneath (unlike IC pins, where the view shown is from above).

The PCB shows the basic circuit.

Build and test the unit that will provide the input signal before building the Darlington Driver.

Testing

Make sure that the signal going out (on the green PCB track) is the inverse of the input signal (on the blue PCB track).

Fault finding

If there is a fault, check that the Darlington Driver is connected the right way round. Then check the resistor values. Check the tracks and solder joints.

Alternatives

Web links

Return to list of datasheets

Go to Top

L293D driver - Driver Unit

What does it do?

The L293D driver subsystem is particularly useful for use with d.c. motors because it can control two motors and can drive them forwards and backwards.

How does it operate?

L293D driver circuit

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit.

The L293D IC has four input signals, labeled ‘a’, ‘b’, ‘c’ and ‘d’.

The driver boosts the current from these signals. The voltage signal at each output (‘a’, ‘b’, ‘c’ and ‘d’) is high or low when the corresponding input signal is high or low. But the current available from the output pin is much higher.

So the L293D is able to drive output devices requiring quite high currents of up to 600mA from each output pin.

The main advantage of the L293D is that, unlike a transistor, Darlington driver or MOSFET, it can drive a d.c. motor in forward or reverse.

It is particularly useful for work with PICs (hotlink to data sheet).

As well as controlling d.c. motors it is useful for work with stepper motors.


If the L293D is connected to two d.c. motors as shown on the left, and input signal ‘a’ is high and input signal ‘b’ is low, then current will flow out of output pin ‘a’, through the upper motor and into output pin ‘b’.

If input signal ‘c’ is low and input signal ‘d’ is high, then current will flow out of output pin ‘d’, through the lower motor and into output pin ‘c’. So the current in the lower motor will flow in the opposite direction to the current in the upper motor, and the motors will rotate in opposite directions.

Current can only flow in one direction (the direction of the arrow on the circuit symbol) through a transistor, Darlington driver or n-channel MOSFET, – which is why they cannot be used to reverse a motor.

When current is flowing out of the L293D this is called ‘sourcing’. When current is flowing into the L293D this is called ‘sinking’.

Possible applications

Making

Pins of the L293D driver

How part of the PCB might look

The blue lines show wire links on the component side.

Build and test the units that will provide the input signals before building the L293D driver.

Testing

Make sure that the signals going out (on the green PCB tracks) are the same (high or low) as the input signals (on the blue PCB tracks).

Fault finding

If there is a fault, check that the L293D is connected the right way round. Check the tracks and solder joints.

Alternatives

Web links

Return to list of datasheets

Go to Top

MOSFET (Transducer Driver) - Driver Unit

What does it do?

The MOSFET driver subsystem is an electronic switch that provides an output signal powerful enough to drive output subsystems requiring very high current.

How does it operate?

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit.

MOSFET is short for Metal Oxide Semiconductor Field Effect Transistor.

The subsystem acts as an inverter; the output signal is the inverse of the input signal.

The MOSFET has three legs known as the gate, drain and source.

A MOSFET is controlled by the voltage on its gate – about 2V is needed to turn it on. It requires only a tiny gate current to operate – it has a very large ‘input resistance’.

The output subsystem is connect between the supply rail (+Vs) and the output signal from the MOSFET. The output subsystem is sometimes called the load resistance.

As examples of typical MOSFETs, the BS170 MOSFET can provide up to 0.4A for a load. The ZVN 4306A can provide up to 1.1A. The VNP10N06 has built-in protection against overheating, a Schmitt triggered input signal and can provide up to 10A.

The resistor R1 is included to help with testing – it pulls the output signal up to Vs when the MOSFET is off.

Possible applications

Making


Pins of the ZVN4306A MOSFET


Pins of the VNP10N06 MOFSET


Pins of the BS170 MOSFET


How part of the PCB might look using the BS170

When using a MOSFET it is important to be clear about which pin is the drain (D), which is the gate (G) (the equivalent pin is labelled ‘Input’ in the VNP10N06) and which is the source (S). The drain in connected to the load, the gate to the input signal and the source to 0V.

Manufacturer’s data sheets usually show the pins viewed from underneath (unlike IC pins, where the view shown is from above).

Build and test the unit that will provide the input signal before building the MOSFET.

Testing

Make sure that the signal going out (on the green PCB track) is the inverse of the input signal (on the blue PCB track).

Fault finding

If there is a fault, check that the MOSFET is connected the right way round. Then check the resistor value. Check the tracks and solder joints.

Alternatives

Web links

Return to list of datasheets

Go to Top

Relay - Driver Unit

What does it do?

The relay subsystem is an electrically-operated switch. It requires a separate electrical supply to provide power to an output device. It is often used for reversing motors.

How does it operate?

Relay circuit

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit.

Like ordinary switches, relay switches are available as single-pole single-throw (SPST), single-pole double-throw (SPDT), and double-pole double-throw (DPDT). The circuit diagram on the left shows a DPDT relay.

The switching is done by a coil of wire (an electromagnet) that creates a magnetic field when a current passes through it.

The switch contacts in the relay change over due to the force from the magnetic field when a current passes through the coil.

The reverse biased diode is included because, when relays are switched off, they can generate a ‘back e.m.f.’ that can damage the driver. When the relay is switched off the diode conducts current and prevents the damage.

The driver subsystem that provides the input signal to the relay must be able to supply enough current for the coil.

A DPDT relay has three pairs of connections known as common (CO), normally open (NO) and normally closed (NC).


Relay circuit for reversing a motor

A DPDT relay is often used to reverse a motor. The circuit diagram on the left shows how the motor is connected to the relay.

When the input signal to the relay is high there is no current in the relay coil (as on the left), the positive side of the battery B1 is connected to the right-hand terminal of the motor, so the current in the motor flows from right to left.

When the input signal to the relay is low there is current in the relay coil (as on the left) and the switch contacts change over. So now the positive side of the battery is connected to the left-hand terminal of the motor, the current in the motor flows from left to right and so the direction of rotation of the motor reverses.

The circuit diagram shows the basic principles. If it is necessary to stop and start the motor this can be done with a separate driver or a SPST relay.

A few relays need relatively low currents and can be driven directly from a PIC, 555 Timer IC or LM324 op-amp. In these cases the relay coil is connected to the input signal and to 0V.

Possible applications

Making


Pins of the Rapid 60-0100 DPDT relay

How part of the PCB might look

The diagram shows the pin arrangements and numbering for the Rapid 60-0100 DPDT relay. Note the unusual pin labelling system. The PCB shows the basic circuit. The separate power supply and output device would be connected to the six upper pins.

Build and test the driver unit that will provide the input signal before building the relay.

Use a 16-pin Dual In Line (DIL) socket for the relay. Before inserting the relay, connect the power supply and use a voltmeter to check that:

Insert the relay the right way round.

Testing

Use a multimeter to test the resistance between the switch contacts and make sure that their resistance changes from high to low when the coil is switched on and off.

Fault finding

If there is a fault, check that:

If there is a fault, check the tracks and solder joints.

Alternatives

Web links

Return to list of datasheets

Go to Top

Transistor - Driver Unit

What does it do?

The transistor driver subsystem is an electronic switch that provides an output signal powerful enough to drive output subsystems requiring medium current.


How does it operate?


 

 

 

Transistor Driver circuit

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit.

The subsystem acts as an inverter; the output signal is the inverse of the input signal.

The output subsystem is connected between the supply rail (+Vs) and the output signal. The output subsystem is sometimes called the load resistance.

The transistor driver circuit uses an NPN transistor, which has three legs known as the base, emitter and collector.

When the voltage between the base and the emitter is at least 0.7V, a small current flowing into the base will cause a much larger current to flow from the collector to the emitter.

The transistor current gain can be calculated:

A typical transistor would have a current gain of about 100.

The BC108 is widely used in school electronics but it is more expensive and less effective than modern transistors. The BC548B is a typical modern transistor. It can provide up to 100mA for a load and can directly replace the BC108 in circuits.

The resistor R1 is used to limit the current from the previous subsystem. For use with a CMOS IC R1 should be about 22k. For use with a PIC R1 should be about 1k2. Full details on selecting this resistor are given on this web site. The resistor R2 is included to help with testing – it pulls the output signal up to Vs when the transistor is off.

Possible applications

Making

Pins of the BC547B


How part of the PCB might look

When using a transistor it is important to be clear about which pin is the collector (C), which is the base (B) and which is the emitter (E). The PCB diagram shows the connections for the BC547B.

Manufacturer’s data sheets usually show the pins viewed from underneath (unlike IC pins, where the view shown is from above).

Build and test the unit that will provide the input signal before building the Transistor Driver.

Testing

Make sure that the signal going out (on the green PCB track) is the inverse of the input signal (on the blue PCB track).

Fault finding

If there is a fault, check that the transistor is connected the right way round. Then check the resistor values. Check the tracks and solder joints.

Alternatives

Web links

Return to list of datasheets

Go to Top

Thyristor - Driver Unit

What does it do?

A thyristor is used to drive a load. It is switched on by applying a positive voltage to its input pin (the ‘gate’).

How does it operate?

A thyristor is a controllable diode. It is triggered to conduct a forward current (in the direction of the diode arrow – from the anode to the cathode) if the voltage of the gate is about +1V relative to the cathode.

After the thyristor starts to conduct, current continues to flow until the voltage between the anode and cathode pins is reduced to zero.

A thyristor behaves rather like a combination of a transistor driver and a latch.



Thryistor Circuit

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit.


The circuit on the left will switch the current through the Output device on if the switch SW1 is closed and the Input signal voltage (applied to the gate) rises above about 1V.

The current will continue to flow through the Output device, even if the Input signal voltage falls below 1V.

The current through the thyristor can be turned off by opening the switch SW1.

To turn the current back on, the switch needs to be closed and an Input signal voltage above 1V needs to be applied again.

The ‘Output’ box shown on the circuit diagram would need to be deleted and replaced by the actual Output device to produce a working circuit.

It is important to select a thyristor which can provide a maximum current greater than the current needed by the Output device. Otherwise the thyristor could be damaged. A variety of thyristors are available. Some low cost examples are:

Manufacturer’s code Rapid Electronics Order Code Maximum safe current Notes
2N5060 47-3266 170mA Very low cost.
C106D1 47-3330 800mA Slightly more expensive. Much higher current (suitable for e.g. motors). RoHS compliant.

Thyristors are also known as Silicon Controlled Rectifiers (SCRs).

Possible applications

Making


Pins of 2N5060 thyristor


Pins of C106D1 thyristor


How part of the PCB (using a 2N5060) might look

The switch SW1 is a push-to-break switch.

The pin arrangement would be different for the C106D1 thyristor.

The PCB shows the output device connected via a 2-way PCB terminal.

Testing

Before adding the components, make sure that the signal coming in (on the blue PCB track) changes from high to low.

Fault finding

If there is a fault, check that:

If there is a fault, check the tracks and solder joints.

Alternatives

Web links

Return to list of datasheets

Go to Top

7 Segment Display - Output Device

What does it do?

The 7-segment display is used to display numbers.

How does it operate?


7 Segment Display Circuit

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit.

A 7 segment display consists of seven LEDs (called ‘segments’), arranged so that when they are turned on and off they display the digits 0, 1, 2, …, 9. Many displays have an extra LED for the ‘dot’.

Usually 7 segment displays are driven by a PIC or by a 4026 counter.

The seven resistors are chosen to limit the current into the 7 segment display to a safe level. For use with a PIC a value of 270R is suitable. In the case of a 4026 counter the current should be limited to 3.2mA and 1k resistors are needed.

In the circuit diagram shown on the left the 7 segment display used is called a ‘common cathode’ display. This means that all the seven LEDs have their cathode (negative terminal) connected to 0V. So the current to illuminate a segment flows from a high signal on the output pin of the driver, through the current-limiting resistor, through the LED and down to 0V.

‘Common anode’ 7 segment displays are available but are more difficult to work with.


7 Segment Display with Decoder-Drvier circuit

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit.

Most counter ICs e.g. the 4029B, produce a binary output pattern. To show the corresponding digit on a 7 segment display a decoder-driver IC needs to be added.

One suitable decoder driver is the 4511B, which is suitable for driving ‘common cathode’ 7 segment displays. Unlike typical CMOS ICs it can provide up to 20mA to drive the 7-segment display.

A PIC can drive a 7 segment display without a decoder driver. Used in this way, the display can also show some letters as well as numbers:

However, the programming is quite complicated.

To display two digits using a PIC a pair of 4026B counters and 7 segment displays can be used. An alternative is to use eight pins on the PIC (forming a single ‘port’) and to send a binary coded decimal number to this port. A pair of 4511B decoder drivers can then be used to display the number on two 7 segment displays.

To identify each of the seven LEDs that make up the digits, they are given letters.


How the seven LEDs are lettered

So, for example, to display a ‘1’, segments ‘b’ and ‘c’ are on; the others are off.

Possible applications

Making


How part of the PCB might look


Pin connections of the Rapid 57-0127
common cathode seven segment display

The diagram above shows the relationship between the segments and the IC pins for the 7 segment display (Rapid order code 57-0127) shown in the PCB diagram. The Decimal Point (DP) is not usually used.

Note that different 7 segment displays have different pin arrangements.

Build and test the unit that will provide the input signals before building the 7 segment display.

It is not usually possible to use a Dual In Line (DIL) socket for the display because of its shape and size. Use strips of Single In Line (SIL) sockets, snapped to the correct length.

Before inserting the IC, connect the power supply and use a voltmeter to check that:

Before inserting the 7 segment display, make sure that you have identified pin 1.

Testing

Make sure that the display shows all the digits from 0 to 9 correctly.

Fault finding

If there is a fault, investigate if it is isolated to one or two segments; if so, check all the tracks and solder joints for the faulty segment(s).

Alternatives

Web links

Return to list of datasheets

Go to Top

Bar graph display (and driver) - Output Device

What does it do?

A bargraph display is usually used to give a visual indication of an analogue voltage signal.

How does it operate?

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit.

A bargraph display consists of 10 LEDs, packaged in a 20 pin DIL IC.

It is usually used with a LM3914 bargraph display driver (as shown in the circuit on the left). The supply voltage Vs should be in the range of 3V to 20V.

If an analogue signal is fed into the display driver the number of LEDs lit increases as the analogue signal voltage increases.

If the analogue input signal voltage is 0V then no LEDs are on.

If the voltage on the ‘SIG’ input pin (pin 5) of the LM3914 increases to 1.25V the bargraph display shows ‘full scale’ (all 10 LEDs on).


In the circuit diagram R1 and R2 form a potential divider, to scale down the Input signal by a factor of about four. So, an Input signal voltage of 5V gives a voltage at pin 5 of the driver IC of 1.25V, producing ‘full scale’ on the LEDs. To give a ‘full scale’ reading for a different Input signal voltage the values of R1 and R2 would need to be changed.

The resistor R3 regulates the current in the LEDs. The value of 1k used gives a LED current of about 12mA.

Possible applications

Showing variations in analogue quantities, such as:

Making

Pin diagram for the LM3914 Bargraph Display Driver

Pin diagram for the Rapid 55-0190 Bargraph Display

Pin 1 is identified by small flat on the corner of the IC package, not by the usual dot or notch


The PCB for a driver unit and bargraph display might look similar to the example on the left.

Small IC pads and narrow tracks have been used to allow the tracks to be run between the pads. This reduces the number of wire links needed but needs careful soldering.

The driver IC and the bargraph display are both mounted with pin 1 at the bottom right (rather than the top left, as in the usual arrangement). This is done so that the first LED that lights is at the bottom, and to simplify the tracks.

Build and test the unit that will provide the analogue input signal before adding the bargraph driver and display.

Testing

Check that:

Fault finding

If there is a fault, check all the connections and soldering.

Alternatives

Web links

Return to list of datasheets

Go to Top

Bulb (or lamp) - Output Device

What does it do?

The bulb subsystem converts the input signal into light.

How does it operate?


Bulb circuit

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit.

The bulb is on when the signal coming into the driver providing the input signal is high. Otherwise, the bulb is off.

The bulb must be connected to a transistor, darlington or MOSFET driver subsystem.

Bulbs come in a variety of voltages and currents. The power supply for the bulb (which can be separate from the supply for the rest of the electronics) must provide the voltage needed by the bulb.

The driver providing the input signal must be able to provide a current considerably larger than the specified current for the bulb, because the current in the bulb is higher until the filament warms up (a safety margin of ´10 is advisable).


MES Bulb

The bulb is connected between the supply rail (+Vs) and the input signal from the driver. This acts as a load on the driver.

When the input signal coming into the bulb subsystem is low, a potential difference across the bulb causes current to flow. It is this current that causes the bulb to light.


MES Bulb Holder

Bulbs also come in a variety of sizes and fittings: T1, LES, MES and SBC. Probably the most common is MES (Miniature Edison Screw).

Bulbs need to be fitted into a corresponding style of holder to allow the electrical leads to be easily connected.

Some bulbs are available with leads attached.

Possible applications

Making


A PCB-mounting terminal block


Normally a bulb would not be mounted on the PCB. Usually a terminal block is mounted on the PCB and wires from this are connected to the bulb holder.

Build and test the unit that will provide the driving input signal before adding the bulb.

Testing

Make sure that the bulb switches on and off as power is applied from the driver unit.

Fault finding

If there is a fault, check the bulb by removing it from the circuit, placing it in a new holder and applying power to it directly. Check the voltage at the terminals of the terminal block. Check the resistance between the leads to the bulb holder (with the bulb inserted).

Alternatives

Web links

Return to list of datasheets

Go to Top

Buzzer (and Piezo sounder) - Output Device

What does it do?

The buzzer subsystem produces an audible tone when powered.


How does it operate?


Buzzer circuit

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit.

Buzzers come in a variety of voltages and currents. The power supply for the buzzer (which can be separate from the supply for the rest of the electronics) must provide the voltage needed by the buzzer.

Piezo sounders are a type of buzzer. They should not be confused with Piezo transducers – which require an a.c. input voltage to drive them.

Some process units provide enough current to drive buzzers. Typical buzzers require currents in the range 10 – 35mA.

If CMOS ICs or a higher current buzzer are used then a driver (transistor, Darlington or MOFET) is needed to boost the current. The circuit on the left shows the circuit needed with a driver.


Buzzer curcuit for use with higher current process units

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit.

PICs, 555 Timer ICs and the LM324 op-amp can provide higher currents and can drive some buzzers directly.

Check the data for the buzzer and the process unit to make sure that the process unit can provide more current than is needed by the buzzer.

If this is possible, the buzzer is connected to the 0V rail (as on the left) rather than to +Vs.

Buzzers can either be PCB-mounted or connected to the circuit with flying leads. Usually it is neater to mount them on the PCB.

Possible applications

Making

Buzzers have a positive and a negative terminal, marked on their case. The positive terminal should be connected to the positive voltage supply. The negative terminal should be connected to the signal from the driver.

The graphic on the left shows how part of the PCB might look for a PCB-mounted buzzer connected to a driver.

How part of the PCB might look

If a buzzer with flying leads is used then a terminal block is mounted on the PCB and wires from this are connected to the buzzer.

Build and test the unit that will provide the driving input signal before adding the buzzer.

Testing

Make sure that the buzzer switches on and off as power is applied from the driver unit.

Fault finding

If there is a fault, check that the buzzer has been connected the right way round. Check the buzzer by applying power to it directly.

Alternatives

Web links

Return to list of datasheets

Go to Top

LED - Output Device

What does it do?

The LED (light-emitting diode) subsystem converts the input signal into light.

How does it operate?

LEDs are diodes that emit light when a current passes through them. The current enters the anode and leaves the diode at the cathode.

Some process units provide enough current to drive LEDs. Typical LEDs require currents in the range 2 – 25mA.

If CMOS ICs or a higher current LED are used then a driver (transistor, Darlington or MOSFET is needed to boost the current.


LED circuit

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit.

The circuit on the left shows the circuit needed with a driver. The LED, in series with a current-limiting resistor R1, is connected between the supply rail (+Vs) and the input signal from the driver. The LED and resistor act as a load on the driver.

When the input signal coming into the LED subsystem is low, a potential difference across the LED causes current to flow. It is this current that causes the LED to glow.


LED circuit for use with higher current process units

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit.

PICs, 555 Timer ICs and the LM324 op-amp can provide higher currents and can drive some LEDs without needing a driver unit.

Check the data for the LED and the process unit to make sure that the process unit can provide more current than is needed by the LED.

If this is possible, the LED is connected to the 0V rail (as on the left) rather than to +Vs

LEDs come in a variety of colours and sizes. Flashing LEDs are available.

Infrared (IR) LEDs produce infrared radiation which we cannot see with our eyes, but which is used in infrared communication systems. The infrared can be ‘seen’ with a digital camera.

Rainbow LEDs e.g the Rapid 55-1904, cycle through the colours red, green, blue and white for a few seconds each.
'Full colour' LEDs e.g. the Rapid 56-0672 contain a red, green and blue LED (the primary colours for light) and so, by turning different LEDs on and off, the full spectrum of colours can be displayed.

The series resistor R1 is used to limit the current passing through the LED. Using Ohm's law the value of this current-limiting resistor can be calculated:

The voltage Vf across the diode is typically about 2V and the forward current If is about 10mA = 0.01A. So, for a 5V power supply:

The nearest preferred (E12) value would be 330R.

Brightness
The ‘brightness’ (scientifically this is called the ‘luminous intensity’) of a LED, as perceived by the human eye, is expressed in candelas or milli-candelas (mcd). A low cost LED might have a luminous intensity of 10 – 100mcd. High brightness LEDs can have luminous intensities of 10,000 – 100,000mcd, which is as bright as a 60W light bulb.

The ‘viewing angle’ of a LED expresses how sharply concentrated the beam is. A narrow viewing angle is suitable for illumination but a wide viewing angle is needed for a LED being used as an indicator.

Possible applications

Making

A LED must be connected the right way round, with its anode positive and its cathode negative. Otherwise it will not work, and it might be damaged.

There are two ways to spot the cathode. Usually one side of the LED is flat, and this on the same side as the cathode.

The cathode leg is also shorter than the anode leg.








How part of the PCB might look

Normally a LED would be mounted on the PCB, as shown on the example on the left.


It is also possible to mount LEDs in the product case in a panel clip as on the left. In this case a terminal block is mounted on the PCB and wires from this are connected to the LED.

Build and test the unit that will provide the driving input signal before adding the LED.

Testing

Make sure that the LED switches on and off as power is applied from the driver unit.

Fault finding

If there is a fault, check the voltage across the LED when it should be on (it should be about 2V). Check that the LED is the right way round. Check the value of the resistor.

Alternatives

Web links

Return to list of datasheets

Go to Top

Liquid crystal display (LCD) - Output Device

What does it do?

Liquid crystal displays are very useful for displaying both text and numbers. They display information sent from a PIC.

How does it operate?


These notes refer to the Serial LCD/clock module available from Rapid (order code 13-1266) and Revolution (AXE033). This is one of the simplest and lowest cost LCDs available.

The LCD comes in kit form with a pre-populated PCB. Construction only involves connecting the LCD to the PCB.


Sending data from the PIC to the LCD module involves sending what is called ‘serial data’. This means that the bits that represent a number or a letter are sent one bit at a time. It is not necessary to understand a lot about serial communication to use an LCD, but details can be found on the web.


The details of how to send data from the PIC to the LCD depend on the PIC programming software. The software used must include a command to send serial data.

For example, in the case of PIC Logicator the command SerOut is used.

To send a character to the LCD we place it in the Data field. Several characters can be sent in one command by separating them by commas. The above command would send ‘254’ and then ‘1’ (this would clear the display).

To write text to the LCD the message is typed into the Data field and the ASCII (which stands for American Standard Code for Information Interchange) box is ticked.

The example shown would print the word ‘Hello’.

To print the value of a variable on the LCD the name of the variable is enclosed in square brackets [ ] and the ASCII box ticked. So this command would print the value of the variable ‘A’ – which could be the reading for temperature, time, light level, or any analogue value.


The LCD module has a number of special control commands (full details are in supplier’s data sheet). Common control commands are:

Possible applications

Making


There are a number of connection pads at the side of the LCD PCB. The only ones that are needed for simple applications are those labelled ‘V+’, ‘IN’ and ‘0V’.

‘V+’ and ‘0V’ are connected across the power supply. 5V to 6V is suitable. For a 4.5V power supply, a wire link needs to be added (see data sheet for details).

The ‘IN’ terminal is connected to the serial data signal from the PIC.

Full details of all the connection are given in the data sheet.



Connections to the LCD

Testing

Connect a power supply to the main connection header. The LCD should display the message ‘00/00/00 00:00’ when the two CLK contacts are shorted and once the contrast has been adjusted (via the variable resistor marked ‘contrast’).

Once the ‘00/00/00 00:00’ test message is displayed, write a short program to send data from the PIC e.g.

Fault finding

If the LCD does not display a message check the power, the contrast and the 14 connector pins.

Alternatives

Web links

Return to list of datasheets

Go to Top

Loudspeaker - Output Device

What does it do?

Loudspeakers are used to produce sounds.

How does it operate?


PCB-mounted loudspeaker


Case-mounted loudspeaker

Loudspeakers convert an a.c. signal voltage into a sound. The signal voltage needs to have a frequency in the range 20 to 20,000 Hz (the range of frequencies that the human ear can hear).

Loudspeakers come in various forms. They can be mounted on the PCB or mounted on the case and attached to the PCB with flying leads.



Loudspeaker circuit – driven direct from
the process subsystem

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit.


PCB-mounted loudspeakers only need quite a small current. They can therefore be driven directly by PICs, 555 timers and most operational amplifiers.

The circuit on the left shows how the loudspeaker is connected in these cases.

Loudspeaker circuit – driven by a transistor, Darlington driver or MOSFET

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit


For use with a CMOS IC, or if louder sound is needed, it is necessary to boost the current with a driver, such as a transistor, Darlington driver or MOSFET.

The circuit below shows how the loudspeaker is connected to the transistor in these cases.


Possible applications

Making

Make sure that the subsystem providing the a.c. signal voltage to the loudspeaker is working correctly before adding the loudspeaker.

Loudspeakers with flying leads can be connected to the PCB using a terminal block.

A PCB-mounting terminal block


In the case of a PCB-mounted loudspeaker the position of the pads on the PCB needs to be adjusted to fit the pin spacing of the loudspeaker and allowance needs to be made for the size of the loudspeaker.

Testing

Send signal voltages of various frequencies to the loudspeaker and check that it responds.

Fault finding

If there is a fault, check that an a.c. signal voltage is coming into the loudspeaker.

Alternatives

Web links

Return to list of datasheets

Go to Top

Motor - Output Device

What does it do?

The motor subsystem provides rotational motion when powered.

How does it operate?


Basic motor circuit

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit.

The motor turns when the signal coming into the driver is high.

Low cost electrical motors generate electrical noise that can interfere with the ‘processing’ ICs. The 220nF polyester capacitor is added to reduce this noise. In extreme cases, an opto-isolator can be used to remove noise.

The reverse biased diode is included because, when motors are switched off, they can generate a ‘back e.m.f.’ that can damage the driver. When the motor is switched off the diode conducts current and prevents the damage.

Solar motors are less noisy and more efficient, but they are more expensive.

Motors come in a variety of sizes, voltages and currents. The power supply for the motor (which can be separate from the supply for the rest of the electronics) must provide the voltage needed by the motor.

The driver providing the input signal must be able to provide a current considerably larger than the specified current for the motor because there is a ‘surge’ current when the motor first starts, or if it ‘stalls’. A safety margin of ´5 is recommended.


Relay circuit for reversing a motor

The simple circuit shown above is suitable for switching a motor on and off.

It is possible to reverse the direction of rotation of a motor using a double-pole double-throw relay, as shown on the left, or a L293D driver IC.

Possible applications

Making

Normally a motor would not be mounted on the PCB. Usually a terminal block is mounted on the PCB and wires from this are connected to the motor.

The direction of rotation of the motor is reversed if the terminal connections are reversed.


A PCB-mounting terminal

Small electrical motors rotate at high speed. It is usually necessary to use them with a speed-reducing gearbox.

Build and test the unit that will provide the driving input signal before adding the motor.

Testing

Make sure that the motor turns when power is applied from the driver unit.

Fault finding

If there is a fault, check the motor by removing it from the circuit and applying power to it directly. Check the voltage at the terminals of the terminal block.

Alternatives

Web links

Return to list of datasheets

Go to Top

Piezo transducer - Output Device

What does it do?

Piezo transducers are used to produce sounds.

How does it operate?


PCB-mounted piezo transducer


Piezo transducer with flying leads


Uncased piezo transducer


Piezo transducers convert an a.c. signal voltage into a sound. The signal voltage needs to have a frequency in the range 20 to 20,000 Hz (the range of frequencies that the human ear can hear).

Piezo transducers come in various forms. They can be mounted on the PCB or attached with flying leads. The cheapest piezo transducer is uncased but this produces very quiet sounds.

It is important not to confuse piezo transducers with piezo sounders or piezo indicators. These behave in the same way as buzzers. They have a built in oscillator and are switched on by a d.c. signal voltage.



Piezo transducer circuit – driven direct from
the process subsystem

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit

The current consumption of piezo transducers is quite low – typically 5 to 10 mA.

They can therefore be driven directly by PICs 555 timers and most operational amplifiers.

The circuit on the left shows how the piezo transducer is connected in these cases. The symbol used in the circuit diagram for the piezo transducer is in fact a loudspeaker symbol – there is no symbol for a piezo transducer available in Livewire.

Note that the piezo transducer needs to be connected the right way round – with the negative lead to the 0V line.

Piezo transducer circuit – driven by a
transistor, Darlington driver or MOSFET

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit.


The current needed is too large to be reliably provided by a CMOS IC.

In that case it is necessary to boost the current with a driver, such as a transistor, Darlington driver or MOSFET.

The circuit below shows how the piezo transducer is connected to the transistor in these cases.

Note that the piezo transducer needs to be connected the right way round – with the positive lead to the +Vs line.

Possible applications

Making

Make sure that the subsystem providing the a.c. signal voltage to the piezo transducer is working correctly before adding the piezo transducer.

Piezo transducers with flying leads can be connected to the PCB using a terminal block.

Make sure that the piezo transducer is connected the right way round.

A PCB-mounting terminal block

In the case of PCB-mounted piezo transducers the position of the pads on the PCB needs to be adjusted to fit the pin spacing of the transducer and allowance needs to be made for the size of the transducer.

Testing

Send signal voltages of various frequencies to the piezo sounder and check that it responds.

Fault finding

If there is a fault, check that an a.c. signal voltage is coming into the piezo transducer. Check that the piezo transducer is connected the right way round.

Alternatives

Web links

Return to list of datasheets

Go to Top

Servo motor - Output Device

What does it do?

Servo motors turn through a precise angle. They are controlled by a series of pulses. The width of the pulses to the servo motor controls the angle through which it turns. It is easy to use them with PICs (if suitable programming software is used).

How does it operate?

These notes refer to the Sanwa type SW102Z servo motor (Rapid Order code 43-1044) but the operation of all servo motors is similar.

Servo motors need to receive a steady stream of pulses. The width of the pulses to the servo motor controls the angle through which it turns. Servo motors can only turn to fixed angles – limited within a range of about 180o. They cannot rotate continuously.

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit. Note that there is no symbol for a servo motor in Livewire, so the operation of the subsystem cannot be simulated.


Servo motors consume quite a lot of current and generate considerable electrical noise, so they need a separate power supply.

The width of the pulse needs to be between 0.75ms and 2.25ms.

To connect the servo motor to the input signal and the power supply:

  • Connect the red lead of the servo motor to the positive voltage on the separate 5V power supply
  • Connect the black lead of the servo motor to 0V on both the power supply for the electronics and the separate power supply
  • Connect the blue lead of the servo motor to the input signal (providing the stream of pulses).

To operate, a servo motor needs to receive a pulse every 20ms, and the pulse needs to be between 0.75ms and 2.25ms long. The length of the pulse controls the angle that the servo motor turns to.

PIC Logicator and PICAXE Program Editor have a special command called ‘Servo’ that produces suitable pulses.

The number in the ‘Pulse’ box needs to be between 75 and 225 to produce a pulse of length between 0.75ms and 2.25ms. The ‘Pulse’ number can be a variable.

Possible applications

Making


A three pin PCB-mounting terminal block


How part of the PCB might look


The three wires to the servo motor can be connected to the PCB using a three pin PCB-mounting terminal block.

Build and test the unit that will provide the input signal before adding the servo motor.

Testing

Before connecting the servo motor, use a multimeter to check that the terminal on the connector that will be connected to the:

Connect the servo motor. Write a short program that will:

Fault finding

If there is a fault, check the three wires to the servo motor are connected correctly and are at the correct voltage.

Check that a suitable stream of pulses is being fed to the servo motor by using an oscilloscope.

Alternatives

Web links

Return to list of datasheets

Go to Top

Solenoid -Output Device

What does it do?

The solenoid subsystem provides linear motion.


How does it operate?


Solenoid Circuit

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit.

Solenoids come in a variety of voltages and currents. The power supply for the solenoid (which can be separate from the supply for the rest of the electronics) must provide the voltage needed by the solenoid.

The driver providing the input signal must be able to provide a larger current than the specified current for the solenoid.

Solenoids also come in a variety of sizes and fittings.

The solenoid is connected between the supply rail (+Vs) and the input signal from the driver. This acts as a load on the driver.

When the input signal coming into the solenoid subsystem is low, a potential difference across the solenoid causes current to flow through a magnetic coil. It is the magnetic field caused by this current that causes the rod of the solenoid to move.

The reverse biased diode is included because, when solenoids are switched off, they can generate a ‘back e.m.f.’ that can damage the driver. When the solenoid is switched off the diode conducts current and prevents the damage.


A latching solenoid

Usually the rod of a solenoid is moved in when the driver is on and pushed out (by a spring) when it is off. This wastes electrical energy because electrical energy has to be continuously applied to keep the rod in.

Latching solenoids are available. These move in when a short pulse of current is passed. They move back out when a second pulse is passed. In this way energy is saved because, once the rod has been moved in by the short pulse, no further electrical energy is needed.

Possible applications

Solenoids only provide quite a weak force and a short movement.

Making

Normally a solenoid would not be mounted on the PCB. (PCB-mounted solenoids are available, but they are more difficult to link to the other mechanical parts.) Usually a terminal block is mounted on the PCB and wires from this are connected to the solenoid.

A PCB-mounting terminal block

Build and test the unit that will provide the driving input signal before adding the solenoid.

Testing

Make sure that the solenoid moves in and out as power is applied from the driver unit.

Fault finding

If there is a fault, check the solenoid by removing it from the circuit and applying power to it directly. Check the voltage at the terminals of the terminal block.

Alternatives

Web links

Return to list of datasheets

Go to Top

Sound and Music - Output Device

What does it do?

 Units are available that will play a variety of tunes and interesting sounds and that will record and replay sounds.

How do they operate?

A variety of modules are available that can be used to add sound or music to electronic systems.

The simplest and lowest in cost is the Melody generator IC which plays ‘It’s a small world’.

Two Melody ICs are available, each of which gives a choice of three tunes.

A 20 second sound recorder module is available that allows up to 20 seconds of sound to be recorded and replayed.

Voice modules make a variety of sounds.

All of these modules can be operated on their own; or they can be triggered by a transistor used as a switch, so that they become output subsystems.

 The Melody generator IC (Rapid 82-0044) plays the tune ‘It’s a small world’ when a supply voltage is connected across it.

The supply voltage should be in the range 1.3 – 3.3V. If a higher voltage supply is more convenient then a resistor can be included in series between +Vs and pin 2. The current consumed is about 2mA, so a +5V supply would require a series resistor of about 1k.

Pin 1 is connected to a piezo transducer  or a small loudspeaker.

 

Melody ICs (Rapid 82-0074 and 82-0076) can play three alternative tunes. The 82-0074 can play:

  1. Japanese lullaby
  2. Brahms lullaby
  3. Rock-a-by-baby

The 82-0076 can play:

  1. Jingle bells
  2. We wish you a merry Christmas
  3. Santa Claus is coming to town

When the push switch labelled ‘Tune 1, 2 or 3’ is pushed the corresponding tune plays. It keeps repeating if the switch is held down. If the switch labelled ‘Cycle’ is pressed then the IC plays Tune 1, then Tune 2 and then Tune 3.

The supply voltage should be in the range 3.0 – 3.5V. If a higher voltage supply is used then a resistor can be included in series between +Vs and pin 7. The current consumed is about 10mA, so a +5V supply would require a series resistor of about 220W.

Pins 9 and 10 are connected to a piezo transducer or a small loudspeaker.

20 second sound recorder module

The 20 second sound recorder module (Rapid 13-0660) records up to 20 seconds of sound when the white 'Record' button is pressed. The LED lights while recording is taking place. The recorded sound can be replayed by pressing the green 'Play' button. The recorded sound is not lost when the batteries are changed.

The supply voltage needs to be in the range of 4.5 - 6.0V.

Voice modules are designed for use in children’s toys. When the top is pushed down they make a variety of sounds: ‘witch laughter’, ‘lion roar’, ‘owl hoot’, ‘bird song’, ‘snoring’ and one saying ‘I love you’.

 

 

 

 

 

To operate them with a separate switch the top and case can be separated (by levering the top out with a small screw driver). Underneath there is a push switch and a pair of terminals.
The ‘voice’ is triggered by pressing the switch, or by soldering leads to the ‘A’ and ‘B’ terminals and attaching them to a remote switch.
 
 
 
 
 
 
 
 

Including sound and music in a larger system

 

Transistor switch circuit to control sound and music units

All of the above sound and music units can be incorporated into larger systems as output subsystems. This can be done by using a transistor switch (with its input signal coming from the rest of the electronic system) to turn the sound and music unit on and off.

Any low current transistor is suitable.

In the case of the Melody generator IC and the Melody ICs the transistor switch subsystem is used to switch current to the unit on and off by placing the transistor switch in the circuits for the units in place of the wire link shown in red in the above circuit diagrams. The emitter (‘E’) terminal of the transistor switch should be connected to the 0V line. The sound unit will operate when the signal into the transistor switch is high.

In the case of the Melody ICs any of the switches marked ‘Tune 1, 2 and 3’ and ‘Cycle’ can also be replaced with a transistor switch.

The 20 second sound recorder module and the voice module can be operated with a transistor switch by connecting the emitter (‘E’) terminal of the transistor switch to the pad marked ‘A’ and the collector (‘C’) terminal of the transistor switch to the pad marked ‘B’. Alternatively the on/off switch can be shorted out, the batteries removed and replaced with a power signal from the main subsystem – just like any other output device.

Some music generators cannot be easily adapted in this way. For example, the terminals of the Rapid Music Unit (Order code 13-0620) are made from a metal that cannot be soldered to.

Possible applications

Making

If the sound unit is being controlled by a transistor switch, a PCB-mounted terminal block is useful for connecting the wires between the electronic control system and the sound unit.



A PCB-mounting terminal block

Testing

First check the operation of the sound unit without any connections. Next check the operation using the transistor switch. This can be operated by connecting a piece of wire to make its input signam high or low.

Fault Finding

If there is a fault, check the orientation and pin connections of the transistor. Check the voltage of the input signal to the transistor.

Alternatives

Web links

Return to list of datasheets

Go to Top

Stepper motor - Output Device

What does it do?

A stepper motor turns through precise steps. So it is useful for moving things through an exact angle or distance.

How does it operate?

There are two common types of stepper motor – unipolar and bipolar.

These notes refer to the SM 46 bipolar stepper motor (Rapid Order code 37-0525).

There are four wires connected to the motor. These are connected to a set of coils inside the motor.


The connections to the stepper motor

The connections to the coils need to be able to send a current into the stepper motor (called ‘sourcing’) and also accept a current out of the motor (called ‘sinking’).

A normal transistor, Darlington driver or MOSFET can only sink current, so cannot be used with a bipolar stepper motor. However, the L293D can source and sink current, and it has four output signals, so it is very suitable for driving stepper motors.

A combination of separate integrated circuits can be used to provide the correct sequence of pulses to the L293D driving a stepper motor. However, the circuitry involved is complicated and it is much simpler to use a PIC.

A dedicated stepper motor driver integrated circuit (the SAA1027) used to be available, but this appears to have been discontinued.

Stepper motor circuit

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit. Note that there is no symbol for a stepper motor in Livewire, so the operation of the subsystem cannot be simulated.


To drive the motor forward by one step (7.5o) the following sequence of signals needs to be applied to the coil connections:

Step Q1 Q2 Q3 Q4
1 1 0 0 0
2 0 0 1 0
3 0 1 0 0
4 0 0 0 1
Repeat step 1 etc.

To drive the motor backwards by one step the sequence is:

Step Q1 Q2 Q3 Q4
1 1 0 0 0
2 0 0 0 1
3 0 1 0 0
4 0 0 1 0
Repeat step 1 etc.

Possible applications

Making

Cut off the connecting plug that is attached to the stepper motor.

The four wires to the stepper motor can be connected to the PCB using a four pin PCB-mounting terminal block.

Build and test the L293D that will provide the input signals before adding the stepper motor.

A four pin PCB-mounting terminal block

Testing

Before connecting the stepper motor, use a multimeter to check that the four signals from the L293D driver are correctly connected to the terminals on the 4-pin terminal block.

Connect the stepper motor. Write a short program that will:

Fault finding

If there is a fault, check that the four wires to the stepper motor are connected correctly.

Alternatives

Web links

Return to list of datasheets

Go to Top

Alternative Power Sources - Power Supply Unit

What does it do?

Non-rechargeable batteries are widely used but they cause environmental damage. Alternatives include: USB power from computers, solar power, hand cranked power, recycled old mobile phone chargers and fuel cells. Rechargeable batteries and supercapacitors are also more environmentally friendly and are described in separate data sheets.

What’s the Problem?

People in the UK use about 680 million batteries every year (about 21 batteries per household), producing 20-30,000 tonnes of domestic waste. Batteries can contain highly toxic heavy metals such as cadmium and mercury. When the battery casings corrode these heavy metals leak into the ground and contribute to soil and water pollution and endanger wildlife. Cadmium, for example is toxic to aquatic invertebrates and can bio-accumulate in fish. Electronics is the area in Design, Engineering & Technology (and in education overall) that makes the greatest use of disposable batteries and we should be actively looking for alternatives.

What are the Alternatives?

Many people have access to a computer with a USB socket. This can be used to power electronic systems and to refresh rechargeable batteries and supercapacitors. Solar panels convert sunlight to electrical energy. A hand crank can power a dynamo to produce electrical energy. Fuel cells are relatively expensive. They use hydrogen as a fuel to produce electricity.

The notes below explain how each of these alternatives to disposable batteries can be used.

USB

The USB port of a computer provides a reliable 5V supply able to source 100mA. This is sufficient to power small electronic systems or to recharge batteries or supercapacitors. The connections for series ‘A’ plugs (generally used at the computer end of a USB wire) and sockets are:

Connections on the plug at the end of a USB cable

 

 

 

Connections looking into the plug at the end of a USB cable and the device socket on the computer

Pin Name Description
1 VBUS +5 VDC
2 D- Data -
3 D+ Data +
4 GND Ground(0V)

From the table above, as you look at a USB port on a computer (assuming the visible metal connectors are underneath (as shown above right) the left-hand connector is +5V and the right-hand connector is GND (0V). As we are simply using the USB port as a power source, we can ignore the data lines (connectors 2 and 3).

Veroboard cut to fit into a USB socket

PCB designed to fit into a USB socket, viewed from the component side

None of the major suppliers of components to schools seems to stock the cable end USB connectors. However, the 0.1” spacing between the tracks on Veroboard (stripboard) is the same as the spacing between the connectors on the USB socket – and Veroboard is just the right depth to slot into the connector. The same result can be achieved using tracks of the correct width and spacing (0.3”) on a PCB.

The USB port can supply up to 100mA and is protected against short circuits.

Solar Power

Solar cells convert light energy to electrical energy. They can be used to power small electronic systems or to refresh rechargeable batteries or supercapacitors.

The Rapid 42-0240 produces an output of up to 3V and 100mA.

 

 

 

 

 

The MUTR EL1 006 produces an output of up to 4.4V and 90mA.

 

 

 

 

 

The circuit on the left can be used to recharge a battery (or a supercapacitor) using a solar cell. The diode allows current to flow in only one direction. This prevents battery power discharging through the solar cell when light levels are low. There is a voltage drop of about 0.6V across the diode.

It is important to be aware of safety issues before recharging batteries.

To find the actual current output of a solar cell you need to experiment with a multimeter.

Hand-cranked Power

Hand-cranked power can be used to recharge commercial radios, torches, phones etc. However the core winding units to achieve this don’t seem to be available to education users.

An interesting approach using LEGO® components to create a charger for devices powered by USB is described at Instructables.com

LEGO® hand-crank – from Instructables

 

 

Recycled mobile ’phone chargers

A good alternative to batteries is old mobile ’phone chargers. The plug that fitted into the ’phone can be removed and replaced with a suitable plug to fit an appropriate socket on the circuit board.

Provided the power requirements of the circuit can be fulfilled these chargers can be a cheap or even free source.

 

 

 

Fuel cells

 

 

 

 

 

 

 

 

 

 

 

 

 

In a basic fuel cell hydrogen and oxygen are combined to create water; this is a chemical reaction that releases energy and the cell is designed to use this energy to separate charges creating a voltage of about 0.7V. The main difference between a fuel cell and a battery is that when the hydrogen in a fuel cell runs out the cell can be refuelled by adding more hydrogen (the oxygen used come from the air).

It is worth noting that the chemicals used fuel cells have to be made in some way – usually using electricity generated by some other (usually unsustainable) method. However fuel cells are useful for situations where electrical power is wanted away from mains electricity; in portable consumer goods and for transport. Increasingly you will find fuel cells replacing batteries in products such as mobile phones.

There appear to be few options currently available for education to explore fuel cell technology.

 

 

 

 

 

Rapid (06-6520) fuel cell car kit. Note that this requires a hydrogen fuel source.

 

 

 

 

 

Economatics have a ‘Solar Hydrogen Science Kit’ that includes a fuel cell.

Web links

Return to list of datasheets

Go to Top

Battery - Power Supply Unit

What does it do?

Batteries are used to provide electrical power to portable electronic systems.

How does it operate?

In most electronic systems, nearly all the power from the battery is used by the output device(s). The first task in selecting a battery is therefore to investigate the output devices needed and to find:

the voltage they need (the battery will provide this voltage);
the current consumed (this will directly influence the battery’s useful life, depending on the battery ‘capacity’ – see below).

An ‘ideal’ battery provides a steady voltage, and as much current as is needed. In practice, the voltage available from a battery falls as it is discharged and as the current drawn increases.

Environmental Issues

The average UK household uses 21 batteries a year. On average, only one of these is recycled. The others go into landfill sites. Much of this waste could be eliminated by using rechargeable batteries.

Some battery types contain cadmium or mercury. These chemicals cause environmental damage and batteries that contain them should not be disposed of in a rubbish bin. Consult your local waste disposal service.

Key features of a battery are:

Type
The battery ‘type’ refers to the materials that are used to make the battery. Common battery types include: zinc chloride, alkaline, nickel cadmium, nickel hydride, lithium polymer, lithium iron sulphide, lead acid, silver oxide and lithium manganese.

Case
Common cases include AAA, AA, C, D, PP3, coin cell and button cell. The type of case provides details of the shape and dimensions of the battery.

Voltage
Manufacturers and suppliers usually provide information about the voltage that a battery provides when it is fully charged, and not supplying current.

In practice, the voltage a battery provides falls as it is discharged by providing current to the electronic system. Some manufacturers provide graphs of typical discharge characteristics in data sheets.

In addition, the voltage a battery actually provides when a current is drawn is less than its voltage when it is not supplying a current. This is due to the battery’s ‘internal resistance’ (see below).

Capacity
The capacity of a battery indicates how much current it can provide over a period of time. Capacity is usually specified in milli Amp hours (mAh) – the current provided multiplied by the time to discharge. For example, if a battery has a capacity of 2000 mAh, it could provide a current of 2000mA for one hour before it was exhausted, or 1000mA for two hours, or 100mA for 20 hours.

The capacity of a battery depends on the battery type (some types last longer than others) and on its case (generally speaking, the bigger the battery, the higher its capacity).

The tables below show battery capacities for a range of battery types and cases.

Internal Resistance
A practical battery behaves as if it were made up of an ‘ideal’ battery (providing a constant ‘ideal’ voltage VI) in series with a resistor (called the battery’s internal resistance – RI) inside the practical battery.

In consequence, when a battery provides a current (IB) the voltage across the battery terminals (VB) is VI minus the voltage dropped across the internal resistance (IB RI). So:

The most important point to bear in mind about the internal resistance of a battery is that the battery type should be chosen so that its internal resistance is well below the resistance of the load. Otherwise most of the battery’s energy will be wasted as heat in the battery’s internal resistance – not in providing energy to the load.

The internal resistance depends on the battery type and case and generally increases as the battery discharges. The table below shows typical values for a range of battery types and cases.

Details of Battery Types
Probably the battery case most widely used in schools is the ‘AA’. The table below gives details of common AA battery types.

The data given for the ‘Initial voltage’ (the voltage of a ‘fresh’ battery) is taken from manufacturers’ data sheets. Some manufacturers’ data sheets give the battery Capacity directly. In some cases the Capacity has been estimated from graphs of the battery discharge characteristics given in data sheets.

Data on internal resistance is not always quoted by manufacturers. In those cases the estimated figure quoted is based on measurements made on one battery sample. The figures given for internal resistance are for a fresh battery. The internal resistance increases as the battery discharges.

Go to Top

Non-rechargeable batteries

Zinc Chloride
This is the cheapest type of commonly available battery. If the battery type is not quoted on the packaging it is usually of this type. It has a low capacity.
Initial voltage: 1.5V Capacity: 680mAhrs Initial internal resistance: 0.3W (estimated)
Alkaline

This battery type is widely available. The data given in the table below is for the Duracell Plus alkaline and the (electrically identical) Procell alkaline. Procell alkaline batteries cost about three times as much as the cheapest zinc chloride batteries but have four times their capacity, so are better value for money than zinc chloride.

The data sheet for GP alkaline batteries (GP15A) indicates that they have a lower capacity (about 2,300mAhrs) than Procell batteries but they cost only about 50% more than zinc chloride types, and still have more than three times as much capacity. They therefore represent much better value for money.

Power One alkaline batteries have a capacity of 2,600mAhrs and cost about 10% more than GP alkaline, so they represent vary similar value for money. They can be purchased in bulk packs of 500, which gives a further saving of about 10%.

Initial voltage: 1.5V Capacity: 2,700mAhrs Initial internal resistance: 0.12W

Ultra Alkaline
The Duracell Ultra M3 batteries have the highest capacity of any of the batteries investigated. The data below is for the Duracell Ultra M3. However, they are more than three times as expensive as the GP15 alkaline batteries, and their capacity is only about 40% greater. They are therefore only recommended in situations where maximum battery life is essential.

The GP Ultra alkaline has a capacity of about 2,400mAhrs, less than Power One alkaline, and they cost about 20% more.

Initial voltage: 1.5V Capacity: 3,200mAhrs Initial internal resistance: 0.08W
Nickel Zinc

This battery type does not appear to have any clear advantages over other battery types.
Initial voltage: 1.5V Capacity: 920mAhrs Initial internal resistance: 0.2W (estimated)
Lithium iron sulphide

This battery type does not have as high a capacity as the Duracell Ultra M3 but costs about three times as much.
Initial voltage: 1.5V Capacity: 2,900mAhrs Initial internal resistance: 0.1W (estimated)

Rechargeable batteries
In principle, rechargeable batteries can help to reduce waste and pollution. However, there are potential problems in using some types of rechargeable batteries in school electronics. In particular, because the internal resistance of nickel hydride and nickel cadmium batteries is much lower than non-rechargeable types, they deliver a much larger current if a short circuit is accidentally applied across them. If this happens, the battery can overheat and possibly explode. This can present a health hazard and can also damage the battery.

If the battery can be completely enclosed (to prevent short circuits) and a voltage regulator (hotlink to data sheet) can be included inside the enclosure, then the voltage regulator will prevent hazards and damage to the battery because it includes current limiting circuitry.

Nickel Hydride (NiMH)
These batteries are sometimes referred to as nickel metal hydride. It is important to note that the initial voltage of these batteries is 1.2V, rather than the 1.5V of most non-rechargeable batteries. NiMH batteries are about five times as expensive as alkaline manganese batteries, and their capacity is about 20% less. However, they can be recharged more than 500 times, so they can give large cost and environmental savings. The values quoted below are for GP high capacity NiMH batteries – type GP210AAH.
Initial voltage: 1.2V Capacity: 2,100mAhrs Initial internal resistance: 0.024W
Nickel Cadmium (NiCd)
Nickel cadmium batteries have many of the same features as nickel hydride batteries. However, they contain cadmium, which is a serious environmental pollutant (http://www.liv.ac.uk/~preston/metals.htm). The capacity of NiCd batteries is not as high as NiMH. For these reasons NiMH is superior to NiCd for use in schools. The values quoted below are for GP NiCd batteries – type GP100AAS.
Initial voltage: 1.2V Capacity: 1,000mAhrs Initial internal resistance: 0.018W
Rechargeable Alkaline

Rechargeable alkaline batteries have several important advantages, for use in schools, over NiMH and NiCd. The most important is that their internal resistance is higher, and so they do not present a safety hazard if a short circuit is applied across them.

The initial voltage is close to the value of typical non-rechargeable batteries, rather than the 1.2V of NiMH and NiCd.

One limitation of rechargeable alkaline batteries is that they have a limited cycle life. The manufacturer’s data sheet states that this can vary between 25 and 500+, depending on the rate of discharge, end point voltage and depth of discharge.

The batteries cost about five times as much as GP alkaline batteries, so even if their life is limited to 25 cycles, they represent a cost saving by a factor of five, as well as greatly reducing waste.

Initial voltage: 1.57V Capacity: 2,000mAhrs Initial internal resistance: 0.15W
Rechargeable Alkaline XL

Rechargeable alkaline XL batteries are almost identical electrically with standard rechargeable alkaline batteries. They key difference is that their cycle life is increased to 50 to 500+ cycles.

They are only slightly more expensive than standard rechargeable alkaline batteries, and so they represent much better value for money in the longer term.

Initial voltage: 1.57V Capacity: 2,000mAhrs Initial internal resistance: 0.15W
Lithium Polymer
Lithium polymer batteries are widely used in portable computers. Recently lithium polymer batteries have become available in a PP3 case (but not AA). They have the advantages of relatively high capacity – almost as high as alkaline, fast charging – one hour (a special charger is needed), a lifetime of at least 100 cycles (so they are at least 10 times more cost effective than disposable alkaline batteries), and the supplier has conducted tests that indicate that they are protected by internal circuitry against damage or danger when short circuited.
Initial voltage: 8.4V Capacity: 500mAhrs Initial internal resistance: internally protected

Go to Top

Safe battery recharging
There are important safety limits to the current and voltage that can be used to recharge batteries. Commercial battery rechargers work within these limits. However, if you are planning to build your own recharger, these limits need to be observed.

Most modern batteries can be charged at quite a high current. For example you could charge a 2,000mAhrs battery with a 500mA current for just over 4hrs and it would be fully charged. However, if you keep on charging it beyond that 4hrs you could seriously damage the battery (or even cause an explosion). NiMH batteries have a protective mechanism when they get overcharged and attempt to dissipate the excess current as heat. However they can usually only managed to discharge one tenth of their total current capacity as heat. What this means in practical terms is that if you charge a 1,300mAhrs battery with 130mA then it will survive, but get warm if you overcharge it for a while. However if you overcharge it with a 500mA current the risk of explosion occurs.

Cases

The information above applies to AA case batteries – which are widely used in schools. There are situations where other battery sizes are useful, and many of the battery types described above are available in a range of cases.

To estimate the capacity of a particular type of battery in the relevant case size from the table below, multiply the capacity of the AA battery of the same type (listed above) by the ‘Case Capacity Factor’. For example, if we wanted to find the capacity of a Power One alkaline C battery:

Case Dimensions Case Capacity Factor Notes
D

L 61.5 mm
D 34.2 mm

6.7 High capacity. Large and heavy.
C L 50 mm
D 26.2 mm
2.9 Quite high capacity.
AA L 51 mm
D 15 mm
1.0 Widely used.
AAA L 44.5 mm
D 10.5 mm
0.44
Useful if small size or weight is important.
PP3 H 48.5 mm
L 26.5 mm
W 17.5 mm
0.20 Initial voltage is about 9V.


Battery Holders


Once the battery type and case has been selected, a suitable battery holder can be chosen. There are a number of points to consider when selecting a suitable holder:

Holders are available for one, two, three or more batteries. The batteries are automatically connected in series, and so their voltages are added together. For example, a battery holder for three AA (nominally 1.5V) batteries would provide a voltage of 4.5V.

Electrical connection can be made between the battery holder and the circuit board with: flying leads (these are cheapest, but not very flexible); solder tags (wires are soldered to the tags); press studs (connection is made with a detachable battery clip); or PCB mounting pins (these make the circuit and battery holder a single integrated unit).

Most battery holders have screw holes for mounting the holder on the PCB or the product case. It is important to take these into account when designing the PCB or the product case.

Coin and Button Cells

Coin and button cells are used in situations where small size and/or weight are very important. They have considerably less capacity than ‘standard’ batteries.

Safety – coin and button cells are small, and could be swallowed by young children. They should not be used in products for children unless they are securely contained.

There are a very wide range of coin and button cells available. However, to be of practical value in school electronics, they need to be fitted into specialised battery holders and only a limited range of these are available. The coin and button cells described below are limited to those where suitable holders are readily available.

Button Cells
Only one button cell holder appears to be readily available (Rapid Order code 18-0077). This holder is PCB-mounted on the track side of the PCB, and a pad needs to be placed in the centre of the holder to make electrical contact with the button cell.


Two suitable batteries are available. Both have a diameter of 7.9mm and a height of 3.6mm.

The Silver Oxide SR51 button cell has as and initial voltage of 1.55V, a capacity of 40mAhrs and an estimated initial internal resistance of 7W.


The Alkaline Manganese L736 button cell has an initial voltage of 1.5V, a capacity of 35mAhrs.

The L736 has a slightly lower capacity but is about half the cost of the SR51.

Zinc air button cells are not recommended for school use because they contain mercury which is a serious environmental pollutant, and so they cannot be disposed of in landfill sites.


Coin Cells

Two widely available PCB-mounting holders for coin cells are the 2032 style and 2430 style – suitable for coin cells with corresponding codes.


Lithium coin cells that fit into these two holders are the CR2032 and the CR2430.

The CR2032 has an initial voltage of 3.0V, a capacity of 170mAhrs and an estimated initial internal resistance of 15W. However, this rises steadily as the battery discharges (see below). The cell has a diameter of 20mm and a height of 3.2mm.


The CR2430 has an initial voltage of 3.0V, a capacity of 360mAhrs and an estimated initial internal resistance of 15W which also rises steadily as the battery discharges. The cell has a diameter of 24.5mm and a height of 3.0mm.

Detailed measurements on the CR2032 and the CR2430 show that, as well as having a relatively high initial internal resistance, their internal resistance increases significantly as they discharge. In consequence, the current they can deliver is limited to a few mA.

The graph shows how the voltage and internal resistance of the CR2032 vary as it is discharged. The blue curve (labelled VI) shows how the ideal voltage of the battery varies with time as it is discharged. The red curve (labelled VB) shows the battery voltage when it is supplying current to a 150W resistor. The black curve (labelled RI) shows how the internal resistance varies. The time shown on the graph is the time that the battery has been supplying current to the 150W resistor.

As can be seen, the internal resistance steadily increases from its initial value of 15W to about 70W after five hours. That is why VB is only about two thirds of the value of VI when delivering current to the 150W resistor after five hours.

Because of their high internal resistance (particularly when they are partially discharged) lithium coin cells cannot be used to deliver currents of more than a few mA.

Possible applications

The key application of batteries is providing power to electronic systems.

Making

The main points to consider are:

Testing

Fault finding

If the battery voltage is correct, but the voltage on the PCB track is not, check:

Alternatives

Web links

Return to list of datasheets

Capacitors - Component

What does it do?

 Capacitors store electrical charge. They are often used for reducing ‘noise’ on a voltage or for controlling timing operations. Very large value capacitors (‘supercapacitors) can be used in place of rechargeable batteries.

How does it operate?

A capacitor contains a pair of conducting metal plates, separated by a thin layer of insulating material. When a current is fed into one of the plates it becomes electrically charged, and the voltage between the plates increases. So a capacitor acts as a storage system for charge and keeps voltage stable.

Capacitor Values

The capacitance (electronic ‘size’ or storage capacity) of capacitors is expressed in Farads (F). Most capacitors are very much smaller than a Farad in capacity.

The smallest capacitors are measured in pico Farads (pF). A pico Farad is a thousandth of a thousandth of a thousandth of a thousandth of a Farad; 10-12F.

The next largest size of capacitors is measured in nano Farads (nF). A nano Farad is a thousandth of a thousandth of a thousandth of a Farad; 10-9F. So, 1 nF = 1,000 pF.

Larger still capacitors are measured in micro Farads (mF). A micro Farad is a thousandth of a thousandth of a Farad; 10-6F. So, 1 mF = 1,000 nF = 1,000,000 pF.

The ‘p’ and ‘n’ are often used in place of a decimal place. So, 2n2 is frequently used in place of 2.2nF. Capacitors come in preferred values, such as 1n, 2n2, 3n3, 4n7, 6n8, 10n, 22n etc.

Types of capacitor

A wide range of types of capacitors are available. The names given to capacitors are based on the insulating material used in them. The broad divisions are: non-electrolytic capacitors – generally low capacitance capacitors; electrolytic capacitors – higher values; and supercapacitors – very large vales.

 

Circuit diagram symbol for a non-electrolytic capacitor

Non-electrolytic capacitors
This type of capacitor typically has a capacitance in the range between 1pF and 1mF. They are ‘unpolarised’ – meaning that they can be inserted into a circuit either way round.

A wide range of insulating layers is used: ceramic, mica, mylar, polycarbonate, polystyrene, polypropylene, and polyester. In practice there is no important difference between these types, except in timing applications (see below).

 
Ceramic Capacitor

 

 
Metallised polyester capacitor

 
European circuit diagram symbol for an electrolytic capacitor


 

Electrolytic capacitors
This type of capacitor typically has a capacitance in the range between 1mF and 10,000mF. They are ‘polarised’ – meaning that they can only be inserted into a circuit one way round. The negative lead is marked on the body of the capacitor. Electrolytic capacitors should not be operated above their rated voltage.
 
Radial electrolytic capacitor


Axial electrolytic capacitor

 

They are available in a ‘radial’ shape (these take up less space on the PCB but are taller), and an ‘axial’ shape (which lies flat on the PCB, like a resistor).

Electrolytic capacitors have a small internal ‘leakage current’ which means they gradually discharge.

The insulating layer in most electrolytic capacitors is aluminium oxide. Tantalum capacitors are smaller, have a lower leakage current but are more expensive.

Supercapacitors
These are a special type of electrolytic capacitor, sometimes called memory backup capacitors. They have much larger capacitance, in the range 0.1F to 50F.

Because of their very large capacitance, they can act as small electrical power sources that can be recharged in a few seconds – like a rapidly rechargeable battery. They can provide enough power for an electronic system that only consumes a low current. For example, a high efficiency LED can operate at 5mA. A low cost 0.22F supercapacitor can power this for a few minutes.

Supercapacitors do no hold their charge permanently because they have a small internal ‘leakage current’. If a new supercapacitor is charged up for a few minutes the leakage current will discharge it within a few hours. However, if it is kept on charge for about a day the leakage current is reduced and the charge is retained for several weeks.

Capacitors for Timing
Ceramic disc capacitors should not be used as timing capacitors. They are not sufficiently stable in capacitance to operate properly for timing. Suitable capacitor types are: silver mica, mylar, polycarbonate, polystyrene, tantalum, or similar types.

Capacitor Maths
The quantity of electrical charge stored in a capacitor is equal to the capacity (C) in Farads multiplied by the voltage (V) to which it has been charged. The quantity of charge (Q) is measured in Coulombs.

Expressed mathematically:

 

So, a 10F capacitor charged to 2.5V stores 25 Coulombs of charge because

 

As charge is a quantity of electricity, it corresponds to a flow of electrical current for a specified length of time. That is, charge (Q) is electric current (I) in Amperes multiplied by the time (t) in seconds for which it has been flowing i.e.



So, one Coulomb is the amount of charge in a current of one Amp current flowing for one second.

A LED drawing 5mA from a 0.22F capacitor charged up to a voltage of 5V would, theoretically, operate for:

 

 

 

 

 

In practice the voltage across the LED would fall as the capacitor discharged and there would come a point where the voltage would be too low to light the LED. So in practice the operating time would be shorter.

If a capacitor (C) is discharged through a resistor (R) the time (t) that the voltage takes to fall to half its original value is given by t = 0.7 x R x C.  So, for example, a 1F capacitor, discharging through a 10W resistor, would fall to half its starting voltage in about 7 seconds.

Investigating Capacitor Discharge

 

 

 

 

 

 

 

 

 

 

Click on the circuit diagram to download a Livewire file of the circuit showing how the capacitor C1 discharges through the resistor R1. Press switch SW1 to fully charge the capacitor and SW2 to discharge it. How long does the capacitor take to discharge through R1 to half its fully-charged voltage? Change the values of C1 or R1. Using the formula t = 0.7 x R x C, how long do you expect the capacitor to take to discharge to half its original voltage now? Check the result. Replace R1 with alternative Output subsystems. How long can they operate?

Possible applications

Making

Before designing the PCB, check the package size and shape of the capacitor and the lead spacing. In the case of electrolytic capacitors and supercapacitors, make sure that they are inserted the right way round.

Fault finding

If there is a fault, check that:

Alternatives

There are no alternatives to capacitors in most applications.

Web links

Return to list of datasheets

Go to Top

Resistor - Component

What does it do?

Resistors resist the flow of electricity. They are used in a wide variety of electronic subsystems to regulate current and control voltage.

How does it operate?

The circuits for many electronic subsystems include resistors which are needed to enable the subsystem to work. Sometimes, by changing the resistance value of the resistors (measured on ohms – symbol W), we can change the details of the operation of the subsystem, for example, changing the gain of an amplifier.

The resistor colour code Colour Code

Colour Code

The resistance of resistors is found by using the resistor colour code.

The three bands close together identify the resistance value.

The colour of the first band gives the first digit. The colour of the second band gives the second digit. And the colour of the third band gives the number of zeros after these first two digits.

The resistor at the bottom of the graphic on the left has bands of brown, black and orange. So its resistance value is ‘1’ (brown), then ‘0’ (black) and then three zeros (orange) i.e. 10,000W.

If you are colour blind, check the resistance value with a multimeter on the ohms setting.

  • Silver 10%
  • Gold 5%
  • Red 2%
  • Brown 1%

Colour: Tolerance
silver ±10%,
gold ±5%
red ±2%,
brown ±1%.

If no fourth band is shown the tolerance is ±20%.

Resistance tolerances

A colour code is used for the fourth band and this represents the tolerance of the resistor (ie how accurate the value is).

So in the example of the 10,000Ù shown above with a brown tolerance band, the tolerance is + or -1%. The resistance value is therefore between 9900Ù and 10100Ù .

Thousands and Millions

Resistors used in electronics are often in the range of thousands or sometimes millions of ohms. To make it easier to write down these large values thousand of ohms are called ‘kilohms’ and millions of ohms are called ‘megohms’.

When writing down these values we use the initials ‘k’ or ‘M’. So, 10,000W = 10 kilohms and is written 10k. (Note that ‘k’ is the correct symbol, but ‘K’ is often incorrectly used). The ‘k’ is often used in place of a decimal place. So, 2,700W = 2.7 kilohms and this is often written as 2k7.

Similarly, ‘M’ is used as a symbol for megohms. 3,300,000W is therefore 3.3 megohms and is written 3M3.

In the case of resistors below 1,000W, the symbol ‘R’ is used after the numerical value of the resistance. Eg 270 ohms would be written as 270R

W, the symbol ‘R’ is often used in place of W, so 330W would be written 330R, and 4.7W as 4R7.

Preferred Values

Resistors are available in various preferred values. A common series of resistors is called the E12 series and the preferred values in this series are: 10, 12, 15, 18, 22, 27, 33, 39, 47, 56, 68, 82 (i.e. 12 values). The next set of values is higher by a factor of 10: 100, 120, 150 … and then 1,000, 1,200, 1,500 …

The E12 series is usually suitable for electronic circuits. Occasionally, for high precision applications, the E24 or E48 series is needed.

Panel-mounted variable resistor

PCB-mounted preset variable resistor

Variable Resistors

Sometimes it is necessary to have a resistor in a circuit whose value can be changed after the circuit has been built.

This might be to allow the circuit to be ‘fine tuned’ by the manufacturer, or adjusted by the user e.g. to change the volume on a radio.

The type of resistor required in this situation is called a ‘potentiometer’. The reason for the name is that this type of resistance can also be used as a potential divider (see below).

These resistors can be mounted on the front panel of the case (usually when the operation of the system is adjusted by the user with a knob). Or they can be PCB-mounted (usually to allow adjustment by the manufacturer).

Voltage, Current and Resistance

When current passes through a resistor it produces a voltage (V) across the resistor, proportional to the current (I). The value of the voltage, divided by the current is the resistance value of the resistor (R). This is expressed by Ohm’s law, which is very useful for calculating the voltage, current or resistance value if we know the other two quantities.

The classic way that Ohm’s law is written is:

We can re-arrange this equation to find the resistance if we know the current and voltage:

Or, we can find the current if we know the voltage and resistance:

A potential divider circuit

Potential Divider

Resistors are often arranged as a ‘potential divider’. A potential divider is used to reduce the supply voltage Vs to a lower value Vout.

The value of Vout depends on R1 and R2. If they are equal then Vout is half the value of Vs. If R2 is less than R1 then Vout is less than half Vs.

The value of Vout for any value of R1 and R2 can be found from the formula:

A high power resistor

Power

Usually, the power dissipation in electronic resistors is small so low power resistors e.g. 0.25W, are suitable. Sometimes (for example, if a resistor is being used as a heater) the power dissipated can be larger. In this case higher power resistors need to be used.

The power (P) dissipated in a resistor is given by the formula:

The resistor’s rated power must be greater than this value.

Resistors in series

Resistors in Series

Occasionally it is necessary to produce a resistor by combining several resistors together. The easiest way to do this is to combine them in ‘series’ (in a line). The resistance of resistors in series is found by adding them together:

Resistors in parallel

Resistors in Parallel

Very occasionally resistors are combined in ‘parallel’ (both ends are connected together). The resistance of resistors in parallel is found from the formula:


Possible applications

Resistors can be mounted either way round.

Different length resistors on a PCB

When designing the PCB, the two pads for the ends of the resistor can be spaced at any convenient distance apart greater than 0.3 inches. This can make PCB designs simpler and neater.

It is often convenient to use resistors as ‘bridges’, with PCB tracks running underneath.

Testing

Check that the voltage across the resistor is the expected value.

Fault finding

Once a resistor has been soldered into a PCB it can be difficult to check it with a multimeter because other components in the circuit can change the apparent resistance. Use the colour code to confirm its value.

Alternatives

There are no alternatives to resistors.

Web links

Return to list of datasheets

Go to Top

Voltage Regulator

What does it do?

Voltage regulators are used to produce a stable power supply voltage (+Vs) from a higher (varying) d.c. voltage. They can also be used to limit the current supplied.

How does it operate?

Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit.

Some electronic systems require a voltage supply which is quite stable. Voltage regulators have an input voltage which can vary quite widely. They convert this into a stable output voltage.

For example, the widely used 78L05 and 7805 voltage regulators produce an output voltage which is close to 5V (within the range 4.75V to 5.25V). They will accept input voltages that vary anywhere in the range 7.5V to 35V.

The maximum current that the 78L05 can supply is 100mA. The 7805 provides a maximum of 1A.
Voltage regulators include protection to prevent the current drawn from the input voltage source exceeding these limits. This can be useful, for example in preventing excessive current being drawn from rechargeable batteries. This also protects against accidental reverse connection of the input voltage source.


The circuit diagram for the two voltage regulators is almost identical. The downloadable Livewire circuit is based on the 78L05. To convert this to a 7805, click right on the voltage regulator in Livewire and select Models > 7805.

Other very similar voltage regulators are available that can provide stable voltages of 12V, 15V, -5V, -12V and -15V. These can be selected in the same way in Livewire.

Possible applications

Making


78L05


How part of the PCB for the 78L05 might look


7805 pins

How part of the PCB for the 7805 might look

Testing

First check that the input voltage is in the range 7.5V to 35V. Then make sure that the output voltage (on the green PCB track) is +5V.

Fault finding

If there is a fault, check that:

If there is a fault, check the tracks and solder joints.

Alternatives

Web links

Return to list of datasheets

Go to Top

Notes on Combining Subsystems

The data sheets include circuit diagrams for each subsystem. These can be used in various ways, depending on the CAD software available.

There are suggestions for various options:

Return to list of datasheets

Circuit Wizard

The files for the various units were drawn using Livewire and can be downloaded, opened using Circuit Wizard, combined to build up a complete circuit and converted to a PCB.

Suppose, for example, that the system planned is a night light – a lamp should light when it is dark. A suitable block diagram might be:

The signal from the Light sensor will go low when it is dark, so the signal from the Inverter will go high, which will switch on the Darlington driver and the Bulb will light.

Read the data sheets for the planned subsystems and make sure they will work as planned. In the case of the present system, looking at the data sheet for the Light sensor we find that we can simplify the circuit by using a Dark sensor, and missing out the Inverter:

If all looks well, download the Livewire files for each of the subsystems and store them on disk.

You will build up a complete circuit by copying and pasting circuits for subsystems. Open Circuit Wizard and save a new blank file where you will build up your complete circuit.

To paste the first subsystem circuit into this, click on File > Open and change the file type to Livewire. Open the file for the first subsystem (the Dark sensor in this case).

To copy this file into your new file for your complete circuit, click on Edit > Select All (or Ctrl + A) and then Edit > Copy (or Ctrl + C). Close the subsystem file and use Edit > Paste (or Ctrl + V) to paste the first subsystem into your new circuit file. You can move the subsystem around with the mouse and click when it is in a suitable position.

Do the same with the next subsystem – the Darlington driver in this example. Move it around so that the power supply rails line up with each other and there is a reasonable space between the subsystems. The result should look something like this:

Continue in this way and add all the subsystems in the block diagram. At the end of this the result should be something like:

Next, tidy up the circuit diagram by:

Then connect up the power supply rails, and the signals between the subsystems. The result should be similar to:

At this point it may be necessary to change the value of Vs to match the voltage required by the output device, and also the ‘hidden’ power supply for ICs (Project > Simulation > Power Supply …)

Next, use the simulation facility in Circuit Wizard to check that your circuit is working as planned (in this case, that the bulb is on when it is dark and off when it is light).

The circuit could be further improved e.g. by moving components to straighten the connections. The circuit diagram can now be converted directly to a PCB (Project > Circuit Symbols > Convert to PCB Layout …). The result in this case will be something like:

It is prudent to check the PCB against the original circuit design before spending a lot of time making the PCB. Print out the PCB. Click on the Circuit Diagram tab and display the pin numbers (View > Display > Show Pin Numbers). Print out the circuit diagram. Check that each track on the PCB corresponds to a connection on the circuit diagram (a good way to do this is to mark each track and connection with a highlighter).

The connection to the bulb is via the 2-pin terminal block. The PCB can be tidied up e.g. by deleting the unused pads and connecting any unused input pins on CMOS ICs to either 0V or +Vs to prevent damage by static electricity.

The software used to produce the files for these notes was Circuit Wizard version

Return to list of datasheets

Go to Top

Livewire and PCB Wizard

The files for the various units were drawn using Livewire and can be downloaded, combined to build up a complete circuit and converted to a PCB.

Suppose, for example, that the system planned is a night light – a lamp should light when it is dark. A suitable block diagram might be:

The signal from the Light sensor will go low when it is dark, so the signal from the Inverter will go high, which will switch on the Darlington driver and the Bulb will light.

Read the data sheets for the planned subsystems and make sure they will work as planned. In the case of the present system, looking at the data sheet for the Light sensor we find that we can simplify the circuit by using a Dark sensor, and missing out the Inverter:

If all looks well, download the Livewire files for each of the subsystems and store them on disk.

You will build up a complete circuit by copying and pasting circuits for subsystems. Open Livewire and save a new blank file where you will build up your complete circuit.

Open the file for the first subsystem (the Dark sensor in this case). To copy this file into your new circuit, click on Edit > Select All (or Ctrl + A) and then Edit > Copy (or Ctrl + C). Close the subsystem file and use Edit > Paste (or Ctrl + V) to paste the first subsystem into your new circuit file. You can move the subsystem around with the mouse and click when it is in a suitable position.

Do the same with the next subsystem – the Darlington driver in this example. Move it around so that the power supply rails line up with each other and there is a reasonable space between the subsystems. The result should look something like this:

Continue in this way and add all the subsystems in the block diagram. At the end of this the result should be something like:

Next, tidy up the circuit diagram by:

Then connect up the power supply rails, and the signals between the subsystems. The result should be similar to:

At this point it may be necessary to change the value of Vs to match the voltage required by the output device, and also the ‘hidden’ power supply for ICs (Tools > Simulation > Power Supply …)

Next, use the simulation facility in Livewire to check that your circuit is working as planned (in this case, that the bulb is on when it is dark and off when it is light).

The circuit could be further improved e.g. by moving components to straighten the connections. The circuit diagram can now be converted directly to a PCB (Project > Circuit Symbols > Convert to PCB Layout …). The result in this case will be something like:

It is prudent to check the PCB against the original circuit design before spending a lot of time making the PCB. Print out the PCB. Open the circuit diagram file and display the pin numbers (View > Display > Pin Numbers). Print out the circuit diagram. Check that each track on the PCB corresponds to a connection on the circuit diagram (a good way to do this is to mark each track and connection with a highlighter).

The connection to the bulb is via the 2-pin terminal block. The PCB can be tidied up e.g. by deleting the unused pads and connecting any unused input pins on CMOS ICs to either 0V or +Vs to prevent damage by static electricity.

The software used to produce the files for these notes was Livewire version 1.11 and PCB Wizard version 3.55.

Return to list of datasheets

Go to Top

PCB Wizard

The files for the various units were drawn using Livewire and can be downloaded, opened using PCB Wizard, combined to build up a complete circuit and converted to a PCB.

Suppose, for example, that the system planned is a night light – a lamp should light when it is dark. A suitable block diagram might be:

The signal from the Light sensor will go low when it is dark, so the signal from the Inverter will go high, which will switch on the Darlington driver and the Bulb will light.

Read the data sheets for the planned subsystems and make sure they will work as planned. In the case of the present system, looking at the data sheet for the Light sensor we find that we can simplify the circuit by using a Dark sensor, and missing out the Inverter:

</