Elizabeth Ziemer
Published © GPL3+

Lane Tech HS - PCL - The RAGE Detector

Have overzealous gamer siblings? Are YOU the overzealous gamer in your house? Detect and get notified of game-induced rage.

BeginnerFull instructions provided30 minutes257

Things used in this project

Hardware components

Argon
Particle Argon
×1
Breadboard (generic)
Breadboard (generic)
×1
LED (generic)
LED (generic)
Optional
×1
Resistor 1k ohm
Resistor 1k ohm
Optional
×1
Tap Sensor (KY-031)
×1
Jumper wires (generic)
Jumper wires (generic)
×5
Female/Female Jumper Wires
Female/Female Jumper Wires
×3

Software apps and online services

Particle Build Web IDE
Particle Build Web IDE
IFTTT
PuTTY
Or any serial monitor for testing

Hand tools and fabrication machines

Needle
Thread
Glove
Anything that fits!

Story

Read more

Schematics

schematic_6mYO8KBVil.png

Code

rage_detection

C/C++
The finished project code.
const int myLED = 1;
const int knock = 2;
int state;
int flag = 0;

void setup()
{    
    pinMode(myLED, OUTPUT);
    pinMode(knock, INPUT);
    Serial.begin(9600);
}

void loop()
{   
    state = digitalRead(knock); 
	if (state == HIGH) {
    		digitalWrite(myLED, LOW);
    }
	else {
    		digitalWrite(myLED, HIGH);
    		if (flag == 0){
    		    Serial.printlnf("DETECT");
    		    Particle.publish("ragedetected", "now");
    		    flag = 1;
    		}
    }

}

Credits

Elizabeth Ziemer
3 projects • 4 followers
[school account] human-centered robotics, ionosphere, and 00's internet meme enthusiast.
Contact

Comments

Please log in or sign up to comment.