Download Circuit Cellar
Transcript
horn, you can determine the train's speed by measuring the frequency shift. I constructed my own speed radar in 2007 by connecting a microwave transceiv~r to a dsPIC processor. A radio signal was "bounced" off of a target and the frequency (Doppler) shift was measured to determine the target's speed. If you are just looking to clock the speed of your tennis serve, I can recommend a lower-cost radar kit. Use my article to learn how a radar gun works and then buy the kit to play with it in the backyard. If you are looking to experiment like I did, then be prepared for a search and a rewarding education. PROJECT GUIDE SYSTEM OVERVIEW I built my Doppler radar to learn about radar, to experiment with microwave radio transmissions, and to participate in the Microchip Technology 16-Bit Embedded Control 2007 Design Contest. Since I am primarily a software engineer by profession, this proj~ct provided a great learning experience! If you are looking to learn, use my project as a guide. Please note that the RF section of this project (primarily the Gunnplexer) is rare and expensive. Once upon a time, Gunnplexer-based microwave systems were used as the sensor for automatic door openers at supermarkets. In those days, reproduction of this project would be simple. Assorted types of Gunnplexers were easily found at electronics surplus houses. Today, alarm systems use passive infrared (PIR) and automatic entry doors use integrated RF systems, so Gunnplexers have fallen out of favor and have become obsolete collectors' items. How many of you still have 8" floppy disks? However, a suitably motivated individual should be able to track down the parts at an electronic flea market or in an online auction. The pair of Gunnplexers that I experimented with were borrowed from a fellow ham and represented about $1,000 worth of electronics. While a door opener operates as an unlicensed radio transmitter, my radar used a transceiver that was tuned to 10.250 GHz in the amateur radio 3-cm band. Frequencies in the range of 8 to 12 GHz are referred to as X band, so that makes my project an X-band radar system. My extra-class ham license was required to legally operate this particular system. Amateur radio operators traditionally direct signals at the moon and meteor showers for modes known as "moon bounce" and "meteor scatter," respectively. It might be fun to actually make a two-way radio contact using "school bus scatter." With knowledge of how radar works and how the Doppler shift represents an object's speed, you can build a system to track vehicles' speeds. Grab the Gunnplexer and point it at a moving vehicle. Press the Shoot button. Refer to Figure 1 as I describe the inner workings of the system. The Shoot button triggers the software to generate a burst of microwave energy at 10 GHz using a 10-mW Gunn diode. 1he waveguide and feed horn concentrate and focus the energy pulse at the car down the street. The transmit power may be low, but it is concentrated, so don't look into the end of the antenna when it is energized. 13J Just imagine this as a miniature microwave oven and use a little bit of caution! The microwave energy hits the oncoming vehicle and scatters. A portion of that scattered energy reflects back into the horn-shaped antenna at the end of the Gunnplexer. The reflected signal is Doppler-shifted based on the motion of the vehicle. The receiver provides a fixed amplification to the wWW.circuitcellar.cOill - CIRCUIT CELLAR~' signal, and a programmable-gain ampli- ~~~ fier (PGA) can provide additional amplification. An analog-to-digital converter inside the processor collects and converts the received signal. When its buffer is full, the transmitter is turned off and processing begins. A 256-point FFT processes the collected data and returns the strongest frequency component. This is assumed to be caused by the car now driving past you. The frequency component is converted to the vehicle's speed and displayed on an analog panel meter. If the indicated speed is greater than a set speed threshold, an LED illuminates to indicate that your neighbor is speeding. You know how the overall system works. Now let's examine the hardware and software that make it all happen. MCU & GUNNPLEXER The Doppler radar hardware shown in Photo 1 consists of a microwave Gunnplexer hooked to a microcontroller evaluation board. Since the project was created as an entry for a Microchip embedded design contest, the evaluation board of choice is the Microchip 28-pin starter board. The Gunnplexer provides the microwave front end. An op-ampbased amplifier section is used to condition the receive signal. The Microchip starter board pulls together the digital hardware components of the system. Over speed Threshold _An_a_log-=--i_n~ Set point Shoot Digital I/O dsPIC30F4012 Digital I/O Wave pulse I Vehicle Analog in I ICD-2 0 Figure I-My Doppler radar system is bUilt around an RF system and a dsPIC. A few=1imPle peripherals like an analog meter and some push buttons complete the system. . . ~ :S 0 17