Data Lodics and Design Lab Manual
Data Lodics and Design Lab Manual
LAB 1
Task 1: Simple Led Circuit
Objective:
To understand the basic principles of an electrical circuit by connecting a 6V
battery, a resistor, and an LED in series. The experiment demonstrates how
current flow and resistance impact the operation of an LED.
Components Required:
1 x 6V Battery
1 x 10-ohm Resistor
1 x LED (Aqua)
Connecting wires
Circuit Diagram:
Procedure:
Materials Required:
1 x 9V Battery
1 x 1k ohm Potentiometer
1 x LED (Aqua)
1 x Ammeter
1 x Voltmeter
Connecting wires
Circuit Diagram:
Procedure:
Circuit Diagram:
Procedure:
Circuit Diagram:
Procedure:
2. Circuit Setup:
o Parent Sheet: Contains the input/output pins connected via labels to
the child sheet. The logic inputs are controlled by logic toggle, and
the outputs are displayed using LEDs.
o Child Sheet: Implements the NAND gates (U1, U2, U3, U4), each with
two inputs and one output. The input and output pins are linked to
the parent sheet via labels.
3. Label Usage:
o Use labels to connect the input/output pins of the parent sheet to
the respective pins in the child sheet.
o The labels ensure that the signal routing from the parent sheet inputs
flows correctly to the child sheet's logic gates, and the outputs are
fed back to the LEDs on the parent sheet.
4. Input Manipulation:
o Use the input toggles in the parent sheet to set input combinations
for the NAND gates (in the child sheet).
o The outputs are displayed using LEDs in the parent sheet.
5. Expected Behavior:
o The output of a NAND gate is LOW (0) only when both inputs are
HIGH (1).
o For all other input combinations, the output will be HIGH (1), lighting
up the corresponding LED.
LAB 3
Inputs:
o Toggle switch 1 for "Door Closed"
o Toggle switch 2 for "Lock Activated"
AND Gate: U1
Output: LED to represent the door lock status
2. Seatbelt Warning System (Using OR Gate)
Description:
The seatbelt warning light will turn on if either the seatbelt is unfastened or the
car door is open. This is achieved using an OR gate, which outputs HIGH if either
input is HIGH.
Components:
Inputs:
o Toggle switch 1 for "Seatbelt Fastened"
o Toggle switch 2 for "Car Door Closed"
OR Gate: U2
Output: LED to represent the warning light
Inputs:
o Toggle switch 1 for "Low Water Level Sensor"
o Toggle switch 2 for "Overflow Sensor"
NOR Gate: U3
Output: LED to represent the pump status
Inputs:
o Toggle switch 1 for "Motion Detector"
o Toggle switch 2 for "Window/Door Sensor"
NAND Gate: U4
Output: LED to represent the alarm status
Inputs:
o Toggle switch 1 for "Temperature Sensor"
o Toggle switch 2 for "Manual Override"
XOR Gate: U5
Output: LED to represent the fan status
Procedure:
1. Opening the Simulation:
o Launch Proteus ISIS and create a new schematic for each circuit.
o For each circuit, add the necessary logic gate (AND, OR, NOR, NAND,
XOR) along with two toggle switches for inputs and one LED for the
output.
2. Circuit Setup:
o For each scenario, connect the input toggles to the corresponding
logic gate and link the output of the logic gate to an LED.
o Ensure that all components are powered using a VCC (5V) pin and
grounded using a GND pin.
3. Input Manipulation:
o Use the input toggles to apply different input combinations to each
logic gate and observe the behavior of the LED, which represents the
system's output.
Connections:
1. LED1 (D1) connected to Pin 8 of the Arduino, with the cathode going to
ground.
2. LED2 (D2) connected to Pin 9 of the Arduino, with the cathode going to
ground.
3. Servo1 (IMAN) connected to Pin 12.
4. Servo2 (NIDA) connected to Pin 11.
5. Servo3 (NOOR) connected to Pin 10.
6. Servo4 (ser) connected to Pin 13.
7. Battery provides power to the Arduino board through the Vin pin.
Steps to Build:
This setup should allow you to control both the servos and the LEDs in your
project.
Circuit Diagram:
LAB 5 & 6