TVShow 4X35 Doctor Range (NodeMCU)
IoTkazam! There is nothing up my sleeve .. save for this giant WIFI and Bluetooth enabled flash paper igniter.With a sleight of hand .. a touch of the screen .. and poof. No one is paying attention any ways bcz they are looking at their phones too. #MillennialMagic


Ingredients
NodeMCU 12E
HC-05 Bluetooth Module
(3) RC Glow Plugs
(3) 5V Relay Modules
(3) AA Batteries
CR2 3V Battery
Flash Paper

Code
// Magic Flame Hand Thing
// Bluetooth Only Version
// Vije Miller

// Pins
int one = D0;
int two = D1;
int thr = D2;

// Burn Time
int burn = 1500;
int mix_burn = 1500;

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

pinMode(one, OUTPUT);
pinMode(two, OUTPUT);
pinMode(thr, OUTPUT);

digitalWrite(one, LOW);
digitalWrite(two, LOW);
digitalWrite(thr, LOW);
}

void loop() {

if (Serial.available())
{
char data;
data = Serial.read();
if (data == '1') {
digitalWrite(one, HIGH);
Serial.write("Yep");
delay(burn);
digitalWrite(one, LOW);
}
else if (data == '2') {
digitalWrite(two, HIGH);
Serial.write("Sure");
delay(burn);
digitalWrite(two, LOW);
}
else if (data == '3') {
digitalWrite(thr, HIGH);
Serial.write("Okay");
delay(burn);
digitalWrite(thr, LOW);
}
else if (data == '4') {
digitalWrite(one, HIGH);
Serial.write("Bomb's Away");
delay(mix_burn);
digitalWrite(two, HIGH);
delay(mix_burn);
digitalWrite(one, LOW);
digitalWrite(thr, HIGH);
delay(mix_burn);
digitalWrite(two, LOW);
delay(mix_burn);
digitalWrite(thr, LOW);
}
}

}

Notations
1. Prototype .. read the room.
2. NodeMCU (wifi) + HC-05 (not BLE) + TIP120 (relays) shd be a maker board. "VijeCU"?
3. Bcz the glow plugs are simply resistance wire coils, they are driving current and grounding the circuit. Thus, per this particular purpose, we must use relays .. which is a s/o/b after having had confidence in the transistor model.
4. WTH happen to those Radio Shack drawer 'mini' 5V relays?!
5. Isolate.
6. "Fallen Hero" by Emily M. Klassen

Archive
https://hackaday.io/project/163522-nodemcu-bt-wrist-hand-flame-flash-idk
https://www.audioblocks.com/stock-audio/fallen-hero-153246.html
TVShow 4X34 WWJD
TVShow 4X33 Beat
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
Last PageNext Page