Ben Jones
Published

DIY Relay Outlet Arduino

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

Full instructions provided23,829
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

Ben Jones

6 projects • 10 followers
I make cool stuff
Contact
Thanks to Kevin MacLeod.

Comments