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

AquaNiner Pet Hydration Monitor
Intermediate
  • 382
  • 14

Full instructions

Using two Photons, IFTTT and ThingSpeak, get notifications for when your furry friend needs water and monitor how much they're drinking.

Hot Shot Hoops
Intermediate
  • 530
  • 13

Full instructions

No need to keep track of the number of baskets you make when shooting hoops. Hot Shot Hoops does the work for you.

Hot Shot Hoops

Team IOT Basketball

Temperature Mirror
Intermediate
  • 381
  • 8

Full instructions

The Temperature Mirror incorporates a digital display to allow its user to readily view time, temperature, humidity, and light.

Temperature Mirror

MEGR3171 Team 49

Pet Feeder
Intermediate
  • 414
  • 7

Full instructions

Automated pet food dispenser to feed our pets when we are not at home by using an IoT device.

Teacher Tracker
Intermediate
  • 176
  • 4

Full instructions

If you want to know when a professor comes back to his/her office so you can ask annoying questions then this an option

LightAlert
Intermediate
  • 138
  • 4

Full instructions

As the great Terry Crews once said "that's 49 cents of milk spilt over the table! Somebody's gonna drink that!" But instead... electricity.

Add projectSign up / Login
Respect project