TOP Contributors

  1. MIKROE (2784 codes)
  2. Alcides Ramos (385 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (97 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 (139848 times)
  2. FAT32 Library (72211 times)
  3. Network Ethernet Library (57392 times)
  4. USB Device Library (47740 times)
  5. Network WiFi Library (43364 times)
  6. FT800 Library (42700 times)
  7. GSM click (29981 times)
  8. mikroSDK (28444 times)
  9. PID Library (26989 times)
  10. microSD click (26398 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: 176 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

Ammeter click

1

Ammeter click is a mikroBUS add-on board with circuitry for measuring electric current ( both AC and DC ).

[Learn More]

GNSS ZOE Click

0

GNSS ZOE Click is a evaluation board for ultra small ZOE-M8Q GNSS SiP receiver from u-blox.

[Learn More]

Cap Touch 6 Click

0

Cap Touch 6 Click is a compact add-on board that easily integrates projected capacitive touch into users' applications. This board features the IQS227D, a single-channel capacitive controller with an internal voltage regular and reference capacitor from Azoteq. Besides the capacitive sensing area, this board also has output pins for proximity and touch events with their corresponding LED indicators. The IQS227D automatically tracks slow varying environmental changes via various filters.

[Learn More]