konsmale
Posts: 4
Joined: Wed Jul 20, 2016 1:20 pm

How do I read accelerometer data from LIS331 in MatLab

Sat Aug 27, 2016 2:25 pm

How do I read accelerometer data from LIS331 in MatLab?????

help guysss

mbelge
Posts: 3
Joined: Fri May 25, 2012 6:53 pm

Re: How do I read accelerometer data from LIS331 in MatLab

Fri Sep 02, 2016 2:39 pm

Connect LIS331 to SPI-CE1. On the MATLAB command line:

>> r = raspi;
>> accel = raspi.internal.lis331(r,'CE1')
>> [x,y,z] = readAcceleration(accel)

konsmale
Posts: 4
Joined: Wed Jul 20, 2016 1:20 pm

Re: How do I read accelerometer data from LIS331 in MatLab

Wed Sep 14, 2016 1:05 pm

nice these are the commands ... you know what I need to do to become connection before giving the commands;

Return to “Interfacing (DSI, CSI, I2C, etc.)”