Ben Jones
Published

DIY Relay Outlet Arduino

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

Full instructions provided32,744
DIY Relay Outlet Arduino

Things used in this project

Story

Read more

Code

RandomBlink.ino

Java
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));
}

Credits

Ben Jones
6 projects • 16 followers
I make cool stuff
Contact
Thanks to Kevin MacLeod.

Comments

Please log in or sign up to comment.