Interactive electronics resource
Full Adder Kit Instructions
Build and explore the circuits that allow computers to perform binary addition and subtraction, using standard CMOS logic gates, push-button inputs and LED indicators.
Introduction
The Full Adder kit combines two circuits on one PCB, a half adder and a full adder, so that you can see how a full adder is built using two half adders and an additional OR gate. At the same time, the kit supports single-bit subtraction through an extra switch and logic circuit, allowing us to explore how computers perform arithmetic using nothing more than logic gates.
Schematic
First principles - Binary
Binary, which uses the digits 1 and 0 to represent two states, forms the foundation of digital logic circuits and computing systems. What makes binary so useful goes beyond its simple two-state nature, as mathematics in binary is surprisingly easy to perform using electronic circuits.
Before continuing, we recommend experimenting with the MitchElectronics Logic Board and the other Logic Range kits so that you can become comfortable with logic gates and logic functions.
Binary numbers represent powers of two, with every additional bit to the left representing the next power of two. A single binary bit can represent either 0 or 1, but adding a second bit gives us four possible states, 00, 01, 10 and 11, representing the decimal numbers 0 to 3. If we add another bit, the number of possible states doubles again, allowing us to represent the numbers 0 to 7.
Binary place values
The example 0101 represents 4 + 1, giving a decimal value of 5. With four bits we have 16 possible combinations, representing unsigned decimal values from 0 to 15.
Binary addition
We can see that binary numbers consist of individual bits, with each bit representing either on or off, but how can we use these bits to add numbers together?
To add two binary numbers, stack the numbers as you would with decimal addition and add each pair of digits, starting at the least significant bit (LSB) and working towards the most significant bit (MSB).
If we take two individual bits, each representing either 1 or 0, the result of adding them together can only be 0, 1 or 2. The following table shows all possible combinations.
When the result is 2, which is 10 in binary, we cannot store both digits in a single sum bit, so the extra digit is called a carry and is passed to the next significant bit.
This means that when adding two multi-bit binary numbers, each column must add three bits: one bit from each number and the carry from the preceding column. For normal addition the least significant column starts with a carry input of 0, as there is no previous column.
The half and full adder
Half adder
Looking at the truth table for adding two bits, we can see that the sum follows the behaviour of an XOR gate, while the carry follows the behaviour of an AND gate. This circuit is called a half adder because it can add two individual bits, but has no input for a carry from a previous operation.
In the kit, U2D (4070 XOR) produces H_SUM, while U3C (4081 AND) produces H_COUT. Both gates receive the original A and B inputs, which means the half adder continues to demonstrate ordinary addition regardless of the subtraction switch position.
Full adder
The half adder cannot account for a carry from an earlier column, which is why we use a full adder when constructing multi-bit arithmetic circuits. A full adder takes two input bits and a carry input, producing a sum and carry output that can be passed to another full adder.
A full adder is made using two half adders connected together, with the carry output of each half adder connected to an OR gate to produce the final carry output.
If we call the output of the first XOR gate P, then P = A XOR B, the sum is P XOR CIN, and the carry is (A AND B) OR (P AND CIN).
On the kit, U2A and U3A form the first half adder, U2B and U3B form the second half adder, and U1A combines the two carry outputs. The actual kit also conditions B and CIN using the subtraction logic described below.
Four-bit binary adder
By connecting several full adders together, with each carry output connected to the carry input of the next more significant stage, we can construct much larger binary adders. Four full adders can add two four-bit numbers, producing four sum bits and a final carry bit if the unsigned result exceeds 15.
This arrangement is called a ripple-carry adder because a change in carry can propagate through each successive stage. When using multiple copies of this kit for addition, keep SUBTRACT low on every board, connect the COUT of each less significant stage to the CIN of the next stage, and hold the first CIN low. All boards must share a ground and compatible logic supply levels.
Binary subtraction
Subtraction is another important mathematical operation, but we can actually perform subtraction using the same addition circuit through a technique called two's complement.
To obtain the negative representation of a number in a fixed-width two's complement system, invert every bit and add 1. For example, the number 5 is represented as 0101 in four bits. Inverting the bits gives 1010, and adding 1 gives 1011, representing -5 in four-bit signed two's complement.
In a four-bit signed two's complement number, the most significant bit indicates whether the number is negative, while the remaining representation allows values from -8 to +7. The same bit pattern can have a different meaning if interpreted as an unsigned number, so the sign interpretation depends on the representation being used.
For example, to calculate 6 - 5 we can add 0110 and 1011. The result is 1 0001, and discarding the extra carry gives the four-bit result 0001, or 1.
Using an XOR gate as a configurable inverter
To make an adder support subtraction, we need to invert the number being subtracted and introduce a carry of 1 into the least significant stage. An XOR gate is particularly useful here, as a logic 0 on one of its inputs allows the other input to pass through unchanged, while a logic 1 inverts it.
The kit's subtraction circuit
The kit uses U2C to invert B when SUBTRACT is high, while U1B is an OR gate that combines CIN and SUBTRACT. In addition mode, both B and CIN pass through their respective logic gates unchanged, allowing the full adder to operate normally. In subtraction mode, B is inverted and the internal carry input is forced to 1, giving the single-bit operation A + NOT B + 1.
Full adder / subtractor truth table
The following table describes the actual kit, including the way U1B forces the internal carry input high whenever subtraction is selected. B′ and CIN′ are the conditioned inputs reaching the full adder core, rather than the raw external inputs.
When SUBTRACT is high, the external CIN value has no effect. In this mode the SUM bit is the one-bit subtraction result, while COUT is the no-borrow indicator for unsigned subtraction: COUT = 0 indicates a borrow, and COUT = 1 indicates no borrow.
Multi-bit subtraction
A conventional multi-bit adder/subtractor uses an XOR gate on every B bit and feeds SUBTRACT into only the least significant carry input. The remaining stages must receive the actual carry from the preceding stage.
Because U1B on this kit forces CIN′ high in subtraction mode, simply enabling subtraction on all four kits will not produce a correct multi-bit subtractor. To implement the conventional design using several kits, keep the local subtraction inputs low, externally invert each B bit using XOR gates and feed the common subtraction signal into the first carry input only. Alternatively, modify the carry-conditioning circuitry on the higher stages so that the actual incoming carry is preserved.
How to use the kit
The three push buttons set the A, B and CIN inputs high when pressed, while the pull-down resistors return the inputs to logic 0 when the buttons are released and no external signal is driving them. SW1 selects either local subtraction (VCC) or external SUB control, which defaults low through R1 when left unconnected.
Start with subtraction disabled and press the buttons to reproduce the half adder and full adder truth tables, watching how the output LEDs change. Then enable subtraction and repeat the A and B combinations, observing how the full adder outputs change while the half adder continues to add the original inputs.
External connections
The J2 VCC pin is connected to the board supply, not an independently regulated output. Use compatible voltage levels and a common ground, and avoid pressing an on-board input button while an external circuit drives that same input low, as the button connects the input directly to VCC.
Project ideas
Four-bit binary adder
Combine four kits in addition mode to construct a four-bit ripple-carry adder, using the carry outputs to connect each stage to the next. This is an excellent way to see how a larger arithmetic circuit can be built out of individual single-bit circuits.
Homebrew computer ALU
The full adder can be used as a starting point for building an arithmetic logic unit for a homebrew computer, with additional circuits for selecting operations and controlling carry inputs. A multi-bit subtractor requires the separate inversion and carry handling described above.
Binary arithmetic demonstrator
Use the kit to work through the truth tables and compare the LED outputs with the binary calculations made on paper, before experimenting with external inputs and multi-bit arithmetic.
Try it yourself
Circuit simulation
What you need
Component List
| Component | Quantity | PCB Reference |
|---|---|---|
| 10KΩ Resistor | 4 | R1 to R4 |
| 1KΩ Resistor | 8 | R5 to R12 |
| 100nF Capacitor | 3 | C1 to C3 |
| 4071 Quad OR Gate | 1 | U1 |
| 4070 Quad XOR Gate | 1 | U2 |
| 4081 Quad AND Gate | 1 | U3 |
| LED | 8 | D1 to D8 |
| SPDT Switch | 1 | SW1 |
| Push Button Switch | 3 | SW2 to SW4 |
| 4-Pin Connector | 2 | J1, J2 |
| Battery Connector | 1 | BT1 |
| Full Adder PCB | 1 | — |
Inspect the board
Interactive BOM
Board reference
PCB & assembly
The PCB silkscreen provides the component references needed when assembling the kit. Compare each reference with the component list before soldering.

Before applying power
- Check all resistor values and component positions.
- Check LED polarity and the orientation of U1, U2 and U3.
- Inspect the PCB for solder bridges, missed joints and clipped leads.
Build with confidence
Construction tips
Recommended build order
- Fit R1 to R12 and C1 to C3, checking their values.
- Fit IC sockets if supplied, observing the orientation marks.
- Fit the LEDs, switches and external connectors.
- Fit the battery connector and insert the ICs if sockets are used.
- Inspect the assembly before applying a suitable supply.
The three logic ICs have different functions, so make sure U1 is the 4071, U2 is the 4070 and U3 is the 4081. For help with construction, see the Soldering Guide.
When it does not work
Troubleshooting
None of the LEDs illuminate
With a suitable supply connected, press SW2 or SW3 and check whether the corresponding input LED illuminates. Check battery polarity, the supply rails and the LED orientation before investigating the logic circuits.
The input LEDs work but the half adder is incorrect
Compare D5 and D6 against the half adder truth table, and check U2D and U3C along with their connections to A and B. Make sure that the XOR and AND ICs have not been interchanged.
The full adder is incorrect
Disable subtraction and test all eight input combinations, checking U2A, U2B, U3A, U3B and U1A against the schematic. If the error occurs only when CIN is pressed, check the connections around U1B and U2B.
Subtraction mode does not work
Check that D4 changes state when SW1 selects local subtraction, then inspect U2C and U1B. When subtraction is enabled, the internal carry is forced high, so changing CIN should not affect the arithmetic result.
Several connected kits produce the wrong result
Check that each carry output reaches the next more significant carry input, that all boards share ground and that no external input conflicts with an on-board push button. For ordinary multi-bit addition, every subtraction input must be low.
Ready to experiment?
Try every combination of A, B and CIN before moving on to subtraction, and compare the results with the truth tables to see how a few simple logic gates can perform arithmetic. Once you are comfortable with the individual circuits, try connecting several kits together in addition mode to see how carries move through a larger binary number.