Skip to content

13. Skin Electronics

ASSIGNMENT

Document the concept, sketches, references also to artistic and scientific publications Design a skin circuit: Build your own version of the “Skin masquerade party” project or Build your own version of the “Twinkle Nails” project Document the project and included all source files and all materials used Make a video with your skin electronic working Make a performance of your project functioning

Code Example

Use the three backticks to separate code.

#include <CapacitiveSensor.h>
#include <Adafruit_NeoPixel.h>

#define LED_PIN    1

#define LED_COUNT 4

Adafruit_NeoPixel strip(LED_COUNT, LED_PIN, NEO_GRB + NEO_KHZ800);


CapacitiveSensor   cs = CapacitiveSensor(4, 3);       // 10M resistor between pins 4 & 2, pin 2 is sensor pin, add a wire and or foil if desired

int treshold = 500;

void setup()
{
  strip.begin();           // INITIALIZE NeoPixel strip object (REQUIRED)
  strip.show();            // Turn OFF all pixels ASAP
  strip.setBrightness(50); // Set BRIGHTNESS to about 1/5 (max = 255)
}

void loop()
{
  long total1 =  cs.capacitiveSensor(30);

  if (total1 < treshold) {
    strip.fill(strip.Color(0,0,255),0,4);
  }
  else {
    strip.fill(strip.Color(0,255,255),0,4);
  }
  strip.show();

  delay(100);                             // arbitrary delay to limit data to serial port
}

Last update: 2022-01-12
Back to top