URGENT Help for arduino project

Hello everyone,
I currently need to do a project on automating the movement of a circle using an arduino UNO, accelerometer/gyroscope (MPU6050) and a servo motor.
The motor needs to start moving the circle when a motion/acceleration is detected and needs to stop moving when a deceleration is detected.
And frankly speaking, I don’t really know how to program arduinos and have been getting problems doing so. I tried looking for sample programs online but they don’t seem to work.
Can anyone please help me out?

(deleted)

Also tell us what the "circle" is.

Are you saying that you want to move a circle? Do you mean a wheel? Did you want to sense the movement of something moving along a circular path? You have a circle in one place, and it moves to another place? You have a circle that is rotating? You have some sort of arm moving around a pivot?

My guestimation would be a sinusoïdal movement (circular) as means of acceleration and deceleration

Please also explain why the urgency.