Curriculum
Course: Logical Operators (&&, ||, !)
Login
Text lesson

Smart LED Indicator using AND (&&) About

About the Project

Project Title

Smart LED Indicator using AND (&&)


About the Project

In this project, students will design a Smart LED Indicator using two push buttons and two LEDs.

The system should:

  • Turn ON the Green LED only when both buttons are pressed.
  • Otherwise, the Red LED should remain ON.

This simulates a simple security or permission system where two conditions must be satisfied before an action is allowed.

Teacher Note: Do not tell students which logical operator to use. Let them identify that AND (&&) is required.


Learning Outcome

After completing this assignment, students will be able to:

  • Read two digital inputs.
  • Control two LEDs.
  • Apply logical thinking to solve a problem.
  • Use conditional statements to make decisions.

Components Required

Component Quantity
Arduino Uno 1
Breadboard 1
Push Button 2
Green LED 1
Red LED 1
220Ω Resistors 2
Jumper Wires As required
USB Cable 1

 

Expected Output

Button 1 Button 2 Green LED Red LED
OFF OFF OFF ON
ON OFF OFF ON
OFF ON OFF ON
ON ON ON OFF
×
×

Cart