by Gary Legg, Contributing Editor --
Design News,
November 5, 2001
ADVERTISEMENT
Sponsored Content
Technology Marketplace
Let's say you're the lead engineer on a really nifty project—the design of a mechanical spider that walks on water. You're unfazed by the mechanical complexities, because you've got lots of smarts and plenty of relevant experience. You're still troubled, though, because you know this beast is going to need a microcontroller for a brain, and microcontrollers are something you've just never had time to learn about.
Robotic waterspiders, designed by cyberartist Remo Campopiano, use Basic Stamp modules for control. Campopiano receives assistance in building the spiders from the Robotics Art Club of New England, a group of 10-13 year olds.
Maybe you should check out the Basic Stamp, a tiny computer from Parallax, Inc. (Rocklin, CA). It's the heart of several development kits, costing as little as $49, that can teach you about microcontrollers and the kinds of devices they interface to. The Basic Stamp is also capable enough to go into real design projects, as evidenced by successful application to areas ranging from industrial control to rocketry to robotics (including a robotic waterspider). It has even gone into experiments on the space shuttle.
Although the Basic Stamp isn't your only option for low-cost, educational microcontroller development systems, it is by far the most popular. Since the introduction of its first version in 1993, it has gained almost a cult following of avid users. Enthusiast magazines like Circuit Cellar and Nuts & Volts frequently publish articles on different uses for it, and their ads feature add-on products and copycat products galore. Dozens of books detail how to use the Basic Stamp in a wide variety of applications.
So just what is a Basic Stamp? It's a very small and simple computer, built on a circuit board about the size of a postage stamp, that runs programs written in Basic (thus the name). It has either 8 or 16 I/O pins, depending on the model, that you can use to interface to devices such as switches, LEDs, speakers, and potentiometers. By adding a few extra components, you can also connect to solenoids, relays, and other devices that require higher voltage or more current. Available instructional materials explain how to use all of these devices.
Components of the Basic Stamp include an 8-bit microprocessor, a ROM chip that contains a Basic interpreter, and an EEPROM chip that stores the Basic programs you write. You write a Basic program on your PC using the software that comes with a Basic Stamp development kit. You then download the program to a Basic Stamp's EEPROM using your PC's parallel port or serial port. As soon as the program downloads to the EEPROM, it runs automatically. Because the EEPROM is non-volatile, it retains your program when power is off, and you can reprogram the Basic Stamp as many times as you like.
The Basic Stamp finds wide use in research laboratories, where its low cost and ease of use make it suitable for small, one-of-a-kind projects. It's also popular with mechanical engineers, reports Parallax founder Chuck Gracey. "Electrical engineers are often disappointed that it doesn't have more features," Gracey says, "but mechanical engineers just want to get a job done."
A particular appeal of the Basic Stamp to MEs, who are less likely than EEs to have learned about microcontrollers in classes, may well be the instructional books and experimental kits that are available for it. The materials available from Parallax range from simple and general (What's a Microcontroller? and Basic Analog and Digital) to more complex and specific (Robotics!, Earth Measurements, and Industrial Control). Prices for kits, which include books, range from $39 to $119. (You also need the $109 Board of Education development kit.)
The heart of a Basic Stamp is an 8-bit microprocessor. Clock speeds for the processors in the various Basic Stamp models range from 4 MHz to 50 MHz. The simplest Basic Stamp can run programs of about 80 Basic instructions at a rate of roughly 2,000 instructions per second. The most advanced model can handle 600 instructions at 10,000 instructions per second.
If you need bigger programs or faster execution than a Basic Stamp can handle, you can turn to a host of other suppliers for additional capabilities. For example, you can get a Basic compiler for the Microchip PIC processor that's in many models of the Basic Stamp. These compilers turn your Basic programs into native microprocessor machine code before downloading, thus reducing program size and greatly increasing execution speed. They're available from companies such as Code Designer, Basic Micro, and Micro Engineering Labs. You can also get hardware modules that are more powerful than some of the Basic Stamp models. Micromint and Technological Arts, for example, are sources for these.
For microcontroller development kits that are less basic, but still inexpensive and easy to use, you might consider Rabbit Semiconductor. Rabbit kits cost as little as $139 and are based on the Rabbit 2000 processor, a modified version of Zilog's popular Z180. You program the Rabbit 2000 in Dynamic C, a proprietary version of C developed by Rabbit's parent company, Z-World, specifically for embedded control. Together, Rabbit and Z-World provide a wide range of controller hardware, so you can start with a simple system and then move up to a more powerful, but compatible, system if necessary.
Finally, don't overlook mainstream microcontroller manufacturers as a source of instructional material. Some of them offer fairly basic development kits and learning materials, and all of them have a vast range of technical documentation that goes far beyond the basic level. The chip companies also have savvy application engineers that can help solve the tough problems you face. That's their job, and most of them do it well.
For more information on embedded systems, Enter 551
Electric motors are essential components in our society. They are critical in computers, appliances, industrial equipment, automobiles, and many of the things we use and rely on constantly. Of the many types of motors, brushless Dc (BLDC) motors are more reliable, provide higher speeds, operate more quietly (acoustically and electrically), and are more efficient and offer better heat dissipation than motors with brushes. BLDC motors also offer the response and linearity over a wide speed range that today's applications need. These advantages, however, come at a cost: BLDC motors have been harder to control.
Designers can improve their control and efficiency of BLDC motors through the use of electronics and power semiconductors. As an example of the potential savings available in just one application—washing machines—a reduction of 200 Watt-hours per washing-machine load, assuming 300 cycles per year and 60 million washing machines sold every year around the world, would yield potential savings from greater efficiency of up to almost 4 billion kWh.
But determining the appropriate parameters to achieve this efficiency can be challenging. That's where good development kits come in. Motor control development kits should provide the ease of use that lets you efficiently perform motor control design that can often be more art than science.
One such development kit is the ($695) ST7MTC2 ST7 Motor Controller Kit manufactured by Kanda, Ltd. that lets you easily vary a range of parameters, such as ramp-up speed and frequency control, to optimize power consumption and performance for your particular application. This kit provides a programming board, a default 24V BLDC motor, 12-300V power stage, and a microcontroller board with serial and parallel PC adapter that works with the ST72141 8-bit microcontroller, which ST engineers developed specifically to control 3-phase BLDC motors and to simultaneously control other system functions.
For more information on embedded systems, contact STMicroelectronics, Enter 552
JUNE 26TH WEBCAST: Collaborative Requirements Engineering
Speed your innovation. Capture the "voice of the customer" and translate customer requests into user requirements that define new products. Find out why the new ENOVIA Requirements Management solution enables organizations to improve their overall global requirements management process. Read More
Mechatronics in action
Successful synergistic integration of controls, electronics, computers and mechanical systems is key to the 21st century design process. Unlock the secrets at the Mechatronics Zone!
Webcast: Sensor Know-How Now
Join our moderator Randy Frank and John Keating from Cognex and explore Solving Industrial Inspection Problems. Read More
Engineering Concept Conduit
Engineering Concept Conduit looks at new products and the components that make them exceptional. Each month we’ll look at a new electronic product and see what makes it tick from an engineering point of view. We’ll explore the design and engineering challenges for the product and examine the components that solved those challenges.
Light Matters: Systems Level Approach to HBLED illumination applications
Its good practice to apply a systems-level approach to high-brightness LED (HBLED) illumination applications. Minimally, the system includes the optical, thermal and electrical characteristics of the of the HBLED, the lens (if any) which is built-in to its package, secondary optics such as external plastic lenses/reflectors to direct the light as your application requires and power driver electronics. Read More