Download Digital Control Unit (DCU) Manual
Transcript
Digital Control Unit User’s Manual Beeps and Buzzers Almost all computer systems have a “beep” sound that can be made when the computer wants to get the attention of the operator. Most calculators don't make sound, but you can add one, using the DCU. There are several different types of buzzers that you can use. Some buzzers need only to have a steady voltage applied and they will produce a sound. The sound continues until the circuit is turned off. Our program DCUTOGGL can be used for this type of buzzer. Other buzzers and simple speakers need to be pulsed; that is, the power to them must be turned on and off at a high frequency. The calculator subprogram DCUBUZZ is an example of this. Mass Driver An interesting project to try using electromagnets is to make a device to accelerate magnets. Start with a permanent magnet, such as a cow magnet. Find a clear plastic tube that the magnet will fit through. Wrap wire to make four or six electromagnets spaced along the tube. Connect the electromagnets to the digital out lines. Use a program to turn on the electromagnets in a quick sequence so that the magnet is pulled along. Timing is critical. The subroutine DCUMASS is an example of this kind of program. You may also want to try using three electromagnets that can switch their polarity. Some commercial mass drivers operate this way. Temperature-Controlled Environment Combining sensors with control via the DCU allows you to experiment with feedback. Projects of this sort are often educational and interesting. Use a temperature probe connected to the LabPro/CBL 2. For heating air, you can use a small lamp. For heating a small amount of water, you can use a simple resistor. A fan can be wired to move air for cooling. The program DCUTEMPC can be used for this type of control. It turns on a heater connected to D1 until the temperature reaches a specified reading. If the temperature exceeds another specified reading, it turns on a fan connected to D2. Live Traps Activated with a Photogate A fun project is to try to catch flies, bugs, or mice in a DCU-controlled live trap. The easiest way to do this is by using a photogate as a sensor to detect when the animal is in position to be captured. Photogates have an infrared beam which the animal blocks, sending a signal to the LabPro/CBL 2. When this happens, have the DCU turn on a motor or a stepper motor to move a door to catch the animal. We have used a guillotine-style door, a dropping box, or a motor that hits the lid of a hinged box to knock it into place. Be creative. The program DCUTRAP2 is an example of a program that uses a DC motor to close a trap. The program DCUTRAP3 does a similar thing using a stepper motor to lower a door. Alarms Controlled by Motion Detectors Another interesting project is to set up a warning system using a Motion Detector. Motion Detectors have a range up to six meters when oriented carefully. The program DCUALARM is an example. We have used this for sounding a buzzer whenever someone walks in range of the motion detector. We have also used it outside (with the buzzer inside) to detect deer and alert us to look outside so we can see them. Note that it is not possible to use motion detectors in conjunction with the DCU on the CBL 2. Activating Camera Shutters Some cameras have connectors so that they can be activated by an electrical signal. To get photos of animals in the wild, you can use this idea to have the DCU trip the camera shutter when an animal is detected by either a photogate or a Motion Detector. 66