You have reached the legacy GHI Electronics, LLC website, for the new website please visit here. For the new forum please visit here.

Relay X1 Module

This document is obsolete.

Last modified September 9, 2014

OUT OF DATE DOCUMENTATION

Much of this document has been superseded. Additional information can be found in the Gadgeteer source code repository.

Relay X1 Module

Required

Tutorials: First Gadgeteer Projectnamespaces

Warning

This module may be connected to high voltages or high levels of electrical current. Observe extreme caution when wiring circuits, especially to the power grid. Hire an electrician if you are not sure of what you are doing.

Introduction

The Relay X1 module is capable of switching 10 Amps at 250 Volts AC or 30 Volts DC. Both “Normally Open” and “Normally Closed” terminals are provided. An LED is provided on board to indicate On/Off status.

Example 1: Turning the Relay On and Off

The relay may be activated in two ways: through a Get/Set property called Enabled or through the method calls TurnOn() and TurnOff(). The Enabled property can be used to query the status of the relay.

// Edit History:
//   BP (Blue Hair Bob) 2/20/2014 created
// versions:
// GHI Electronics SDK Package NETMF and Gadgeteering 2014 R1
// NETMF  4.2, Gadgeteer Core v2.43.800
//
using System.Threading;
using Microsoft.SPOT;



namespace Relay_X1_Dev_Guide_Demo
{
    public partial class Program
    {
        // This method is run when the mainboard is powered up or reset.   
        void ProgramStarted()
        {
            Debug.Print("Program Started");

            relay_X1.Enabled = true;
            Thread.Sleep(2000);

            relay_X1.Enabled = false;
            Thread.Sleep(2000);

            relay_X1.TurnOn();
            Thread.Sleep(2000);

            relay_X1.TurnOff();
            Debug.Print("Relay Enabled: " + relay_X1.Enabled.ToString());

        }
    }
}

big Thank you to Forum Member "Blue Hair Bob" for his contribution of this document.

Leave feedback about this document.
Let us know if the information presented here was accurate, helpful and if you have any suggestions.
Leave feedback about this document.
Let us know if the information presented here was accurate, helpful and if you have any suggestions.

* Indicates required fields.
This form is only for feedback not support.
Review our how to find information guide on locating helpful resources.