跳到主要内容

Grove - Solid State Relay

Grove – Solid State Relay is a non-contact electronic switch module that has relay features. Based on S208T02, it has a maximum output of 250VAC/4A, with a switching speed less than 10ms. This module is equipped with acrylic base and a 3D-printed protection insulation shield, for user’s safety. The featured LED indicates that the relay is on. It can be widely used in various areas such as computer peripheral interfaces, temperature/speed/light adjustment, servo control, petrochemical, medical instrumentations, financial devices, coal, meters, traffic signals, etc.

备注
    This module only works with AC load for the output. If you use DC load, once the relay is turned on, it will always stay on.

Features

  • 3D-printed protection insulation shield
  • Compatible with both 3.3V and 5V control level
  • Low switching latency (≤10ms)
  • LED on-state indicator
  • Featured radiator provide better stability
  • Acrylic base and insulation paper increase safety performance
  • Grove compatible
提示
More details about Grove modules please refer to [Grove System](https://wiki.seeedstudio.com/Grove_System/)

Application Ideas

  • Operations that require low-latency switching, e.g. stage light control
  • Devices that require high stability, e.g. medical devices, traffic signals
  • Situations that require explosion-proof, anticorrosion, moisture-proof, e.g. coal, chemical industries.

Specification

ItemMinTypicalMaxUint
Input Voltage3.03.35.0VDC
Input Current162050mA
Output Voltage-220250VAC
Output Current----4.0A
Operating frequency455065Hz
Operating temperature-252585
Turn-on time--10--ms
Turn-off time--10--ms
Dimension-44x44x32-mm
Net Weight-25.5-g

Interface Function

s
    **1.** If the output voltage is higher than 36V, you need to ensure the module is in the off state before you operate with the screws.

**2.** The heat sink can be in very high temperature, do not touch it during use.

Getting Started

Play With Arduino

备注
If this is the first time you work with Arduino, we strongly recommend you to see [Getting Started with Arduino](https://wiki.seeedstudio.com/Getting_Started_with_Arduino/) before the start.
提示
    This demon works with 220V AC load, please pay attention for your safety.

Materials required

Seeeduino V4.2Base ShieldBulbGrove - Solid State Relay
enter image description hereenter image description hereenter image description here
Get One NowGet One NowUse your own bulb :)Get One Now
备注
**1** Please plug the USB cable gently, otherwise you may damage the port. Please use the USB cable with 4 wires inside, the 2 wires cable can't transfer data. If you are not sure about the wire you have, you can click [here](https://www.seeedstudio.com/Micro-USB-Cable-48cm-p-1475.html) to buy

**2** Each Grove module comes with a Grove cable when you buy. In case you lose the Grove cable, you can click [here](https://www.seeedstudio.com/Grove-Universal-4-Pin-Buckled-20cm-Cable-%285-PCs-pack%29-p-936.html) to buy

Hardwave

  • Step 1. Connect the Grove - Solid State Relay to port D3 of Grove-Base Shield.

  • Step 2. Connect the wire of the bulb to the output port of the Grove - Solid State Relay.

  • Step 3. Plug Grove - Base Shield into Seeeduino.

  • Step 4. Connect Seeeduino to PC via a Micro-USB cable.

备注
If we don't have the base shield, we also can directly connect the Grove-Relay and Grove-Button to Arduino board. Please follow below connection.
Grove - Solid StateArduinoGrove Cable
GNDGNDBlack
VCC5VRed
SIGD3Yellow

Software

  • Step 1. Open the Arduino IDE and copy the following code into a new sketch.
/*
Grove - Solid State Relay Demo Code
The ssr will turn on for 5s and then turn off for 5s, and so on.
https://www.seeedstudio.com
*/

int ssrControlPin = 3;
void setup() {
// initialize the digital pin as an output.
pinMode(ssrControlPin, OUTPUT);
}

void loop() {
digitalWrite(ssrControlPin, HIGH); // set the SSR on
delay(5000); // wait for 5 second
digitalWrite(ssrControlPin, LOW); // set the SSR off
delay(5000); // wait for 5 second
}
  • Step 2. Upload the demo. If you do not know how to upload the code, please check How to upload code.

Done uploading, then you will see the bulb turn on 5s and then turn off 5s continuously.

Play With Raspberry Pi

Hardware

Materials required

Raspberry piGrovePi_PlusGrove-Relay
enter image description hereenter image description here
Get One NowGet One NowGet One Now
  • Step 1. Plug the GrovePi_Plus into Raspberry.

  • Step 2. Connect the Grove-Relay to D4 port of GrovePi_Plus.

  • Step 3. Connect the wire of the bulb to the output port of the Grove - Solid State Relay.

  • Step 4. Connect the Raspberry to PC via USB cable.

Software

If this is the first time you use GrovePi, please do this part step by step. If you are an old friend with GrovePi, you can skip Step1 and Step2.

  • Step 1. Setting Up The Software. In the command line, type the following commands:
备注
 If you are using **Raspberry Pi with Raspberrypi OS >= Bullseye**, you **cannot use this command line**.
sudo curl -kL dexterindustries.com/update_grovepi | bash

sudo reboot
cd /home/pi/Desktop
git clone https://github.com/DexterInd/GrovePi.git

For more detail about this part, please refer to Setting Software.

备注
We firmly suggest you to update the firmware, or for some sensors you may get errors.
  • Step 3. Run the following command to run the demo and get the result.
备注
 If you are using **Raspberry Pi with Raspberrypi OS >= Bullseye**, you have to use this command line **only with Python3**.
cd /home/pi/Desktop/GrovePi/Software/Python/

sudo python3 grove_solid_state_relay.py 

The result should be like:

pi@raspberrypi:~/Desktop/GrovePi/Software/Python$ sudo python3 grove_solid_state_relay.py
on
off
on
off
on
off
on
off
on
off
on
off

If you want to check the code, please type the command below.

nano grove_solid_state_relay.py   # "Ctrl+x" to exit #

The code is:

import time
import grovepi

# Connect the Grove Solid State Relay to digital port D4
# CTR,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"

Test Report


1.Experimental purposes

  • Thermal performance of Grove – Solid State Relay(S208T02).
  • Limit load current of Grove – SSR.
  • Measures to improve the limit load current.

2.Experimental Principle

By recording SSR chip temperature at different current and different time points, analysis the data and draw conclusions.

Figure 1 is screenshot from S208T02 datasheet, we can see that at different heat sink and different temperature, SSR’s current is different.

There needs a temperature sensor to get the temperature of the chip. I use DS18B20 whose detection range is -25-125℃ to meet the requirements.

Figure 2 shows the experimental equipment and installation plans, the temperature sensor is tied to the right side of the heat sink, to make the temperature that 18b20 detects as close as possible to the heat sink temperature, smear between the sensor and the heat sink thermal plastic. Between the heat sink and SSR coated thermal plastic. Therefore, the temperature of the 18b20 is equal to the temperature of SSR.

3.Experimental data

-1min5min10min20minstable time
0.5A31.4033.7534.7535.0015min
1A31.836.7539.640.5618min
2A34.546.648.8851.1320min
3A35.5652.8158.8860.0617min
4A38.0057.8863.8867.0019min
5A44.0066.0073.1275.3719min
备注
1. The unit of temperature in the table is ℃
2. When tested room temperature is 28 ℃

4.Expansion experiment

In order to prove that improve the level of heat sink will improve the SSR limit operating current, I did an expansion experiment.

Cuz I hadn’t a larger heat sink on hand, so I installed a fan (which I take for my PC’s CPU) above the SSR. As shown in Figure 3.

I just test the stable time of different operating current, as shown in Table 2.

-6.0A6.5A7.0A7.5A
Stable time54.44℃57.63℃60.06℃62.38℃

5.Expansion experiment

From the above experimental results, the following conclusions can be drawn:

  • When current is fixed, with the passage of time, the temperature will stabilize at a certain value. This value is related with the current, the current increases, the stable temperature are greater. At 2A, stable temperature will be more that 50 ℃, So, when the SSR work, you should not touch it.

  • Combined with Figure 1 and our data, I consider that the Grove – SSR can operator 4A load current at max.

  • If load current larger than 5A, such as 7A, you should install a fun on it , or other cooling measures, but it’s not recommended.

Schematic Online Viewer

Resources

Tech Support

if you have any technical issue. submit the issue into our forum.


Loading Comments...