Project tutorial

DIY Relay Outlet Arduino

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

  • 20,919 views
  • 16 comments
  • 24 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

Author

Makerguide
Ben Jones
  • 1 project
  • 9 followers

Additional contributors

Published on

December 21, 2013

Members who respect this project

K6ebqf eBoba fett2Default  ?auto=compress%2cformat&w=60&h=60&fit=minDefaultDefaultDefault  ?auto=compress%2cformat&w=60&h=60&fit=min

and 16 others

See similar projects
you might like

Similar projects you might like

Unlock your door with a knock

Project tutorial by Ashraf Nabil

  • 16,055 views
  • 10 comments
  • 52 respects

Uber Home Automation

Project in progress by Eric Tsai

  • 26,631 views
  • 3 comments
  • 114 respects

Magoo

Project in progress by 4 developers

  • 5,521 views
  • 12 comments
  • 27 respects

Arduino to Excel using V-USB

Project tutorial by Ray Burnette

  • 33,553 views
  • 6 comments
  • 34 respects

Magic Morse on Arduino

Project tutorial by Ray Burnette

  • 19,977 views
  • 7 comments
  • 25 respects

Track and Control Your Car Remotely

Project tutorial by Ashraf Nabil

  • 14,107 views
  • 3 comments
  • 44 respects
Add projectSign up / Login