Skip to main content

CircuitPython driver for 3D Magnetic Sensor.

Project description

TLV493D-A1B6-3DMagnetic-Sensor

Summary

The 3D magnetic sensor TLV493D-A1B6 offers accurate three-dimensional sensing with extremely low power consumption in a small 6-pin package. With its magnetic field detection in x, y, and z-direction the sensor reliably measures three-dimensional, linear and rotation movements. Applications include joysticks, control elements (white goods, multifunction knops), or electric meters (anti tampering) and any other application that requires accurate angular measurements or low power consumptions.

Key features are 3D magnetic sensing with a very low power consumption during operations. The sensor has a digital output via 2-wire based standard I2C interface up to 1 MBit/sec and 12 bit data resolution for each measurement direction (Bx, By and Bz linear field measurement up to +-130mT).

Key Features and Benefits

  • Integrated temperature sensing
  • Low current consumption of 0.007 µA in power down mode and 10 µA in ultra low power mode
  • 2.7 to 3.5 V operating supply voltage
  • Digital output via 2-wire standard I2C interface
  • Bx, By and Bz linear field measurement up to ±130 mT
  • 12-bit data resolution for each measurement direction
  • Resolution 98 µT/LSB
  • Operating temperature range from -40 °C to 125 °C

Dependencies

This driver depends on:

  • python version 3 and above
  • SMBus

Please ensure all dependencies are resolved before proceeding further.

Steps for installation

Supported hardware --> Raspberry pi Zero/3/3B+/4B

  • Update apt

sudo apt update

  • Enable i2c (Interfacing options menu and then I2C enable). For detailed steps see this article.

sudo raspi-config

  • Install pip3

sudo apt install python3-pip

  • Install smbus

pip3 install smbus
sudo apt-get install -y python-smbus i2c-tools

Installing from PyPI

On supported GNU/Linux systems like the Raspberry Pi, you can install the driver from PyPI

For current user:


pip3 install TLV493D

To install system-wide (this may be required in some cases):


sudo pip3 install TLV493D

Connection diagram:

Raspberry Pi TLV
3.3V 3V3
GND GND
BCM 2 (pin3) SDA
BCM 3 (pin 5) SCL
  • Clone the Github repository or download the .zip, unzip it, go to examples folder and run the sample code.

Printables

The TLx493D 3D magnetic sensor family has additional tools which can be directly mounted on top of the evaluation boards. The 3D print data of the joystick, the rotate knob and the linear slider can be found in the folder printables.

Board Information, Datasheet and Additional Information

The datasheet for the TLV493D-A1B6 can be found here TLV493D-A1B6 Datasheet while respective application notes are located here Application Notes.

Please check the wiki with more information for the TLV493D-A1B6 3DSense Shield2Go as well.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

TLV493D-1.0.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

TLV493D-1.0.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file TLV493D-1.0.1.tar.gz.

File metadata

  • Download URL: TLV493D-1.0.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.3

File hashes

Hashes for TLV493D-1.0.1.tar.gz
Algorithm Hash digest
SHA256 3f93a58f8fd4eb90518d4676ec637675ea9000f133ed4873fdd2338469f849c0
MD5 651cfb59fffca02e635ee295e42d0434
BLAKE2b-256 1bd9e8c5b62efb15e7160ebff6b006d86395f7bd1e21f223cb7aa919c00d384b

See more details on using hashes here.

File details

Details for the file TLV493D-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: TLV493D-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.3

File hashes

Hashes for TLV493D-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 79a83fd4b9d4373d01fa24cb4a6a4d971c669d026e1601664ea6a7690fd1f5cf
MD5 32447a81615c6e4c8c4568285eb41fc9
BLAKE2b-256 c97ef1becbf9b78c8e25a9ad2dc0909763215f531f23c300d5d6cfbea9cb9133

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page