JCM inVentures Inc.
Ahh! You're ready to learn the basics of digital logic? Good!
Today, my young apprentice, we will create the brains of your first robot: the Incredible AND-ROID. In order to proceed, you must fit up your lab with the following things...
For this lab you will need:
OR... You can use my favorite mad-scientist tool, the VULCAN 1 digital trainer and the amazing "Virtual Vulcan", which has everything you need for this experiment!
The AND-roid circuit:
Every robot needs a control system, and our ANDroid is no exception! Our first robot will use the most important and fundamental logic element there is: The AND gate.
Figure 1: ANDroid control circuit
Wire up the circuit as shown in this diagram. Be very careful to position the wires exactly as shown, or our creature will not live! If you wish, you can download the Virtual Vulcan file for this circuit by clicking on the above image!
Now, we've just built the brain of our AND-droid! The brain of our robot consists of a basic logic gate called an AND GATE! ( It's the 7408 ) It's now watching it's two inputs ( the two turquoise wires ) which are connected to the outputs of switches "1" and "2".
It's output is connected to three indicators... The Probe ( Red is HIGH and Green is LOW ), LED 3, and the "buzzer". These indicators are watching the same output, only indicating them in different ways!
Turn on your Vulcan by clicking ( or flicking ) the left-most switch and experiment with the two input to our AND gate, switch 1 and 2.
Remember, an ON condition is indicated by a RED on the logic probe and an audible "BEEP" on the buzzer!
Concept Alert: The And Function:
That's the concept, my young robot-hacker: In order for the output of an AND gate to be ON, both inputs A AND B must be ON. If either is OFF, the output will be OFF.
Now, the logic chip you are using has actually got 4 AND gates on board, each with 2 inputs and 1 output. We are currently using inputs 1A(on pin 1) and 1B (on pin 2) and output 1Y ( on pin 3 ).
Try testing out gate 2 with inputs 2A (pin 4) and 2B (pin 5) with output 2Y (pin 6) , then gate 3 and 4. To do this, move the switch wires to the next gate's input's and the logic probes wire to the Y output.
Now, what fiendish things can we make our AND-roid do? Well, here's some idea's...
1) Give your robot two touch sensors, one by the front wheels and one by the back! Connect the output of our AND gate to a motor driver so that an ON output drives the motor forward and and OFF turns the motor off.
2) You motion sensor floodlamp in your backyard has an AND-brain just like this little robot! One input is connected to a light sensor, and the other input is connected to the motion sensor. The output is connected to the lamp.
Motion must be sensed AND the area must be dark before the lamp is turned on!
3) ROBOT SUMO WRESTING is a sport where one robot must find another within a five foot circle and push that robot out. How does the beast of battle figure out when the victim is directly in front?? AND-brains! The left input and right inputs are connected to feelers which extend out the front of the robot. If the left feeler AND the right feeler touch the opponent, then then enemy is directly to the front! The AND-brain commands the motor to drive straight forward and victory is assured!