Things used in this project

Hardware components:
Compare particleelectron
Particle Electron
×1
Vishay semiconductor ild74 image 75px
Opto-Isolator
×1
Car Key fob
×1

Code

Electron codeC/C++
Paste this into the Particle Cloud IDE
void setup() {
    pinMode(D2, OUTPUT);
    pinMode(D3, OUTPUT);
    pinMode(D4, OUTPUT);
    Particle.function("lock", lock);
    Particle.function("unlock", unlock);
    Particle.function("panic", panic);
} 

int lock(String command) {
    digitalWrite(D2, HIGH);
    delay(100);
    digitalWrite(D2, LOW);
}

int unlock(String command) {
    digitalWrite(D3, HIGH);
    delay(100);
    digitalWrite(D3, LOW);
}

int panic(String command) {
    digitalWrite(D4, HIGH);
    delay(1000);
    digitalWrite(D4, LOW);
}

void loop() {
}

Credits

Profile
TJ Hunter
4 projects • 21 followers
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

Sign up / LoginProjectsPlatformsTopicsContestsLiveAppsBetaBlog