Grove - SPDT Relay(30A)

Introduction

The SPDT Relay(30A) is a high quality Single Pole Double Throw Relay(SPDT).The Relay consists of a coil, 1 common terminal, 1 normally closed terminal, and one normally open terminal. When the coil of the relay is at rest (not energized), the common terminal and the normally closed terminal have continuity. When the coil is energized, the common terminal and the normally open terminal have continuity. This relay’s coil is rated up to 5V and the contact is rated up to 30A (@250VAC, 30VDC).You can use it to control high current devices.

Feature


  • High Switching Current
  • SPDT Relay
  • Normally closed relay

Tip

More details about Grove modules please refer to Grove System

Specification


Item Min Typical Max Unit
working Voltage 4.75 5.0 5.25 VDC
Current - 185 - mA
Pull-In Voltage(Max) - 3.75 - VDC
Operation Time(Max) - 15 - ms
Release Time(Max) - 10 - ms
Operating Ambient Temperature -25 - 70 °C

Usage


With Arduino

Why do we want to use a relay and do we really need to? Anytime you want to switch on/off a device which draws more current or works with a high voltage, you’ll need to use a relay. That is to say, the relay is “a high voltage or current switch controlled by low voltage”. The coil of an SPDT relay that we most commonly use draws very little current (the Grove - Relaysupports 10A). Now, with this 30A relay, you can control much more high-current switch devices such as headlights, parking lights, horns, etc.

The SPDT Relay internal structure:

You may see that the common terminal and the normally closed terminal have continuity When the coil of the relay is at rest.

But when the coil is energized, the common terminal and the normally open terminal will have continuity.

Hardware Installation can refer to the following picture:

The coding to control this relay is the same as the Grove - Relay

Good luck to you for controlling your air-condition or washing machine, with Arduino and the Grove - SPDT Relay(30A).

With Raspberry Pi

1.You should have got a raspberry pi and a grovepi or grovepi+.

2.You should have completed configuring the development enviroment, otherwise follow here.

3.Connection - Plug the sensor to grovepi socket D4 by using a grove cable.

4.Navigate to the demos’ directory:

   cd yourpath/GrovePi/Software/Python/

To see the code

   nano grove_spdt_relay.py   # "Ctrl+x" to exit #
import time
import grovepi

# Connect the Grove SPDT Relay to digital port D4
# SIG,NC,VCC,GND
relay = 4

grovepi.pinMode(relay,"OUTPUT")

while True:
    try:
        # switch on for 5 seconds
        grovepi.digitalWrite(relay,1)
        print "on"
        time.sleep(5)

        # switch off for 5 seconds
        grovepi.digitalWrite(relay,0)
        print "off"
        time.sleep(5)

    except KeyboardInterrupt:
        grovepi.digitalWrite(relay,0)
        break
    except IOError:
        print "Error"

5.Run the demo.

   sudo python grove_spdt_relay.py

Resource


Help us make it better

Thank you for choosing Seeed. A couple of months ago we initiated a project to improve our documentation system. What you are looking at now is the first edition of the new documentation system. Comparing to the old one, here is the progresses that we made:

  • Replaced the old documentation system with a new one that was developed from Mkdocs, a more widely used and cooler tool to develop documentation system.
  • Integrated the documentation system with our official website, now you can go to Bazaar and other section like Forum and Community more conveniently.
  • Reviewed and rewrote documents for hundreds of products for the system’s first edition, and will continue migrate documents from old wiki to the new one.

An easy-to-use instruction is as important as the product itself. We are expecting this new system will improve your experience when using Seeed’s products. However since this is the first edition, there are still many things need to improve, if you have any suggestions or findings, you are most welcome to submit the amended version as our contributor or give us suggestions in the survey below, Please don’t forget to leave your email address so that we can reply.

Happy hacking