# No-Code WipperSnapper IoT Power Switch Outlet

## Overview

![](https://cdn-learn.adafruit.com/assets/assets/000/105/274/medium800thumb/adafruit_io_ezgif.com-gif-maker_%284%29.jpg?1633715625)

Want to turn on and off any device that plugs into a normal outlet? Then this project is for you!

In this project, you'll connect an electronically controlled surge protector with a built-in relay. You'll connect the funhouse to Adafruit IO WipperSnapper and be able to control the device over the internet. Oh, and did I mention that you'll be doing this without having to write any code at all?

## Parts
### Adafruit FunHouse - WiFi Home Automation Development Board

[Adafruit FunHouse - WiFi Home Automation Development Board](https://www.adafruit.com/product/4985)
Home is where the heart is...it's also where we keep all our electronic bits. So why not wire it up with sensors and actuators to turn our house into an electronic wonderland. Whether it's tracking the environmental temperature and humidity in your laundry room, or notifying you when...

Out of Stock
[Buy Now](https://www.adafruit.com/product/4985)
[Related Guides to the Product](https://learn.adafruit.com/products/4985/guides)
![Top-down video of Adafruit Funhouse PCB. The TFT display shows a data readout, and the NeoPixel LEDs glow rainbow colors.](https://cdn-shop.adafruit.com/product-videos/640x480/4985-00.jpg)

### Controllable Four Outlet Power Relay Module version 2

[Controllable Four Outlet Power Relay Module version 2](https://www.adafruit.com/product/2935)
Say goodbye to hazardous high voltage wiring and create the [Internet of Things](https://www.adafruit.com/categories/342) with safe, reliable power control. The **IoT Power Relay** &nbsp;from&nbsp;[Digital...](http://www.digital-loggers.com/iot.html)

Out of Stock
[Buy Now](https://www.adafruit.com/product/2935)
[Related Guides to the Product](https://learn.adafruit.com/products/2935/guides)
![Controllable Four Outlet Power Relay Module](https://cdn-shop.adafruit.com/640x480/2935-13.jpg)

### 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)

### USB Type A to Type C Cable - 1ft - 0.3 meter

[USB Type A to Type C Cable - 1ft - 0.3 meter](https://www.adafruit.com/product/4473)
As technology changes and adapts, so does Adafruit. This&nbsp;&nbsp; **USB Type A to Type C** cable will help you with the transition to USB C, even if you're still totin' around a USB Type A hub, computer or laptop.

USB C is the latest industry-standard connector for...

In Stock
[Buy Now](https://www.adafruit.com/product/4473)
[Related Guides to the Product](https://learn.adafruit.com/products/4473/guides)
![Angled shot of a one-foot-long, black, USB Type A to Type C Cable](https://cdn-shop.adafruit.com/640x480/4473-02.jpg)

# No-Code WipperSnapper IoT Power Switch Outlet

## Wiring

Wiring for this project is very simple. First, remove the green terminal block from the Power Relay.&nbsp;

![adafruit_io_IMG_0501.jpg](https://cdn-learn.adafruit.com/assets/assets/000/105/321/medium640/adafruit_io_IMG_0501.jpg?1633720511)

Then, connect the JST PH wire to the top-most JST PH port on the FunHouse.

![adafruit_io_IMG_0503.jpg](https://cdn-learn.adafruit.com/assets/assets/000/105/306/medium640/adafruit_io_IMG_0503.jpg?1633719567)

After that, plug the white wire into the left terminal and the black wire into the right terminal.

![adafruit_io_IMG_0504.jpg](https://cdn-learn.adafruit.com/assets/assets/000/105/308/medium640/adafruit_io_IMG_0504.jpg?1633719590)

Next, screw them down and put the terminal block back in the Power Relay. Make sure that the terminal block is fully inserted and you can't see the screws.

![adafruit_io_IMG_0507.jpg](https://cdn-learn.adafruit.com/assets/assets/000/105/309/medium640/adafruit_io_IMG_0507.jpg?1633719605)

![adafruit_io_IMG_0508.jpg](https://cdn-learn.adafruit.com/assets/assets/000/105/310/medium640/adafruit_io_IMG_0508.jpg?1633719629)

![adafruit_io_IMG_0509.jpg](https://cdn-learn.adafruit.com/assets/assets/000/105/311/medium640/adafruit_io_IMG_0509.jpg?1633719636)

Finally, plug your FunHouse into the wall or into the outlet of the power switch that is 'Always ON.'

![adafruit_io_ezgif.com-gif-maker_(6).gif](https://cdn-learn.adafruit.com/assets/assets/000/105/370/medium640thumb/adafruit_io_ezgif.com-gif-maker_%286%29.jpg?1634050006)

![](https://cdn-learn.adafruit.com/assets/assets/000/105/376/medium800/adafruit_io_IMG_0545.jpg?1634061068)

# No-Code WipperSnapper IoT Power Switch Outlet

## WipperSnapper Setup

Now that you've wired everything up and added your board to WipperSnapper, it's time to set the device itself up.

The very first thing you'll want to do is make sure that the device is online. Make sure that the box next to the device name is green and says 'Online.'

![adafruit_io_Screenshot_2021-10-08_15-19-30.png](https://cdn-learn.adafruit.com/assets/assets/000/105/367/medium640/adafruit_io_Screenshot_2021-10-08_15-19-30.png?1634048296)

From the device page, click&nbsp; **+ New Component**.

![adafruit_io_Screenshot_2021-10-08_15-19-30.png](https://cdn-learn.adafruit.com/assets/assets/000/105/333/medium640/adafruit_io_Screenshot_2021-10-08_15-19-30.png?1633721562)

Then, click on the&nbsp; **Power Switch**.

![adafruit_io_Screenshot_2021-10-08_15-22-08.png](https://cdn-learn.adafruit.com/assets/assets/000/105/334/medium640/adafruit_io_Screenshot_2021-10-08_15-22-08.png?1633721591)

Call it whatever you want. I chose to call it switch, but anything else should work as well. Finally, set **Power Switch Tail**** &nbsp;Pin **to** D17.**

![adafruit_io_Screenshot_2021-10-08_15-26-57.png](https://cdn-learn.adafruit.com/assets/assets/000/105/335/medium640/adafruit_io_Screenshot_2021-10-08_15-26-57.png?1633721619)

## Project Usage

Now, click on the toggle switch and as you turn it on and off, you should hear a click from the relay and see the electronic device you've plugged in turn on and off.

![](https://cdn-learn.adafruit.com/assets/assets/000/105/368/medium800thumb/adafruit_io_ezgif.com-gif-maker_%284%29.jpg?1634048441)


## Featured Products

### Adafruit FunHouse - WiFi Home Automation Development Board

[Adafruit FunHouse - WiFi Home Automation Development Board](https://www.adafruit.com/product/4985)
Home is where the heart is...it's also where we keep all our electronic bits. So why not wire it up with sensors and actuators to turn our house into an electronic wonderland. Whether it's tracking the environmental temperature and humidity in your laundry room, or notifying you when...

Out of Stock
[Buy Now](https://www.adafruit.com/product/4985)
[Related Guides to the Product](https://learn.adafruit.com/products/4985/guides)
### Controllable Four Outlet Power Relay Module version 2

[Controllable Four Outlet Power Relay Module version 2](https://www.adafruit.com/product/2935)
Say goodbye to hazardous high voltage wiring and create the [Internet of Things](https://www.adafruit.com/categories/342) with safe, reliable power control. The **IoT Power Relay** &nbsp;from&nbsp;[Digital...](http://www.digital-loggers.com/iot.html)

Out of Stock
[Buy Now](https://www.adafruit.com/product/2935)
[Related Guides to the Product](https://learn.adafruit.com/products/2935/guides)
### 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)
### USB Type A to Type C Cable - 1ft - 0.3 meter

[USB Type A to Type C Cable - 1ft - 0.3 meter](https://www.adafruit.com/product/4473)
As technology changes and adapts, so does Adafruit. This&nbsp;&nbsp; **USB Type A to Type C** cable will help you with the transition to USB C, even if you're still totin' around a USB Type A hub, computer or laptop.

USB C is the latest industry-standard connector for...

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

## Related Guides

- [Adafruit FunHouse](https://learn.adafruit.com/adafruit-funhouse.md)
- [No-Code WipperSnapper Action Counter](https://learn.adafruit.com/no-code-wippersnapper-action-counter.md)
- [Motion Activated Outlet with the Adafruit FunHouse](https://learn.adafruit.com/motion-activated-outlet-with-the-adafruit-funhouse.md)
- [Hang out your washing reminder - Adafruit IO + Vibration switch](https://learn.adafruit.com/hang-out-your-washing-reminder-adafruit-io-vibration-switch.md)
- [FunHouse Motion Detecting Lights with LIFX Bulbs](https://learn.adafruit.com/funhouse-motion-detecting-lighting-for-lifx-bulbs.md)
- [Karel The Robot In CircuitPython](https://learn.adafruit.com/karel-the-robot-in-circuitpython.md)
- [Creating FunHouse Projects with CircuitPython](https://learn.adafruit.com/creating-funhouse-projects-with-circuitpython.md)
- [FunHouse 3D Printed Stand](https://learn.adafruit.com/funhouse-3d-printed-stand.md)
- [Using the Adafruit FunHouse with Home Assistant](https://learn.adafruit.com/using-the-adafruit-funhouse-with-home-assistant.md)
- [Track a Turtle with WipperSnapper](https://learn.adafruit.com/track-a-turtle-with-wippersnapper.md)
- [Quickstart: Adafruit IO WipperSnapper ](https://learn.adafruit.com/quickstart-adafruit-io-wippersnapper.md)
- [CircuitPython Web Workflow Code Editor Quick Start](https://learn.adafruit.com/getting-started-with-web-workflow-using-the-code-editor.md)
- [No-Code Room Occupancy Status ](https://learn.adafruit.com/no-code-room-occupancy-status.md)
- [FunHouse Mail Slot Detector](https://learn.adafruit.com/funhouse-mail-slot-detector.md)
- [Funhouse Door Alert with Email Notification](https://learn.adafruit.com/funhouse-door-alert-email-notification.md)
- [FunHouse IoT Fume Extractor and Air Quality Sensor](https://learn.adafruit.com/funhouse-fume-extractor-iot-air-quality-sensor.md)
