Things used in this project

Schematics

Schematic
Schematic bb bookfs5xku

Code

The CodeC/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

Download
Arduino “having11” Guy
6 projects • 153 followers
I love creating cloud solutions that can interact with hardware along with using Arduino boards and Raspberry Pis to create new projects.
Contact

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

Add projectSign up / Login