TMR Mix-Sens Click-Platine
TMR Mix-Sens Click-Platine
Overview
Das TMR Mix-Sens Click Board™ ist mit den digitalen TMR-Push-Pull- und analogen Magnetsensoren sowie der Intensitätsanzeige des Magnetfelds ausgestattet. Das TMR Mix-Sens Click Board™ verfügt über drei Arten von Magnetfeldsensoren: zwei digitale und einen analogen Sensor. Die digitalen Sensoren sind der RR121-1A23-311 mit omnipolarer Polaritätsreaktion und der RR121-3C63-311 mit bipolarer Polaritätsreaktion. Der analoge Sensor ist der RR111-1DC2-331, der eine Spannung ausgibt, die proportional zum Magnetfeld ist. Die Platine verfügt außerdem über eine Spannungspegelanzeige LM3914, die die Ausgangsspannung des RR111-1DC2-331-Sensors aufnimmt und damit eine Reihe von LEDs zum Leuchten bringt, um die Stärke des vom Sensor wahrgenommenen Magnetfelds anzuzeigen. Auf alle Sensorausgänge kann über MikroBUS-E/A oder analoge Pins zugegriffen werden, außerdem werden sie visuell über integrierte LEDs dargestellt. Diese Platine kann zur Evaluierung der TMR-Sensoren sowie zum Testen von Anwendungen verwendet werden, die eine Weckfunktion mit geringem Stromverbrauch erfordern.
Das TMR Mix-Sens Click Board™ wird von einer mikroSDK-kompatiblen Bibliothek unterstützt, die Funktionen enthält, die die Softwareentwicklung vereinfachen. Dieses Click Board™ wird als vollständig getestetes Produkt geliefert und ist bereit für den Einsatz auf einem System, das mit der mikroBUS™-Buchse ausgestattet ist.
The TMR Mix-Sens Click Board™ provides three different Coto Technology RedRock™ TMR magnetic sensors that can be operated with supplied magnets and provide instantaneous visual feedback through LED's that indicate sensor output. These sensors utilize tunneling Magnetoresistance (TMR) technology that provides the lowest power consumption and highest magnetic sensitivity of any available magnetic sensor. With the board you will also receive cylindrical magnets for performing out of the box testing. To get started, you'll need to supply 3.3V and 5V to the corresponding pins (see image below).
How Does The TMR Mix-Sens Click Board™Work?
The first sensor on the TMR Mix-Sens Click Board™ a Coto Technology RedRock RR121-1A23-311 is an ominpolar, 9 Gauss operate, 10Hz sensing frequency, push pull output sensor that consumes an average of only 240nA. This sensor is often used for proximity detection or as a means to signal a battery operated device to wake up or power on. The second sensor on this Click board is an RR121-3C63-311 which is a bi-polar, 10 Gauss operate/-10 Gauss release, 500Hz sensing frequency, push pull output sensor that consumes an average of 1.7uA. This sensor is often used for rotation counting. The third sensor on this Click board is an RR111-1DC2-331 which provides a linear voltage output that is proportional to a magnetic field strength between -10 and 10 Gauss with a sensitivity of -20 mv/V/G and 1.5mA average supply current. This sensor is typically used in level or distance sensing applications and can provide a distance resolution of 1mm.
In addition to being able to access the outputs of the three sensors through the mikroBUS and get information to the host MCU, a visual confirmation of the activation and deactivation of each sensor is provided by means of LEDs placed next to each of the sensors on the board. When operating these sensors with the supplied magnets or magnets of your choosing, the LED's associated with each sensor will activate to visually indicate the sensing of a magnetic field. The LED2 for the RR121-1A23-311 lights up when the operate field strength of 9 Gauss is reached and subsequently turns off when the release field strength of 5 Gauss is reached, providing a hysteresis of 4 Gauss. This can demonstrated by moving the North or South pole of magnet towards the sensor in the direction of the arrow. The LED3 for the RR121-3C63-311 lights up when a South pole field with a magnitude of 10 Gauss or greater is sensed and will stay lit until a North pole of 10 Gauss or higher is sensed. This can be demonstrated by bring in a magnet with one polarity and then reversing it. It can also be demonstrated by rotating the supplied ring magnet in the hole adjacent to the sensor.
The semi-circular array of nine LEDs (LED4-LED12) on the top of the board are used for the RR111-1DC2-331 sensor. Please refer to the image above for the LED numbering. These will light to indicate when the sensor sees a North field, a South field or no field, and the magnitude for each polarity. The middle LED (LD8) will light to indicate no magnetic field (voltage output of Vdd/2). An LM3914 is used for indicating strength of linear output of RR111-1DC2-331 sensor. The operation of this sensor can be demonstrated by moving the North of South pole of the magnet towards the sensor in the direction of the magnet. Alternatively, it can be demonstrated by rotating the ring magnet in the hole adjacent to the sensor.
Holes on the TMR Mix-Sens Click Board™ can be used to ease the installation of rotatable magnet holders.
A diagram showing the output response of all three sensors can be seen in the image below:
SPECIFICATIONS
Type | Magnetic |
Applications | Applications like proximity sensing, rotary sensing, level and linearly proportional detection in medical, industrial, automotive and consumer applications |
On-board modules | RR111-1DC2-331, RR121-1A23-311, RR121-3C63-311 and LM3914 |
Key Features | Magnetic field multi sensors and indicators low power consumption |
Interface | Analog,GPIO |
Compatibility | mikroBUS |
Click board size | L (57.15 x 25.4 mm) |
Input Voltage | 3.3V,5V |
PINOUT DIAGRAM
This table shows how the pinout of the TMR Mix-Sens Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Notes | Pin | Pin | Notes | ||||
---|---|---|---|---|---|---|---|
Liner Output | AN | 1 | AN | PWM | 16 | BI | Digital Bipolar Output |
Digital Omnipolar Output | OMN | 2 | RST | INT | 15 | NC | |
NC | 3 | CS | RX | 14 | NC | ||
NC | 4 | SCK | TX | 13 | NC | ||
NC | 5 | MISO | SCL | 12 | NC | ||
NC | 6 | MOSI | SDA | 11 | NC | ||
Power Supply | 3.3V | 7 | 3.3V | 5V | 10 | 5V | Power Supply |
Ground | GND | 8 | GND | GND | 9 | GND | Ground |
ONBOARD SETTINGS AND INDICATORS
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | - | Power LED Indicator |
LD2 | - | - | Magnetic Field Digital Omnipolar LED Indicator |
LD3 | - | - | Magnetic Field Digital Bipolar LED Indicator |
LD4-12 | - | - | Magnetic Field Linear LEDs Indicators |
Software Support
We provide a library for the TMR Mix-Sens Click Board™ on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Library Description
The library covers all the necessary functions to control the TMR Mix-Sens Click Board™.
Key Functions
uint8_t tmrmixsens_get_omnipolar ( void )
- Get state of the omnipolar ( OMN ) pin function.uint8_t tmrmixsens_get_bipolar ( void )
- Get state of the bipolar ( BI ) pin function.
Example Description
The application is composed of three sections :
- System Initialization - Initializes GPIO, sets RTS and CS pins as input and start to write log.
- Application Initialization - Initialization driver enables - GPIO, initializes ADC and set ADC channel.
- Application Task - (code snippet) This is a example which demonstrates the use of the TMR Mix-Sens Click Board™. This examples respond to changes north or south magnetic pole and display ADC data value. Results are being sent to the USART Terminal where you can track their changes. All data logs on USB UART for aproximately every 1 sec.
void application_task ( ) { adc_value = tmrmixsens_adc_read( ); if ( tmrmixsens_get_bipolar( ) == TMRMIXSENS_NORT_POLE ) { mikrobus_logWrite( " ~~~ Nort pole ~~~ ", _LOG_LINE ); } else { mikrobus_logWrite( " ~~~ South pole ~~~ ", _LOG_LINE ); } WordToHex( adc_value, demo_text ); mikrobus_logWrite( " ADC value : 0x", _LOG_TEXT ); mikrobus_logWrite( demo_text, _LOG_LINE ); mikrobus_logWrite( "--------------------", _LOG_LINE ); Delay_ms( 1000 ); }
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
- ADC
- UART
- Conversions
Additional Notes and Information
Depending on the development board you are using, you may need USB UART Click Board™, USB UART 2 Click Board™ or RS232 Click Board™ 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.
MIKROSDK
The TMR Mix-Sens Click Board™ is supported with mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
Software Support
We provide a library for the TMR Mix-Sens Click Board™ on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Library Description
The library covers all the necessary functions to control the TMR Mix-Sens Click Board™.
Key Functions
uint8_t tmrmixsens_get_omnipolar ( void )
- Get state of the omnipolar ( OMN ) pin function.uint8_t tmrmixsens_get_bipolar ( void )
- Get state of the bipolar ( BI ) pin function.
Example Description
The application is composed of three sections :
- System Initialization - Initializes GPIO, sets RTS and CS pins as input and start to write log.
- Application Initialization - Initialization driver enables - GPIO, initializes ADC and set ADC channel.
- Application Task - (code snippet) This is a example which demonstrates the use of the TMR Mix-Sens Click Board™. This examples respond to changes north or south magnetic pole and display ADC data value. Results are being sent to the USART Terminal where you can track their changes. All data logs on USB UART for aproximately every 1 sec.
void application_task ( ) { adc_value = tmrmixsens_adc_read( ); if ( tmrmixsens_get_bipolar( ) == TMRMIXSENS_NORT_POLE ) { mikrobus_logWrite( " ~~~ Nort pole ~~~ ", _LOG_LINE ); } else { mikrobus_logWrite( " ~~~ South pole ~~~ ", _LOG_LINE ); } WordToHex( adc_value, demo_text ); mikrobus_logWrite( " ADC value : 0x", _LOG_TEXT ); mikrobus_logWrite( demo_text, _LOG_LINE ); mikrobus_logWrite( "--------------------", _LOG_LINE ); Delay_ms( 1000 ); }
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
- ADC
- UART
- Conversions
Additional Notes and Information
Depending on the development board you are using, you may need USB UART Click Board™, USB UART 2 Click Board™ or RS232 Click Board™ 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.
MIKROSDK
The TMR Mix-Sens Click Board™ is supported with mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.