USB radar, build your own missile defense system

Publisher:画意人生Latest update time:2012-05-11 Keywords:USB Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Everyone has seen radar (at least on TV). It feels great every time I see it. It can detect various obstacles. It would be great if I could have one.

But there is someone who not only dares to think, but also dares to put his ideas into practice (which is what we lack), and he really made a very cool USB radar.

This is its appearance. It looks a little simple, but it is quite fun to play with it.

This foreign enthusiast not only made this circuit, he also wrote a very beautiful host computer to achieve the purpose of computer control.

How about it? Doesn’t this interface look like a real radar? Anyway, I was attracted by this interface.

So how can we have a USB radar like the author's?

First, let's talk about the overall framework. In fact, this USB radar is very simple in principle. It consists of an ultrasonic module installed on a stepper motor, a PIC microcontroller, and of course the stepper motor drive circuit.

PIC microcontroller
The driving circuit drives the stepper motor to rotate, and receives the echo signal sent by the ultrasonic module installed on the stepper motor to obtain the position of the obstacle in front, and then sends it to the upper microcomputer software through USB. The upper computer software calculates and displays each obstacle graphically.

The specific driving circuit is actually very simple, consisting of two H bridges. (If you find it troublesome, I think it can also be realized with L298).

But the author was not satisfied with this, he also bought a USB missile from the store.

How about missiles + radar... it becomes the Patriot missile defense system...

In order to make the two devices work better together and make this project more fun, the author modified the host computer program.

After adding the missile, this project becomes more interesting. But it is also a little more complicated to operate.
It seems that the USB missile that the author bought does not have feedback, that is, it does not feedback the rotation angle, so it is much more troublesome to use. It is recommended that when you make this, the missile should also have feedback, just like the base of the radar.

Since there is no feedback, we cannot know the direction of the missile, but we can calculate its position through its speed and rotation (but this may have errors). And at the beginning we need to adjust the position of the missile to the same direction as the radar.

The operation of the author's software is as follows: first, start the USB radar, rotate 360 ​​degrees, and click the Scan environment button on the software. The software will draw the trajectory of the obstacle in the picture (imagine that the radar is surrounded by a wall. After scanning, the trajectory of the wall will be displayed). Moreover, due to the scattering of ultrasonic waves and other reasons, this trajectory is not accurate. The software will automatically make a correction to get the final detection range.

Now, if there is a target within the detection range (the area surrounded by the red curve in the figure), the software will control the missile to rotate to the nearest target and attack it! Unfortunately, we have lost the direction of the missile again. We can only determine the current position of the missile by measuring the time it takes for the missile to rotate to the target and the set speed. If it rotates too much or too little, we need to correct the speed of the missile's rotation.

Note: This radar is quite interesting. In fact, I think the stepper motor below can be replaced with a general DC motor + reduction box. Through some simple feedback, such as driving a certain potentiometer when rotating (actually the principle of the servo), and then the microcontroller detects the voltage on the potentiometer to get the position information of the motor. In this way, the stepper motor can be omitted, because the drive of the stepper motor is still quite troublesome, and the DC motor only needs an H bridge to use PWM speed control. In addition, if you want to make a missile, it is best to make it with feedback.
I wonder if you have any other novel ideas? For example, if it is made in two dimensions, you can get a surface curve, which should be more interesting (you can scan the curve on the surface of an object and simply judge what it is).

Keywords:USB Reference address:USB radar, build your own missile defense system

Previous article:Greenhouse measurement and control system solution based on wireless sensor network
Next article:Fine-grained coverage of wireless sites

Recommended ReadingLatest update time:2024-11-16 17:37

Microcontroller that combines Hi-Fi, intelligence and USB multi-channel features
With the continuous integration of many technological breakthroughs and new streaming services, and the growing prosperity of the smart home and smart speaker markets, consumers' demand for audio is no longer limited to sound quality itself, but more about pursuing high-quality life experience and convenient smart i
[Embedded]
Microcontroller that combines Hi-Fi, intelligence and USB multi-channel features
Design of a Fingerprint Recognition System Based on DSP and USB
  The immutability and uniqueness of fingerprints make fingerprint recognition technology the most widely used identity authentication. In recent years, with the development of the latest information processing technology, the research of algorithm theory, and the high integration and low cost of computer hardware,
[Embedded]
Design of a Fingerprint Recognition System Based on DSP and USB
Tianhui Micro-agent DSP solution Mountain View can burn AP8224C2 chip for USB sound card noise reduction microphone
AP8224C2 High-Performance 32-bit Audio Application Processor The AP82 series audio processor is a new generation of SoC platform products designed for audio applications, suitable for traditional audio systems, emerging Bluetooth or Wifi wireless audio products, Sound Bar and mixer markets. The processor fully consi
[Embedded]
Tianhui Micro-agent DSP solution Mountain View can burn AP8224C2 chip for USB sound card noise reduction microphone
USB Wireless Data Acquisition System Based on MSP430 and CC2500
The wireless data acquisition system based on MSP430 microcontroller and CC2500 is a fully functional wireless development tool. The system is mainly composed of MSP430F series microcontroller and CC2500 (2.4 GHz) wireless transceiver. The system can use IAR embedded work platform integrated development environment
[Microcontroller]
Mobile hard disk data encryption and decryption system based on MEMS and FPGA
With the rapid growth of information, information security has received increasing attention. A complete data encryption and decryption system should have a secure and reliable password authentication mechanism and encryption and decryption algorithm. This paper designs an efficient data encryption and decryption sy
[Embedded]
Mobile hard disk data encryption and decryption system based on MEMS and FPGA
The Switch Pro dock is larger and has 2 USB 3.0 ports and 1 Ethernet port.
      Earlier, Bloomberg reported that people familiar with the matter said that Nintendo plans to start assembling its new Switch as early as July and release the new Switch in September or October.   Now, there's growing evidence that it may actually be coming.   Today, a blank "New Nintendo Switch Pro" product pa
[Mobile phone portable]
Microchip PIC microcontroller with USB2.0
Microchip Technology (US Microchip Technology) recently launched the first Flash PIC® microcontroller with full-speed USB2.0 connectivity, operating at 48MHz and data transfer rates up to 12Mbps. Combined with a range of on-chip peripherals and nanoWatt power management features, this series of devices
[Microcontroller]
Efficient dual rail power from USB
When designing a low-power USB circuit that operates from a power source other than 5 V, you must decide whether to use a separate battery or a small power source from the host computer. The problem is more complicated if the circuit requires a dual-rail power supply greater than 5 V (such as an op amp-based instrum
[Power Management]
Efficient dual rail power from USB
Latest Analog Electronics Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号