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

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

Similar projects you might like

Die Losungen - every day a new bible verse
Intermediate
  • 44
  • 1

Full instructions

You love daily changing bible verse? Then the "Die Losungen" are a concept: here they are represented with value added information

Lightweight Sliding Door Automator
Intermediate
  • 1,649
  • 8

Work in progress

Automate the opening and closing of a lightweight sliding door (e.g. a screen door), including remote controls on your phone.

Christmas Gift Box
Intermediate
  • 3,636
  • 595

Full instructions

Christmas Gift Box plays music and sends an email when it is opened.

Carbon Fiber Vacuum Chamber
Intermediate
  • 2,927
  • 94

Full instructions

Our project is a carbon fiber vacuum chamber that is monitored by multiple particle photons and various sensors.

What should I wear outside?
Intermediate
  • 5,055
  • 67

Full instructions

A whimsical weather clock powered by Particle and forecast.io

LED Reflection Clock
Intermediate
  • 2,193
  • 35

Work in progress

Using 60 LED's facing a suitable wall, the time is projected in colour.

Sign up / LoginProjectsCommunitiesTopicsContestsLiveAppsBetaFree StoreBlog