Skip to content

ncdcommunity/Raspberry_Pi_LIS3MDL_3Axis_Magnetometer_16Bit_Sensor_Python_library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

LIS3MDL.

LIS3MDL

The LIS3MDL is an ultra-low-power high-performance three-axis magnetic sensor.The self-test capability allows the user to check the functioning of the sensor in the final application.The device may be configured to generate interrupt signals for magnetic field detection. This Device is available from www.ncd.io

[SKU: LIS3MDL]

(https://store.ncd.io/product/lis3mdl-3-axis-magnetometer-16-bit-i2c-mini-module/) This Sample code can be used with Raspberry Pi.

Hardware needed to interface LIS3MDL 3axis magnetometer sensor With Raspberry Pi :

  1. LIS3MDL 16bit 3axis magnetometer sensor

  2. Raspberry Pi I2C Shield

  3. I2C Cable

Python

Download and install smbus library on Raspberry pi. Steps to install smbus are provided at:

https://pypi.python.org/pypi/smbus-cffi/0.5.1

Download (or git pull) the code in pi. Run the program.

$> python LIS3MDL.py

The lib is a sample library, you will need to calibrate the sensor according to your application requirement.

About

LIS3MDL 3-Axis Magnetometer 16-Bit Sensor interfacing with Raspberry Pi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages