Introduction
Do you have a project that could use an inconspicuous HID (human interface device)? Ever wanted to tamper-proof your window alarm (i.e. contact sensors) from teenagers sneaking out or home intruders? Do you have a mechanical switch that keeps failing?
If you answered yes to any of those questions, the TMAG5273 from Texas Instruments could be the solution to your problems. The TMAG5273 is low-power 3D hall-effect sensor that is perfect for detecting and measuring changes in a nearby magnetic field. With a linear, magnetic range configurable to either ±40 mT or ±80 mT and TI's integrated angle calculation engine (CORDIC), the TMAG5273 can be used in various applications:
- Detecting motor movement
- Creating a HID (human interface device) (i.e. joysticks, knobs, scroll wheels, etc.)
- Replacing various mechanical switches (i.e. rotary encoders, contact switches, reed switches, etc.)*
In addition, the included magnetic tamper detection and wake-up/threshold settings can be configured to trigger interrupts through the I2C interface or only with the dedicated interrupt pin.
Required Materials
To get started, users will need a few items. Now some users may already have a few of these items, feel free to modify your cart accordingly.
- Computer with an operating system (OS) that is compatible with all the software installation requirements
- A compatible microcontroller/Arduino board; we recommend the SparkFun RedBoard Plus.
- USB 3.1 Cable A to C - 3 Foot - Used to interface with the RedBoard Plus (1)
- SparkFun Qwiic Cable Kit (2)
- SparkFun Hall-Effect Sensor - TMAG5273 (3)
- Magnet Square - 0.25" (4)
- If your computer doesn't have a USB-A slot, then choose an appropriate cable or adapter.
- Check out our other Qwiic cable options.
- The mini version of this product is panel-mount compatible.
- Check out the other magnets in our catalog.
-
USB 3.1 Cable A to C - 3 Foot
CAB-14743 -
SparkFun RedBoard Plus
DEV-18158 -
SparkFun Qwiic Cable Kit
KIT-15081 -
SparkFun Linear 3D Hall-Effect Sensor - TMAG5273 (Qwiic)
SEN-23880Button Casing
The button casing appears to be ferromagnetic. Therefore, a strong magnetic field (i.e. from a rare Earth magnet) could potentially exert enough force to rotate or lift the board.
-
SparkFun Mini Linear 3D Hall-Effect Sensor - TMAG5273 (Qwiic)
SEN-23881 -
Magnet Square - 0.25"
COM-08643Metal Casing
The casing for rare Earth magnets, such as these, is often conductive. Users should take precautions to avoid shorting out the components or electrical contacts.
Headers and Wiring
To add headers or hookup wires, users will need soldering equipment and headers/wire.
New to soldering?
Check out our How to Solder: Through-Hole Soldering tutorial for a quick introduction!
Jumper Modification
To modify the jumpers, users will need soldering equipment and/or a hobby knife.
New to jumper pads?
Check out our Jumper Pads and PCB Traces Tutorial for a quick introduction!
Suggested Reading
As a more sophisticated product, we will skip over the more fundamental tutorials (i.e. Ohm's Law and What is Electricity?). However, below are a few tutorials that may help users familiarize themselves with various aspects of the board.