realtime data from accelerometer using matlab
显示 更早的评论
I want real-time data from accelerometer sensor to show on matlab using aurdino, also to classify them based on a trained classifier. I have tried different codes and it always gives me an error. I need help please.
回答(1 个)
Raghava S N
2024-3-13
0 个投票
Hi Ahad,
- Do refer to this MATLAB Answers post that details how to measure accelerometer data (using a BMA220 sensor) on a wide range on microcontrollers - https://www.mathworks.com/matlabcentral/answers/498437-reading-accelerometer-in-arduino.
- Here is another post that discusses accelerometer data capture using the adxl345 sensor - https://www.mathworks.com/matlabcentral/answers/753819-plot-accelerometer-adxl345-data-on-matlab. The documentation for the adxl345 sensor can be found here - https://www.mathworks.com/help/supportpkg/arduinoio/ref/adxl345.html
- There is a video tutorial as well, published officially by The MathWorks. The tutorial uses an Arduino board and a LSM303 Accelerometer for data capturing. Here is the link for the same - https://www.mathworks.com/videos/read-lsm303-accelerometer-data-from-arduino-with-a-matlab-add-on-library-1489428633357.html
Feel free to choose the use case that is most relevant based on your hardware requirements.
Post data gathering, classification can be done, for which the following links describe a workflow which can be adapted to this use case.
- https://www.mathworks.com/help/signal/ug/human-activity-recognition-using-signal-feature-extraction-and-machine-learning.html
- https://www.mathworks.com/help/deeplearning/ug/sequence-to-sequence-classification-using-deep-learning.html
Please note that the data gathered in these examples is not from an accelerometer connected to an Arduino.
类别
在 帮助中心 和 File Exchange 中查找有关 Instrument Control Toolbox Supported Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!