Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[ARM] Tracking Radar using ultrasonic sensor and lpc2148.

Status
Not open for further replies.

sasituraga

Newbie level 1
Joined
Feb 5, 2018
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
7
I want to find the velocity of the moving object while tracking it. Can anyone please please help me with the code from which I can calculate the velocity of the object which is in movement.
 

Hi,

No valid information. Impossible to give a detailed answer.

Only a general answer:
You need to measure "distance of movement" within a dedicated "time".
Then you are able to calulate: velocity = distance / time

Klaus
 

I want to find the velocity of the moving object

At first glance, seems that we could take a general rule by starting with:

Code:
L = (As).(ΔT)/2

Where:
ΔT: Time elapsed between each echoed sample (Tn - Tn-1) [seconds]
As: Air speed (normalized to 343) [m/s]
Resulting:
L: Distance traveled in the above elapsed time [meters]​

Therefore, considering measuring two "L" samples, took in sequence:

Code:
Instantaneous_Speed = ΔL/ΔT    [m/s]

Anyway, you could re-check if it is correct.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top