LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

LSM6DSO accelerometer with gyroscope

I would need to read data from both accelerometer and gyroscope using LSM6DS0 IC.

I am going to connect my IC board to an Arduino Uno using I2C.

I would need some recomendation on LIFA file.

Do I need to create a library (header file) and used that library in my sketch file(cpp)?

if I am going to use LIFA, do I just add more code to the LIFA_BASE.

Please help me.

Thanks

0 Kudos
Message 1 of 7
(5,978 Views)

If the sensor uses I2C, you don't need to change any code in LIFA_Base.ino or any other Arduino sketch code.  Simply use the LIFA I2C functions like I've done with the MPU-6050.

0 Kudos
Message 2 of 7
(3,929 Views)

if I am only using these three functions, I would not need to add any extra library.

do I have only upload the Lifa_base?

Thanks,

IHH.png

0 Kudos
Message 3 of 7
(3,929 Views)

Yes, I2C is supported by LIFA.

0 Kudos
Message 4 of 7
(3,929 Views)

Thanks nathan.

0 Kudos
Message 5 of 7
(3,929 Views)

By saying that, I just need to add some comment in setup & void loop of the LIFA_BASE.ino file.

I mean some initialization and some comments for these raed write registers.

0 Kudos
Message 6 of 7
(3,929 Views)

You shouldn't need to add or change anything in the LIFA firmware if you are using I2C devices via LIFA.

0 Kudos
Message 7 of 7
(3,929 Views)