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]
Rating:
Author: MIKROE
Last Updated: 2019-03-15
Package Version: 1.0.0.1
mikroSDK Library: 1.0.0.0
Category: Relay
Downloaded: 4624 times
Not followed.
License: MIT license
Signal Relay click can be used for ON/OFF control in various devices. It carries four ultra-small GV5-1 PCB relays from Omron and runs on a 5V power supply. Signal Relay click communicates with the target MCU over the following mikroBUS pins: AN, RST, CS and PWM.
Do you want to subscribe in order to receive notifications regarding "Signal Relay click" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "Signal Relay click" changes.
Do you want to report abuse regarding "Signal Relay click".
Library Description
The library covers all the necessary functions to control Signal Relay click board. Signal Relay click
communicates with the target board through the AN, RST, CS and PWM line. This library
offers functions for turning on or off any and every of the four relays on this click board.
Key functions:
void signalrelay_relayOneOff();
- Function turns relay 1 off.The application is composed of three sections:
void applicationTask() { mikrobus_logWrite( " Relay One Turn On ", _LOG_LINE ); signalrelay_relayOneOn(); Delay_ms( 1000 ); mikrobus_logWrite( "-------------------", _LOG_LINE ); mikrobus_logWrite( " Relay Two Turn On ", _LOG_LINE ); signalrelay_relayTwoOn(); Delay_ms( 1000 ); mikrobus_logWrite( "-------------------", _LOG_LINE ); mikrobus_logWrite( "Relay Three Turn On", _LOG_LINE ); signalrelay_relayThreeOn(); Delay_ms( 1000 ); mikrobus_logWrite( "-------------------", _LOG_LINE ); mikrobus_logWrite( " Relay Four Turn On", _LOG_LINE ); signalrelay_relayFourOn(); Delay_ms( 1000 ); mikrobus_logWrite( "-------------------", _LOG_LINE ); mikrobus_logWrite( " Relay One Turn Off", _LOG_LINE ); signalrelay_relayOneOff(); Delay_ms( 1000 ); mikrobus_logWrite( "-------------------", _LOG_LINE ); mikrobus_logWrite( " Relay Two Turn Off", _LOG_LINE ); signalrelay_relayTwoOff(); Delay_ms( 1000 ); mikrobus_logWrite( "-------------------", _LOG_LINE ); mikrobus_logWrite( "Relay Three Turn Off", _LOG_LINE ); signalrelay_relayThreeOff(); Delay_ms( 1000 ); mikrobus_logWrite( "--------------------", _LOG_LINE ); mikrobus_logWrite( " Relay Four Turn Off", _LOG_LINE ); signalrelay_relayFourOff(); Delay_ms( 1000 ); mikrobus_logWrite( "--------------------", _LOG_LINE ); }
Other mikroE Libraries used in the example:
UART
Additional notes and informations
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