Printing graph of velocity vs distance

Thread Starter

aamirali

Joined Feb 2, 2012
412
I have to print graph of velocity (y- axis) wrt distance (x axis) with help of MCU.

I have sampled all distance points i.e total 2000 points, time period is also known its 5ms for each sample.
Now while calculating velocity, problem is diff b/w two consecutive distance values is very small.
Due to which I got discrete values values of velocity either 10 or 20 or 30 during entire frame.
Now my graph don't see continuous. How to plot it so that it can look more of continuous.
Its not necessary that I have to take two consecutive values for calculating velocity, I can take diff b/w 10 & 1 reading also.
But by this also velocity calculated is discrete.
 

tshuck

Joined Oct 18, 2012
3,534
Regardless, your graph is discrete. You sample the continuous function 2000 times.

How are you printing the graph? Is it sufficiently accurate to simply connect the dots of your values?
 
Top