Measuring distance..

Anybody have any idea what kind of sensors it is needed to measure a distance some object has moved.

It does not have to be in millimeter range, centimeters would do just fine :slight_smile:

The sensor(s) should be mounted on the object itself.

XY position is to be needed.

Should I even try to use accelerometer to do this? (already tried..but quite confusing signals came out)

Is there any other sensor that could capture object motion so that I could check if the object moved..for example 10cm in X coordinates and 5cm in Y coordinates?

Thank you.

PS: Tried searching arduino.cc but nobody had actually made such a device successfully?

Zendalar,

Could you describe your project in more details? There are many ways to measure distance or position but it depends on your project what to use.

I know you may use sonic ranger to find distance with cm accuracy. There are also other ways. You can even use a mouse to measure position in 2-D, if that doesn't disturbe your project. You may also use linear potentiometer as well. So supply some details and someone will be able to offer you suggestions.

I would need to know position of an object..in air, or on the ground.

If I lift the object and place it 20cm aside, for example, I would need to know how much it did move in from its original XY position.

Its like waving an object in air, I need to know how much it moves.

I cannot use any "external" sensors, the sensor needs to be on the movable object.

Lets say the device I need to measure is like pendulum, most of the time it moves only in X axis, but I would need to know Y axis movement also...

Hard... :slight_smile:

Indeed, GPS is out of the question.

Hehe...

All those IFs...ultrasonic is out of the question.

I am just wondering if small movements (centimeter range), in 3d space or 2d can be measured at all..with gyroscope, or with accelerometer? There are gyroscopic mice that work when held in hand, no need to touch anything...these work..

Guess I will try to use accelerometer and measure its X and Y axis acceleration and try to measure the position like this:

acceleration * time = position etc..

Almost identical concept to Logitech MX air mouse.

With this you can move your computer cursor..in the air.

How the heck does it work? Gyroscope for sure, but need more info to build one with arduino :slight_smile:

Heres a youtube video: Shiny Media reviews the Logitech MX Air computer mouse - YouTube

So basically this just measures acceleration and human brain counters the acceleration if it goes "too much" ?

You may want to check the robotic forums and parts sellers for possible solutions. Your solution will probably depend on the environment that the action will take place and what limitations are imposed on what you want to do. Below is a typical IR sensor.