Creating NAND gates
1
or 0
by acting like simple switches. We’re now going to look at combining these transistors together so they can perform more complex operations.The diagram below shows a circuit containing two transistors. Again you don’t have to understand what is going on in this circuit, just as long as you can understand the basic inputs and outputs.



1
s and 0
s. When both switches are off, the inputs are both 0
. Since the lamp is on, the output in this state is 1
. If we turn one of the switches to the “on” position, the corresponding input is 1
; the lamp remains on, so the output is 1
. Only when both inputs are one does the output change to 0
.


1
or 0
, with outputs in the form of a digital LED. This will allow you to play around with a NAND gate and investigate the truth table for yourself.You could even have a go at experimenting with different types of gate, which we will be covering in the next step.How Computers Work: Demystifying Computation

Our purpose is to transform access to education.
We offer a diverse selection of courses from leading universities and cultural institutions from around the world. These are delivered one step at a time, and are accessible on mobile, tablet and desktop, so you can fit learning around your life.
We believe learning should be an enjoyable, social experience, so our courses offer the opportunity to discuss what you’re learning with others as you go, helping you make fresh discoveries and form new ideas.
You can unlock new opportunities with unlimited access to hundreds of online short courses for a year by subscribing to our Unlimited package. Build your knowledge with top universities and organisations.
Learn more about how FutureLearn is transforming access to education