2967 views|3 replies

9702

Posts

24

Resources
The OP
 

The LIS2MDL array board welding of the magnetic nail navigation AGV car is completed [Copy link]

 

I received the board yesterday and the STM32F411 microcontroller today. It is quite convenient to use steel mesh for welding. I bought 10 sensors and 1 microcontroller. In order to save space, the microcontroller uses QFN48 package. It was quite a headache to weld this package before. This time the welding went smoothly.

I simply wrote a program to read all the sensor Z-axis data and display it on the host computer.

The next step is to do position detection, which will be more difficult. I plan to buy a larger magnet and then find some information on this topic.

After soldering the board, just add the test points when drawing the SPI bus. Because one of the sensors had a short circuit on the SPI bus, it took some time to find the problem.

The code for STM32F411 is generated using STM32CubeMX. It is not easy to make mistakes if you configure the pin functions before drawing the board.

One I2C hangs LSM6DSL+LIS3MDL. Currently, both devices can read WHO AM I. One SPI hangs 10 LIS2MDL. All sensors read and write data normally.

Data is sent to the host computer through the serial port

I have extracted and made some sensor packages from the gerber files on the official website before, but I no longer need them in the future because ST has provided UltraLibrarian files, which can directly generate the files required by the corresponding EDA software online. I can operate it directly on the ST page, which is more convenient than TI and ADI. I give a thumbs up to this function.

Latest reply

Magnetic sensor?   Details Published on 2020-12-10 21:09
Personal signature虾扯蛋,蛋扯虾,虾扯蛋扯虾
 

4

Posts

0

Resources
2
 

LIS2MDL supports IIC and three-wire SPI by default. From your previous post, you are using four-wire SPI, and you are using hardware SPI. From the data sheet, four-wire SPI needs to configure registers. LIS2MDL+STM32F407, I used IIC to adjust it, and it is already usable. But three-wire SPI and four-wire SPI control, I can't adjust it no matter what. Although the task is completed, I still want to know how to drive it with SPI. Can you please ask the master, when you use four-wire SPI to access LIS2MDL, how did you modify the register configuration at the beginning?

Comments

https://en.eeworld.com/bbs/forum.php?mod=viewthread&tid=1144944&page=1#pid3029935  Details Published on 2020-12-10 21:12
 
 

7422

Posts

2

Resources
3
 

Magnetic sensor?

Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 
 

9702

Posts

24

Resources
4
 
eielixiang posted on 2020-12-9 23:11 LIS2MDL supports IIC and three-wire SPI by default. From your previous post, you are using four-wire SPI, and hardware SPI. From the data...

https://en.eeworld.com/bbs/forum.php?mod=viewthread&tid=1144944&page=1#pid3029935

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