# Title: Hall Switch Click Board™ ## Description: The Hall Switch Click Board™ is a magnetic field activated dual-relay Click board™. The Hall Switch Click Board™ has two high-quality relays, which are activated by the Hall-effect sensor: when the north pole magnetic field is introduced to the sensor, one of the relays will be activated; when the south pole magnetic field is introduced to the sensor, the other relay will be activated. Two high-quality compact relays allow switching of high voltages - up to 220V, so they can cut or establish a connection on the main side of the circuit. This allows for the implementation of various applications activated by the magnetic field, such as the contactless switches, door, lids or tray position detecting switches, or other similar applications that require contactless switching of the relay contacts. How Does The Hall Switch Click Board™ Work? The main active element of the Hall Switch Click Board™ is the AH1389, an ultra-sensitive dual output unipolar Hall Effect switch, from Diodes Incorporated. This IC utilizes Hall effect - a phenomenon in which the current flow, or rather - the path of the conductor electrons is affected by the magnetic field. Due to the fact that the path of the electrons is curved, a buildup of positive charges is formed on the opposite side of this path, and the voltage is generated. If a voltmeter is connected to the path perpendicular to the current path and the magnetic field, a voltage will be detected. The AH1389 has the ability to detect both the north and south poles of the magnetic field. The magnetic field from the south pole magnet will pull the output 2 to a LOW (active) state, while the magnetic field from the north pole magnet will pull the output 1 to a LOW (active) state. The IC features several sections for the signal conditioning. It also provides the hysteresis for the output activation, to avoid erratic triggering. The magnetic field strength which activates outputs is about ±25 G, while the field strength under ±20 G will deactivate outputs, giving a hysteresis of typical 5 G. The positive and negative sign is used with respect to the magnet poles (north pole has a negative sign prefix). The outputs of the AH1389 IC are routed to the operational amplifiers, which work as the inverting comparators. When the output of the AH1389 IC is activated - pulled to a LOW voltage level, the output from the comparator will be set to 5V. This will cause biasing of the BJT, allowing current flow through the relay coil, and thus forming a magnetic field necessary for closing the relay contacts. A Schottky diode across the relay coil prevents the reverse kickback voltage, which forms due to the inert nature of the coils. Activation of the relay coils is indicated by the red and blue LEDs, respectively. Two outputs of the AH1389 IC are also routed to the mikroBUS pins: north pole output (1) is routed to the CS pin and the south pole output (2) is routed to the INT pin of the mikroBUS™ so that the status of the IC can be monitored by the MCU. Two varistors are used to prevent voltage peaks when the load is connected or disconnected on the relay output contacts. The output contacts are further routed to the screw terminals, which allow up to 10A. However the relays allow up to 5A for 250V AC/30V DC, so the connected load should not exceed these power ratings. DO NOT TOUCH THE BOARD WHILE THE HIGH VOLTAGE IS APPLIED! Note: Hall Switch click has exposed pins/pads. To stay safe, please take precaution when applying a high voltage to the click. The click is to be used by trained personnel only when operating with hazardous voltage levels. SPECIFICATIONS Type Magnetic Applications The Hall Switch Click Board™ can be used for applications activated by the magnetic field, such as the contactless switches, door, lids or tray position detecting switches, or other similar applications that require contactless switching of the relay contacts On-board modules AH1389, an ultra-sensitive dual output unipolar Hall Effect switch, from Diodes Incorporated Key Features Reliable contactless switching by the magnetic field, separate sensors for both south and north pole magnetic fields, high-quality compact OMRON relays, etc. Interface 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 Hall Switch Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns). Notes Pin Pin Notes NC 1 AN PWM 16 NC NC 2 RST INT 15 S-P South pole North pole N-P 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 +3V3 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 N - Relay 1 status LED, lights up when the north magnetic pole is applied LD2 S - Relay 2 status LED, lights up when the south magnetic pole is applied LD3 PWR PWR indication LED ## Product type: Click Board ## Vendor: Mikroelektronika d.o.o. ## Tags: Click Board, Diodes Incorporated, Magnet, MikroE, Sensor ## Price range: 15.4 - 15.4 GBP ## Link: https://thedebugstore.com/products/mikroe-2985-hall-switch-click-board-uk ## Compare-at price range: 22.0 - 22.0 GBP ## Options - Title: Default Title ## Collections - [New Products](https://thedebugstore.com/a/llms/collections/new-products-debug-store) - [Mikroelektronika d.o.o. (MikroE)](https://thedebugstore.com/a/llms/collections/mikroelektronika-catalogue-uk) - [Diodes Incorporated Device Support: Debug Store's Development Boards and Tools](https://thedebugstore.com/a/llms/collections/diodes-incorporated-device-support) - [Sensor Click Boards™](https://thedebugstore.com/a/llms/collections/sensor-click-boards-catalogue) - [MikroE Click Boards™](https://thedebugstore.com/a/llms/collections/mikroe-click-boards-catalogue-uk) - [Magnetic Field Sensor Click Boards™](https://thedebugstore.com/a/llms/collections/magnetic-field-sensor-click-boards-catalogue) - [Click Boards™ Summer Sale](https://thedebugstore.com/a/llms/collections/inventory-sale) - [MikroE Sale](https://thedebugstore.com/a/llms/collections/mikroe-sale) - [MIKROE Stock](https://thedebugstore.com/a/llms/collections/mikroe-products-in-stock-sale) ## Variants - Default Title, SKU: MIKROE-2985, Available: yes, Inventory: 1 ## Metafields - full_description:

The Hall Switch Click Board™ is a magnetic field activated dual-relay Click board™. The Hall Switch Click Board™ has two high-quality relays, which are activated by the Hall-effect sensor: when the north pole magnetic field is introduced to the sensor, one of the relays will be activated; when the south pole magnetic field is introduced to the sensor, the other relay will be activated. Two high-quality compact relays allow switching of high voltages - up to 220V, so they can cut or establish a connection on the main side of the circuit.

This allows for the implementation of various applications activated by the magnetic field, such as the contactless switches, door, lids or tray position detecting switches, or other similar applications that require contactless switching of the relay contacts.

How Does The Hall Switch Click Board™ Work?

The main active element of the Hall Switch Click Board™ is the AH1389, an ultra-sensitive dual output unipolar Hall Effect switch, from Diodes Incorporated. This IC utilizes Hall effect - a phenomenon in which the current flow, or rather - the path of the conductor electrons is affected by the magnetic field. Due to the fact that the path of the electrons is curved, a buildup of positive charges is formed on the opposite side of this path, and the voltage is generated. If a voltmeter is connected to the path perpendicular to the current path and the magnetic field, a voltage will be detected.

The AH1389 has the ability to detect both the north and south poles of the magnetic field. The magnetic field from the south pole magnet will pull the output 2 to a LOW (active) state, while the magnetic field from the north pole magnet will pull the output 1 to a LOW (active) state. The IC features several sections for the signal conditioning. It also provides the hysteresis for the output activation, to avoid erratic triggering. The magnetic field strength which activates outputs is about ±25 G, while the field strength under ±20 G will deactivate outputs, giving a hysteresis of typical 5 G. The positive and negative sign is used with respect to the magnet poles (north pole has a negative sign prefix).

The outputs of the AH1389 IC are routed to the operational amplifiers, which work as the inverting comparators. When the output of the AH1389 IC is activated - pulled to a LOW voltage level, the output from the comparator will be set to 5V. This will cause biasing of the BJT, allowing current flow through the relay coil, and thus forming a magnetic field necessary for closing the relay contacts. A Schottky diode across the relay coil prevents the reverse kickback voltage, which forms due to the inert nature of the coils. Activation of the relay coils is indicated by the red and blue LEDs, respectively.

Two outputs of the AH1389 IC are also routed to the mikroBUS pins: north pole output (1) is routed to the CS pin and the south pole output (2) is routed to the INT pin of the mikroBUS™ so that the status of the IC can be monitored by the MCU.

Two varistors are used to prevent voltage peaks when the load is connected or disconnected on the relay output contacts. The output contacts are further routed to the screw terminals, which allow up to 10A. However the relays allow up to 5A for 250V AC/30V DC, so the connected load should not exceed these power ratings.

DO NOT TOUCH THE BOARD WHILE THE HIGH VOLTAGE IS APPLIED!

Note: Hall Switch click has exposed pins/pads. To stay safe, please take precaution when applying a high voltage to the click. The click is to be used by trained personnel only when operating with hazardous voltage levels.

SPECIFICATIONS

Type Magnetic
Applications The Hall Switch Click Board™ can be used for applications activated by the magnetic field, such as the contactless switches, door, lids or tray position detecting switches, or other similar applications that require contactless switching of the relay contacts
On-board modules AH1389, an ultra-sensitive dual output unipolar Hall Effect switch, from Diodes Incorporated
Key Features Reliable contactless switching by the magnetic field, separate sensors for both south and north pole magnetic fields, high-quality compact OMRON relays, etc.
Interface 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 Hall Switch Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).

Notes Pin Mikrobus logo.png Pin Notes
NC 1 AN PWM 16 NC
NC 2 RST INT 15 S-P South pole
North pole N-P 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 +3V3 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 N - Relay 1 status LED, lights up when the north magnetic pole is applied
LD2 S - Relay 2 status LED, lights up when the south magnetic pole is applied
LD3 PWR PWR indication LED

 

- description_tag: The Hall Switch Click Board™ is a magnetic field activated dual-relay Click Board™. Hall Switch Click Board™ has two high-quality relays, which are activated by the Hall-effect sensor. Available from Debug Store UK. - title_tag: MikroE Hall Switch Click Board™ (MIKROE-2985) - manufacturer: Mikroelektronika d.o.o. - warranty: 12 months - amazon_enable: TRUE - amazon_title: Hall Switch Click Board - amazon_product_type: computercomponent - amazon_block: FALSE - amazon_prime_enable: FALSE - amazon_search: MikroElektronika Microelectronica MIKROE-1100 - amazon_uk_price: 15.84 - amazon_uk_currency: GBP - amazon_de_currency: EUR - amazon_de_price: 17.8992 - amazon_fr_currency: EUR - amazon_fr_price: 17.8992 - amazon_es_currency: EUR - amazon_es_price: 17.8992 - amazon_nl_currency: EUR - amazon_nl_price: 17.8992 - amazon_it_currency: EUR - amazon_it_price: 17.8992 - amazon_se_curency: SEK - amazon_se_price: 180.576 - amazon_product_id: 8606018712694 - amazon_product_id_type: EAN - amazon_update: Update - amazon_short_description: The Hall Switch Click Board™ is a magnetic field activated dual-relay Click Board™. Hall Switch Click Board™ has two high-quality relays, which are activated by the Hall-effect sensor: when the north pole magnetic field is introduced to the sensor, one of the relays will be activated; when the south pole magnetic field is introduced to the sensor, the other relay will be activated. Two high-quality compact relays allow switching of high voltages - up to 220V, so they can cut or establish a connection on the main side of the circuit. - amazon_long_description:

The Hall Switch Click Board™ is a magnetic field activated dual-relay Click Board™. Hall Switch Click Board™ has two high-quality relays, which are activated by the Hall-effect sensor: when the north pole magnetic field is introduced to the sensor, one of the relays will be activated; when the south pole magnetic field is introduced to the sensor, the other relay will be activated. Two high-quality compact relays allow switching of high voltages - up to 220V, so they can cut or establish a connection on the main side of the circuit.

- amazon_main_image: https://www.thedebugstore.com/images/product/lg-hall-switch-click-board.jpg - amazon_browse_node: 428655031 - related_products: MIKROE-3629 - mpn: MIKROE-2985 - backorder_label: If no stock shown above, check availability - badge: - widget:

Customer Reviews

Be the first to write a review
0%
(0)
0%
(0)
0%
(0)
0%
(0)
0%
(0)
- google_product_category: 222 - condition: new - custom_product: false - mpn: MIKROE-2985 - google_product_category: Electronics - custom_label_0: Click Board - examples:

We provide a library for the Hall Switch Click Board™ click on our Libstock page, as well as a demo application (example), developed using MikroElektronika compilers and mikroSDK. The provided click library is mikroSDK standard compliant. The demo application can run on all the main MikroElektronika development boards.

Library Description

The library carries two functions for poles control.

Key Functions

void hallswitch_setNpole(uint8_t state) - Set the state of N pole

void hallswitch_setSpole(uint8_t state) - Set the state of S pole

Example Description

The application is composed of three sections:

void applicationTask()
{
 hallswitch_setNpole(_HALLSWITCH_POLE_ACTIVE);
 Delay_ms( 500 );
 hallswitch_setSpole(_HALLSWITCH_POLE_ACTIVE);
 Delay_ms( 500 );
 hallswitch_setNpole(_HALLSWITCH_POLE_NO_ACTIVE);
 Delay_ms( 500 );
 hallswitch_setSpole(_HALLSWITCH_POLE_NO_ACTIVE);
 Delay_ms( 500 );
}

The full application code, and ready to use projects can be found on our Libstock page.

Additional Notes and Information

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

MIKROSDK

The Hall Switch 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.

- attachments: [{"download_file":[{"download_file":"Hall Switch Click Board™ Schematic"}],"download_filetype":[{"download_filetype":"pdf"}]},{"download_file":[{"download_file":"Diodes Inc AH1389 Hall Effect Switch Datasheet"}],"download_filetype":[{"download_filetype":"pdf"}]}] - device_vendor: Diodes Incorporated, Omron Electronics Inc-EMC Div - device_type: AH1389-HK4-7, G6D-1A-ASI DC5 - warranty: 12 months - brand: MikroE - manufacturer: Mikroelektronika d.o.o. - brands: gid://shopify/Metaobject/56256004319 - breadcrumbs: ["gid://shopify/Collection/447955239135","gid://shopify/Collection/241680580797","gid://shopify/Collection/241545969853"] - customhs_code: 847330 - detailed_description: {"type":"root","children":[{"type":"paragraph","children":[{"type":"text","value":"The "},{"type":"text","value":"Hall Switch Click Board™","bold":true,"italic":true},{"type":"text","value":" is a magnetic field activated dual-relay Click board™. The "},{"type":"text","value":"Hall Switch Click Board™","bold":true},{"type":"text","value":" has two high-quality relays, which are activated by the Hall-effect sensor: when the north pole magnetic field is introduced to the sensor, one of the relays will be activated; when the south pole magnetic field is introduced to the sensor, the other relay will be activated. Two high-quality compact relays allow switching of high voltages - up to 220V, so they can cut or establish a connection on the main side of the circuit."}]},{"type":"paragraph","children":[{"type":"text","value":"This allows for the implementation of various applications activated by the magnetic field, such as the contactless switches, door, lids or tray position detecting switches, or other similar applications that require contactless switching of the relay contacts."}]},{"type":"heading","level":3,"children":[{"type":"text","value":"How Does The Hall Switch Click Board™ Work?"}]},{"type":"paragraph","children":[{"type":"text","value":"The main active element of the "},{"type":"text","value":"Hall Switch Click Board™","bold":true},{"type":"text","value":" is the AH1389, an ultra-sensitive dual output unipolar Hall Effect switch, from Diodes Incorporated. This IC utilizes Hall effect - a phenomenon in which the current flow, or rather - the path of the conductor electrons is affected by the magnetic field. Due to the fact that the path of the electrons is curved, a buildup of positive charges is formed on the opposite side of this path, and the voltage is generated. If a voltmeter is connected to the path perpendicular to the current path and the magnetic field, a voltage will be detected."}]},{"type":"paragraph","children":[{"type":"text","value":"The AH1389 has the ability to detect both the north and south poles of the magnetic field. The magnetic field from the south pole magnet will pull the output 2 to a LOW (active) state, while the magnetic field from the north pole magnet will pull the output 1 to a LOW (active) state. The IC features several sections for the signal conditioning. It also provides the hysteresis for the output activation, to avoid erratic triggering. The magnetic field strength which activates outputs is about ±25 G, while the field strength under ±20 G will deactivate outputs, giving a hysteresis of typical 5 G. The positive and negative sign is used with respect to the magnet poles (north pole has a negative sign prefix)."}]},{"type":"paragraph","children":[{"type":"text","value":"The outputs of the AH1389 IC are routed to the operational amplifiers, which work as the inverting comparators. When the output of the AH1389 IC is activated - pulled to a LOW voltage level, the output from the comparator will be set to 5V. This will cause biasing of the BJT, allowing current flow through the relay coil, and thus forming a magnetic field necessary for closing the relay contacts. A Schottky diode across the relay coil prevents the reverse kickback voltage, which forms due to the inert nature of the coils. Activation of the relay coils is indicated by the red and blue LEDs, respectively."}]},{"type":"paragraph","children":[{"type":"text","value":"Two outputs of the AH1389 IC are also routed to the mikroBUS pins: north pole output (1) is routed to the CS pin and the south pole output (2) is routed to the INT pin of the mikroBUS™ so that the status of the IC can be monitored by the MCU."}]},{"type":"paragraph","children":[{"type":"text","value":"Two varistors are used to prevent voltage peaks when the load is connected or disconnected on the relay output contacts. The output contacts are further routed to the screw terminals, which allow up to 10A. However the relays allow up to 5A for 250V AC/30V DC, so the connected load should not exceed these power ratings."}]},{"type":"paragraph","children":[{"type":"text","value":""},{"type":"text","value":"DO NOT TOUCH THE BOARD WHILE THE HIGH VOLTAGE IS APPLIED!"}]},{"type":"paragraph","children":[{"type":"text","value":"Note","bold":true},{"type":"text","value":": Hall Switch click has exposed pins/pads. To stay safe, please take precaution when applying a high voltage to the click. The click is to be used by trained personnel only when operating with hazardous voltage levels."}]},{"type":"heading","level":3,"children":[{"type":"text","value":"SPECIFICATIONS"}]},{"type":"paragraph","children":[{"type":"text","value":"Type\nMagnetic\nApplications\nThe Hall Switch Click Board™ can be used for applications activated by the magnetic field, such as the contactless switches, door, lids or tray position detecting switches, or other similar applications that require contactless switching of the relay contacts\nOn-board modules\nAH1389, an ultra-sensitive dual output unipolar Hall Effect switch, from Diodes Incorporated\nKey Features\nReliable contactless switching by the magnetic field, separate sensors for both south and north pole magnetic fields, high-quality compact OMRON relays, etc.\nInterface\nGPIO\nCompatibility\nmikroBUS\nClick board size\nL (57.15 x 25.4 mm)\nInput Voltage\n3.3V,5V"}]},{"type":"heading","level":3,"children":[{"type":"text","value":"PINOUT DIAGRAM"}]},{"type":"paragraph","children":[{"type":"text","value":"This table shows how the pinout of the "},{"type":"text","value":"Hall Switch Click Board™","bold":true},{"type":"text","value":" corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns)."}]},{"type":"paragraph","children":[{"type":"text","value":"Notes\nPin\nPin\nNotes\nNC\n1\nAN\nPWM\n16\nNC\nNC\n2\nRST\nINT\n15\nS-P\nSouth pole\nNorth pole\nN-P\n3\nCS\nRX\n14\nNC\nNC\n4\nSCK\nTX\n13\nNC\nNC\n5\nMISO\nSCL\n12\nNC\nNC\n6\nMOSI\nSDA\n11\nNC\nPower Supply\n+3V3\n7\n3.3V\n5V\n10\n+5V\nPower Supply\nGround\nGND\n8\nGND\nGND\n9\nGND\nGround"}]},{"type":"heading","level":3,"children":[{"type":"text","value":""},{"type":"text","value":"ONBOARD SETTINGS AND INDICATORS"}]},{"type":"paragraph","children":[{"type":"text","value":"Label\nName\nDefault\nDescription\nLD1\nN\n-\nRelay 1 status LED, lights up when the north magnetic pole is applied\nLD2\nS\n-\nRelay 2 status LED, lights up when the south magnetic pole is applied\nLD3\nPWR\nPWR indication LED"}]},{"type":"heading","level":3,"children":[{"type":"text","value":" "}]}]} - summary:

The Hall Switch Click Board™ is a magnetic field activated dual-relay Click Board™. Hall Switch Click Board™ has two high-quality relays, which are activated by the Hall-effect sensor: when the north pole magnetic field is introduced to the sensor, one of the relays will be activated; when the south pole magnetic field is introduced to the sensor, the other relay will be activated. Two high-quality compact relays allow switching of high voltages - up to 220V, so they can cut or establish a connection on the mains side of the circuit.