PID controlled DC motor with ADXL 322 accelerometer

Hi everyone,

My name is Shawn and I have a project to complete this semester and I've had a lot of problems getting my code up and running.

I need to program my Arduino Uno to control a 12 - 24 V dc motor to balance it self at the set point.

I have little to no expereince with programming and the PID libraries and other sources that i have been looking at have been little to no help. I cant get any code to compile and need to be steered in the right direction.

The overall circuit itself will be no problem for me its just the initial coding for the Arduino that makes me want to give up.

Any help will be greatly appreciated,

Thanks for your time,
Shawn

Shawn_Hunty:
I cant get any code to compile and need to be steered in the right direction.

Because a simple syntactical error can cause a cascade of further errors you should work on the first error message and ignore the others.