@VijeMiller · 19h
Is it the revelation that their life had no real meaning as to why wealthy website designers commit suicide .. or is it the revelation that their life had no real meaning?
16:10:43 272 018
Miter
Arduino Dead or Alive
Trick for treat .. the illusion of proving you are alive .. and alive enough to even enjoy a treat.

This particular project is a carry over from a request to simply 3D print a heart for a 4th grade class demonstration -- and after negotiations negated instead reanimating a heart in a lightning storm .. uh, with an Arduino obviously .. we (me) pitched a pulse driven beating heart .. that in turn rewards your having proved to subsist, with a treat.


Ingredients
Arduino Uno
Servo
(2) 10K Potentiometer
LCD Display
Pulse Sensor
(2) 330 ohm Resistor
1000 uf Capacitor
Piezo Buzzer
2N2222 Transistor
4007 Diode
Neopixels
(2) Toggle Switch
MDF

Code
// Arduino Dead or Alive
// Vije Miller

#include <FastLED.h>
#include <LiquidCrystal.h>
#include <Servo.h>

#define NUM_LEDS 5
CRGB leds[NUM_LEDS];
#define PIN 6

// Beat Var LED
int bpm_led_delay = 500;

// Buzzer Pin
const int ekg = 9;

// LCD
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);

// Switch
int aux = 7;
int aux_state = 0;

// Servo
Servo srv;
int st = 110;
int ps = 45;

// Pulse
int pulse = A0
int val;
int tot;
int nxt;
int high;

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

FastLED.addLeds<WS2812, PIN, GRB>
(leds, NUM_LEDS).setCorrection( TypicalLEDStrip );

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

pinMode(aux, INPUT);

srv.attach(10);
srv.write(st);

lcd.begin(16, 2);
lcd.setCursor(0, 0);
lcd.print("Dead or Alive?");

}

void loop() {
// Motor and Buzzer Switch On/Off
aux_state = digitalRead(aux);

// Reset Value
tot = 0;
nxt = 0;
set_bpm = 0;

// Smoothing Pulse
for (int n = 0; n <= 5; n++) {
for (int i = 0; i <= 25; i++) {
val = analogRead(pulse);
tot = val + tot;
// Display Per Peak
if (val > 580) { // Adjust
// If Motor and Buzzer
if (aux_state == HIGH) {
beat_led(0xff, 0x00, 0x00);
delay(bpm_led_delay);
// If No Motor and Buzzer
} else if (aux_state == LOW) {
beat_led_non(0xff, 0x00, 0x00);
delay(bpm_led_delay);
}
}
delay(2);
}
nxt = tot / 25;
set_bpm = set_bpm + nxt;
}
// BPM Maths
bpm = set_bpm * 12;
// Not Very Accurate .. Meh!

if (bpm > 30) {
lcd.setCursor(0, 0);
lcd.print("Alive!");
lcd.setCursor(0, 1);
lcd.print(bpm);
lcd.print(" BPM");
} else if (bpm <= 30) {
lcd.setCursor(0, 0);
lcd.print("Undead!");
}

}


// Neopixel FastLED Fade Red via http://tweaking4all.com
void beat_led(byte red, byte green, byte blue) {
float r, g, b;
for (int k = 0; k < 256; k = k + 8) {
r = (k / 256.0) * red;
g = (k / 256.0) * green;
b = (k / 256.0) * blue;
setAll(r, g, b);
showStrip();
digitalWrite(ekg, HIGH);
srv.write(ps);
}
digitalWrite(ekg, LOW);
srv.write(st);
for (int k = 255; k >= 0; k = k - 10) {
r = (k / 256.0) * red;
g = (k / 256.0) * green;
b = (k / 256.0) * blue;
setAll(r, g, b);
showStrip();
}
}

void beat_led_non(byte red, byte green, byte blue) {
float r, g, b;
for (int k = 0; k < 256; k = k + 8) {
r = (k / 256.0) * red;
g = (k / 256.0) * green;
b = (k / 256.0) * blue;
setAll(r, g, b);
showStrip();
}
for (int k = 255; k >= 0; k = k - 10) {
r = (k / 256.0) * red;
g = (k / 256.0) * green;
b = (k / 256.0) * blue;
setAll(r, g, b);
showStrip();
}
}

void showStrip() {
#ifdef ADAFRUIT_NEOPIXEL_H
strip.show();
#endif
#ifndef ADAFRUIT_NEOPIXEL_H
FastLED.show();
#endif
}

void setPixel(int Pixel, byte red, byte green, byte blue) {
#ifdef ADAFRUIT_NEOPIXEL_H
strip.setPixelColor(Pixel, strip.Color(red, green, blue));
#endif
#ifndef ADAFRUIT_NEOPIXEL_H
leds[Pixel].r = red;
leds[Pixel].g = green;
leds[Pixel].b = blue;
#endif
}

void setAll(byte red, byte green, byte blue) {
for (int i = 0; i < NUM_LEDS; i++ ) {
setPixel(i, red, green, blue);
}
showStrip();
}

Notations
1. 'Clear watermelon' filament .. (>_ლ)
2. Censored #$@*!$#% about people, places and things.
3. Extensive modification of https://3dwarehouse.sketchup.com/mod... by Profesor D.
4. Did not earn a TVShow episode bcz .. it had been done.
5. Original concept included a candy dispenser that required evidence of life.

Archive
https://hackaday.io/project/161614-arduino-dead-or-alive
https://3dwarehouse.sketchup.com/model/ufce9d3ab-1e98-442f-afb3-7ed2d09802dd/heart
https://www.thingiverse.com/thing:3186600
NFT Hydroponics @ Pool Side
The IONYC makerspace neighboring Boys and Girls Club requested a hydroponics adaption from a broken pool table .. which meant employing children to hard labor .. as intended by Nature.

Dreary grey and brown (and tree countable) NYC collaborated with being below grade in a stone tomb of a building begged for more of an atmospheric eloquence-ish .. attempt; waterfalls (for oxygenation?) and LED status enclosure (for anxiety?!) .. bearing in mind that kids today are over-stimulated creatures demanding jangling keys to retain interest.


Ingredients
4" PVC
4" 90° PVC
22L Plastic Tub
Pool Table
Lever Switch
Float
5V Relay
LED Strip
Velcro
Florescent Fixture
Timer
Water Pump (min 1L/m)
Vinyl Tubing (0.5" and 0.25")
Threaded Barbed 0.25"
(4) Florescent Grow Lights
12oz Plastic Cups
Plant Nutrients
Clay Pellets

Notation(s)
1. Float valve built from a lever switch, stick and foam .. to a 5V relay .. flips the LED strip from blue to red .. alerting the user.
2. 3D printed 0.5 and 0.25 inch tube connections .. failed. Layered grain leaked no matter the tension of the pipe clamps.
3. Damn! .. -ed the tube every 10 cups to increase water level -- cut from excess piping.
4. Tattered soldering iron and /red/ (shd be white) plastic cups .. holes and hallucinations. Breathe with me-akhdfncsowpa;/.sa,
5. Themed blue and white relative to the BGC in question. Each over-paid unnecessary manager of this facility will elate to yet another assured tax-funded monthly income now thx in large part to my involuntary volunteering. Question your 'community centers' ..
6. Velcro lashing to secure and make removable the tubes.
7. https://en.wikipedia.org/wiki/Nutrient_film_technique

Archive
https://hackaday.io/project/161663-hydroponics-pool-side
TVShow 4X32 Bard
(Retired) Orbital Clock Page
Due to disinterest in updating scripting to retain precision measurements collaborated with more recent ease of data acquisition online .. we have shut down the OTC page (vijemiller.com/otc) after 10+ years. Links to the numerous categories of data aggregated will remain accessible on the OTC hold-page hosted locally. PHP and JS script will be made available both locally and on GitLab.

OTC remains our modern measure of time and will continue to improve relative to refinement of data. The Chromium extension displaying OTC day of year and year remains available here: otcext [download .zip]
Storm in a Box (Maker Faire New York)
Per request .. assisting in (doing) the construction of a display project for IONYC and the Boys and Girls Club of Astoria for Maker Faire NYC. The original proposal was for a Raspberry Pi 'weather station' .. but seeing as 'weather' is not abundant at a booth in Queens, we (me) decided to bring the weather to the weather station.


Ingredients
(2) Arduino Uno
Raspberry Pi
Wind Vane
Anemometer
Rain Gauge
Adafruit Neopixels
Water Pump
12V Fan
Servo

Arduino Neopixels Lightning Code
https://hackaday.io/project/161295-storm-in-a-box/log/152968-lightning-neopixel-code-borrowed-and-modd-from-james-bruce

Notations
1. Acrylic acquired from disposed picture frames. So .. so much waste.
2. Wind is windy .. stop being so negative pressure!
3. Deadline was this project's undoing; shd have dome'd.
4. Due to circumstances .. SIAB will be left to a third party to operate (?!) at MFNY

Archive
https://hackaday.io/project/161295-storm-in-a-box
Last PageNext Page