Hi, Can anyone provide me a set of codes that can drive a DC motor in CW and CCW directions , by using accelerometer ADXL335.
You need to be a lot more specific about what you want and what you have tried already. To start with, which Arduino have you got, have you got a motor shield (if so, which) and if not how are the motors driven and either way how are the motors and the Arduino powered ?