"Wait, we can refuse service?!" #Starbucks, probably. #SarahSanders #RedHen
19:56:12 96 018
Miter
TVShow 3X19 Flashing Light Prize (6) Arduino 101 Break Up (FAIL)


Parting is such sweet elation.
Elevation change per 0.15 meters (0.5 foot) measured by BMP180 triggers relay state.
Good riddance, Arduino 101. May your gibberish never stain my IDE again.

Ingredients
1. Arduino 101 (34 gr)
2. BMP180 Module (4 gr)
3. TIP120 (1 gr)
4. 2.2K Resistor (<1 gr)
5. 5V Incandescent Bulb (<1 gr)
6. 9V Battery (42 gr)
7. Battery Holder (1 gr)
8. Latex Balloons (Helium)
9. String

Notation(s)
1. Project worked to perfection--right up until the balloons were purchased. After having not acquired enough balloons (12) for lift, a stripping down of materials and conversion to a lighter 12 volt battery resulted in an accidental overload and in brief - kaput! Secondary to this, let it be known that filming string hung peripherals and balloon flight at night with low budget production is as impractical as this whole venture.

2. 1 liter of Helium lifts 1 gram. 12" latex balloon volume is 15L. Horse shit!

Arduino Skyetch
// Flashing Light Prize (6) Arduino 101 Break Up
// BMP180 Code by Sparkfun
// VijeMiller

#include <SFE_BMP180.h>
#include <Wire.h>

// BMP180
SFE_BMP180 pressure;
double base;

// States
int last = 0;
int up = 0;
int state = 0;

// TIP120
int light = 7;

void setup()
{
Serial.begin(9600);

pinMode(light, OUTPUT);
digitalWrite(light, LOW);

// BMP180 Working?
if (pressure.begin())
Serial.println("BMP180 init success");
else {
Serial.println("BMP180 init fail (disconnected?)\n\n");
while (1);
}

// Create Base Line
base = getPressure();
Serial.print("Base Line Pressure: ");
Serial.print(base);
Serial.println(" mb");
delay(2000);
}

void loop()
{
double a, P;
// Get Pressure
P = getPressure();
// Different Between Base and New
a = pressure.altitude(P, base);

Serial.print(a * 3.28084, 1);
Serial.println(" feet");

// Higher by 0.5 Feet or More?
if (a >= up) {
if (state == 0) {
digitalWrite(light, HIGH);
state = 1;
} else if (state == 1) {
digitalWrite(light, LOW);
state = 0;
}
}

// Add 0.5 Feet
// Store Last
up = a + 0.1524;

delay(500);
}

double getPressure()
{
char status;
double T, P, p0, a;
status = pressure.startTemperature();
if (status != 0)
{
delay(status);
status = pressure.getTemperature(T);
if (status != 0)
{
status = pressure.startPressure(3);
if (status != 0)
{
delay(status);
status = pressure.getPressure(P, T);
if (status != 0)
{
return (P);
}
}
}
}
}

Archive
https://hackaday.io/project/26130-flashing-light-prize-6-arduino-101-break-up
http://flashinglightprize.com
https://vid.me/dQgsN
TVShow 3X18 13 Inches Deep Trailer
Sequel to the Mandy Moore thriller 47 Meters Down and Alexandra Park's terrifying 12 Feet Deep comes the next aquatic dread, 13 Inches Deep. That's what she said.


Alternate Titles
1. 13 Inches Below
2. 13 Inches Depth
3. 13 Inches
4. 13
5. Tub
TVShow 3X17 LeBogue for Men by Repel


Get your special Repel gift bag with any purchase of LeBouge for Men.
Available at CVS, Riteaid and Golden Corral.

Notation(s)
1. A cordial cease fire on TVShow end tag.
TVShow 3X16 Flashing Light Prize (5) IoT Pacing
Stress shd be more stressful.
Button(s) to NodeMCU ESP8266 to Al Gore to .php to .txt to
Processing to Arduino to Relay to Alligator Clips to the Future...


Ingredients
1. NodeMCU ESP-12E
2. Arduino Uno
3. HC-06 Bluetooth Module
4. (2) Momentary Buttons
5. 5V Relay
6. NPN Transistor
7. 1K Resistor
8. Alligator Clips

Notation(s)
1. Originally intended on bluetooth communication between Processing and Arduino Uno with HC-06 module -- how and ever, Processing consistently stalled despite a perceived stable port of call and there is suspicion this was as result of an incompatible native bluetooth.

2. 'status' and 'state' are not like the other. Check your values! Sigh. Thx, Jason Harper.

3. TVShow is shot before no live studio audience...or crew. Often times focus is considered a victory -- here, there is one scene in defeat. We are not DC, we reshoot nothing!

4. A few necessary corrections to the dialog followed by an abundance of totally unnecessary changes in order to preserve the perception that there was no careless thievery. Even the impression could hardly be considered professional -- sigh.

NodeMCU Sktepch
// Flashing Light Prize (5) IoT Pacing
// Step Code
// VijeMiller

// NodeMCU ESP-12E 1.0
#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>

// WIFI Network Access
const char* ssid = "networkID";
const char* password = "networkpassword";
WiFiServer server(80);

// Buttons
const int left = D2;
const int right = D3;

// Buttons State
int lstate;
int rstate;
int state = 0;
int led = D0;

void setup() {

pinMode(left, INPUT);
pinMode(right, INPUT);
pinMode(led, OUTPUT);

Serial.begin(9600);
while (WiFi.status() != WL_CONNECTED) {
WiFi.begin(ssid, password);
delay(5000);
}
Serial.println("Connected");
digitalWrite(led, HIGH);
server.begin();
}

void loop() {
// Read Buttons
lstate = digitalRead(left);
rstate = digitalRead(right);

// Declare Task
HTTPClient http;
int httpCode;

if (lstate == HIGH && rstate == LOW) {
// Prevent Excess
if (state == 0) {
Serial.println("L");
// Load .php that writes to .txt
http.begin("http://website.com/flp/flp.php?state=1");
httpCode = http.GET();
http.end();
state = 1;
} else {
// Nothing
}
} else if (rstate == HIGH && lstate == LOW) {
if (state == 1) {
Serial.println("R");
http.begin("http://website.com/flp/flp.php?state=0");
httpCode = http.GET();
http.end();
state = 0;
} else {
// Nothing
}
} else if (lstate == HIGH && rstate == HIGH) {
// Zilch
} else if (lstate == LOW && rstate == LOW) {
// Nope
}

delay(100);
}

Arduino Doodle
// Flashing Light Prize (5) IoT Pacing
// VijeMiller

// Relay Pin
int relay = 2;
// Serial Data
char data;

void setup() {
Serial.begin(9600);
pinMode(relay, OUTPUT);
}

void loop() {
// Communication?
if (Serial.available() > 0) {
// Whad' It Say?!
data = Serial.read();
// Off?
if (data == 'F') {
digitalWrite(relay, HIGH);
}
// On?
if (data == 'U') {
digitalWrite(relay, LOW);
}
}
}

Processing Process
// Flashing Light Prize (5) IoT Pacing
// Processing to Bluetooth
// VijeMiller

import processing.serial.*;
Serial port;

void setup() {
println(Serial.list());
port = new Serial(this, "COM3", 9600);
frameRate(4);
}
void draw() {
// Internet Address .txt File
String onoroff[] = loadStrings("http://website.com/flp/flp.txt");
// Prints .txt File Contents
print(onoroff[0]);
if (onoroff[0].equals("1") == true) {
println("Flash");
port.write('F');
} else if (onoroff[0].equals("0") == true) {
println("Unflash");
port.write('U');
} else {
}
}

PHP-p-ing
<?php
$onoroff = $_GET["state"];
$textfile = "flp.txt";
$fileLocation = "$textfile";
$fh = fopen($fileLocation, 'w ') or die("Crap!");
$stringToWrite = "$onoroff";
fwrite($fh, $stringToWrite);
fclose($fh);
?>

Archive
https://hackaday.io/project/26022-flashing-light-prize-5-iot-pacing
http://flashinglightprize.com
https://sindrelindstad.com/projects/how-to-led-arduino-php-proc/
https://vid.me/vUrEh
A/C Vent Hack for Cities That Shd Fall
Providing that this site caters to the hacking of items so as to improve upon -- and being that I currently temporarily reside in a place clustered with archaic dwellings, I thought it generous in passing to relate a means to resolve for an engineering issue many likely suffer from when living in elder metropolises.

Numerous residents are required to dangle a/c units from their windows this time of year and often times the misalignment of windows, bcz the buildings were designed and constructed by cretins, results in inefficient distribution of air.


Here, as follows, is a method to improve upon the efficiency of your air conditioning by employing nothing more than scrap cardboard, a ruler, pencil and tape.

Realize that shd some one come across this, recognize the opportunity and subsequently are able to increase the efficiency of their a/c unit, resource use may be ever so slightly reduced and the planet, saved...ish.

Hackaday.io
https://hackaday.io/project/26019-ac-vent-hack-for-cities-that-shd-fall
TVShow 3X15 Flashing Light Prize (4) Arduino Horror
Bwahahahaha and ha.
[Sinistering Intensifies]


Ingredients
1. Arduino Uno
2. HiLetgo Pulse Sensor Module
3. 5V Relay
4. Heart (4$/eBay)
5. Blair Witch Project
6. 10K Pot
7. 1K Resistor
8. NPN Transistor

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!

Cardio Pulmonary Resketchiation
// 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, 520, 570);

if (nxt > high) {
digitalWrite(relay, HIGH);
digitalWrite(led, HIGH);
} else {
digitalWrite(relay, LOW);
digitalWrite(led, LOW);
}

delay(5);
}

Archive
https://hackaday.io/project/25916-flashing-light-prize-4-arduino-horror
http://flashinglightprize.com
https://vid.me/tmCw0
Arduino Vije Rev. 1.0
TVShow 3X14 Flashing Light Prize (3) Arduino Scat
Sparkfun sound detector triggered by the relay triggers the relay, rinse, repeat.
Skiddily bee bop ba doo bop skiddily dee bip boop bop, yeah.



Ingredients
1. Arduino Uno
2. Sparkfun Sound Detector
3. 5V Relay
4. NPN Transistor
5. 1K Res
6. (2) Candle Incandescent Bulbs
7. Cuhlness

Notation(s)
1. Special guest mouth hornist, Vije Miller -- the horniest.
2. Zappa dee doo blip blop biddily doo wap be zah.

Sketchity Zoopity Zow
// Flashing Light Prize (3) Arduino Scat
// VijeMiller

// Sound Detector Pins
#define PIN_GATE_IN 2
#define IRQ_GATE_IN 0
#define PIN_LED_OUT 13
#define PIN_ANALOG_IN A0

// Relay Pin
int relay = 7;

// Sound Value
int val;

// SparkFun Sound Detector Interrupt
void soundISR()
{
int pin_val;
pin_val = digitalRead(PIN_GATE_IN);
digitalWrite(PIN_LED_OUT, pin_val);
}

void setup()
{
// Testing
Serial.begin(9600);
// Sound Detector Pin Assignment
pinMode(PIN_LED_OUT, OUTPUT);
pinMode(PIN_GATE_IN, INPUT);
// Relay Pin Assignment
pinMode(relay, OUTPUT);
// Sound Decector Interrupt
attachInterrupt(IRQ_GATE_IN, soundISR, CHANGE);
}

void loop()
{

// Read Sound
val = analogRead(PIN_ANALOG_IN);
// Testing
Serial.println(val);
// If Sound Exceeds X
if (val > 55) {
digitalWrite(relay, HIGH);
delay(600);
digitalWrite(relay, LOW);
delay(200);
} else {
digitalWrite(relay, LOW);
}

delay(10);
}

Archive
https://hackaday.io/project/25869-flashing-light-prize-3-arduino-scat
https://www.flashinglightprize.com/
https://vid.me/FQyIO
TVShow 3X13 Flashing Light Prize (2) Rubber Ducky
Never...never going to give you up.
This attempt, how ever, shd have been.

Original project had intention of dispensing compressed air in bursts to disrupt the flow...I uh, do/did not have access to such spare equipment. I welcome another with shop to give it a shot.

Special guest hallucinated appearance by @RealSexyCyborg. If (pause) only.

One animal (human) was harmed in the making of this film.


Ingredients
1. Arduino Uno
2. Rubber Ducky
3. Servo
4. Vinyl Tubing
5. Water Fountain Pump
6. Exposed 120 Volts
7. 40W 120V Light Bulb
8. Salted Water
9. String

Notation(s)
1. Meh.

2. Minor adjustment to the servo delay would have drastically improved the flash rate -- how ever, timing (space use) and operational alterations tested one's patience beyond the threshold of interest (see Notation 3).

3. Moving on...

Archive
https://hackaday.io/project/25815-flashing-light-prize-2-rubber-ducky
https://vid.me/9srjI
TVShow 3X12 Flashing Light Prize (1) Arduino Wave Generator
Probable electrocution? Check.
Deadly noxious fumes? Inhaled.
KY Jelly? Lubricated.
Let's show this prehistoric bitch how we flash bulbs down town.



Ingredients
1. Arduino Uno
2. Micro Servo
3. 5V Regulator
4. (2) 10nf Cap
5. 12V Incandescent Bulb
6. Acrylic (Dollar Store Picture Frame)
7. 10K Potentiometer (Optional)
8. Table Salt or Baking Soda

Notation(s)
1. Discovered the miniaturization of our previous wave generator provided less opportunity for more visually amplified waves. Ended up with a beached wave...so...crap, another words. Tip; depth, shallows and angle of attack. Next FLP (2) project will approach things differently. Vodka and flames?!

2. Plain tap water is a poor electrical conductor. Added table salt and baking soda to increase conductivity. To what ratio? This much to this much by this many.

3. (Update) Attempted several further lever variations w/o any significant increase in wave pattern. Simply requires enlarged length and depth for greater motion...that's what she said.

Sketchy
// Flashing Light Prize (1)
// VijeMiller

#include <Servo.h>
Servo wave;

// Pot Analog Pin 0
int pot = A0;
// Delay Value
int val = 0;
// Servo Positions
int fro = 0;
int bac = 160;
int pos = 0;

void setup() {
Serial.begin(9600);
wave.attach(5);
wave.write(pos);
}

void loop() {
// Read Potentiometer
val = analogRead(pot);
// Print Value
Serial.println(val);
// Map Pot to Delay Value
val = map(val, 0, 1023, 0, 20);
// Print Value
Serial.println(val);
// Back
for (pos = fro; pos <= bac; pos += 1)
{
wave.write(pos);
delay(val);
}
// Forward
for (pos = bac; pos >= fro; pos -= 1)
{
wave.write(pos);
delay(val);
}
}

Archive
https://hackaday.io/project/25715-flashing-light-prize-1-arduino-wave-generator
https://www.flashinglightprize.com/
https://vid.me/gSap