04-05-2023 01:30 AM - edited 04-05-2023 02:19 AM
Hey people! We are working on a project for school and we want to record the moving of a foot with 2 values of 2 ultrasonic sensors.
The X Axis is the distance to the wall and the Y Axis the distance to the ground (up and down of the foot).
The only thing we get out is the graph on the picture. The X Axis is just dependent on the time, not on the distance to the wall.
If you have a solution for that, could we also build that on a 3d Graph and if we can, how? I also put the program in here.
(Our values come from arduino, it works without any problems)
Thanks for your help!
04-05-2023 05:59 AM - edited 04-05-2023 06:01 AM
@Snyko wrote:
Hey people! We are working on a project for school and we want to record the moving of a foot with 2 values of 2 ultrasonic sensors.
The X Axis is the distance to the wall and the Y Axis the distance to the ground (up and down of the foot).
The only thing we get out is the graph on the picture. The X Axis is just dependent on the time, not on the distance to the wall.
If you have a solution for that, could we also build that on a 3d Graph and if we can, how? I also put the program in here.
(Our values come from arduino, it works without any problems)
Thanks for your help!
Have you tried XY Graph instead of Waveform Graph.
Waveform Graph assumes the points are equally spaced out.
04-05-2023 07:05 AM
Yes, I tried that too.
04-05-2023 08:26 AM - edited 04-05-2023 08:35 AM
@Snyko wrote:
Hey people! We are working on a project for school and we want to record the moving of a foot with 2 values of 2 ultrasonic sensors.
The X Axis is the distance to the wall and the Y Axis the distance to the ground (up and down of the foot).
The only thing we get out is the graph on the picture. The X Axis is just dependent on the time, not on the distance to the wall.
If you have a solution for that, could we also build that on a 3d Graph and if we can, how? I also put the program in here.
(Our values come from arduino, it works without any problems)
Thanks for your help!
I'm not going to do your homework for you but, I can offer guidance and help you think about the system.
If you have distance from wall and height above floor over time you have 3 dimensions. Assuming, the floor plane is orthogonal to the wall plane, (the wall is square to the floor,) use COMPLEX DBL as your datatype! Let X be Real and Y be Imaginary and pass them through the to complex primitive. A 3D Chart should accept the scalars.
EDIT: The Chart will look clearer if Y is Real and X is Imaginary ( time to your left- and right+, height up+ and down-, distance from Wall front+ to back- or negate X to look out from the Wall)
04-06-2023 05:43 AM
I tried it on this ways now. It doesn't work, I don't get it. Does anyone has an idea?
04-06-2023 08:59 AM
04-06-2023 11:08 AM
Also doesn't work. The X Axis depends on the time and the Y Axis just reacts just with one of two sensors.
04-09-2023 01:43 PM
@Snyko wrote:
Hey people! We are working on a project for school and we want to record the moving of a foot with 2 values of 2 ultrasonic sensors.
The X Axis is the distance to the wall and the Y Axis the distance to the ground (up and down of the foot).
Two days before this post, we already gave you the correct solution. Why did you ignore it and start a new thread from scratch????
@Snyko wrote:
f you have a solution for that, could we also build that on a 3d Graph and if we can, how?
A 3D graph has three axes (So what is the "value (x, y, time?)", for example). What exactly do you want to see and how?
Maybe you simply want to have an xy graph with two traces (X vs. time and Y vs. time) for example.
Where does the time information com from? Are the time points spaced equally?