IMU control of DC Motor

I am wanting to control a DC motor using an accelerometer where:

When the IMU is lifted the motor turns clockwise

When the IMU is stationary the motor is stationary

When the IMU is lowered the motor turns anti Clockwise

Any advice on feasibility is greatly appreciated,

Thank you

Reads like a doable project.

Advice look this over and get an understanding of how granular you want to control the motor:MPU9250AHRS - Basic program to obtain properly-scaled gyro, acc… | Mbed

Are you sure, ACC is realy what you want to use?