MikroElektronika
MAGNETO 2 click
MAGNETO 2 click
SKU:MIKROE-1938
1 in stock
Couldn't load pickup availability
Share
In combination with the correct library, the magnetic flux density of a small magnet (diametral magnetisation) rotating above the IC can be measured in a non-contacting way.
The sensor enables the design of novel generation of non-contacting rotary position sensors that are frequently required for both automotive and industrial applications.
Magneto 2 click communicates with the target MCU through the mikroBUS™ SPI bus. The board is designed to use a 5V power supply only.
Specification
Type | Motion |
Applications | Absolute Rotary Position Sensor, Pedal Position Sensor, Float-Level sensor, and Throttle Position Sensor |
On-board modules | Melexis's MLX90316 monolithic rotary position sensor |
Key Features | Triaxis® Hall Technology, Programmable Angular Range up to 360 Degrees |
Key Benefits | CRC checks for even higher accuracy, Multiple filter settings for higher accuracy |
Interface | SPI |
Input Voltage | 5V,5V |
Compatibility | mikroBUS |
Click board size | S (28.6 x 25.4 mm) |
Documentation
Magneto 2 click is a mikroBUS™ add-on board with Melexis's MLX90316 monolithic rotary position sensor.
Sensing flux density with the IC surface of the MLX90316 allows the click to decode the absolute rotary (angular) position from 0 to 360 degrees.
In combination with the correct library, the magnetic flux density of a small magnet (diametral magnetisation) rotating above the IC can be measured in a non-contacting way.
Features and usage notes
- Tri⊗is® Hall Technology
- 40 bit ID number
- Single Die - SO8 or Dual Die (Full Redundant) - TSSOP16, RoHS Compliant
- Absolute Rotary Position Sensor IC
- Changeable main frequency for DSP chip (7MHz or 20 MHz master clock)
- Hysteresis Filter
- FIR and IIR filters for higher output accuracy
- Programmable Linear Transfer Characteristic
- SPI interface
- 5V Power Supply
Programming
This code initialises UART and SPI, reads data from the Magneto 2 click, and, if the readings are successful, prints it out on the UART
1 void main() { 2 char txt[20]; 3 uint8_t check = 0; 4 float angle = 0.0; 5 UART1_Init_Advanced( 9600, _UART_8_BIT_DATA, 6 _UART_NOPARITY, 7 _UART_ONE_STOPBIT, 8 &_GPIO_MODULE_USART1_PA9_10 ); 9 Delay_ms(300); 10 11 UART1_Write_Text("Uart initializedrn"); 12 GPIO_Digital_Output( &GPIOD_BASE, _GPIO_PINMASK_13 ); // set CS pin as output 13 14 // Initialize SPI 15 16 SPI3_Init_Advanced(_SPI_FPCLK_DIV64, _SPI_MASTER | 17 _SPI_8_BIT | _SPI_CLK_IDLE_LOW | 18 _SPI_SECOND_CLK_EDGE_TRANSITION | 19 _SPI_MSB_FIRST | 20 _SPI_SS_DISABLE | 21 _SPI_SSM_ENABLE | 22 _SPI_SSI_1, &_GPIO_MODULE_SPI3_PC10_11_12); 23 SPI_Set_Active(&SPI3_Read, &SPI3_Write); // Sets the SPI1 module active 24 25 26 while (1) 27 { 28 check = read_mlx(); 29 if ( check == 0) // if read was successful, print success and angle 30 { 31 Uart1_Write_Text("Success rn"); 32 angle = (float) mlx.angle; 33 angle /= 45.5; 34 floattostr(angle,txt); 35 Uart1_Write_Text(txt); 36 Uart1_Write_Text("rn"); 37 } 38 else // else print fail 39 Uart1_Write_Text("Fail rn"); 40 41 Delay_ms(400); // Wait 400ms 42 } 43 }
Code example that demonstrates the usage of Magneto 2 click with MikroElektronika hardware, written for mikroC for ARM is available on Libstock.
![MAGNETO 2 click](http://mgsl.in/cdn/shop/products/magneto-2-click-thickbox_default-2WQNgqZUf2fqfQ.jpg?v=1701966121&width=1445)
![MAGNETO 2 click](http://mgsl.in/cdn/shop/products/magneto-2-click-thickbox_default-3fKrfhIjyLtxfU.jpg?v=1701966121&width=1445)
![MAGNETO 2 click](http://mgsl.in/cdn/shop/products/magneto-2-click-thickbox_default-4VIyhT9lwLJ6V9.jpg?v=1701966121&width=1445)
![MAGNETO 2 click](http://mgsl.in/cdn/shop/products/magneto-2-click-thickbox_default-1CvIqZPxGUuKpA.jpg?v=1701966121&width=1445)
Featured collection
-
Crazyflie V2.1
Vendor:BitcrazeRegular price Rs. 24,949.00Regular priceUnit price / per -
Getting Started Bundle
Vendor:BitcrazeRegular price Rs. 26,399.00Regular priceUnit price / per -
Happy hacker bundle
Vendor:BitcrazeRegular price Rs. 33,599.00Regular priceUnit price / per -
STEM ranging bundle
Vendor:BitcrazeRegular price Rs. 43,999.00Regular priceUnit price / per -
Lighthouse explorer bundle
Vendor:BitcrazeRegular price Rs. 89,999.00Regular priceUnit price / per -
Lighthouse positioning deck
Vendor:BitcrazeRegular price Rs. 9,899.00Regular priceUnit price / per -
Lighthouse V2 base station
Vendor:BitcrazeRegular price Rs. 30,349.00Regular priceUnit price / per -
Lighthouse swarm bundle
Vendor:BitcrazeRegular price Rs. 425,899.00Regular priceUnit price / per -
Loco explorer bundle
Vendor:BitcrazeRegular price Rs. 187,999.00Regular priceUnit price / per -
Loco positioning deck
Vendor:BitcrazeRegular price Rs. 9,899.00Regular priceUnit price / per -
Loco positioning node
Vendor:BitcrazeRegular price Rs. 18,699.00Regular priceUnit price / per -
Loco Swarm Bundle
Vendor:BitcrazeRegular price Rs. 529,609.00Regular priceUnit price / per -
Active marker deck
Vendor:BitcrazeRegular price Rs. 16,499.00Regular priceUnit price / per -
Motion capture marker deck
Vendor:BitcrazeRegular price Rs. 659.00Regular priceUnit price / per -
AI-Deck 1.1
Vendor:BitcrazeRegular price Rs. 27,999.00Regular priceUnit price / per -
AI-Deck Color Camera Module
Vendor:BitcrazeRegular price Rs. 2,199.00Regular priceUnit price / per -
AI-deck monocrome camera module
Vendor:BitcrazeRegular price Rs. 2,199.00Regular priceUnit price / per -
Flow deck v2
Vendor:BitcrazeRegular price Rs. 5,499.00Regular priceUnit price / per -
Crazyflie Bolt
Vendor:BitcrazeRegular price Rs. 21,999.00Regular priceUnit price / per -
Thrust upgrade bundle for Crazyflie 2.X
Vendor:BitcrazeRegular price Rs. 1,949.00Regular priceUnit price / perSold out -
Qi 1.2 wireless charging deck
Vendor:BitcrazeRegular price Rs. 3,849.00Regular priceUnit price / per -
7 mm DC-motor
Vendor:BitcrazeRegular price Rs. 439.00Regular priceUnit price / per -
Male long deck connector
Vendor:BitcrazeRegular price Rs. 219.00Regular priceUnit price / per -
250mAh LiPo battery
Vendor:BitcrazeRegular price Rs. 659.00Regular priceUnit price / per -
6 mm DC-motor
Vendor:BitcrazeRegular price Rs. 329.00Regular priceUnit price / per