We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]
Rating:
Author: MIKROE
Last Updated: 2018-06-20
Package Version: 1.0.0.0
mikroSDK Library: 1.0.0.0
Category: Magnetic
Downloaded: 4301 times
Not followed.
License: MIT license
Magneto 5 click is a very accurate and reliable magnetic sensor device, which features the MEMSIC MMC34160PJ, a 3-axis magnetic sensor IC.
Do you want to subscribe in order to receive notifications regarding "Magneto 5 click" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "Magneto 5 click" changes.
Do you want to report abuse regarding "Magneto 5 click".
Library Description
This library provides generic functions for working with the Click board.
Key functions:
Examples Description
The application is composed of three sections:
void applicationTask() { X_axis = magneto5_getAxisValue( _MAGNETO5_AXIS_X, _MAGNETO5_CH3_12bits_1ms); Y_axis = magneto5_getAxisValue( _MAGNETO5_AXIS_Y, _MAGNETO5_CH3_12bits_1ms ); Z_axis = magneto5_getAxisValue( _MAGNETO5_AXIS_Z, _MAGNETO5_CH3_12bits_1ms ); FloatToStr( X_axis, writeText ); mikrobus_logWrite( "-- X axis : ", _LOG_TEXT ); mikrobus_logWrite( writeText, _LOG_LINE ); FloatToStr( Y_axis, writeText ); mikrobus_logWrite( "-- Y axis : ", _LOG_TEXT ); mikrobus_logWrite( writeText, _LOG_LINE ); FloatToStr( Z_axis, writeText ); mikrobus_logWrite( "-- Z axis : ", _LOG_TEXT ); mikrobus_logWrite( writeText, _LOG_LINE ); mikrobus_logWrite( " --------------- ", _LOG_LINE ); Delay_ms( 1000 ); }
Other mikroE Libraries used in the example:
Additional notes and information
Depending on the development board you are using, you may need USB UART click, USB UART 2 click or RS232 click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.