Lesson 65 - Making Sense of Logic

Now that you are a whiz at Boolean math and understand the basics of AND, NOT, and OR - what in tarnation does that have to do with electronic components? Can you make a not gate out of resistors or something? Well, to put it simply - yes!

Any kind of gate - including the ones we discussed (and some that we didn't), can be created using the discrete electronic components that we have learned already. Since we started with the NOT gate in Boolean math - it seems like a good place to start with in studying the schematics behind it.

Years ago - they used relays to create logic circuits. This is not a far stretch of the imagination. If you apply voltage to a relay, it turns on. If you do not - it turns off.


Let us first look at the NOT gate. Under its normal condition, 5 volts comes in on the top, through the switch part of the relay, and out to the right. If the toggle switch is flipped on the left side, the relay triggers, the coil pulls the relay switch in, and there is no output. 1¬→0, 0¬→1. We have created a NOT gate out of a relay.


Now let's take a close look at the operation of the Relay AND gate. Again the 5 volt signal comes in from the top, and taking the path of least resistance, follows the road to nowhere! If we flip the top switch (SW1) we apply power to the coil, but because there is no ground, there is no complete circuit, and the relay does not energize. Again - the 5 volts goes nowhere. The same applies if we flip the bottom switch (SW2). It isn't until we flip BOTH SW1 AND SW2 that the relay energizes, and the 5 volts is allowed to continue on to the next circuit. 1∧1→1 else 0.... it is an AND gate.

Now comes the all permitting OR gate. Following the signal, the 5 Volts comes in at the top, and moves its way to the right. It is stopped by the open relay switches, because neither relay is energized. If we close switch 1, relay 1 energizes and lets the voltage through. If we close switch 2, relay 2 energizes and allows current to flow through. If we close both switches, current flows, and again we have 5 volts at the output. 0∨1→1, 1∨0→1, 1∨1→1, 0∨0→0. We have an or gate.

Truth be told, relay logic is VERY old technology - predating the invention of the tube or transistor. However, evidence exists of its usefulness. I have run into many relay logic circuits in the repair of high voltage circuits. I've seen them implemented in industrial electronics, where they control motors, presses, and even the occasional air conditioning or security system unit. I have NEVER gone so far as Harry Porter did though - for your viewing enjoyment - meet the father of all relay computers!




At more than one point in the course - we discussed "class" of amplifiers, and terms like "saturation" and "cutoff". We went over these, because I knew then that you would be studying them in more detail now. Digital logic circuits, as opposed to analog circuits, NEVER run in class A, B, or C operation. Creating a clean, pristine, distortion free signal is not only not desired - it isn't possible. Wait a minute - the cable guy told me that when I went to DTV, I would have a perfect signal, and my TV looks better than ever now. Yes and no. It only "looks" better to you, because the massive amount of distortion you see, you don't see. It happens so quickly that it is beyond the frequency and range of your analog eyes to detect - but rest assured there is a TON of distortion going on. I know this, because you are seeing the effects of "square waves", and there is no such thing as a perfect, distortionless square wave. We'll maybe cover all that in another course.

For now, suffice it to say that in Digital Logic circuits - there can only be 2 states - On, and Off (1 and 0). Those 2 states are represented in the electronic world as "saturation" and "cutoff". When a transistor (tube, FET or other amplifying device) is in saturation, it is so overly distorted that it can not go any higher no matter how much more signal is applied to the input. The opposite works for cutoff. The amplifying device has so little signal applied that it is completely turned off. Applying even less current will not make the output go any lower.

Because the amplifier is set up to operate at such close parameters, (Class D, E, or even F), when you DO apply a nice sine wave (or Bethovan's 5th Symphony), to the input of the amplifier - it comes out as square shaped waves - with the tops and bottoms compressed off, and the sound coming out of it will be just plain hideous!

However, if the signal you apply is already a distorted signal (saturated or cutoff), and you aren't worried about distorting it more - then it is just fine to push it through a class D, E, or F amplifier. Because of this - they use these classes of amplifiers in an effort to conserve energy.

In Digital Logic, 5 volts is typically considered to be a 1, and zero volts (ground) is considered to be a 0. Typically, any input above 3 volts will send the transistor into saturation (making 5 volts output), and any input below 2 volts will put the transistor into cutoff (0 volt output). What happens if you apply a signal between 2 and 3 volts? Glad you asked. Because of the unstable nature of the circuit, any signal that falls between the saturation and cutoff points will cause the circuit to have unpredictable results - so we must at all cost avoid this situation. Often we run into this problem if a ground is not properly connected in a digital circuit, which is why grounding is so important in digital circuitry.

In an analog circuit, you would expect a sine wave, or similar analog signal to go through the circuitry. In a digital circuit, the signal looks much different, speeding through as a series of 1's (5 Volts) and zeros (0 Volts) over time. So the signals you would look for on an oscilloscope would look much different. The test equipment you need to troubleshoot it also looks different. Devices like logic probes, data and word analyzers, and computers are needed to decipher the presence and integrety of digital data. Simply keep in mind for now, as you move on to the next section of the course - that a 1 is 5 volts, and a 0 is well, 0 volts.  


Previous
Next Post »
My photo

Hi, I`m Sostenes, Electrical Technician and PLC`S Programmer.
Everyday I`m exploring the world of Electrical to find better solution for Automation. I believe everyday can become a Electrician with the right learning materials.
My goal with BLOG is to help you learn Electrical.
Related Posts Plugin for WordPress, Blogger...

Label

KITAIFA NEWS KIMATAIFA MICHEZO BURUDANI SIASA TECHNICAL ARTICLES f HAPA KAZI TU. LEKULE TV EDITORIALS ARTICLES DC DIGITAL ROBOTICS SEMICONDUCTORS MAKALA GENERATOR GALLERY AC EXPERIMENTS MANUFACTURING-ENGINEERING MAGAZETI REFERENCE IOT FUNDAMENTAL OF ELECTRICITY ELECTRONICS ELECTRICAL ENGINEER MEASUREMENT VIDEO ZANZIBAR YETU TRANSDUCER & SENSOR MITINDO ARDUINO RENEWABLE ENERGY AUTOMOBILE SYNCHRONOUS GENERATOR ELECTRICAL DISTRIBUTION CABLES DIGITAL ELECTRONICS AUTOMOTIVE PROTECTION SOLAR TEARDOWN DIODE AND CIRCUITS BASIC ELECTRICAL ELECTRONICS MOTOR SWITCHES CIRCUIT BREAKERS MICROCONTROLLER CIRCUITS THEORY PANEL BUILDING ELECTRONICS DEVICES MIRACLES SWITCHGEAR ANALOG MOBILE DEVICES CAMERA TECHNOLOGY GENERATION WEARABLES BATTERIES COMMUNICATION FREE CIRCUITS INDUSTRIAL AUTOMATION SPECIAL MACHINES ELECTRICAL SAFETY ENERGY EFFIDIENCY-BUILDING DRONE NUCLEAR ENERGY CONTROL SYSTEM FILTER`S SMATRPHONE BIOGAS POWER TANZIA BELT CONVEYOR MATERIAL HANDLING RELAY ELECTRICAL INSTRUMENTS PLC`S TRANSFORMER AC CIRCUITS CIRCUIT SCHEMATIC SYMBOLS DDISCRETE SEMICONDUCTOR CIRCUITS WIND POWER C.B DEVICES DC CIRCUITS DIODES AND RECTIFIERS FUSE SPECIAL TRANSFORMER THERMAL POWER PLANT cartoon CELL CHEMISTRY EARTHING SYSTEM ELECTRIC LAMP ENERGY SOURCE FUNDAMENTAL OF ELECTRICITY 2 BIPOLAR JUNCTION TRANSISTOR 555 TIMER CIRCUITS AUTOCAD C PROGRAMMING HYDRO POWER LOGIC GATES OPERATIONAL AMPLIFIER`S SOLID-STATE DEVICE THEORRY DEFECE & MILITARY FLUORESCENT LAMP HOME AUTOMATION INDUSTRIAL ROBOTICS ANDROID COMPUTER ELECTRICAL DRIVES GROUNDING SYSTEM BLUETOOTH CALCULUS REFERENCE DC METERING CIRCUITS DC NETWORK ANALYSIS ELECTRICAL SAFETY TIPS ELECTRICIAN SCHOOL ELECTRON TUBES FUNDAMENTAL OF ELECTRICITY 1 INDUCTION MACHINES INSULATIONS ALGEBRA REFERENCE HMI[Human Interface Machines] INDUCTION MOTOR KARNAUGH MAPPING USEUL EQUIATIONS AND CONVERSION FACTOR ANALOG INTEGRATED CIRCUITS BASIC CONCEPTS AND TEST EQUIPMENTS DIGITAL COMMUNICATION DIGITAL-ANALOG CONVERSION ELECTRICAL SOFTWARE GAS TURBINE ILLUMINATION OHM`S LAW POWER ELECTRONICS THYRISTOR USB AUDIO BOOLEAN ALGEBRA DIGITAL INTEGRATED CIRCUITS FUNDAMENTAL OF ELECTRICITY 3 PHYSICS OF CONDUCTORS AND INSULATORS SPECIAL MOTOR STEAM POWER PLANTS TESTING TRANSMISION LINE C-BISCUIT CAPACITORS COMBINATION LOGIC FUNCTION COMPLEX NUMBERS ELECTRICAL LAWS HMI[HUMANI INTERFACE MACHINES INVERTER LADDER DIAGRAM MULTIVIBRATORS RC AND L/R TIME CONSTANTS SCADA SERIES AND PARALLEL CIRCUITS USING THE SPICE CIRCUIT SIMULATION PROGRAM AMPLIFIERS AND ACTIVE DEVICES BASIC CONCEPTS OF ELECTRICITY CONDUCTOR AND INSULATORS TABLES CONDUITS FITTING AND SUPPORTS CONTROL MOTION ELECTRICAL INSTRUMENTATION SIGNALS ELECTRICAL TOOLS INDUCTORS LiDAR MAGNETISM AND ELECTROMAGNETISM PLYPHASE AC CIRCUITS RECLOSER SAFE LIVING WITH GAS AND LPG SAFETY CLOTHING STEPPER MOTOR SYNCHRONOUS MOTOR AC METRING CIRCUITS APPS & SOFTWARE BASIC AC THEORY BECOME AN ELECTRICIAN BINARY ARITHMETIC BUSHING DIGITAL STORAGE MEMROY ELECTRICIAN JOBS HEAT ENGINES HOME THEATER INPECTIONS LIGHT SABER MOSFET NUMERATION SYSTEM POWER FACTORS REACTANCE AND IMPEDANCE INDUCTIVE RESONANCE SCIENTIFIC NOTATION AND METRIC PREFIXES SULFURIC ACID TROUBLESHOOTING TROUBLESHOOTING-THEORY & PRACTICE 12C BUS APPLE BATTERIES AND POWER SYSTEMS ELECTROMECHANICAL RELAYS ENERGY EFFICIENCY-LIGHT INDUSTRIAL SAFETY EQUIPMENTS MEGGER MXED-FREQUENCY AC SIGNALS PRINCIPLE OF DIGITAL COMPUTING QUESTIONS REACTANCE AND IMPEDANCE-CAPATIVE RECTIFIER AND CONVERTERS SEQUENTIAL CIRCUITS SERRIES-PARALLEL COMBINATION CIRCUITS SHIFT REGISTERS BUILDING SERVICES COMPRESSOR CRANES DC MOTOR DRIVES DIVIDER CIRCUIT AND KIRCHHOFF`S LAW ELECTRICAL DISTRIBUTION EQUIPMENTS 1 ELECTRICAL DISTRIBUTION EQUIPMENTS B ELECTRICAL TOOL KIT ELECTRICIAN JOB DESCRIPTION LAPTOP THERMOCOUPLE TRIGONOMENTRY REFERENCE UART WIRELESS BIOMASS CONTACTOR ELECTRIC ILLUMINATION ELECTRICAL SAFETY TRAINING FILTER DESIGN HARDWARE INDUSTRIAL DRIVES JUNCTION FIELD-EFFECT TRANSISTORS NASA NUCLEAR POWER SCIENCE VALVE WWE oscilloscope 3D TECHNOLOGIES COLOR CODES ELECTRIC TRACTION FEATURED FLEXIBLE ELECTRONICS FLUKE GEARMOTORS INTRODUCTION LASSER MATERIAL PID PUMP SEAL ELECTRICIAN CAREER ELECTRICITY SUPPLY AND DISTRIBUTION MUSIC NEUTRAL PERIODIC TABLES OF THE ELEMENTS POLYPHASE AC CIRCUITS PROJECTS REATORS SATELLITE STAR DELTA VIBRATION WATERPROOF