Arduino “having11” Guy
Published © GPL3+

Laser Email Notification

Fire a laser whenever you get an email with a Particle Photon and IFTTT.

EasyFull instructions provided1 hour295
Laser Email Notification

Things used in this project

Story

Read more

Schematics

Schematic

Schematic bb bookfs5xku

Code

The Code

C/C++
int fireLaser(String command);
const int laserPin = 3;

void setup() {
Particle.function("laser", fireLaser);
pinMode(laserPin, OUTPUT);
}

void loop() {

}

int fireLaser(String command){
    for(int i=0;i<5;i++){
        digitalWrite(laserPin, HIGH);
        delay(500);
        digitalWrite(laserPin, LOW);
        delay(500);
    }
    return 1;
}

Credits

Arduino “having11” Guy

Arduino “having11” Guy

7 projects • 211 followers
IoT, Arduino, and Raspberry Pi. I can create designs, code, and build projects for only $22/hr. Just message me with your project request.

Comments

Add projectSign up / Login