Access Puzzle 2 Here: https://www.tinkercad.com/things/8AmHYpW4pNb
This puzzle implements an arbitrary state machine where state transitions are controlled by turning the four switches on and off in the right pattern. State transitions are also dependent on outputs from the external NAND logic gate which combines state outputs and switch inputs to create addition inputs for the software on the Arduino. The goal is to turn the multicolor LED at the bottom to green. If it goes red, you lose and can make no further moves. The blue LEDs at the top give hints about reaching states in the state machine. The orange LEDs show the current state of the NAND gate to help see what the software would be reading. There are three desired final states, which varying complexity as described in the notes in the TinkerCAD puzzle. For each of them, the simulation should start with all switched off (i.e. down). If any are not down, move them to the proper position and stop/start the simulation.
Many real-world designs are based on state machines, which define the possible states the system can be in and the conditions that cause changes of state. For example, a building’s climate control system can be described by a state machine controlled by a temperature sensor and high and low limits for the desired temperature range. The following diagram shows a state machine for the climate control system.
Extra Info:
It is suggested that the software should be studied to identify states and the conditions that allow state transitions. Drawing a state machine diagram representing the system will aid greatly in determining switch sequences for moving to the desired final states.
The puzzle labels can be hidden using the eye icon if they’re obscuring the view.
The Copy and Tinker button will open the puzzle in a bigger window that will make it easier to see.
NAND logic gate information, including device pinouts.