{"product_id":"sparkfun-mikroe-hall-switch-2-click","title":"SparkFun MIKROE Hall Switch 2 Click","description":"\u003cp\u003eMIKROE Hall Switch 2 Click is a compact add-on board that represents a magnetic field-activated dual-relay Click boardÃ¢â��Â¢. This board features the MHA100KN, a high-performance, low-power Hall-Effect sensor from MEMSIC. This Hall switch is a fully integrated CMOS IC that outputs a high-low signal following magnetic field changing. It works with a magnet and detects the magnet's close\/away position. Two high-quality compact relays allow switching of high voltages and can cut or establish a connection on the main side of the circuit. This Click boardÃ¢â��Â¢ is suitable for various applications activated by the magnetic field, such as contactless switches, lids or tray position detecting switches, or other similar applications that require contactless switching of the relay contacts.\u003c\/p\u003e \u003cp\u003eHall Switch 2 Click is supported by a mikroSDK compliant library, which includes functions that simplify software development.\u003c\/p\u003e \u003cp\u003eHall Switch 2 Click as its foundation uses the MHA100KN, a high-performance, low-power Hall-Effect sensor from MEMSIC. This Click boardÃ¢â��Â¢ detects the presence and magnitude of a magnetic field using the Hall effect. It consists of two high-quality relays, which the MHA100KN activates. When the north pole magnetic field is introduced to the sensor, one of the relays will be activated; otherwise, the other relay will be activated.\u003c\/p\u003e \u003cp\u003eThe outputs of the MHA100KN are routed to the LM358 operational amplifier, which works as the inverting comparators. When the output of the MHA100KN is activated, pulled to a low logic level, the output from the comparator will be set to 5V, which will cause biasing of the BJTs, 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 coils prevents the reverse kickback voltage, which forms due to the inert nature of the coils.\u003c\/p\u003e \u003cp\u003eHall Switch 2 Click communicates with MCU using two GPIO pins labeled S and N. The north pole output is routed to the CS pin, while the south pole output is routed to the INT pin of the mikroBUSÃ¢â��Â¢ socket so that the MCU can monitor the status of the MHA100KN. Activation of the relay coils is also visually indicated by the yellow and red LEDs, respectively.\u003c\/p\u003e \u003cp\u003eTwo varistors VR1 and VR2, are used to prevent voltage peaks when the load is connected or disconnected on the relay output contacts. However, the relays allow up to 5A for 250VAC \/ 30VDC, so the connected load should not exceed these power r0atings.\u003c\/p\u003e \u003cp\u003eThis Click boardÃ¢â��Â¢ can operate with both 3.3V and 5V logic voltage levels selected via the VCC SEL jumper. This way, it allows both 3.3V and 5V capable MCUs to use the communication lines properly. However, the Click boardÃ¢â��Â¢ comes equipped with a library containing easy-to-use functions and an example code that can be used, as a reference, for further development.\u003c\/p\u003e \u003cp\u003e\u003cstrong\u003eFeatures:\u003c\/strong\u003e\u003c\/p\u003e \u003cul\u003e \u003cli\u003eInterface: GPIO\u003c\/li\u003e \u003cli\u003eCompatibility: mikroBUSÃ¢â��Â¢\u003c\/li\u003e \u003cli\u003eDimensions: 57.15 x 25.4mm\u003c\/li\u003e \u003cli\u003eInput Voltage: 3.3V or 5V\u003c\/li\u003e \u003cli\u003eMaximum Output Current: 5A\u003c\/li\u003e \u003cli\u003eOperating Temperature Range: Min. -40Ã�Â°C, Typ. +25Ã�Â°C, Max. +85Ã�Â°C\u003c\/li\u003e \u003c\/ul\u003e \u003cp\u003e\u003cstrong\u003eDocuments:\u003c\/strong\u003e\u003c\/p\u003e \u003cul\u003e \u003cli\u003e\u003ca href=\"https:\/\/cdn.sparkfun.com\/assets\/e\/d\/5\/4\/5\/Schematic-19176-Hall_Switch_2_Click.PDF\"\u003eSchematic\u003c\/a\u003e\u003c\/li\u003e \u003cli\u003e\u003ca href=\"https:\/\/cdn.sparkfun.com\/assets\/8\/0\/9\/0\/6\/MHA100KN_Datasheet.pdf\"\u003eMHA100KN Datasheet\u003c\/a\u003e\u003c\/li\u003e \u003cli\u003e\u003ca href=\"https:\/\/www.mikroe.com\/mikrosdk\"\u003emikroSDK\u003c\/a\u003e\u003c\/li\u003e \u003cli\u003e\u003ca href=\"https:\/\/github.com\/MikroElektronika\/mikrosdk_click_v2\/tree\/master\/clicks\/hallswitch2\"\u003eGitHub\u003c\/a\u003e\u003c\/li\u003e \u003c\/ul\u003e \u003cp\u003e\u003cstrong\u003eVideos\u003c\/strong\u003e\u003c\/p\u003e \u003cdiv class=\"flex-video-wrap clearfix\"\u003e \u003cdiv class=\"flex-video widescreen img\"\u003e \u003ciframe src=\"https:\/\/www.youtube.com\/embed\/zzlh1oGii1Q\/?autohide=1\u0026amp;border=0\u0026amp;wmode=opaque\u0026amp;enablejsapi=1\" frameborder=\"0\" allowfullscreen width=\"560\" height=\"315\"\u003e\u003c\/iframe\u003e \u003c\/div\u003e \u003c\/div\u003e","brand":"sparkfun-10","offers":[{"title":"Default Title","offer_id":40054696018005,"sku":"19176:SEN-19176:spark","price":4480.0,"currency_code":"INR","in_stock":false}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/1034\/1611\/products\/19176_-_Hall_Switch_2_Click_2.jpg?v=1651343347","url":"https:\/\/www.tanotis.com\/products\/sparkfun-mikroe-hall-switch-2-click","provider":"Tanotis","version":"1.0","type":"link"}