Evan Rust
Published © GPL3+

Laser Email Notification

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

BeginnerFull instructions provided1 hour806
Laser Email Notification

Things used in this project

Hardware components

Photon
Particle Photon
×1
Laser Diode
×1

Software apps and online services

Particle IDE
IFTTT

Story

Read more

Schematics

Schematic

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

Evan Rust
123 projects • 1111 followers
IoT, web, and embedded systems enthusiast. Contact me for product reviews or custom project requests.
Contact

Comments

Please log in or sign up to comment.