Share My Creation UltraSonic radar and Missile defense system

Hi
This system in include 2 part.
part 1 is a ultrasonic radar system include one ultrasonic module and one servo motor.
This system detects targets at a distance of less than 4 meters.
part 2 is a rocket platform with 3 rocket.

when radar detect a target , missile system lock on the nearest target .
If the target does not run away in 5 seconds, one of the missiles will be fired.

in normal case green led turn on in top of Truck and in war case red led and alarm turn on .

1677776069113.png
 

Beja

Expert
Licensed User
Longtime User
Hi Vali,
Would you share the project files? (sch and b4r code)? Thanks
 

vali khandangoll

Active Member
Hi Vali,
Would you share the project files? (sch and b4r code)? Thanks
Hi
I am glad that this project has been noticed
If you want photos or videos from the project, give me an email address and I will send them
I will be happy if you visit my telegram chanel with address t.me/basic_for_arduino


#Region Project Attributes
#AutoFlushLogs: True
#CheckArrayBounds: True
#StackBufferSize: 300
#End Region
'Ctrl+Click to open the C code folder: ide://run?File=%WINDIR%\System32\explorer.exe&Args=%PROJECT%\Objects\Src

Sub Process_Globals
Public RedLed As Pin
Public GreenLed As Pin
Public Buzzer As Pin

Public Serial1 As Serial

Public Radarservo As Servo
Public MissileServo As Servo

Public Radarservo1Pin As Pin
Public MissileServopin As Pin

Public angle As Byte
Public FirstAngle As Byte
Public Ultra As SRF04
Public TargetSpace As Int
Public maxSpace As Int=80
Public RadarDelay As Byte=10
Public TargetDetect As Boolean
End Sub

Private Sub AppStart
Serial1.Initialize(115200)
Log("AppStart")
RedLed.Initialize(2,RedLed.MODE_OUTPUT)
GreenLed.Initialize(3,GreenLed.MODE_OUTPUT)
Buzzer.Initialize(10,Buzzer.MODE_OUTPUT)
Radarservo1Pin.Initialize(7,Radarservo1Pin.MODE_OUTPUT)
MissileServopin.Initialize(6,MissileServopin.MODE_OUTPUT)
Radarservo.Attach(7)
MissileServo.Attach(6)

TestSystem
Log("Servo milisecound is ",Radarservo.ReadMicroseconds)
FirstAngle=Radarservo.read
Log("Curreny angle = ",FirstAngle)
Radarservo.Write(-1 *angle)

Ultra.Initialize(8,9)


NormalCase
Do While True
TargetDetect=False
angle=45

Do While angle<=135 And angle>=45
TargetSpace=Ultra.GetDistance
Log("D=",angle, "-R=",TargetSpace)
If TargetSpace<maxSpace Then
TargetDetect=True
WarCase
LockTarget
End If
Radarservo.Write(angle)
angle=angle+1
Delay(RadarDelay)
Loop

angle=135
Do While angle <=135 And angle>=45
TargetSpace=Ultra.GetDistance
Log("D=",angle, "-R=",TargetSpace )
If TargetSpace<maxSpace Then
TargetDetect=True
WarCase
LockTarget
End If
Radarservo.Write(angle)
angle=angle-1
Delay(RadarDelay)
Loop

If TargetDetect=True Then
WarCase
Else
NormalCase
End If
Loop

Log("finished")
End Sub

public Sub WarCase
RedLed.DigitalWrite(True)
GreenLed.DigitalWrite(False)
Buzzer.DigitalWrite(True)
End Sub

public Sub NormalCase
RedLed.DigitalWrite(False)
GreenLed.DigitalWrite(True)
Buzzer.DigitalWrite(False)
End Sub

public Sub LockTarget
MissileServo.Write(angle)
End Sub

public Sub TestSystem
GreenLed.DigitalWrite(True)
Delay(1000)
GreenLed.DigitalWrite(False)
RedLed.DigitalWrite(True)
Delay(1000)
RedLed.DigitalWrite(False)
Buzzer.DigitalWrite(True)
Delay(1000)
Buzzer.DigitalWrite(False)

For i=0 To 180
MissileServo.Write(i)
Delay(10)
Next

For i=180 To 0 Step -1
MissileServo.Write(i)
Delay(10)
Next
Delay(1000)
MissileServo.Write(90)

End Sub
 

emexes

Expert
Licensed User
my radar only rotates in one direction.
Just like the Bloodhound missile launcher did :)

I'm going to guess that the Bloodhound's radar had some way of electronically determining elevation, or perhaps by moving the feed horn.

If the @Vali-khandangoll radar had more than one transmitter or receiver, with slightly different elevation angles, I'd be even more impressed than I already am.

A project for a rainy day. 🤔

Or perhaps have a single transmitter, and three receivers place triangularly around it: if you have access to the raw ultrasonic return and sample it fast enough, perhaps you might be able to locate the target in azimuth and elevation using phase / time difference.
 

agraham

Expert
Licensed User
Longtime User
I said launcher, not radar. The Bloodhound had a fixed elevation launcher that it cleared with a brutal more than 30g acceleration on launch. Until the boosters peeled off the missile dish was locked in position to survive the launch having been pre-positioned by the launch computer so that when the dish unlocked it was pointing at the predicted target position.

Source : I worked on the RAFs Bloodhound Mk2 launch simulator.
 

emexes

Expert
Licensed User
Until the boosters peeled off the missile dish was locked in position to survive the launch

Lol I would have liked to be present for the first launch when they discovered that little design issue.

Though it looked to me like the radar was separate to the launcher, which'd make sense in that one radar could serve multiple launchers.

As with the "caution: contents may be hot" warnings on McDonald's hot apple pies, perhaps the authors of the procedures for the Bloodhound system initially thought:

hmm, do we need to state the obvious about keeping clear near and behind a launching missile...
 

agraham

Expert
Licensed User
Longtime User
Lol I would have liked to be present for the first launch when they discovered that little design issue.
You misunderstand. The dish was deliberately mechanically locked during launch because an anti-anti-missile precaution in the missile guidance meant it couldn't hold target lock during launch because of the large and rapidly changing Doppler effect it would see on the target returns. Hence the need to pre-point the dish so the missile saw the target when the dish unlocked after shedding the boosts.
 

vali khandangoll

Active Member
I'm going to guess that the Bloodhound's radar had some way of electronically determining elevation, or perhaps by moving the feed horn.

If the @Vali-khandangoll radar had more than one transmitter or receiver, with slightly different elevation angles, I'd be even more impressed than I already am.

A project for a rainy day. 🤔

Or perhaps have a single transmitter, and three receivers place triangularly around it: if you have access to the raw ultrasonic return and sample it fast enough, perhaps you might be able to locate the target in azimuth and elevation using phase / time difference.
Your opinion is absolutely correct, but this is an educational project like a toy
 
Top