Homework - Write Truth Tables for toy car. You will design a simple digital circuit to make a toy car follow a flashlight. The car has three light sensors.

Slides:



Advertisements
Similar presentations
Digital logic gates.
Advertisements

Sahar Mosleh PageCalifornia State University San Marcos 1 Introductory Concepts This section of the course introduces the concept of digital circuits and.
BOOlean Logic The basis for digital electronics..
CSC 405 Lab 1 - Building a Simple Combinatorial Circuit In this laboratory exercise you will learn about the layout of some small-scale integrated circuits.
Cosc 2150: Computer Organization Chapter 3: Boolean Algebra and Digital Logic.
Copyright © Cengage Learning. All rights reserved. CHAPTER 2 THE LOGIC OF COMPOUND STATEMENTS THE LOGIC OF COMPOUND STATEMENTS.
DIGITAL CIRCUITS Dr. L M Head Sophomore Clinic Fall 2004.
In this module you will learn: What the various logic gates do. How to represent logic gates on a circuit diagram. The truth tables for the logic gates.
3. DIGITAL ELECTRONICS..
Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lab 2P. 1Winter Quarter Digital Electronics Lab 2.
A key element of electrical engineering
Boolean math is the cornerstone of digital communications, whether you are talking computers, PLC, or Cisco Routers on the Internet. ©Emil Decker, 2009.
Boolean Logic By: Arthur Brooks February 25, 2003 Think, Speak, and Write Computer Science.
Intro to Digital Electronics. Classifications of Electronic Circuits Switching Circuits – by turning electricity on and off. – Figure 1 – Known as the.
How many computers do you have?. All digital electronics use computers. Computer CD & DVD players IPod Cell phone HDTV Digital cameras.
Logic gates & Boolean Algebra. Introduction Certain components (called logic elements) of the computer combine electric pulses using a set of rules. Electric.
Chapter 3.5 Logic Circuits. How does Boolean algebra relate to computer circuits? Data is stored and manipulated in a computer as a binary number. Individual.
CSCI-235 Micro-Computers in Science Hardware Design Part I.
Logic Gates How Boolean logic is implemented. Transistors used as switches to implement Boolean logic: ANDOR Logic with Transistors.
CSC 107 – Programming For Science. Follow-Up From Last Lecture.
CSC Intro. to Computing Lecture 5: Boolean Logic, Gates, & Circuits.
Gary Plimer 2005 Logic Making decisions Although it may not always seem like it, electronics and electronic systems are very logical in the way that they.
1 The Chinese University of Hong Kong Faculty of Education Diploma in Education (Part-Time) Winter 1997 Educational Communications and Technology Assignment.
Fall 2012: FCM 708 Foundation I Lecture 2 Prof. Shamik Sengupta
1 Boolean Algebra & Logic Gates. 2 Objectives Understand the relationship between Boolean logic and digital computer circuits. Learn how to design simple.
CSC Intro. to Computing Lecture 5: Boolean Logic, Gates, & Circuits.
Basic Digital Logic 2 Combinational Logic
CSC 107 – Programming For Science. George Boole  Mathematician from English middle-class  Lived from 1815 – 1864  Started work at age 16 as a teaching.
CS/COE0447 Computer Organization & Assembly Language
1 GCSE Computing Binary Logic. GCSE Computing 2 Candidates should be able to understand and produce simple logic diagrams using the operations NOT, AND,
BOOLEAN ALGEBRA LOGIC GATES. Introduction British mathematician George Boole( ) was successful in finding the link between logic and mathematics.
Minute Paper 4/4/04 Z=50+j86.7=100
BOOLEAN ALGEBRA BIRLA VISHVAKARMA MAHAVDYALAYA V. V. NAGAR Guided By: Prof. P. B. Swadas Prepared By:
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
PHYSICS – Digital electronics. LEARNING OBJECTIVES Core Supplement Explain and use the terms analogue and digital in terms of continuous variation and.
LOGIC GATES. INTRODUCTION TO LOGIC GATES Boolean functions may be practically implemented by using electronic gates. The following points are important.
Logic Gates Unit 16.
Logic gates.
The basis for digital electronics.
Basics of Logic gates - Part 1
Digital Logic.
Dr.Ahmed Bayoumi Dr.Shady Elmashad
Logic Gates Binary Day 3 PEOPLE 2016.
LOGIc gates Lesson Objectives: George Boole, ( )
Computer Science 210 Computer Organization
Starter Write down a list of what your perfect partner would be like. Can include things to do with looks, hobbies and general habits and traits. Include.
Basic Digital Logic.
CSCI-100 Introduction to Computing
LOGIc gates Objectives: George Boole, ( )
KS4 Electricity – Electronic systems
KS4 Electricity – Electronic systems
How Boolean logic is implemented
Computer Science 210 Computer Organization
Thursday, 22 November 2018 Logic Gates
Boolean Operations 1 and 1 = 1.
All very logical I think!
Digital Electronics Lab 2 Instructor:
Boolean Logic Boolean Logic is considered to be the basic of digital electronics. We know that a computer’s most basic operation is based on digital electronics.
Logic Gates.
KS4 Electricity – Electronic systems
CS Chapter 3 (3A and ) – Part 2 of 5
Binary Logic.
Objectives Construct truth tables for the following logic gates:
Electricity and Circuits
Truth tables Mrs. Palmer.
Copyright © Cengage Learning. All rights reserved.
Department of Electronics
2019 Investing Now Summer Program
Presentation transcript:

Homework - Write Truth Tables for toy car. You will design a simple digital circuit to make a toy car follow a flashlight. The car has three light sensors looking right, center, and left. The car has two motors to drive the right and left wheels. Make a truth table with three inputs and two outputs, as shown below. (Please use these columns to simplify troubleshooting.)

Evaluate truth tables for toy car.

How does the computer manipulate numbers? George Boole, a British mathematician ( ). Logic and math are equivalent. All math functions can be determined using 3 primary logic operators: AND OR NOT Boolean logic is a complete system of logical operations.

You already know Boolean logic. Searched the Web for information. How would you get the technical specifications for a car radio? Do you get the same information for “car radio”?

The AND operator (both, all) river salinity dairy products exported to Europe

The OR operator (either, any) fruit OR vegetables fruit OR vegetables OR cereal from CSIRO Australia

The NOT operator fruit NOT apples

Let’s look at class using Boolean logic. Please stand up if you are: male AND black hair AND left handed Please stand up if you are: male OR black hair OR left handed How has the group changed depending on the logical operator used.

Computers use electrical circuits called gates to manipulate numbers. AND, OR, & NOT gates do all mathematical operations.

AND gate Two input bits produces one output bit. Both inputs must be true (1) for the output to be true. Otherwise the output is false (0). ABQ

OR gate Two input bits produce one output bit. Either inputs must be true (1) for the output to be true. ABQ

NOT gate The simplest possible gate is called an "inverter," or a NOT gate. One bit as input produces its opposite as output. AQ From How Stuff Works

Google “JHU circuit builder”.  When you open circuit builder, specify the number of inputs and outputs.  Drag logic components into the circuit area to build your circuit.  Connect inputs (circles) to outputs (squares) by clicking first on one then dragging to the other. Inputs may have only a single connection but outputs may have multiple.  Once your circuit is completed you can choose either single input or all inputs to confirmation that your circuit operates correctly.

Design circuits using “circuit builder”. Use circuit builder to confirm the logic behavior of Go to the movie if you have $10 and if you find a ride. Fire alarm sounds if it senses heat or smoke.

Design circuit for voting. People can vote if they are a citizen, are 18 and are registered. Conditions = citizen, 18, registered Action = vote

Design circuit for R movie. You can go to the R movie if you have $10 and if you are over 18 or accompanied by a parent. Conditions = $10 and (>18 or parent) Action = go to movie

Design circuit for safe but economical operations of toxic waste incinerator. Want at least two sensors showing flame to open waste valve.

Control valve If any two sensors show flame, open the valve.

Design circuit to alert for bad sensors. Add a second output to show sensor agreement.

Sensor fault alarm If sensor 1, 2 and 3 don’t agree, then show sensor fault.

Try this problem Your home watering system will water the lawn if it is an odd day of month and the clock shows the preset time but not if the rain gage shows over 0.1 inch of water. The system will shut off when the timer has reached 5 minutes.

Homework - design a toy car circuit using AND, OR & NOT.

Homework Design your toy car circuit using AND, OR, & NOT gates.

RW on when LS or CS on. LW on when RS or CS on.

RW on (to seek) when no sensors are on.

Combine parts.

What if you want the car to turn when both two sensors see it.

Computers make all logic decisions with one type of electronic gate. All math operations can all be done with one type gate. The most sophisticated computer can be made from only this gate. Computer chip with 4 NAND gates.

NAND is a NOT and an AND gate. ABQ ABQ  Not

Make a NOT gate from NAND gates. AQ 01 10

Make an AND gate from NAND gates? ABQ

Make an OR gate from NAND gates. ABQ

Convert the control valve circuit to NAND gates. NOT AND OR

Convert the sensor fault alarm to NAND gates and simplify the circuit. If sensor 1, 2 and 3 don’t agree, then show sensor fault. NOT AND OR

NAND chips 14 pins Four NAND gates Careful of I/O numbering Reversed on different sides DC +5 volts on pin 14 Ground on pin 7

Map circuit design to chip locations. chip

Cable from robot car

The IC chips fits on a breadboard. Connect wires between pins. Each row is electrically connected.

Homework Convert your toy car circuit from AND, OR, & NOT gates to NAND gates and simplify to 2 chips max. Number all gate I/O with chip pin numbers.