2732 views|8 replies

9

Posts

0

Resources
The OP
 

LIS25BA configuration on STM32F4 [Copy link]

 

I recently soldered a LIS25BA module. When connected to the STM32, the IIC was configured according to the normal address and did not work. I'd like to ask what's going on. By the way, can I directly set up DMA to transfer data to wm8978?

This post is from MEMS sensors

Latest reply

It is recommended to operate according to the voltage in the manual. Read who am i to see if it is correct If it is not correct, try using F4 to drive other devices to eliminate the F4 i2c problem. If that doesn't work, use an oscilloscope to capture the waveform and analyze where the problem is.   Details Published on 2019-8-20 16:44
 
 

1w

Posts

25

Resources
2
 

Is it a voltage level problem? 1.8V is required.

This post is from MEMS sensors
 
 
 

9

Posts

0

Resources
3
 
dcexpert posted on 2019-8-15 21:25 Is it a voltage level issue? 1.8V is required

I asked someone and they said 3.3V is also OK. I connected the A0 line directly to the ground. Is this the problem?

This post is from MEMS sensors

Comments

3V is not acceptable, as stated in the data sheet. 3V can be connected to the X-NUCLEO-IKS01A3, which has a level conversion chip on it  Details Published on 2019-8-16 09:12
 
 
 

9

Posts

0

Resources
4
 


Attach two pictures


This post is from MEMS sensors
 
 
 

1w

Posts

25

Resources
5
 
Published on 2019-8-16 09:04 I asked someone and they said 3.3V is also OK. I connected the A0 line directly to the ground. Is this the problem?

3V is not acceptable, as stated in the data sheet. 3V can be connected to the X-NUCLEO-IKS01A3, which has a level conversion chip on it

This post is from MEMS sensors
 
 
 

973

Posts

15

Resources
6
 

You can use 3.3v, there may be problems with the accuracy, but it can work normally. There may be something wrong with your iic program.

Data can be transferred to wm8978 via DMA, but it needs to be processed by stm32. There is no interface in the F4 peripherals that can directly receive LIS25BA data.

This post is from MEMS sensors
Personal signature我来到这个世界,就是为了遇见你。在某天我们会相遇,然后在一起,直到最后一起离去。
 
 
 

9

Posts

0

Resources
7
 
A Xiaobai posted on 2019-8-16 14:05 You can use 3.3v, there may be problems with the accuracy, but it can work normally. Your iic program may have problems. You can transfer data to wm89 through DMA ...

I changed the device address directly in IIC. Someone said I should use simulated IIC. Can't I just pass it through IIS?

This post is from MEMS sensors

Comments

The hardware iic has defects, but it is not completely unusable. It depends on the specific situation. No, there is no matching method  Details Published on 2019-8-19 09:36
 
 
 

973

Posts

15

Resources
8
 
Published on 2019-8-16 14:19 I changed the device address directly in IIC. Others said that I should use simulated IIC. Can't I just pass it through IIS?

The hardware iic has defects, but it is not completely unusable. It depends on the specific situation. No, there is no matching method

This post is from MEMS sensors
Personal signature我来到这个世界,就是为了遇见你。在某天我们会相遇,然后在一起,直到最后一起离去。
 
 
 

9702

Posts

24

Resources
9
 

It is recommended to operate according to the voltage in the manual.

Read who am i to see if it is correct

If it is not correct, try using F4 to drive other devices to eliminate the F4 i2c problem.

If that doesn't work, use an oscilloscope to capture the waveform and analyze where the problem is.

This post is from MEMS sensors
Personal signature虾扯蛋,蛋扯虾,虾扯蛋扯虾
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list