Engineers Garage

  • Projects and Tutorials
    • Electronic Projects
      • 8051
      • Arduino
      • ARM
      • AVR
      • PIC
      • Raspberry pi
      • STM32
    • Tutorials
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Products News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • EE Resources
    • DesignFast
    • LEAP Awards
    • Oscilloscope Product Finder
    • White Papers
    • Webinars
  • EE Learning Center
    • Design Guides
      • WiFi & the IOT Design Guide
      • Microcontrollers Design Guide
      • State of the Art Inductors Design Guide
  • Women in Engineering

Working of OR Gate using Transistor

By Arpit jain

Basic of OR gate

OR gate gives high at the output when either of the inputs is high or both the inputs are high, otherwise it gives low.

SYMBOL OF OR GATE                                         TRUTH TABLE OF OR GATE

INPUT 1

A

INPUT 2

B

OUTPUT

A+ B

0 0 0
0 1 1
1 0 1
1 1 1

Symbol of OR Gate

Fig. 1: Symbol of OR Gate

 

 

 

 

 

 

 

 

The use of transistor for OR gate operation depends on the transistor’s switching speed. For OR gate operation, we use a transistor as a switch.

Components Required
 Two BC547 NPN transistor
 Two 100 ohm resistor
 Two 4.7k resistor
 Two toggle switches
 General purpose LED
 5V power supply
 Some jumper wires
 Breadboard
 Multimeter
 
Two-input OR Gate using transistor
 
The BC547 is used here in common emitter configuration. This transistor utilizes the low power and also has low-frequency. In the common emitter configuration, transistor gives a phase shift of 180 degrees. Due to change in 180 degree in phase shift, it is able to give high at the output when our input is low and vice-versa. The biasing of the transistor is done in a way so that the operating point of the transistor comes closer to the origin in the transfer-characteristic curve of the transistor. This causes an immediate switching of the transistor from its cutoff to saturation state. Hence when we apply enough voltage at the base of the transistor, it immediately reaches into its saturation state and the transistor starts conducting. 
 
We have used BC547general purpose NPN bipolar junction transistor. Other range of BC transistor (BC548, BC549) also works fine here. By using RTL (resistor transistor logic) we have designed the OR gate by two transistors and some resistor.
Circuit Diagram of Transistor based OR Gate
Fig. 2: Circuit Diagram of Transistor based OR Gate
 
How It Works
 
The transistors are connected in parallel and their bases are used as input. The base of both the transistors act like input and one of the emitters of both the transistors is used to derive the output. Initially, both the switches are in OFF state so none of the transistor bases is getting a power supply. The base to emitter junction and base to collector junction of both the transistors have a voltage lower than 0.65V, which is the practical threshold voltage of the diode. Both junctions are in reverse bias hence both the transistors turn off and go into their cutoff state. Therefore the transistors  act like an open switch. Since all the current coming from the collector through resistor R4 is blocked by the transistor hence we get a low voltage at the output, which turns off the LED.
 
Circuit Diagram showing Working of OR Gate
Fig. 3: Circuit Diagram showing Working of OR Gate
 
In next case when we close the switch 1 then the base of the first transistor is getting a positive value of voltage. The base to emitter junction and base to collector junction of the first transistor have a voltage greater than threshold voltage so both junctions are in forward bias. The first transistor reaches into saturation state and acts like a short circuit whereas the second transistor is still in the cutoff state due to no power supply base. Hence all current passes through the first transistor to the output and our LED lights up.
Circuit Diagram showing Working of OR Gate
Fig. 4: Circuit Diagram showing Working of OR Gate
 
Likewise, if we open switch 1 and close switch 2 then the first transistor goes in cutoff while the second transistor in saturation. Now current flows through the second transistor and we get high at the output
 
When we close both the switches, the junction of both the transistors has a voltage greater than threshold voltage so both junctions are in forward bias. Therefore both transistors are in saturation state and act like a short circuit. The current now gets a short circuit path and flows from both of the transistors which derive high at the output, thereby lighting up the LED.
 
We can say for OR logic, the transistor is connected in parallel and either of the transistors must be in its conducting state to derive high at the output. If one or both the inputs have high value then at the output we get high, otherwise low.
 

Filed Under: Electronic Projects

 

Questions related to this article?
👉Ask and discuss on EDAboard.com and Electro-Tech-Online.com forums.



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

HAVE A QUESTION?

Have a technical question about an article or other engineering questions? Check out our engineering forums EDABoard.com and Electro-Tech-Online.com where you can get those questions asked and answered by your peers!


Featured Tutorials

  • Introduction to Brain Waves & its Types (Part 1/13)
  • Understanding NeuroSky EEG Chip in Detail (Part 2/13)
  • Performing Experiments with Brainwaves (Part 3/13)
  • Amplification of EEG Signal and Interfacing with Arduino (Part 4/13)
  • Controlling Led brightness using Meditation and attention level (Part 5/13)
  • Control Motor’s Speed using Meditation and Attention Level of Brain (Part 6/13)

Stay Up To Date

Newsletter Signup

Sign up and receive our weekly newsletter for latest Tech articles, Electronics Projects, Tutorial series and other insightful tech content.

EE Training Center Classrooms

EE Classrooms

Recent Articles

  • What are the battery-selection criteria for low-power design?
  • Key factors to optimize power consumption in an embedded device
  • EdgeLock A5000 Secure Authenticator
  • How to interface a DS18B20 temperature sensor with MicroPython’s Onewire driver
  • Introduction to Brain Waves & its Types (Part 1/13)

Most Popular

5G 555 timer circuit 8051 ai Arduino atmega16 automotive avr bluetooth dc motor display Electronic Part Electronic Parts Fujitsu ic infineontechnologies integratedcircuit Intel IoT ir lcd led maximintegratedproducts microchip microchiptechnology Microchip Technology microcontroller microcontrollers mosfet motor powermanagement Raspberry Pi remote renesaselectronics renesaselectronicscorporation Research samsung semiconductor sensor software STMicroelectronics switch Technology vishayintertechnology wireless

RSS EDABOARD.com Discussions

  • Pull up via GPIO
  • Code Optimization
  • Poly Spacing Effect
  • Thyristor Gate Drive
  • Passive Harmonics Filter

RSS Electro-Tech-Online.com Discussions

  • Someone please explain how this BMS board is supposed to work?
  • HV Diodes
  • Question about ultrasonic mist maker
  • DIY bluetooth speaker
  • Disabled son needs advice please
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • About Us
  • Contact Us
  • Advertise

Copyright © 2022 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Projects and Tutorials
    • Electronic Projects
      • 8051
      • Arduino
      • ARM
      • AVR
      • PIC
      • Raspberry pi
      • STM32
    • Tutorials
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Products News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • EE Resources
    • DesignFast
    • LEAP Awards
    • Oscilloscope Product Finder
    • White Papers
    • Webinars
  • EE Learning Center
    • Design Guides
      • WiFi & the IOT Design Guide
      • Microcontrollers Design Guide
      • State of the Art Inductors Design Guide
  • Women in Engineering