Activity 4.2.6 2

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Activity 4.2.

The TinkerCad link given below shows an example of a logic circuit that can be used to control single or
multiple outputs –

https://www.tinkercad.com/things/kRjbE9LjdmQ

The circuit in the given link operates as described in the table below.

Component Image Quantity Circuit Operation


10 K 2
Resistors
1 K 2

Green
1
(LED1)
LED
Red
1
(LED2)

Slide Switch
2 LED LED
(SW1 and SW2) SW1 SW2
1 2
statu statu
statu statu
Transistor s s
2 s s
(T1 and T2)
OFF OFF OFF OFF
ON OFF OFF OFF
OFF ON OFF OFF
ON ON ON ON
Battery 1

Breadboard 1

Wires - +5

Using the given TinkerCad circuit, complete the table below to develop three test cases for the given
scenario.

The first one was done for you.

Test Expected
Test cases Test data Actual results Pass/Fail
scenario results
Check if LED 1
and LED2 SW1 is turned
LED1 and LED1 and
remain off when off, and SW2 Pass
LED2 stay off LED2 stay off
switch1 and is turned off
switch2 are off

Check if LED 1
and LED2 SW1 is turned LED1 is on
LED1 and
remain off when on, and SW2 and LED2 fail
Check the LED2 stay off
switch1 is on and is turned off stay off
status of switch2 is off
LEDs Check if LED 1
and LED2 SW1 is turned
LED1 and LED1 and
remain off when off, and SW2 pass
LED2 stay off LED2 stay off
switch1 is off, is turned off
and switch2 is on
Check if LED 1
and LED2 are on SW1 is turned
LED1 and LED1 and
when switch1 is on, and SW2 pass
LED2 stay on LED2 turn on
on and switch2 is is turned on
on

You might also like