This system utilizes two push buttons to represent the input variables, A and B. The goal of the project is to provide a real-time visual demonstration of an OR logic gate through instantaneous light feedback.
Input Monitoring:To track the status of both inputs, I integrated two yellow LEDs.Whenever a button is pressed (logic 1),the corresponding yellow LED lights up immediately, confirming the input activation.
System Output: The logical result is represented by a red LED. This is programmed to trigger if the first button OR the second button OR both are activated simultaneously.
Moving on to the AND gate, the rules of the circuit change entirely.
The setup: We are using two push buttons as our inputs, connected to a single red LED that acts as our final indicator.
The logic in action:The red LED will only light up when both buttons are pressed down at the exact same time. If you press only one button, or if you don't touch them at all, the LED stays completely off.