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.

EasyFull instructions provided1 hour864
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 • 62 followers
Engineering Superhero at SparkFun Electronics.
Contact

Comments

Add projectSign up / Login