|
The Decisions ModuleThe Decisions Module is made up of elements which each have input terminals, output terminals, or both. The input sensor elements along the left side only have output terminals, where they output to you what is going on in the "outside world." The logic gates in center take inputs and generate outputs by performing the boolean operations NOT, AND, and OR. The output devices along the right side have only input terminals, and what you input to them determines what they output to the outside world.To connect two terminals (the small gray circles) with a "wire", drag from an element's output terminal to an element's input terminal. Output from the first element now becomes the input to the second element. To delete a wire, you just have to shift-click on it. Here is an example: ![]() Here a wire has been drawn between the push switch and the lamp. The lamp will now light up whenever the mouse is down on the push switch. Here is an example of using the OR logic gate. If the temperature sensor has been heated up OR the mouse is down on the push switch, the lamp will turn on: ![]() In the example below, a NOT gate and an AND gate are used, and the output from the NOT gate goes back across the board to the input terminal of the AND gate. For the buzzer to sound, the light sensor must be NOT reporting any light, AND the slide switch must in the "on" or "1" position. ![]() Here are some tips about using the board:
Click here to return to the main Decisions Module page. |