# Adafruit STEMMA Non-Latching Mini Relay

## Overview

![](https://cdn-learn.adafruit.com/assets/assets/000/083/274/medium800thumb/adafruit_products_4409.jpg?1572457133)

STEMMA plug-and-play parts make your next project solder-free! This is the **STEMMA Non-Latching Mini Relay**.&nbsp;It gives you power to control, and control over power. Put simply, you can now turn on and off lamps, fans, solenoids, and other small appliances that run on up to 250VAC or DC power using any microcontroller or microcomputer, with ease.

![](https://cdn-learn.adafruit.com/assets/assets/000/083/124/medium800/adafruit_products_STEMMA_Relay_top.jpg?1572278798)

No worrying about flyback diodes, level shifting, pin protection. The STEMMA board takes care of all that for you. You can use it with any 3V or 5V microcontroller/microcomputer.&nbsp; [To use with a breadboard, Raspberry Pi or Arduino](https://www.adafruit.com/?q=jst%203-pin%20header%20cable), pair with a JST 3-pin to breadboard cable. If you want to [use with a Circuit Playground or micro:bit, we have a cable with alligator clips](https://www.adafruit.com/product/4030).

![](https://cdn-learn.adafruit.com/assets/assets/000/083/125/medium800/adafruit_products_STEMMA_Relay_STEMMA_side.jpg?1572278807)

- This&nbsp; board has a single **Signal** pin (the white wire). Normally, the relay's **COM** &nbsp;pin is connected mechanically to the&nbsp; **NC** &nbsp;pin and the&nbsp; **NO&nbsp;** pin is disconnected.
- When the **Signal** pin is pulled high, the relay switches and the internal switch changes so that the&nbsp; **COM** pin is mechanically connected to the&nbsp; **NO** &nbsp;pin and&nbsp; **NC** &nbsp;is then disconnected
- When the relay is active, a red LED is lit, and about 50mA of current from the red power wire is used to keep the coil switched on. Note, if power is lost, the relay will go back 'open'.
- The connects for the relay are the white tubular thing at the far end of the PCB. You can poke wire into the holes, they will automatically grip onto wire that is 24AWG to 18AWG. Once you poke the wire in, give it a light pull to verify its clamped. To release the wire, use a thin screwdriver or pen to press on the button on the top while pulling the wire out.

![](https://cdn-learn.adafruit.com/assets/assets/000/083/126/medium800/adafruit_products_STEMMA_Relay_Relay_side.jpg?1572278821)

You can switch up to 2A of resistive current at 30VDC or ~40VAC or lower. At 110VDC you can switch up to 0.6A, at 120VAC up to 0.5A, and at 250VAC you can switch up to 0.3A. Check the datasheet for the relay for the exact switching capacity, and of course, for reactive/inductive loads you will need to de-rate. This isn't a relay you can use to turn on and off your washer/dryer, stick to 60W or less.

![](https://cdn-learn.adafruit.com/assets/assets/000/083/128/medium800/adafruit_products_STEMMA_Relay_top_angle.jpg?1572278883)

Each STEMMA board comes with a fully assembled and tested PCB but no cable. No soldering is required to use it. There's an optional second switch on the side of the PCB, [if you get a 3-pin terminal block](https://www.adafruit.com/product/725) you can solder that in place, but its optional.

![](https://cdn-learn.adafruit.com/assets/assets/000/083/129/medium800/adafruit_products_STEMMA_Relay_back.jpg?1572278898)

 **Please note:** &nbsp;If using with high voltages (\> 24V) use care and common sense! High voltages require experience, and are only for use by engineers who are comfortable with guidelines and know how to use safely!

# Adafruit STEMMA Non-Latching Mini Relay

## Pinouts

![](https://cdn-learn.adafruit.com/assets/assets/000/083/130/medium800/adafruit_products_STEMMA_Relay_pinouts_top.jpg?1572279285)

This board has two connectors, one on either side and a space for an optional third. Let's take a look!

- **STEMMA connector** - on the left side, the black connector is the STEMMA connector. Compatible with 3-pin JST STEMMA cables.

You can use any of these cables - they are JST PH 2.0mm connectors

- **Red** goes to 3 to 5V DC power (this is used to power the transistor that turns on the relay, _not_ to the output of the relay)
- **Black** goes to power/signal ground on your microcontroller or device
- **White** goes to 3 to 5V signal. The signal is amplified on the relay board so it does not have to be a powerful pin

### STEMMA JST PH 2mm 3-Pin to Male Header Cable - 200mm

[STEMMA JST PH 2mm 3-Pin to Male Header Cable - 200mm](https://www.adafruit.com/product/3893)
This cable will let you turn a JST PH 3-pin cable port into 3 individual wires with high-quality 0.1" male header plugs on the end. We're carrying these to match up with our Hallowing, for extending and connecting sensors or LEDs - and the wires are even color coded!

<a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/3893)
[Related Guides to the Product](https://learn.adafruit.com/products/3893/guides)
![Angled shot of STEMMA JST PH 3-Pin to Male Header Cable - 200mm.](https://cdn-shop.adafruit.com/640x480/3893-03.jpg)

### STEMMA JST PH 2mm 3-Pin to Female Socket Cable - 200mm

[STEMMA JST PH 2mm 3-Pin to Female Socket Cable - 200mm](https://www.adafruit.com/product/3894)
This cable will let you turn a JST PH 3-pin cable port into 3 individual wires with high-quality 0.1" female header sockets on the end. We're carrying these to match up with our Hallowing, for extending and connecting sensors or LEDs - and the wires are even color coded!

<a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/3894)
[Related Guides to the Product](https://learn.adafruit.com/products/3894/guides)
![Angled shot of STEMMA JST PH 3-Pin to Female Header Cable - 200mm.](https://cdn-shop.adafruit.com/640x480/3894-03.jpg)

### JST PH 2mm 3-pin Plug to Color Coded Alligator Clips Cable

[JST PH 2mm 3-pin Plug to Color Coded Alligator Clips Cable](https://www.adafruit.com/product/4030)
This cable will let you turn a JST PH 3-pin cable port into 3 individual wires with grippy mini alligator clips. We're carrying these to match up with any of our boards or breakouts with 3-pin 'STEMMA' connectors on them such as the&nbsp;<a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/4030)
[Related Guides to the Product](https://learn.adafruit.com/products/4030/guides)
![Angled shot of JST PH 3-pin Plug to Color Coded Alligator Clips Cable.](https://cdn-shop.adafruit.com/640x480/4030-04.jpg)

### JST PH 2mm 3-pin Plug-Plug Cable - 100mm long

[JST PH 2mm 3-pin Plug-Plug Cable - 100mm long](https://www.adafruit.com/product/4336)
This cable is a little over 100mm / 4" long&nbsp;and fitted with JST-PH 3-pin connectors on either end.&nbsp;

We dig the solid and compact nature of these connectors and the latch that keeps the cable from coming apart easily. We're carrying these to <a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/4336)
[Related Guides to the Product](https://learn.adafruit.com/products/4336/guides)
![Angled shot of JST PH 3-pin Plug-Plug Cable - 100mm long.](https://cdn-shop.adafruit.com/640x480/4336-01.jpg)

- **Relay** - Located in the center of the board.
- **Terminal block** - The connects for the relay are the white tubular thing at the far end of the PCB. You can poke wire into the holes, they will automatically grip onto wire that is 24AWG to 18AWG. Once you poke the wire in, give it a light pull to verify its clamped. To release the wire, use a thin screwdriver or pen to press on the button on the top while pulling the wire out.

![](https://cdn-learn.adafruit.com/assets/assets/000/083/141/medium800/adafruit_products_STEMMA_Relay_pinouts_back.jpg?1572301932)

This&nbsp; board has a single **Signal** pin (the white wire). Normally, the relay's **COM** &nbsp;pin is connected mechanically to the&nbsp; **NC** &nbsp;pin and the&nbsp; **NO&nbsp;** pin is disconnected.

When the **Signal** pin is pulled high, the relay switches and the internal switch changes so that the&nbsp; **COM** pin is mechanically connected to the&nbsp; **NO** &nbsp;pin and&nbsp; **NC** &nbsp;is then disconnected

- **LED** - Status LED, located below the STEMMA connector.
- **Optional terminal block** - Connect a 3-pin terminal block to this optional spot to add another switch

# Adafruit STEMMA Non-Latching Mini Relay

## Usage

It's easy to use the STEMMA Non-Latching Mini Relay to control power. This page will show you how to wire up the breakout board and use simple code to turn the relay on and off.

# Wiring

Use a STEMMA cable to connect the relay board to you project. The following is an example of the relay board connected to a Circuit Playground Bluefruit using the [STEMMA-to-alligator-clip cable](https://www.adafruit.com/product/4030).

- Plug the **3-pin JST to alligator clip cable** into the **3-pin JST connector** on the STEMMA Relay
- **Connect the white alligator clip** to **A1**
- **Connect the black alligator clip** to **GND**
- **Connect the red alligator clip** to **3.3v**

![adafruit_products_STEMMA_Relay_CPB_bb.png](https://cdn-learn.adafruit.com/assets/assets/000/083/232/medium640/adafruit_products_STEMMA_Relay_CPB_bb.png?1572384009)

# Circuit Playground Bluefruit Example

This example uses CircuitPython. If you're not already using CircuitPython, check out [the Circuit Playground Bluefruit guide](https://learn.adafruit.com/adafruit-circuit-playground-bluefruit/circuitpython) for information on how to install and use CircuitPython on your device.

This example switches the relay once every second.

Save the following example as **code.py** on your **CIRCUITPY** drive:

https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/main/Adafruit_STEMMA_Relay/code.py

Danger: 

This board has a single **Signal** pin (the white wire). Normally, the relay's **COM** &nbsp;pin is connected mechanically to the&nbsp; **NC** &nbsp;pin and the&nbsp; **NO&nbsp;** pin is disconnected.

When the **Signal** pin is pulled high, the relay switches and the internal switch changes so that the&nbsp; **COM** pin is mechanically connected to the&nbsp; **NO** &nbsp;pin and&nbsp; **NC** is then disconnected.

When the relay is active, a red LED is lit, and about 50mA of current from the red power wire is used to keep the coil switched on. Note, if power is lost, the relay will go back 'open'.

The connects for the relay are the white tubular thing at the far end of the PCB. You can poke wire into the holes, they will automatically grip onto wire that is 24AWG to 18AWG. Once you poke the wire in, give it a light pull to verify its clamped. To release the wire, use a thin screwdriver or pen to press on the button on the top while pulling the wire out.

That's all there is to using the STEMMA non-latching mini relay with the Circuit Playground Bluefruit!

![](https://cdn-learn.adafruit.com/assets/assets/000/083/247/medium800thumb/adafruit_products_STEMMA_Relay_gif.jpg?1572385618)

# Adafruit STEMMA Non-Latching Mini Relay

## Downloads

## Files

- [Nexem EE2 relay datasheet](http://www.worldproducts.com/pdfs/NEXEM/NEXEM-MiniatureRelayCatalog.pdf)
- [EagleCAD PCB files on GitHub](https://github.com/adafruit/Adafruit-STEMMA-Non-Latching-Mini-Relay-PCB)
- [Fritzing object in the Adafruit Fritzing Library](https://github.com/adafruit/Fritzing-Library/blob/master/parts/Adafruit%20STEMMA%20Non-Latching%20Relay%20Breakout.fzpz)

# Fab Print
![](https://cdn-learn.adafruit.com/assets/assets/000/083/200/medium800/adafruit_products_STEMMA_Relay_Fab_Print.png?1572375519)

# Schematic
![](https://cdn-learn.adafruit.com/assets/assets/000/083/201/medium800/adafruit_products_STEMMA_Relay_Sch.png?1572375567)


## Primary Products

### Adafruit STEMMA Non-Latching Mini Relay - JST PH 2mm

[Adafruit STEMMA Non-Latching Mini Relay - JST PH 2mm](https://www.adafruit.com/product/4409)
STEMMA plug-and-play parts make your next project soldering-free! This is&nbsp;the **STEMMA Non-Latching Mini Relay**.&nbsp;It gives you power to control, and control over power. Put simply, you can now turn on and off lamps, fans, solenoids, and other small appliances that run on...

In Stock
[Buy Now](https://www.adafruit.com/product/4409)
[Related Guides to the Product](https://learn.adafruit.com/products/4409/guides)

## Featured Products

### STEMMA JST PH 2mm 3-Pin to Male Header Cable - 200mm

[STEMMA JST PH 2mm 3-Pin to Male Header Cable - 200mm](https://www.adafruit.com/product/3893)
This cable will let you turn a JST PH 3-pin cable port into 3 individual wires with high-quality 0.1" male header plugs on the end. We're carrying these to match up with our Hallowing, for extending and connecting sensors or LEDs - and the wires are even color coded!

<a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/3893)
[Related Guides to the Product](https://learn.adafruit.com/products/3893/guides)
### STEMMA JST PH 2mm 3-Pin to Female Socket Cable - 200mm

[STEMMA JST PH 2mm 3-Pin to Female Socket Cable - 200mm](https://www.adafruit.com/product/3894)
This cable will let you turn a JST PH 3-pin cable port into 3 individual wires with high-quality 0.1" female header sockets on the end. We're carrying these to match up with our Hallowing, for extending and connecting sensors or LEDs - and the wires are even color coded!

<a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/3894)
[Related Guides to the Product](https://learn.adafruit.com/products/3894/guides)
### JST PH 2mm 3-pin Plug to Color Coded Alligator Clips Cable

[JST PH 2mm 3-pin Plug to Color Coded Alligator Clips Cable](https://www.adafruit.com/product/4030)
This cable will let you turn a JST PH 3-pin cable port into 3 individual wires with grippy mini alligator clips. We're carrying these to match up with any of our boards or breakouts with 3-pin 'STEMMA' connectors on them such as the&nbsp;<a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/4030)
[Related Guides to the Product](https://learn.adafruit.com/products/4030/guides)
### JST PH 2mm 3-pin Plug-Plug Cable - 100mm long

[JST PH 2mm 3-pin Plug-Plug Cable - 100mm long](https://www.adafruit.com/product/4336)
This cable is a little over 100mm / 4" long&nbsp;and fitted with JST-PH 3-pin connectors on either end.&nbsp;

We dig the solid and compact nature of these connectors and the latch that keeps the cable from coming apart easily. We're carrying these to <a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/4336)
[Related Guides to the Product](https://learn.adafruit.com/products/4336/guides)

## Related Guides

- [No-Code Room Occupancy Status ](https://learn.adafruit.com/no-code-room-occupancy-status.md)
- [Fog Machine with Motion Sensor and Adafruit IO](https://learn.adafruit.com/fog-machine-remote-trigger.md)
- [No-Code WipperSnapper Summoning Horn](https://learn.adafruit.com/adafruit-io-wippersnapper-summoning-horn.md)
- [Adafruit MSA301 Triple Axis Accelerometer](https://learn.adafruit.com/msa301-triple-axis-accelerometer.md)
- [Adafruit DotStar FeatherWing](https://learn.adafruit.com/adafruit-dotstar-featherwing-adafruit.md)
- [Adafruit TMP117 High Accuracy I2C Temperature Monitor](https://learn.adafruit.com/adafruit-tmp117-high-accuracy-i2c-temperature-monitor.md)
- [Adafruit Terminal PiCowbell for Pico](https://learn.adafruit.com/adafruit-terminal-picowbell-for-pico.md)
- [NeoPixel Light Slate](https://learn.adafruit.com/neopixel-light-slate.md)
- [Adafruit Audio BFF](https://learn.adafruit.com/adafruit-audio-bff.md)
- [Adafruit Feather RP2350 with HSTX](https://learn.adafruit.com/adafruit-feather-rp2350.md)
- [Adafruit CAN Bus BFF](https://learn.adafruit.com/adafruit-can-bus-bff.md)
- [Bluefruit "BlueFoot" Wireless Foot Switch](https://learn.adafruit.com/bluefruit-bluetooth-wireless-foot-pedal-switch.md)
- [Tri-Layer Mini Round Robot Chassis Kit](https://learn.adafruit.com/tri-layer-mini-round-robot-chassis-kit.md)
- [Adafruit Prototyping Pi Plate](https://learn.adafruit.com/adafruit-prototyping-pi-plate.md)
- [Adafruit Qwiik/STEMMA QT 5 Port Hub](https://learn.adafruit.com/qwiik-stemma-qt-5-port-hub.md)
