TOP Contributors

  1. MIKROE (2656 codes)
  2. Alcides Ramos (353 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136876 times)
  2. FAT32 Library (70003 times)
  3. Network Ethernet Library (55999 times)
  4. USB Device Library (46305 times)
  5. Network WiFi Library (41927 times)
  6. FT800 Library (41208 times)
  7. GSM click (29012 times)
  8. PID Library (26423 times)
  9. mikroSDK (26398 times)
  10. microSD click (25386 times)
Libstock prefers package manager

Package Manager

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]

< Back
Project

Magnetic 6 click

Rating:

0

Author: MIKROE

Last Updated: 2020-06-16

Package Version: 1.0.0.0

Category: Magnetic

Downloaded: 142 times

Not followed.

License: MIT license  

Magneto 6 Click features low power three dimensional Hall effect sensor, TLI493D-A2B6, designed for magnetic sensing applications. It measures the magnetic field in X, Y, and Z direction. Each X, Y and Z Hall probe is connected sequentially to a multiplexer, which is then connected to an Analog to Digital Converter (ADC).

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Magnetic 6 click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Magnetic 6 click" changes.

Do you want to report abuse regarding "Magnetic 6 click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)

Project Blog

Magneto 6 Click

Magneto 6 Click

Native view of the Magneto 6 Click board.

View full image
Magneto 6 Click

Magneto 6 Click

Front and back view of the Magneto 6 Click board.

View full image

Library Description

Library provides functions for reading and writing data via I2C module. There are additial functions for reading device ID, device type and hardware version of the device. Library has functions for reading data from sensor data values, temperature data and magnetic data.

Key functions:

  • void magneto6_generic_write ( uint8_t reg_adr, uint8_t trigger, uint8_t tx_data ) - Function for writing byte data to device.
  • int16_t magneto6_get_temp_value ( void ) - Function for reading temperature value from device and converting it to degrees Celsius.
  • void magneto6_get_axes_value ( magneto6_axes_t *axes ) - Function for reading magnetic data from device for all three axes.

Examples description

The application is composed of three sections :

  • sys_init - Initialization of i2c and log modules, and additional pins
  • app_cfg - Reading device information and configuring device
  • app_task - Reading values from device
void app_task ( void )
{
    if ( TEMPERATURE == demo_type )
    {
        sens_data = magneto6_get_temp_value( );
        IntToStr( sens_data, demo_txt );
        Ltrim( demo_txt );
        log_text( " Temperature: " );
        log_line( demo_txt );
    }
    else
    {
        magneto6_get_axes_value( &axes_val );
        IntToStr( axes_val.x, demo_txt );
        Ltrim( demo_txt );
        log_text( " X: " );
        log_line( demo_txt );

        IntToStr( axes_val.y, demo_txt );
        Ltrim( demo_txt );
        log_text( " Y: " );
        log_line( demo_txt );

        IntToStr( axes_val.z, demo_txt );
        Ltrim( demo_txt );
        log_text( " Z: " );
        log_line( demo_txt );
    }

Other mikroE Libraries used in the example:

  • Conversion
  • UART
  • I2C

Additional notes and informations

Depending on the development board you are using, you may need USB UART clickUSB 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.

ALSO FROM THIS AUTHOR

GNSS 13 click

0

GNSS 13 Click is a compact add-on board that provides positioning, navigation, and timing services. This board features the LG77LICMD, a global-region standard-precision GNSS module from Quectel Wireless Solutions. This module utilizes concurrent reception of up to three GNSS systems (GPS, GLONASS (or BeiDou), and Galileo), maximizing position availability, especially under challenging conditions such as deep urban canyons. By combining EASY™ (Embedded Assist System), an advanced AGNSS feature, with GLP (GNSS Low Power), a low-power mode, the LG77LICMD module achieves high performance, low power consumption, and fully meets industrial standards. It also has a configurable host interface, anti-jamming technology, and a multi-tone active interference canceller.

[Learn More]

Peltier Click

5

The Peltier Click is a Click board which utilizes the SPV1050, an ultralow power energy harvester and battery charger from STMicroelectronics.

[Learn More]

Charger 13 click

0

Charger 13 Click is a single lithium-ion (Li+) cell battery charger. This click can be used for Low-Cost Li-Ion battery chargers, or Power Tools, toys, backup energy storage solutions, etc.

[Learn More]