[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.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…