Grove - SPDT Relay(30A)
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.
- High Switching Current
- SPDT Relay
- Normally closed relay
More details about Grove modules please refer to Grove System
|Operating Ambient Temperature||-25||-||70||°C|
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:
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
Help us make it better
Welcome to the new documentation system of Seeed Studio. We have made a lot of progress comparing to the old wiki system and will continue to improve it to make it more user friendly and helpful. The improvement can't be done without your kindly feedback. If you have any suggestions or findings, you are most welcome to submit the amended version as our contributor via Github or give us suggestions in the survey below, it would be more appreciated if you could leave your email so that we can reply to you. Happy Hacking!