Vicki Moeller-ChanParth SinghMario Titopo
Published © GPL3+

Motion Director

Motion director allows you to use completely wireless gesture to control remote devices and actors.

AdvancedWork in progress1,565
Motion Director

Things used in this project

Hardware components

Spark Core
Particle Spark Core
×5
Esquilo Air
Esquilo Air
×1
9-axis inertial measurement sensor board
×1

Story

Read more

Schematics

schematic

does it ok?

diagram

led

Code

RangerFirmware

C/C++
Installed on all Rangers
int LEDRED = D0;
int LEDGRN = D1;
int LEDBLU = D2;

void setup()
{
  Spark.function("RED", RED);
  Spark.function("BLU", BLU);
  Spark.function("GRN", GRN);
    pinMode(LEDRED, OUTPUT);
    pinMode(LEDGRN, OUTPUT);
    pinMode(LEDBLU, OUTPUT);
    digitalWrite(LEDRED, LOW);
    digitalWrite(LEDGRN, HIGH);
    digitalWrite(LEDBLU, LOW);
}

void loop() {
}
int RED(String command) {
    digitalWrite(LEDRED, HIGH);
    digitalWrite(LEDGRN, LOW);
    digitalWrite(LEDBLU, LOW);
    return 1;
}

int GRN(String command) {
    digitalWrite(LEDRED, LOW);
    digitalWrite(LEDGRN, HIGH);
    digitalWrite(LEDBLU, LOW);
    return 1;
}

int BLU(String command) {
    digitalWrite(LEDRED, LOW);
    digitalWrite(LEDGRN, LOW);
    digitalWrite(LEDBLU, HIGH);
   return 1;
}

Credits

Vicki Moeller-Chan

Vicki Moeller-Chan

1 project • 5 followers
Parth Singh

Parth Singh

8 projects • 41 followers
M.S. EE with interest in Arduino/Intel Edison/RPi and Tinkering
Mario Tito

Mario Tito

1 project • 1 follower
Early jobs included movie theater projectionist & satellite dish installer. Fixed a camera when I was 6. Working in the communication & AV field for 20+ years.
po

po

1 project • 0 followers

Comments

Add projectSign up / Login