Previous
| TOC | Audio | Demo | Quiz | Tutorial | Lab | Next



INTRODUCING "AND GATES"
Suppose your profits are so great that you decide you can produce a second line of perfume packaged in a much more elegant (white) box. You need your sensor to be able to differentiate between bottles and send the proper signal to the proper box dispenser.

One solution is to produce one perfume in a red bottle and one in a white bottle and have a sensor that recognizes red and one that recognizes a white bottle. But you also still need to tell the box dispenser that the box conveyer is running.

To do the above, you tie the line from the box dispenser to two sensors that can identify the bottles in such a manner that the correct signal is sent to the correct dispenser. To do that you need a NOT Gate and two “AND Gates.”

First tie the NOT Gate to one input lead on each AND Gate and one of the color sensors to the other input leads (one sensor for each gate). Then tie one output lead to the appropriate box dispenser. Now, when a white bottle goes by, the white sensor sends a signal to input B of the white AND GATE. Since it is already getting a signal from the NOT GATE, it will send a command to the white box dispenser.

Now the messages being sent to the dispensers can be "00," "01," or "10" (in addition, although it is not applicable in this situation the message could include "11"--drop two boxes). In this case, we have four possible messages on two lines.

If you wanted to produce dozens of different bottles and different boxes, you would simply expand the process. Next


 


You may add as many AND Gates as you need. You need a sensor to identify color or other special characteristic plus a line from the NOT Gate to add dispensers. If a white bottle arrives, conditions reverse; the white sensor is in a state of 1 while the red sensor is in a state of 0.