Reference no: EM132729592
Question 1
You are creating a maze solver robot (imagine a repurposed Roomba), which will automatically traverse a maze by always hugging the left wall. Firstly, you have installed two sensors on-board for object detection, one facing the front and another facing the left side (i.e. to keep track of the wall at the left-side). These sensors will output a HIGH signal when it is sufficiently close to an object, and LOW otherwise, as shown in Figure 1 (attached). Furthermore, you have also installed two motors, one on each side of the robot. You can control the movement of the robot by activating the motors as shown in Table 1. Finally, to activate a motor, you would need to send a HIGH signal to it.
Therefore, overall the system has two digital inputs, front sensor (SF) and left sensor (SL); and two output signals, one for the left motor (ML) and another for the right motor (MR).
A. For each output signal, create a truth table to implement the "left-wall hugging" algorithm. Explain your solution.
B. Based on your answer to Question 3A, determine the most simplified form of the Boolean expression of each output.
C. Draw the corresponding logic circuit using only NAND gates (see Figure 2)(attached).
Question 2
You are tasked to design a digital circuit to control a simple traffic light, as shown in Figure 3 below. The traffic light is to alternate between the red light for 10 seconds, followed by the green light for 7 seconds. Each light will turn on if the corresponding signal is HIGH, and will be off otherwise. Note that these two lights should not be turned on at the same time.
Design a JKFF-based counter circuit to implement the traffic light control. You may provide some explanations of the intended workings of the circuit (to ensure I understand what you are trying to do). Note that you may also use any logic gates in your circuit.
Question 3
You are trying to create a very simple subtractor by using a 3-bit binary adder. To simplify the problem,
• the subtractor will contain two separate keypads to input the two numbers;
• each keypad button is a SPST push button, which outputs a HIGH signal only when pressed;
• each number is only limited to either 1, 2, or 3;
• the second number is subctracted from the first number; and
• there is a CLR button to reset the inputs back to zero.
Note that the output can be negative.
A. Create a subcircuit to convert a 3-bit number to its 2's complement (see Figure 4).
B. Design the subtractor circuit (see Figure 5) by using logic gates, flip-flops/latches, and any other digital electronics that have been discussed in the lecture. To simplify the drawings, you may directly use a 3-bit adder block (Figure 6) and the 2's complement block (Figure 4). Also note that the connection to the display has been simplified as this is not the focus of this question
Attachment:- Analogue and Digital Electronics.rar