Adxl345

How can i use the accelerometer adxl345 to control the DC motor positon.. Any ideaa?? Im totally new to arduino.. Maybe some of you got same project as mine? Thank you!

What do you mean by "DC motor position"?

Why do you want to use an accelerometer?

@jremington

i want to rotate my DC motor CW and CCW at any angle based on my adxl345 output..the motor should rotate within 0 to 180degree other than that, the motor stop rotate ..

i am building a 2dof project using accelerometer..

Your motor sounds like a servo. You send a signal to the servo that represents an angle from 0 to 180 degrees and the servo moves to that angle and stops. What sort of load are you moving? There are various sizes (and stengths) of servos. The Servo library makes using servos pretty easy.

@groundFungus

i want the car wiper DC motor(cheaper) act as servo motor..i need to move a total of 100kg load..

Google "wiper motor servo" to see what others have done.

Why do you want to use an accelerometer?