Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This problem represents a phone pad and a traffic light. The phone pad consists of the numbers 0 - 9 along with the pound and
This problem represents a phone pad and a traffic light. The phone pad consists of the numbers along with the pound and star key. The traffic light has three inputs for the red, yellow, and green lights.
Create a circuit for a combination lock. The keypad is used to open the lock by pressed the correct digits in order. The traffic light is used to indicate the current state of the lock:
Locked or Error Red
Entering Combination Yellow
Unlocked Green
The combination is binary consisting of only s and s The combination for this lock is:
Pressing the button on the keypad output code b resets the circuit to a locked state and ready for the user to enter the combination. The light is red. When the first combination number is pressed or the light turns yellow and says yellow as long a the correct combination is being entered. Once the entire correct combination has been entered, the light turns green, indicating the lock is open.
As an example, the user would press to reset the lock. The light is red. They press the correct first digit and the light turns to yellow. They then press the correct second digit. The light says yellow. If the next four digits are correctly entered, the light turns green.
At any point, if the user enters an incorrect digit or the light turns red and further digits are ignored until the next time is pressed. If the lock is unlocked, pressing any digit or locks it again. The digits and # are ignored.
You can choose to accept the combination or either when the button is pressed or when it is released. Either will be acceptable. The only difference is inverting the clock input on your flipflops, but clocking on the trailing edge makes it easier to tell what is going on in your circuit.
There are three main tasks required to solve this problem. The keypad output needs to be converted into a reset signal, clock for the state machine, and a single bit indicating which button has been pressed. A state machine is needed to that will recognize the combination. Finally, some logic is needed to convert the states into the color inputs for the traffic light.
PLEASE DRAWCREATE THE CIRCUIT DIAGRAMS ALONG WITH THE LOGIC GATES FOR EACH TRAFFIC LIGHT COLOR STATE. This will help me understand the circuit better for this lock circuit.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started