TOP Contributors

  1. MIKROE (2762 codes)
  2. Alcides Ramos (374 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (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 (139242 times)
  2. FAT32 Library (71742 times)
  3. Network Ethernet Library (57115 times)
  4. USB Device Library (47428 times)
  5. Network WiFi Library (43082 times)
  6. FT800 Library (42403 times)
  7. GSM click (29835 times)
  8. mikroSDK (28072 times)
  9. PID Library (26885 times)
  10. microSD click (26198 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: 165 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

GainAMP click

11

GainAMP click carries the LTC®6912 dual channel, low noise, digitally programmable gain amplifier (PGA). The click is designed to work on either 3.3V or 5V power supply. It communicates with the target MCU over SPI interface, with additional functionality provided by the following pins on the mikroBUS line: AN, RST.

[Learn More]

OLED B click

5

OLED B click carries a 96 x 39px blue monochrome passive matrix OLED display. The display is bright, has a wide viewing angle and low power consumption. To drive the display, OLED B click features an SSD1306 controller.

[Learn More]

Balancer 5 click

5

Balancer 5 Click is an intelligent 2-cell Li-Ion battery charger, system power manager, and a battery fuel gauge Click board.

[Learn More]