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 :
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.pyThe lib is a sample library, you will need to calibrate the sensor according to your application requirement.
