Logic Circuit Problems
Activity 4.4 – Logic Circuit Problems
Purpose
Many of your parents and grandparents will remember having to get out of their cars and open their garage doors manually. It wasn’t so bad when the weather was sunny and the temperature was a pleasant 80° but, boy, was it a pain when it was raining or snowing and the temperature was around 98°F or 15°F. You may also remember having your temperature taken using a glass thermometer instead of the digital ones that are so fast and beep when it is time to look at the reading. What made these devices possible?
The use of digital electronics and logic gates make it possible to have remote controlled garage door openers and digital thermometers that are much more accurate. The challenge for manufacturers of these products is to program the devices correctly and inexpensively so they will work as they are supposed to work.
In this lab, you are going to select the components, program the circuits, and simulate the devices that will solve the problems presented. This will help you learn how input devices and output devices are connected with logic gates to produce digital electronic systems.
Equipment
- Digital electronic trainer
- Jumper wires
- Power supply
- Data Sheets (10)
Procedure
1. Working with your partner, read each problem and design logic circuits that will satisfy the design criteria. Record your progress on the activity data sheets.
2. Have each data sheet checked as it is completed by the teacher. After your teacher has done the checking, set up the solution on the trainer.
Conclusion
1. List three problems that are not listed in this activity that you think could be solved using digital electronics.
2. What role did troubleshooting play in the simulation of these problems?
3. What are sensors, and what do they do?
4. How can sensors be combined to make control systems?
5. Where in everyday life are control systems encountered?
Logic Circuit Problems
1. In hospitals, babies sometimes need to be kept warm in incubators for a period of time after birth. Design a system that will sound an alarm if the incubator gets too cold.
2. Patients need extra attention after serious operations. We would like to have push buttons for patients to use that will sound a warning at the nurse’s station only during the daytime. At night there is a different system for patients to use. Design a patient warning system that will work only during the daytime.
3. Some hospital rooms get very warm in the summer. We need an automatic fan to cool the patients. The fan should also be able to be turned on manually. Design this fan control system.
4. Mr. and Mrs. Gonzales would like an automatic system to turn their porch light on at night and off at dawn. Design an automatic lighting system with a manual over-ride. Be advised the manual over-ride will be turning the light on during the day BUT not off during the night. After solving circuit create a circuit that would manually turn the light off at night if you are away.
5. Chose a problem from the cards in your kit.
6. Ornithology deals with the study of birds. When photographing these creatures, one needs to be very careful not to scare them. Design a remote camera shutter release that will be activated when the birds land on a feeding table. The camera should only work during daylight hours.
7. Air conditioning systems in apartments and houses are controlled by a thermostat. Design a system that will turn on the A/C system when the temperature rises above the thermostat setting. A manual control switch should also be included for continuous operation of the system.
8. A thermostat controls heating systems in apartments and houses. Design a system that will turn on the heating system when the temperature falls below the thermostat setting. A manual control switch should also be included for continuous operation of the system.
9. Many people who own cars protect them from theft and vandalism with an alarm system. Design an alarm system that will light a strobe if the car is tampered with. This alarm should remain lit until the owner deactivates the system.
10. Many homes have automatic garage door openers. These systems need to have an emergency shut-off so that they can be operated without fear of injury to anyone. Design a system that can be disabled automatically in the event someone is in danger of being struck by the moving door and that will also stop automatically at the end of its downward travel. (Hint: The system requires two logic gates.)
Logic Problems Review
A NOT gate can only have one input. The 'o' on the output means 'not'. The output of a NOT gate is the inverse (opposite) of its input, so the output is true when the input is false. A NOT gate is also called an inverter.
Therefore a NOT gate is used to Change the Output of a device [microphone, photocell, thermistor, slide switch, push button switch]
Default settings for each input device
|
Logic Level | |
Sensor |
0 |
1 |
Microphone
|
no sound |
sound |
| ||
Photocell
|
no light |
light |
| ||
Thermistor
|
cold |
hot |
| ||
Slide switch
|
off |
on |
| ||
Push switch
|
off |
on |
|
-
The inverter [NOT gate] would make the Microphone work when it reads 'NO sound'
-
The inverter [NOT gate] would make the Photocell work when it reads "NO light"
-
The inverter [NOT gate] would make the Thermistor work when it reads "Lack of heat"
-
The inverter [NOT gate] would make the Slide Switch work when it reads "OFF"
-
The inverter [NOT gate] would make the Push Button Switch work when it "ISN'T pushed"
An AND gate can have two or more inputs. The output of an AND gate is true when all its inputs are true.
An OR gate can have two or more inputs. The output of an OR gate is true when at least one of its inputs is true.
An EX-OR gate can only have two inputs. The output of an EX-OR gate is true when its inputs are different (one true, one false).
Answers to Problems:
1. In hospitals, babies sometimes need to be kept warm in incubators for a period of time after birth. Design a system that will sound an alarm if the incubator gets too cold.
-
Input(s): Thermister
-
Output: Buzzer
-
Process(es): Inverter
The Thermistor will send a positive result when it is warm, we want a positive result when it is cold...thus the solution would be to 'reverse' the default output of the Thermister so that the buzzer will turn 'on' when the Thermister 'reads' cold.
2. Patients need extra attention after serious operations. We would like to have push buttons for patients to use that will sound a warning at the nurse’s station only during the daytime. At night there is a different system for patients to use. Design a patient warning system that will work only during the daytime.
-
Input(s): Photocell and Push Button Switch
-
Output: Buzzer
-
Process(es): 'AND' Gate
Photocell | Push Button Switch | 'AND' Gate results | 'Or' Gate Results | 'XOR' Gate results | What I want |
No light(0) | On (1) | Off | On (wrong answer) | On (wrong answer) | Off |
No light (0) | Off (0) | Off | Off | Off | Off |
Light (1) | On (1) | On | On | Off (wrong answer) | On |
Light (1) | Off (0) | Off | On (wrong answer) | On (wrong answer) | Off |
3. Some hospital rooms get very warm in the summer. We need an automatic fan to cool the patients. The fan should also be able to be turned on manually. Design this fan control system.
-
Input(s): Thermistor, Slide Switch
-
Output: Fan
-
Process(es): 'OR' Gate
Change the 'light' to 'Fan'
Thermistor | Slide Switch | 'AND' Gate results | 'Or' Gate Results | 'XOR' Gate results | What I want |
Cold (0) | On (1) | Off (wrong answer) | On | On | On |
Cold (0) | Off (0) | Off | Off | Off | Off |
Hot (1) | On (1) | On | On | Off (wrong answer) | On |
Hot (1) | Off (0) | Off (wrong answer) | On | On | On |
4. Mr. and Mrs. Gonzales would like an automatic system to turn their porch light on at night and off at dawn. Design an automatic lighting system with a manual over-ride. Be advised the manual over-ride will be turning the light on during the day BUT not off during the night. After you have completed circuit please adjust the outcome so that the light will manually shut off at night [replace the 'OR' gate with the 'XOR' gate.
-
Input(s): Photocell, Slide Switch
-
Output: Light
-
Process(es): Inverter [reverse output of Photocell], 'OR' Gate
Photocell w/Inverter | Slide Switch | 'AND' Gate results | 'Or' Gate Results | 'XOR' Gate results | What I want |
No light(1) | On (1) | On | On | Off (wrong answer) | On |
No light (1) | Off (0) | Off (wrong answer) | On | On | On |
Light (0) | On (1) | Off (wrong answer) | On | On | On |
Light (0) | Off (0) | Off | Off | Off | Off |
6. Ornithology deals with the study of birds. When photographing these creatures, one needs to be very careful not to scare them. Design a remote camera shutter release that will be activated when the birds land on a feeding table. The camera should only work during daylight hours.
-
Input(s): Photocell and Push Button Switch
-
Output: Camera
-
Process(es): 'AND' Gate
Photocell | Push Button Switch | 'AND' Gate results | 'Or' Gate Results | 'XOR' Gate results | What I want |
No light(0) | On (1) | Off | On (wrong answer) | On (wrong answer) | Off |
No light (0) | Off (0) | Off | Off | Off | Off |
Light (1) | On (1) | On | On | Off (wrong answer) | On |
Light (1) | Off (0) | Off | On (wrong answer) | On (wrong answer) | Off |
Change the 'output control' to 'camera'
7. Air conditioning systems in apartments and houses are controlled by a thermostat. Design a system that will turn on the A/C system when the temperature rises above the thermostat setting. A manual control switch should also be included for continuous operation of the system.
-
Input(s): Thermistor, Slide Switch
-
Output: Air Conditioner
-
Process(es): 'Or' gate
Thermistor | Slide Switch | 'AND' Gate results | 'Or' Gate Results | 'XOR' Gate results | What I want |
Cold (0) | On (1) | Off (wrong answer) | On | On | On |
Cold (0) | Off (0) | Off | Off | Off | Off |
Hot (1) | On (1) | On | On | Off (wrong answer) | On |
Hot (1) | Off (0) | Off (wrong answer) | On | On | On |
Change the 'light' to 'A/C'
8. A thermostat controls heating systems in apartments and houses. Design a system that will turn on the heating system when the temperature falls below the thermostat setting. A manual control switch should also be included for continuous operation of the system.
-
Input(s): Thermistor, Slide Switch
-
Output: Heater
-
Process(es): 'Inverter' [reverse output of Thermistor]; 'Or' gate
Thermistor w/Inverter | Slide Switch | 'AND' Gate results | 'Or' Gate Results | 'XOR' Gate results | What I want |
Cold (1) | On (1) | On | On | Off (wrong answer) | On |
Cold (1) | Off (0) | Off | On | On | On |
Hot (0) | On (1) | Off (wrong answer) | On | On | On |
Hot (0) | Off (0) | Off | Off | Off | Off |