Shawn hymel
Published © CC BY

Hack Your Home Part 1: Intro to Home Automation

Add some smarts to your home by controlling AC appliances using a Particle Photon.

BeginnerFull instructions provided1 hour1,576
Hack Your Home Part 1: Intro to Home Automation

Things used in this project

Hardware components

Photon
Particle Photon
×1
PowerSwitch Tail II
×1
Breadboard (generic)
Breadboard (generic)
×1
Jumper wires (generic)
Jumper wires (generic)
×1
USB microB Cable
×1
Wall Adapter - 5V USB
×1

Hand tools and fabrication machines

Screwdriver - Flat

Story

Read more

Schematics

Big-Blink Fritzing Diagram

Code

Big-Blink

Arduino
Copy this into your Particle Photon app.
int pst = D6;

void setup() {
    
    // I/O as output
    pinMode(pst, OUTPUT);
}

void loop() {
    
    // Turn PowerSwitch Tail on for 1 second
    digitalWrite(pst, HIGH);
    delay(1000);
    
    // Turn off the PowerSwitch Tail for 1 second
    digitalWrite(pst, LOW);
    delay(1000);
}

Credits

Shawn hymel

Shawn hymel

10 projects • 117 followers
Engineering Superhero at SparkFun Electronics.

Comments