Things used in this project

Hardware components:
Photon new
Particle Photon
Adafruit industries ada592 image 75px
USB-A to Micro-USB Cable
12002 04
Breadboard (generic)
09590 01
LED (generic)
Software apps and online services:
Particle Buid
IFTTT Twitter service


Particle Photon Connections
Untitled%20sketch bb


Code Arduino
//The pin you want to control, in this case I'm blinking the on-board blue LED on digital pin 7
int led = D7;
//This function is called after the Photon has started 
void setup(){
    //We set the pin mode to output
    pinMode(led, OUTPUT);
    //We "Subscribe" to our IFTTT event called Button so that we get events for it 
    Particle.subscribe("Button", myHandler);
//The program loop, not sure if this has to be here for the program to run or not
void loop() {
//The function that handles the event from IFTTT
void myHandler(const char *event, const char *data){
    // We'll turn the LED on
    digitalWrite(led, HIGH);
    // We'll leave it on for 5 second...
    //Then we'll turn it off...
    digitalWrite(led, LOW);



Did you replicate this project? Share it!

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

Give feedback


Similar projects you might like

Map Your Particles!
  • 40
  • 3


Locate your Particle Photons, P1s and Electrons on a map without needing extra hardware.

Sending Photos and Video Over the Internet!
  • 1,744
  • 25

Full instructions

Record video, perform object and face recognition, take a time-lapse or whatever else with a Particle Photon and the 5-megapixel Arducam!

Boost Your Google Home With Prota OS for RPi
  • 1,246
  • 6

Full instructions

Extend your Google Home features to smart light, smart speakers, smart cam and smart appliances with those DIY tricks based on Raspberry Pi.

Google Home - Control DIY Devices
  • 821
  • 8

Full instructions

This project show how to control multiple IoT devices using Google Home.

DIY Smart Home Automation for Everyone
  • 1,457
  • 15

Full instructions

Smart Home automation made easy and accessible for anyone, for little budget and no skills needed with Prota OS on Raspberry Pi

MyPIR-Sensor Informs Me Via IFTTT
  • 227
  • 1

Full instructions

Cheap & easy alarm-system.

ProjectsCommunitiesTopicsContestsLiveAppsBetaFree StoreBlogAdd projectSign up / Login