Kevin Enriquez Ambrocio
Published

Gut-Gut Connection

A sensory device that listens to your gut—literally—triggering light, wind, and flow in response to your body’s subtle signals.

BeginnerFull instructions provided10 hours125
Gut-Gut Connection

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Piezo Sensor
ControlEverything.com Piezo Sensor
×1
Axial Fan, 12 VDC
Axial Fan, 12 VDC
×1
Rotary potentiometer (generic)
Rotary potentiometer (generic)
×1
Power MOSFET N-Channel
Power MOSFET N-Channel
×1
1N4007 – High Voltage, High Current Rated Diode
1N4007 – High Voltage, High Current Rated Diode
×1
Resistor 220 ohm
Resistor 220 ohm
×1
LilyPad Rainbow LED (strip of 7 colors)
SparkFun LilyPad Rainbow LED (strip of 7 colors)
×1
air pump
×1

Software apps and online services

Arduino IDE
Arduino IDE
Fusion
Autodesk Fusion

Hand tools and fabrication machines

3D Printer (generic)
3D Printer (generic)

Story

Read more

Custom parts and enclosures

Stirrer base

Code

Combined Sensors

C/C++
#include <Adafruit_NeoPixel.h>

#define TOUCH_PIN 2
#define PIEZO_PIN A0
#define POT_PIN A1
#define RELAY_PIN 7
#define FAN_PWM_PIN 5
#define LED_PIN 6
#define NUMPIXELS 10

Adafruit_NeoPixel pixels(NUMPIXELS, LED_PIN, NEO_GRB + NEO_KHZ800);

void setup() {
  pinMode(TOUCH_PIN, INPUT);
  pinMode(RELAY_PIN, OUTPUT);
  pinMode(FAN_PWM_PIN, OUTPUT);
  pixels.begin();
  Serial.begin(9600);
}

void loop() {
  int piezoValue = analogRead(PIEZO_PIN);
  int potValue = analogRead(POT_PIN);
  int mappedPot = map(potValue, 0, 1023, 0, 255);
  bool buttonPressed = digitalRead(TOUCH_PIN) == HIGH;

  if (buttonPressed) {
    digitalWrite(RELAY_PIN, HIGH);
    analogWrite(FAN_PWM_PIN, mappedPot);
  } else {
    digitalWrite(RELAY_PIN, LOW);
    analogWrite(FAN_PWM_PIN, 0);
  }

  // LED response to gut signal
  int brightness = map(piezoValue, 0, 1023, 0, 255);
  for (int i = 0; i < NUMPIXELS; i++) {
    pixels.setPixelColor(i, pixels.Color(brightness, 0, brightness)); // Magenta
  }
  pixels.show();

  delay(50);
}

Credits

Kevin Enriquez Ambrocio
3 projects • 9 followers

Comments