Motor as gyroscope?

Hello all,

So I have to make a project for my Python programming class and I also want to practice mechatronics, so I decided to try a motor control project using pyFirmata and Arduino. My main question is, if I am using an accelerometer as a “tilt” sensor for a pencil, can I use a motor as a gyroscope to “un-tilt” the pencil?

submitted by /u/Gameboi_Advance
[link] [comments]