close-circle
Close
0%
0%

Flashing Light Prize (4) Arduino Horror

Reee Reee Reee Reee

Similar projects worth following
close
64 views
0 comments
0 followers
likes

Bwahahahaha and ha.

[Sinistering Intensifies]

Notation(s)

1. Opted to disregard specialized code/software for the reasons of code-illiteracy -- the contradiction being that the native code for the pulse sensor blinks an LED. Meh.

2. Bcz the sensor is placed on a finger with very little to ensure consistent application, the analog values varied giving irregular peak values. To adjust per each application, we (me) added a pot to adjust the peak triggering value (high).

3. The Blair Witch Project is best served when watched alone. To accompany another is to give an identifiable secured surrounding relieving the immersive stresses permitted by the film's atmosphere. It is a superb horror film you nay saying butt holes!

Archive

http://flashinglightprize.com

https://vid.me/tmCw0

http://tvmiller.com/index.php?entry=entry170719-050416

  • 1 × Arduino Uno
  • 1 × 5V Relay
  • 1 × NPN Transistor
  • 1 × 1K Resistor (used spare 10K)
  • 1 × HiLetGo Pulse Sensor Module

View all 9 components

  • Sabotage

    Vije Miller07/18/2017 at 22:38 0 comments

  • Cardio Pulmonary Resketchiation

    Vije Miller07/18/2017 at 22:07 0 comments

    // Flashing Light Prize (4) Arduino Horror
    // VijeMiller
    
    int led = 13;
    int relay = 2;
    int pulse = A0;
    
    int val;
    int tot;
    int nxt;
    int high;
    
    int potpin = A5;
    int potval;
    
    void setup() {
      Serial.begin(115200);
    
      pinMode(relay, OUTPUT);
      pinMode(led, OUTPUT);
    
      // Get Comfortable
      for (int i = 0; i <= 5; i++) {
        digitalWrite(led, HIGH);
        delay(500);
        digitalWrite(led, LOW);
        delay(500);
      }
    
    }
    
    void loop() {
    
      // Reset Value
      tot = 0;
    
      // Smoothing
      for (int i = 0; i <= 25; i++) {
        val = analogRead(pulse);
        tot = val + tot;
        delay(2);
      }
      nxt = tot / 25;
      Serial.println(nxt);
    
      // To Solve Pulse Reading Inconsistency
      // Adjust the Relay Trigger Peak Value
      potval = analogRead(potpin);
      high = map(potval, 0, 1023, 540, 570);
    
      if (nxt > high) {
        digitalWrite(relay, HIGH);
        digitalWrite(led, HIGH);
      } else {
        digitalWrite(relay, LOW);
        digitalWrite(led, LOW);
      }
    
      delay(5);
    }

View all 2 project logs

  • 1
    Achy Breaky

View all instructions

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates