cancel
Showing results for 
Search instead for 
Did you mean: 

How do I save the temperature in a log from the LIS3DH through Unico?

VGuer
Associate II

I have a LIS3DH sensor and Unico 7 in my computer and I am using the evaluation board MKI109V3. The thing is that I want to save the temperature data (measured by the Embedded Temperature sensor inside the LIS3DH) in a log file and with Unico this is only possible for Accelerations, LSB, interruptions and angles. It is not possible to save also Temperature? How can I do it? If not, how do you recommend me measure and save this data?

1 ACCEPTED SOLUTION

Accepted Solutions
Eleon BORLINI
ST Employee

hi vicente, I posted the most generic interface. Unfortunately, for some sensors there is only a subset of automatically-saved data.

There is however a way to log the data that don't appear in the "load/save" tab, but it is not so straightforward. You can connect to your STEVAL-MKI109V3 via an hyperterminal (e.g. Termite), and communicate via VCOM. Then you can send via Termite the commands to configure the board and get the content of the registers you need (in case of temperature, REGs 0x0C and 0x0D).

*setdb105v1 // set the correct embedded FW

*Zoff // enambel MCU communication with the sensor

*w2047 // set the device in normal mode

*w2380 // set the BDU (block data update) bit

*w1FC0 // enable temperature ADC

*rm0C0D // read temperature data from REGs0x 0D and 0x0D

To automatize the reading, you should write a script in some language (e.g. python) sending the above command via VCOM.

This method is described in the links below, first one for the VCOM commands description, and the second one for the Temperature output configuration.

Link: https://www.st.com/content/ccc/resource/technical/document/user_manual/group0/c6/b4/6a/03/c1/6f/46/13/DM00331058/files/DM00331058.pdf/jcr:content/translations/en.DM00331058.pdf

https://www.st.com/resource/en/datasheet/cd00274221.pdf

View solution in original post

7 REPLIES 7
Eleon BORLINI
ST Employee

hi vicente, which .dfu version are you using? Please check if it is ProfiMEMSToolV2.30.3. In Load/save section, you should have something like this:

0690X000006DJy2QAG.png

VGuer
Associate II

Hi Eleon,

Yes I uploaded the ProfiMEMSToolV2.30.3 that is in the DFU folder of the MEMS Demonstration Kit SW package for the MKI109V3. In the Load/save section I only have these options. Perhaps the Unico version is not recent? It is the 7.0.0.0.

0690X000006DKbTQAW.png

0690X000006DKbdQAG.png

Hi Eleon, I see that there are options for gyroscope too. Is that the same sensor? I am using a LIS3DH with MKI-105V1 adapter.

Eleon BORLINI
ST Employee

hi vicente, I posted the most generic interface. Unfortunately, for some sensors there is only a subset of automatically-saved data.

There is however a way to log the data that don't appear in the "load/save" tab, but it is not so straightforward. You can connect to your STEVAL-MKI109V3 via an hyperterminal (e.g. Termite), and communicate via VCOM. Then you can send via Termite the commands to configure the board and get the content of the registers you need (in case of temperature, REGs 0x0C and 0x0D).

*setdb105v1 // set the correct embedded FW

*Zoff // enambel MCU communication with the sensor

*w2047 // set the device in normal mode

*w2380 // set the BDU (block data update) bit

*w1FC0 // enable temperature ADC

*rm0C0D // read temperature data from REGs0x 0D and 0x0D

To automatize the reading, you should write a script in some language (e.g. python) sending the above command via VCOM.

This method is described in the links below, first one for the VCOM commands description, and the second one for the Temperature output configuration.

Link: https://www.st.com/content/ccc/resource/technical/document/user_manual/group0/c6/b4/6a/03/c1/6f/46/13/DM00331058/files/DM00331058.pdf/jcr:content/translations/en.DM00331058.pdf

https://www.st.com/resource/en/datasheet/cd00274221.pdf

VGuer
Associate II

Hi Eleon,

Thanks for the answer. That is a good solution. However my company is considering to replace the LIS3DH for another accelerometer that has at least the same functions or similar than LIS3DH and especially that is compatible with the evaluation board MKI109V3 and with Unico Software and of course we are looking that this new accelerometer allows saving the temperature data in a log. Which sensor would you recommend us?

​hi Vicente, I suggest you the LSM6DSO sensor, which is compatible with MKI109V3 and whose Unico allows you to directly acquire axl and temperature. It has also a gyro, and the accelerometer is one of the best in class devices in terms of consumptions and performances. Moreover, it will be footprint compatible with a lot of release for long time. 

Link: https://www.st.com/en/mems-and-sensors/lsm6dso.html

Thanks Eleon!