Effacer les filtres
Effacer les filtres

Reading Data from Multiple Accelerometers Using the LSM303 add-on for Arduino

1 vue (au cours des 30 derniers jours)
Zachary Eisner
Zachary Eisner le 14 Fév 2020
I am trying to read and record data from three identical accellerometers connected to an Arduino MEGA2560. I was introduced to the LSM303 add-on that creates of sensor objects, allowing users to easily read data, however the example code proided here doesnt specify how the analog input pins are being selected. As I am trying to accomplish the task shown in the video for three units at once, I am unsure how to proceed.
Here is the sample code I am using for setting up a single unit:
a = arduino('usbmodem145101','Mega2560','libraries','Pololu/LSM303');
sensor=addon(a,'Pololu/LSM303');
Does anyone have experience with this issue and can provide me with some insight into how to aquire the data properly? Thank you!

Réponses (0)

Catégories

En savoir plus sur Instrument Control Toolbox dans Help Center et File Exchange

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by