How to process data from a arduino to drive a motor ???

Hey guys !

We were wondering if it is possible to drive a direct current motor with data from an accelerometer ?
In fact, we are trying to adapt the motor angular pitch depending on the altitude of the accelerometer but we're stuck...
We managed to collect data but not to process them with arduino and least of all, use them to drive our motor.

If someone has a lead or a idea, we would really appreciate !

3 newbies

We managed to collect data but not to process them with arduino and least of all, use them to drive our motor.

Please post a complete program showing what you tried, explain what should happen and describe what actually happened. Details of your hardware would also help.

Have you printed the data received and is it what you expect ?

It seems possible but from your description it sounds like you need to drive a servo not a DC motor. Servos are the things that can easily be set to a rotational position (if that's what you mean by "angular pitch").

Oh and accelerometers are not the most practical thing to use to measure altitude.

Steve