In: Electrical Engineering
A company asks you to design a controller for a basketball machine that will indicate that a player has won a game if they get a total of 3 points. There are two sensors in this machine. One in the backboard and on the inside of the orange rim. If a player shoots a shot and the ball hits the backboard and the ball goes through the rim, then the play will gain 1 point. If the player shoots the ball and it doesn't hit the backboard and the ball just goes through the rim, then the play will gain 2 points. If the player hits the backboard and the ball does not go through the rim, then the player will lose 1 point. The total score can only go down to zero and cannot become negative. If the ball does not go through the rim or hit backboard, then it will count as a no shot and nothing will happen. Once the player scores three points, the game ends, and a light will indicate that the player has won.
Part A: Make a state table that describes each state in plain English and describe each binary value used.
Part B: Make a state diagram.
Park C: Make a k-map.
Part D: Make the synchronous machine schematic.
You can use either a Moore or Mealy machine and either a J-K Flip Flop or a D Flip Flop.
I was thinking about using 2-bit binary but then I got stuck so I switched to 3-bit binary and what I have looks good to me but now making the k-map is making me doubt what I have so here I am asking for help.