Yufeng’s Final Halloween Costume

Glasses and Glove from Halloween Shop

Detail of the glasses



Circuit Composition

  1. Motion sensor
  2. Gemma board
  3. Small lipoly battery
  4. Transistor 
  5. 100 Ω resistance
  6. Diode
  7. 5 V cool white LED strip

Other tools

  1. Tape
  2. Hot glue
  3. Wire (for structure)
  4. Chipboard (for eye protection)


  1. Choose the motion sensor that is relatively more sensitive in order to trigger the light with small gestures.
  2. Pre-design how the curcuit attach on the glasses. As the space for curcuit on glasses in limited, the sensor location needs to be combined with glasses’s structure fittingly. Also, for the wires and battery.


// constants won’t change. They’re used here to set pin numbers:
const int buttonPin = D0; // the number of the pushbutton pin
const int ledPin = vout; // the number of the LED pin

// variables will change:
int buttonState = D1; // variable for reading the pushbutton status

void setup() {
// initialize the LED pin as an output:
pinMode(ledPin, OUTPUT);
// initialize the pushbutton pin as an input:
pinMode(buttonPin, INPUT_PULLUP);

void loop() {
// read the state of the pushbutton value:
buttonState = digitalRead(buttonPin);

// check if the pushbutton is pressed. If it is, the buttonState is HIGH:
if (buttonState == LOW) {
// turn LED on:
digitalWrite(ledPin, HIGH);
Serial.println(“switch has been triggered”);

Author: yufengyvan

Hi I’m Yufeng or you can call me Yvan. I’m from ShenZhen which is a beautiful modern city in the south of China. My undergrads major was Urban Planning which is considering a larger scale of development and design for the certain area of city. But I’m also interested in making beautiful and functional products as well as the thinking in systematic problem. I’m looking forward to the course for learning all kinds of new making methods with all of you.

%d bloggers like this: