Hall Switch Click Board
Hall Switch Click Board
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.
Software Support
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:
- System Initialization - Initializes CS pin and INT pin as OUTPUT.
- Application Initialization - Initializes Driver init and turn OFF S pole and N pole.
- Application Task - (code snippet) - Turns S and N on and off every 500 ms.
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.
Hall Switch Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.