Accelerometer simulator on Simulink/Simscape
26 views (last 30 days)
Show older comments
Hi everyone! I’m here to ask for help with a problem that I don’t know how to solve!
I would like to measure accelerations in my Simulink/Simscape model. Here’s how my model is structured:
1. A central cylinder rotating on its own with constant speed.
2. A cylinder with an offset, rotating on its own (with constant speed) and translating vertically (with a sinusoidal movement).
3. A small rectangle attached to the "outer" cylinder.
The mechanics are correct, and I’ve checked them using the Mechanics Explorer. I want to measure the accelerations of the small rectangle (which should be the same as the ones of the cylinder with the offset). I’ve used the Transform Sensor, which gives me the correct position, but the acceleration results seem a bit strange.
Is there a way or a block that I don’t know about that could return the acceleration (preferably three-axis) of my model?
I tried also to use the Three-Axis Accelerometer but to use that I should use the data coming from the Transform Sensor and this does not solve my problem...
1 Comment
Yifeng Tang
about 22 hours ago
I wonder what you mean by the results being "strange". Do you have measured signal from an accelerometer that you can compare to?
One thing to check is the "measurement frame" of the transform sensor. The reading can be with respect to the F frame, B frame, world frame, and other two options. If you are comparing to an accelerometer reading and the accelerometer is mounted to the rotating cylinder, I think the measurement frame should be the F frame (whatever is connected to the small rectangle).
Just a thought. It's hard to be sure without seeing your model and a deeper understanding of the actual physical system.
Answers (0)
See Also
Categories
Find more on Assembly in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!