I'm looking to make a toy that is "rotation interactive". The board the sensor sits on could be oriented in any direction, but I'm only interested in rotation around one axis. I naively thought I could use an accelerometer like the KXTJ3-1057 but it is just an accelerometer and does not also have a gyroscope. If I'm understanding this right the problem is that my signal processing would only work in a orientation and as soon as the orientation changes this won't work.
For example say the z-axis is a normal with respect ot he flat part of the sensory IC, i.e. it's going up/down through the flat part of the IC. I'd like to detect z-axis rotation, that is where the IC is rotating, but the flat side is not flipping end over end (that would be x-axis or y-axis rotation). I'd like to detect that rotation regardless of the actual orientation of the toy.
I'm looking for something very low cost and low power. I don't care a lot about accuracy. It would be nice if it was I2C. What are some sensors I should consider?
For example say the z-axis is a normal with respect ot he flat part of the sensory IC, i.e. it's going up/down through the flat part of the IC. I'd like to detect z-axis rotation, that is where the IC is rotating, but the flat side is not flipping end over end (that would be x-axis or y-axis rotation). I'd like to detect that rotation regardless of the actual orientation of the toy.
I'm looking for something very low cost and low power. I don't care a lot about accuracy. It would be nice if it was I2C. What are some sensors I should consider?