⚡ **How to Build a Simple OR Logic Gate Using the 555 Timer IC**

Thread Starter

rvertulo

Joined Mar 16, 2025
13
⚡ Turn the classic 555 timer into an OR logic gate (or should be a NAND Gate) using just a few components! Ideal for quick prototyping, learning, or DIY electronics projects. Take a look at the link bellow to better understand what exactly is this circuit.
http://labdeeletronica.com.br/en/eletronicaanalogica/porta-logica-or-com-ci-555/

IMPORTANT: You will better understand the motivation behind the creation of this circuit by accessing the URL above.


A_OR_B_pequena.png
 
Last edited:

Thread Starter

rvertulo

Joined Mar 16, 2025
13
For what purpose does this Circuit need the 555 Chip ?
.
.
.
This is just to show, in an educational context, that the 555 IC can be used for much more than its common monostable, bistable, or astable configurations. In fact, it's possible to simulate all logic gates using one or multiple 555s, even to the extent of assembling an entire educational computer using several (many) 555 ICs.
 

Thread Starter

rvertulo

Joined Mar 16, 2025
13
For what purpose does this Circuit need the 555 Chip ?
It's perfectly possible to simulate the same logic gate without using the 555 IC, but studying how things happen internally within the IC to produce the OR logic gate behavior is an interesting exercise.
 

sghioto

Joined Dec 31, 2017
8,633
Appears to me if either button is pressed the output goes high but only as long as the switch is pressed.
Is that the purpose?
 

Thread Starter

rvertulo

Joined Mar 16, 2025
13
Appears to me if either button is pressed the output goes high but only as long as the switch is pressed.
Is that the purpose?

The circuit correctly matches the truth table of the OR logic gate:

A | B | Output
0 | 0 | 0
0 | 1 | 1
1 | 0 | 1
1 | 1 | 1

You are correct when mentioning that it's necessary to keep the buttons pressed.
 

Thread Starter

rvertulo

Joined Mar 16, 2025
13
Not convinced.
What do you consider a high output on the 555?

In this circuit, the logic low level corresponds to "0V," and the logic high level is approximately "3.33V" If it were to be used in a real project—although it was not designed for this purpose, as it is purely educational—these voltage levels should be taken into account. As can be observed, it works well for driving a standard LED. However, if it were used to drive a load requiring a voltage higher than "3.3V," the necessary adjustments would need to be made.
 

Thread Starter

rvertulo

Joined Mar 16, 2025
13
No. :confused:

When both inputs are open (logic high), the output is low, and when you ground either one (or both) of the inputs, the output goes high.
That's a NAND gate function.
I understand what you mean... You are referencing the supply voltage at the Trigger and Threshold pins. However, consider using the input buttons as a reference. That is, when both are open, the output is zero, and when at least one of them is closed, the output is 3.3V.

Remember, this is just an educational circuit designed to observe the output behavior according to the states of the input switches...considering an open switch as a low logic level and a closed switch as a high logic level.
 

Thread Starter

rvertulo

Joined Mar 16, 2025
13
I understand what you are saying, but if you use the term "logic gate" then you must use logic gate conventions.
The "behavior" of logic gates can be achieved even with entirely mechanical systems where there are no voltage levels. In electronic circuits, the voltage levels assigned to low or high logic levels are purely conventions, which, in the case of traditional ICs using TTL and CMOS technology, have been somewhat standardized. However, this does not mean that any circuit exhibiting the behavior of a logic gate must necessarily follow these "standardized" values. It is perfectly possible to assign different values for high and low logic levels, as long as this is clearly specified in the project documentation.
 

crutschow

Joined Mar 14, 2008
38,316
this is just an educational circuit designed to observe the output behavior according to the states of the input switches...considering an open switch as a low logic level and a closed switch as a high logic level.
Then you don't need the 555 for that.
It just unnecessarily complicates the demo.
All you need are two switches and an LED or, at most, two switches, a transistor, and an LED.
 
Top