{"product_id":"sparkfun-mikroe-magnetic-rotary-click","title":"SparkFun MIKROE Magnetic Rotary Click","description":"\u003cp\u003eMagnetic Rotary Click is a very accurate position sensing Click boardâ�¢ which utilizes the HMC1512, a magnetic field displacement sensor IC. This integrated sensor uses two coplanar saturated-mode Wheatstone bridges which consist of four magneto-resistive elements per bridge. The precision of up to 0.05Â° in the angular range of Â±90Â° can be easily achieved using the Magnetic Rotary Click, making it far more accurate than the commonly used Hall-effect sensors.\u003c\/p\u003e \u003cp\u003eThe HMC1512 sensor IC produces a highly linear voltage output signal in respect to the magnetic field angle, available directly from two bridges via differential output pins. To allow simplified usage, the Magnetic Rotary Click features an additional dual A\/D converter, making it a complete solution for the rapid development of various contactless position and direction sensing applications, HMI interfaces, precision measurement applications, proximity detection applications, contactless rotary applications, etc.\u003c\/p\u003e \u003cp\u003eThe main component of Magnetic Rotary Click is the HMC1512, a magnetic displacement sensor, from Honeywell. The key feature of the HMC1512 IC is the high accuracy of the magnetic field sensing. Unlike most of the magnetic sensors on the market which rely on the Hall-effect, the integrated sensors of the HMC1512 IC are produced using the Honeywell proprietary Anisotropic Magneto-Resistive (AMR) technology, which yields an absolute magnetic field position sensing with the angular error of only 0.05Â° in the range of Â±90Â°. The magneto-resistive sensing elements form a saturated-mode Wheatstone bridge, positioned in the XZ plane (parallel with the surface of the IC). The HMC1512 contains two such integrated bridges, bridge A, and bridge B. These bridges are positioned at the middle of the IC casing, which is the optimal position for rotary applications. One bridge is physically rotated by 45Â° from the other, allowing the HMC1512 IC to cover the full range of Â±90Â° (2x45Â°), maintaining its sensing accuracy. The IC outputs an analog differential voltage with respect to the angle of the magnetic field.\u003c\/p\u003e \u003cp\u003eThe voltage from the selected mikroBUSâ�¢ power rail is directly applied to the internal Wheatstone bridge of the HMC1512. By construction, in the absence of the magnetic field, its outputs will be set at half the supply voltage (with the small offset of 3mV\/V typically). If there is a magnetic field positioned at 0Â° in respect to one of the bridges, it will cause no disbalance of the magneto-resistive elements for that bridge. However, in the other bridge, the same magnetic field will cause it to reach its peak output value, since that bridge is rotated by 45Â°. The voltage change on the outputs can be then calculated using the following formulas:\u003c\/p\u003e \u003cp\u003eBridge A: Î�V= VSÂ· S Â· sin(2Î�)\u003c\/p\u003e \u003cp\u003eThe second bridge which is physically rotated by 45Â°, will have its output defined by this formula:\u003c\/p\u003e \u003cp\u003eBridge B: Î�V= -VSÂ· S Â· cos(2Î�)\u003c\/p\u003e \u003cp\u003eWhere:\u003c\/p\u003e \u003cul\u003e \u003cli\u003eÎ�V is a differential output voltage\u003c\/li\u003e \u003cli\u003eVS is the power supply voltage (3.3V or 5V)\u003c\/li\u003e \u003cli\u003eS is the material constant (12mV\/V)\u003c\/li\u003e \u003cli\u003eÎ� is the angle of the magnetic field\u003c\/li\u003e \u003c\/ul\u003e \u003cp\u003eThe datasheet of the HMC1512 offers a more detailed explanation, along with some use cases. However, Magnetic Rotary Click is supported by the mikroSDK library, which offers easy to use functions. All necessary calculations are encapsulated in these functions, allowing rapid application development. The included example application can be used as a reference and a starting point for a custom design.\u003c\/p\u003e \u003cp\u003eThe outputs of the Wheatstone bridges are routed to the dual operational amplifier, which serves as the buffer for the A\/D converter. As a dual operational amplifier, the MCP6022 from Microchip is used. This op-amp is biased to half the power supply voltage and has a gain of 25. Two buffered signals are then used as inputs for each channel of the A\/D converter.\u003c\/p\u003e \u003cp\u003eMagnetic Rotary Click uses the MCP3202, a two-channel, 12-bit A\/D converter (ADC) with SPI Interface, by Microchip. This ADC has a high resolution which can be used even for more demanding applications. At 0Â°, the ADC will output half of its full-scale (FS) value, and it will swing towards 0 if the sign of the orientation of the magnetic field is positioned towards the negative direction, and 4095 if the orientation of the magnetic field is positioned towards the positive direction. Each bridge output is routed to a separate ADC input, so it can be independently converted. The MCP3202 uses the power supply as the reference voltage, allowing ADC conversion within the range of the input signal. Converted output values can be read via the SPI interface, routed to the mikroBUSâ�¢ SPI pins for easy interfacing with a vast number of different microcontrollers (MCUs).\u003c\/p\u003e \u003cp\u003eThe power supply voltage for the whole circuit can be selected by switching the SMD jumper, labeled as PWR SEL. It offers a choice of the power supply voltage between 3.3V and 5V, available from the mikroBUSâ�¢.\u003c\/p\u003e \u003cp\u003e\u003cstrong\u003eFeatures:\u003c\/strong\u003e\u003c\/p\u003e \u003cul\u003e \u003cli\u003eInterface: SPI\u003c\/li\u003e \u003cli\u003eCompatibility: mikroBUSâ�¢\u003c\/li\u003e \u003cli\u003eDimensions: 42.9 x 25.4mm\u003c\/li\u003e \u003cli\u003eInput Voltage: 3.3V or 5V\u003c\/li\u003e \u003c\/ul\u003e \u003cp\u003e\u003cstrong\u003eDocuments:\u003c\/strong\u003e\u003c\/p\u003e \u003cul\u003e \u003cli\u003e\u003ca href=\"https:\/\/cdn.sparkfun.com\/assets\/3\/7\/9\/3\/c\/Schematic-19886-MIKROE_Magnetic_Rotary_Click.pdf\"\u003eSchematic\u003c\/a\u003e\u003c\/li\u003e \u003cli\u003e\u003ca href=\"https:\/\/cdn.sparkfun.com\/assets\/f\/a\/5\/9\/5\/HMC1512.pdf\"\u003eHMC1512 Datasheet\u003c\/a\u003e\u003c\/li\u003e \u003cli\u003e\u003ca href=\"https:\/\/www.mikroe.com\/mikrosdk\"\u003emikroSDK\u003c\/a\u003e\u003c\/li\u003e \u003cli\u003e\u003ca href=\"https:\/\/github.com\/MikroElektronika\/mikrosdk_click_v2\/tree\/master\/clicks\/magneticrotary\"\u003eGitHub\u003c\/a\u003e\u003c\/li\u003e \u003c\/ul\u003e","brand":"sparkfun-10","offers":[{"title":"Default Title","offer_id":40331959566421,"sku":"19886:SEN-19886:spark","price":4150.0,"currency_code":"INR","in_stock":false}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/1034\/1611\/products\/19886_-_MIKROE_Magnetic_Rotary_Click_2.jpg?v=1663616277","url":"https:\/\/www.tanotis.com\/products\/sparkfun-mikroe-magnetic-rotary-click","provider":"Tanotis","version":"1.0","type":"link"}