<?xml version="1.0" encoding="UTF-8" ?>
  <resource>
  <id>8260</id>
  <path>/www/nrich/html/content/id/8260/</path>
  <resourceTypeID>6</resourceTypeID>
  <last_published>2011-02-01T00:00:01</last_published>
  <indexXML>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;br&gt;&lt;/br&gt;
&lt;p&gt;A circuit is a set of switches, wires, bulbs and components called &lt;span style=&quot;font-style: italic;&quot;&gt;logic gates&lt;/span&gt; .&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
There are seven different types of logic gates, each with a technical-sounding name:&lt;/p&gt;
&lt;div style=&quot;margin-left: 40px;&quot;&gt;AND&lt;/div&gt;
&lt;div style=&quot;margin-left: 40px;&quot;&gt;OR&lt;/div&gt;
&lt;div style=&quot;margin-left: 40px;&quot;&gt;XOR (exclusively OR)&lt;/div&gt;
&lt;div style=&quot;margin-left: 40px;&quot;&gt;NAND (not AND)&lt;/div&gt;
&lt;div style=&quot;margin-left: 40px;&quot;&gt;NOR (not OR)&lt;/div&gt;
&lt;div style=&quot;margin-left: 40px;&quot;&gt;XNOR (not XOR)&lt;/div&gt;
&lt;div style=&quot;margin-left: 40px;&quot;&gt;NOT&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;p&gt;One wire comes out of each logic gate and in the examples below this wire is always attached to a bulb. The bulb is on or off depending on the inputs from the switches and the type of logic gate.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Here is a circuit containing one of each type of gate wired up to a bulb.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
By clicking the switches on or off (using the blue square in their top left hand corners), can you work out what each of the different logic gates does?&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;a href=&quot;/content/id/5974/Simple%20Adding.swf&quot;&gt;Full Screen Version&lt;/a&gt;&lt;br&gt;&lt;/br&gt;
&lt;mdo:flash height=&quot;400&quot; id=&quot;/content/id/8260//content/id/5974/Simple%20Adding.swf&quot; width=&quot;560&quot;&gt;&lt;param name=&quot;allowfullscreen&quot; value=&quot;true&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowfullscreen&quot; value=&quot;true&quot;&gt;&lt;/param&gt;
&lt;param name=&quot;movie&quot; value=&quot;/content/id/5974/Simple%20Adding.swf&quot;&gt;&lt;/param&gt;
&lt;param name=&quot;flashplayerversion&quot; value=&quot;8&quot;&gt;&lt;/param&gt;
&lt;/mdo:flash&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Now that you are familiar with the properties of the gates you can experiment by building your own circuits with interesting properties using the interactivity below. Instructions are given at the bottom of the page. You can find some ideas and challenges in &lt;a href=&quot;http://nrich.maths.org/public/viewer.php?obj_id=5973&amp;amp;part=&quot;&gt;Simple Counting Machine&lt;/a&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
You can also read and learn more about logic circuits and gates and mathematical logic in the article &lt;a href=&quot;http://nrich.maths.org/public/viewer.php?obj_id=6023&amp;amp;part=index&quot;&gt;Logic, Truth Tables and Switching Circuits&lt;/a&gt; &lt;a href=&quot;http://nrich.maths.org/public/viewer.php?obj_id=6023&amp;amp;part=index&quot;&gt;.&lt;/a&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;a href=&quot;/content/id/5974/Circuits.swf&quot;&gt;Full Screen Version&lt;/a&gt;&lt;br&gt;&lt;/br&gt;
&lt;mdo:flash height=&quot;400&quot; id=&quot;/content/id/8260//content/id/5974/Circuits.swf&quot; width=&quot;560&quot;&gt;&lt;param name=&quot;allowfullscreen&quot; value=&quot;true&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowfullscreen&quot; value=&quot;true&quot;&gt;&lt;/param&gt;
&lt;param name=&quot;movie&quot; value=&quot;/content/id/5974/Circuits.swf&quot;&gt;&lt;/param&gt;
&lt;param name=&quot;flashplayerversion&quot; value=&quot;8&quot;&gt;&lt;/param&gt;
&lt;/mdo:flash&gt;&lt;/p&gt;
&lt;div class=&quot;framework&quot;&gt;&lt;br&gt;&lt;/br&gt;
INSTRUCTIONS&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
To build a circuit follow these steps. You can delete mistakes by clicking on the cross which appears when you hover above the icon.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
1. Left-click on the components to drag them on to the circuit board space.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
2. FIRST click next to a red dot and drag to the right to create a wire; THEN you can stretch this wire to join with any other red dot in the circuit.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
3. Click on the switches to turn them on or off. Wires &amp;#39;fill&amp;#39; with current unless blocked by an un-triggered logic gate.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
4. Click on the logic gates to change their type.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
5. Left-click and drag to move the components around.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
The key ideas are shown in this picture; by clicking on the triangle you can also watch a short video clip (1Mb) of the creation of the circuit.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div id=&quot;fix&quot;&gt; &lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
//
//
 
var vid = document.createElement(&amp;#39;video&amp;#39;);
//vid.setAttribute(&amp;#39;height&amp;#39;, &amp;#39;640&amp;#39;);
//vid.setAttribute(&amp;#39;width&amp;#39;, &amp;#39;480&amp;#39;);
vid.setAttribute(&amp;#39;controls&amp;#39;, &amp;#39;controls&amp;#39;);
var link = document.createElement(&amp;#39;source&amp;#39;);
link.setAttribute(&amp;#39;src&amp;#39;, &amp;#39;/content/id/8260/video.mp4&amp;#39;);
link.setAttribute(&amp;#39;type&amp;#39;, &amp;#39;video/mp4&amp;#39;);

vid.appendChild(link);

document.getElementById(&quot;fix&quot;).appendChild(vid);

//
//
&lt;/script&gt;&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;p&gt;&lt;a href=&quot;/content/id/5681/Manipulatives.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/6307/AutoScreenRecorder_01.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/6307/AutoScreenRecorder_19.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/6940/Stage3Final.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/%205746/TangleSymmetry.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/6307/AutoScreenRecorder_02.flv&quot;&gt;Download
Link&lt;/a&gt; &lt;a href=&quot;/content/id/6307/AutoScreenRecorder_20.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/6940/TeacherIntro3.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/%205775/Video.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/6307/AutoScreenRecorder_03.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/6307/AutoScreenRecorder_21.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/6961/Stage3Final.flv&quot;&gt;Download
Link&lt;/a&gt; &lt;a href=&quot;/content/id/%205776/Conway.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/6307/AutoScreenRecorder_04.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/6307/AutoScreenRecorder_22.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/6961/TeacherIntro3.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/%205835/Video.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/6307/AutoScreenRecorder_05.flv&quot;&gt;Download
Link&lt;/a&gt; &lt;a href=&quot;/content/id/6307/AutoScreenRecorder_23.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/7013/jo2.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/%205861/Video.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/6307/AutoScreenRecorder_06.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/6307/AutoScreenRecorder_24.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/7013/jocropped.flv&quot;&gt;Download Link&lt;/a&gt;
&lt;a href=&quot;/content/id/%205869/ImpossibleSquare.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/6307/AutoScreenRecorder_07.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/6806/FranVid.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/7369/FranIntro.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/%205885/Video.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/6307/AutoScreenRecorder_08.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/6806/MakingUnits.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/7369/FranVid.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/%205885/WhatsAKnot.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/6307/AutoScreenRecorder_09.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/6806/PentagonsVertices.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/7392/BryonyTriangle.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/%205886/Video.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/6307/AutoScreenRecorder_10.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/6806/WholePolyhedraSpeededUp.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/7459/HELICOPTER.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/%205901/TangleSymmetry.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/6307/AutoScreenRecorder_11.flv&quot;&gt;Download Link&lt;/a&gt;
&lt;a href=&quot;/content/id/6835/Video.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/7511/Clip%201%20Polyplugrectangles.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/%205923/ImpossibleTriangles-5923.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/6307/AutoScreenRecorder_12.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/6835/Yates-Plug.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/7511/Clip%203%20Polyplugrectangles.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/%205974/FlashVideo.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/6307/AutoScreenRecorder_13.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/6926/Stage3Final.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/7511/Clip4%20Polyplugrectangles.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/%206073/Always2.flv&quot;&gt;Download
Link&lt;/a&gt; &lt;a href=&quot;/content/id/6307/AutoScreenRecorder_14.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/6926/TeacherIntro3.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/7511/Clip5%20Polyplugrectangles.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/%206073/SumsOfSquares.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/6307/AutoScreenRecorder_15.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/6927/Video.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/7511/Clip6%20Polyplugrectangles.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/%206073/systemspk.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/6307/AutoScreenRecorder_16.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/6928/Video.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/8260/FlashVideo.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/%206276/GalleyDivision1.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/6307/AutoScreenRecorder_17.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/6929/Stage3Final.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/%206276/GalleyDivision2.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/6307/AutoScreenRecorder_18.flv&quot;&gt;Download Link&lt;/a&gt; &lt;a href=&quot;/content/id/6929/TeacherIntro3.flv&quot;&gt;Download Link&lt;/a&gt;&lt;/p&gt;&lt;/mdoxml&gt;</indexXML>
  <solutionXML/>
  <noteXML>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;br&gt;&lt;/br&gt;

&lt;h3&gt;Why do this problem?&lt;/h3&gt;
This problem gives the simplest introduction into logic gates and
circuits. Through experimentation with switches, students will
begin to see the structure of logic gates emerge without the need
for any detailed formalism. They will then see that logic gate
circuits can be constructed with more complicated behaviour. &lt;br&gt;&lt;/br&gt;

&lt;h3&gt;Possible approach&lt;/h3&gt;
&lt;div&gt;Put the problem on to the board. Encourage students to read
the problem and decide what the circuit board means. Encourage
experimentation with combinations of off /off. At each stage,
encourage students to describe what they can see. How can this
sensibly be recorded?&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;

&lt;div&gt;Once students feel that they understand how a gate works they
should write a sentence describing the action of the gate. Do
others agree that this is a clear definition? How might is be
improved? Could we use it in the definition of the behaviour of the
other gates?&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;

&lt;div&gt;You might like to discuss with the class how the words 'and'
'or' and 'not' are used in real life. How does this relate to
logic-speak? Students might enjoy inventing logic-speak sentences
such as:&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;

&lt;div&gt;'I really like eating ice cream XOR chicken curry' (meaning I
like ice cream and curry, but not at the same time)&lt;/div&gt;
&lt;div&gt;'I like tea XNOR milk' (meaning I only like tea with
milk)&lt;/div&gt;
&lt;h3&gt;Key questions&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Describe what you see.&lt;/li&gt;
&lt;li&gt;What are we supposed to change? What are we supposed to leave
fixed?&lt;/li&gt;
&lt;li&gt;How might we record our findings?&lt;/li&gt;
&lt;li&gt;What happens if the switches in the two pairs of circuits are
set to the same values?&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;Once students feel that they have described the gates clearly
using English, usethis follow up&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;How could you represent the behaviour of the gate
symbolically?&lt;/li&gt;
&lt;/ul&gt;
&lt;br&gt;&lt;/br&gt;

&lt;h3&gt;Possible extension&lt;/h3&gt;
&lt;div&gt;Once the concept of the gate is understood there are several
follow up questions, such as &lt;a href=&quot;http://nrich.maths.org/public/viewer.php?obj_id=5973&amp;amp;part=&quot;&gt;Simple
Counting Machine&lt;/a&gt; .&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;

&lt;h3&gt;Possible support&lt;/h3&gt;
You might suggest focussing on the AND, OR and NOT gates to begin
with&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;&lt;/mdoxml&gt;</noteXML>
  <clueXML/>
  <canonXML>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;mdoxml version=&quot;1.0&quot;&gt;re&lt;a href=&quot;/content/id/5974/Circuits_Scene%201.swf&quot;&gt;sourc&lt;/a&gt;e&lt;br&gt;&lt;/br&gt;&lt;/mdoxml&gt;</canonXML>
  <end_user_role>2</end_user_role>
  <difficulty>3</difficulty>
  <keystage1>0</keystage1>
  <keystage2>1</keystage2>
  <keystage3>1</keystage3>
  <keystage4>1</keystage4>
  <keystage4plus>1</keystage4plus>
  <title>Clone of Circuit maker</title>
  <description>Investigate how logic gates work in circuits.</description>
  <spec_group>Information and Communications Technology
    <specifier>Programming</specifier>
  </spec_group>
</resource>