Project tutorial
DIY Relay Outlet Arduino

DIY Relay Outlet Arduino

Control a wall outlet using an Arduino using this DIY solid state relay outlet.

  • 27,533 views
  • 18 comments
  • 37 respects

Components and supplies

About this project

Build Video

About

This video shows you how to build a solid state relay outlet to control a variety of high power devices.

If you are not comfortable working with mains electricity do not attempt this build. I take no responsibility for any damage done to you or your home.

Programming Arduino

Code

RandomBlink.ino
Code

Warning: Embedding code files within the project story has been deprecated. To edit this file or add more files, go to the "Software" tab. To remove this file from the story, click on it to trigger the context menu, then click the trash can button (this won't delete it from the "Software" tab).

int led = 13;

void setup() {
  pinMode(led, OUTPUT);     
}

void loop() {
  digitalWrite(led, HIGH);
  delay(random(100, 1000));
  digitalWrite(led, LOW);
  delay(random(100, 1000));
}

Code

RandomBlink.inoJava
RandomBlink.ino
int led = 13;

void setup() {
  pinMode(led, OUTPUT);     
}

void loop() {
  digitalWrite(led, HIGH);
  delay(random(100, 1000));
  digitalWrite(led, LOW);
  delay(random(100, 1000));
}

Comments

Similar projects you might like

DIY Relay Module

Project tutorial by suhail jr

  • 8,068 views
  • 2 comments
  • 11 respects

DIY Arduino Oscilloscope

by Ameduino

  • 2,918 views
  • 3 comments
  • 18 respects

DIY Logic Analyzer

Project tutorial by Vincenzo G.

  • 24,878 views
  • 31 comments
  • 33 respects

DIY Flight Instruments for Horizon and Compass

Project tutorial by Aritro Mukherjee

  • 23,492 views
  • 15 comments
  • 54 respects

DIY Anemometer: Wind Speed Sensor Device

Project tutorial by Achindra Bhatnagar

  • 12,709 views
  • 10 comments
  • 45 respects
Add projectSign up / Login