What kind of accelerometer? How is it connected to the RPi? What language do you plan to program? There is many articles and posts about accelerometers, if you do not have idea just choose one and start with that.
on a Raspberry B+ with whezzy, two Zero with Jessie Light