Please do not cross post. You posted the question in your other thread, and that's where I replied. You can use the X in the top right hand corner to clean up this one.
You'll need to be able to read the accelerometer, and you'll need to be able to send controls out to your servo to get it to rotate to a particular orientation. I assume you can do those two things, and that what you're looking for is help on the "in-between stuff". If not, you should read the documentation on the accelerometer and on the servo first, and get comfortable with those.
Comments
Cheers.
www.parallax.com/Portals/0/Downloads/docs/prod/sic/3rdPrintSmartSensors-v1.0.pdf
You'll need to be able to read the accelerometer, and you'll need to be able to send controls out to your servo to get it to rotate to a particular orientation. I assume you can do those two things, and that what you're looking for is help on the "in-between stuff". If not, you should read the documentation on the accelerometer and on the servo first, and get comfortable with those.