MAGNETO 2 click
MAGNETO 2 click
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.
New Products
-
Sold out
Pixhawk 6X Pro FC
Vendor:Regular price Rs. 53,499.00Regular priceUnit price / perSold out -
Pixhawk 6X (ICM-45686) FC
Vendor:Regular price Rs. 15,999.00Regular priceUnit price / per -
Pixhawk Jetson Baseboard
Vendor:Regular price Rs. 44,999.00Regular priceUnit price / per -
EZO-HUM™ Embedded Humidity Probe – Plastic Body
Vendor:Regular price Rs. 6,049.00Regular priceUnit price / per -
EZO Complete-Dissolved Oxygen™
Vendor:Regular price Rs. 14,799.00Regular priceUnit price / per -
EZO-O2™ Embedded Oxygen Sensor – Plastic Body
Vendor:Regular price Rs. 10,999.00Regular priceUnit price / per -
Crazyflie 2.1 Brushless
Vendor:Regular price Rs. 53,399.00Regular priceUnit price / per -
Propeller 47-17 (4CCW+4CW) (black)
Vendor:Regular price Rs. 699.00Regular priceUnit price / per -
Crazyflie 2.1+
Vendor:Regular price Rs. 26,499.00Regular priceUnit price / per -
Sold out
WidowX Aloha Leader Arm
Vendor:Regular price From Rs. 524,999.00Regular priceUnit price / perSold out -
ViperX Aloha Follower Arm
Vendor:Regular price From Rs. 749,999.00Regular priceUnit price / per -
Aloha Stationary
Vendor:Regular price From Rs. 3,149,999.00Regular priceUnit price / per -
4P JST Expansion Board
Vendor:Regular price Rs. 749.00Regular priceUnit price / per -
Kakute H7 v1.3 Stacks +Tekko32 F4 4in1 50A ESC
Vendor:Regular price Rs. 18,029.00Regular priceUnit price / perSold out -
Kakute H7 v1.3 (MPU6000)
Vendor:Regular price Rs. 10,279.00Regular priceUnit price / per -
Pixhawk 6C (Aluminum Case) + PM02 +M10 GPS
Vendor:Regular price Rs. 37,269.00Regular priceUnit price / per -
Pixhawk 6C (Aluminium Case) +PM02+M9N GPS
Vendor:Regular price Rs. 40,539.00Regular priceUnit price / perSold out -
PM02 V3 Power Module (12S)
Vendor:Regular price Rs. 2,299.00Regular priceUnit price / per -
Pixhawk 6C (Aluminium Case)
Vendor:Regular price Rs. 31,099.00Regular priceUnit price / per -
Holybro Pixhawk 6X - Standard set + M9N(GPS V1.7)
Vendor:Regular price Rs. 46,469.00Regular priceUnit price / perSold out -
Holybro Pixhawk 6X - Standard Set + M10(GPS V1.7)
Vendor:Regular price Rs. 42,999.00Regular priceUnit price / perRs. 43,099.00Sale price Rs. 42,999.00Sale -
Analog Discovery Pro ADP2230: Mixed Signal USB Oscilloscope, Waveform Generator, Logic Analyzer, and Variable Power Supply
Vendor:Regular price Rs. 74,999.00Regular priceUnit price / perSold out -
2x12 Flywires: Signal Cable Assembly for the Analog Discovery Pro 3000 Series
Vendor:Regular price Rs. 999.00Regular priceUnit price / perSold out