TOP Contributors

  1. MIKROE (2660 codes)
  2. Alcides Ramos (357 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 (137015 times)
  2. FAT32 Library (70142 times)
  3. Network Ethernet Library (56029 times)
  4. USB Device Library (46353 times)
  5. Network WiFi Library (41968 times)
  6. FT800 Library (41295 times)
  7. GSM click (29061 times)
  8. mikroSDK (26499 times)
  9. PID Library (26452 times)
  10. microSD click (25423 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

AM/FM 2 click

0

AM/FM 2 Click is a compact add-on board that can be used to listen to music from the AM and FM radio bands. This board features the Si4732, a broadcast AM/FM/SE/LW/RDS radio receiver from Skyworks. This radio receiver integrates the complete broadcast tuner and receiver function from antenna input to digital audio output. In addition to the radio receiver, this Click board™ is equipped with the LM4910, a Boomer output capacitor-less stereo 35mW headphone amplifier from Texas Instruments. This amplifier can deliver 35mW of continuous average power to a 32Ω load with less than 1% distortion.

[Learn More]

Accel 7 click

5

Accel 7 click is a three-axis acceleration sensing Click board™. It uses the KXTJ3-1057, a 14bit tri-axis digital accelerometer, which can sense the acceleration up to ±16 g. This sensor is built using the proprietary Kionix micromachining technology, which results with a high accuracy and very good noise immunity.

[Learn More]

LED Driver 15 click

0

LED Driver 15 Click is a compact add-on board that simplifies the control of multiple LEDs. This board features the MP3309C, a fully integrated synchronous boost white LED driver with an I2C interface from Monolithic Power Systems. The MP3309C offers high efficiency, delivers up to 40mA of LED current, and operates from a voltage of mikroBUS™ power rails, supporting up to 8 white LEDs in series. It also features a programmable switching frequency to optimize efficiency, supports analog and PWM dimming, and has multiple built-in protection functions that protect the circuit during abnormalities.

[Learn More]