Download presentation

Presentation is loading. Please wait.

Published byElisabeth Mulliner Modified over 3 years ago

2
LO: Were learning to understand how logic applies to us when building applications.

3
A logic gate is a digital circuit which either allows a signal to pass through it or to stop it. There are seven basic logic gates: AND, OR, XOR, NOT, NAND, NOR, and XNOR.

4
NOT GATE Input Output NOT GATE HEAT DETECTOR (ABOVE 20 C) CENTRAL HEATING

5
c c AND GATE AND GATE ON SWITCH FOR ALARM PERSON SENSOR BURGLAR ALARM Input Output

6
OR GATE Input OR GATE FRONT DOORBELL SWITCH BACK DOORBELL SWITCH DOORBELL

7
It is important to remember the rules of each gate. For example The NOT gate has only one input and therefore only has one output. The truth table below has been started for you, see if you can finish it… INPUT AOUTPUT X 1 1

8
Using these rules, see if you can finish the other two truth tables. The output is "true" if either or both of the inputs are "true." If both inputs are "false," then the output is "false. – OR The output is "true" when both inputs are "true. Otherwise, the output is "false. - AND

9
? ? ? ? YES, She/He is OK Good dancer Good at sport Blue eyes Has a big nose Name the logic gates. Test it by answering True or false (Yes or No) for each Input. Task – Create a pattern of logic gates to find out if something is suitable. It could be the perfect video game or CD to listen to.

10
Now that you understand the rules, it time to apply it to TouchDevelop. Youve learnt about 3 different gates, you may need to compare items before making algorithms in the future. Can you think of things you might need to compare in a game?

11
1.Using the lesson 10 video, create the 3 logic gates as 3 separate programmes. 2.Publish the program with your name so that your teacher can search or it. 3.Once your teacher is happy with your Logic gates, see if you can create variables and repeat the logic gates you illustrated previously.

12
Your teacher might pass around 3 torches around the room. The teacher has one input Another student is the second input. The 3 rd student will need to turn the 3 rd torch, on or off based on the gate mentioned by the teacher.

Similar presentations

OK

Author : Khairi LOGIC GATES Logic gate Input Output Logic gates are electronic switches with one or more input but only one output ogic gates are commonly.

Author : Khairi LOGIC GATES Logic gate Input Output Logic gates are electronic switches with one or more input but only one output ogic gates are commonly.

© 2017 SlidePlayer.com Inc.

All rights reserved.

Ads by Google

Ppt on time management skills Ppt on marie curie's husband Ppt on high level languages basic Creating ppt on ipad Types of window display ppt on ipad Ppt on cement concrete flooring Ppt on windows 8 features Ppt on buddhism and jainism literary Ppt on diabetes mellitus treatment Ppt on bluetooth controlled robot car