realtime data from accelerometer using matlab
Mostrar comentarios más antiguos
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.
Respuestas (1)
Raghava S N
el 13 de Mzo. de 2024
0 votos
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.
Categorías
Más información sobre Instrument Control Toolbox Supported Hardware en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!