Things used in this project

Hardware components:
Photon new
Particle Photon
×1
 0000s 0004 facing left
Pebble Watch
×1
10804 01
SparkFun Breadboard Power Supply Stick 5V/3.3V
×1
Software apps and online services:
Q8wtlimqnp04fzhtr9v5
IFTTT Maker service
Particle IDE

Code

Particle Photon Switch codeArduino
int controlLed(String command);

void setup()
{
  pinMode(7, OUTPUT);
  digitalWrite(7,LOW);
  // register the cloud function
  Particle.function("particle", controlLed); // the name of function on IFTTT
}

void loop()
{
  // this loops forever
}

// this function automagically gets called upon a matching POST request
int controlLed(String command)
{
  // look for the matching argument "coffee" <-- max of 64 characters long
  if(command == "on")
  {
    digitalWrite(7,HIGH);
    return 1;
  }
  else if(command == "off")
  {
    digitalWrite(7,LOW);
    return 1;
  }
  else return -1;
}

Credits

H5vc9pdmkdz8vtgljke9
Giovanni Gentile

Graduated in Psychology expert in new technologies and communication, with expertise in electronics, automation and home automation.

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Similar projects you might like

Drop of Life
Intermediate
  • 515
  • 16

Full instructions

A display to remind me when I can donate blood and save lives, powered by the Red Cross API and Particle.

IoT Drone - Part 2 - Sensors
Intermediate
  • 54
  • 1

Work in progress

Part 2 incorperates a GPS receiver, 10 DOF IMU, and Ultrasonic distance sensor to be used for flight controls.

How to run Particle on Raspberry Pi (Headless on Pi Zero W)
Intermediate
  • 1,433
  • 18

Protip

Use the most popular single-board computer with the most popular IoT tools.

Wireless Tank and Pump Monitoring System with Mobile App
Intermediate
  • 412
  • 3

Particle and Blynk to wirelessly monitor a 4,000 gallon water distribution system.

IoT Controlled Planter Lights
Intermediate
  • 463
  • 6

This is a shelf for starting plant seeds, controlled over the internet with automatic lights.

Your Wife is Hot!
Intermediate
  • 529
  • 6

Full instructions

Not hot like she looked at your browser history, hot as in temperature hot! This can be avoided with an A/C Condensate Monitoring System.

Your Wife is Hot!

Team Is it Summer Yet?

Add projectSign up / Login
Respect project