Week 10: Final Project Proposals

Here are my 3 ideas for my final project:

Idea 1:


It is an accompany lamp that put on your working table. The color of light is warm yellow. When you touch the body of it, it will show red light which means she is shy. Also when you open the light, it may turn from warm yellow to purple which means she wants you to play with her.

Also, in the morning, it will change color due to the weather outside as a reminder what weather is today.


Idea 2:


Sometimes I may forget to close the fridge or use too much strength to close the door which will bounce off but I do not notice that, so this is a reminder which put at the fridge to remind you to close the fridge. If you do not close the fridge, this reminder will play some music to remind you to close the fridge.


Idea 3:


Previously, the smart medicine box does not show what the medicine is in each box. But the medicine always looks very similar. This medicine box is to tell you what medicine is inside ( which you input it when you put the medicine inside the box) and remind you the time to take it.

Lantern Fish – Halloween Costume


Here is my Halloween Costume. I was so excited after finishing it. It is really an unforgettable experience. Not only the challenging process of making the hood but also walking at the amazing parade wearing the hood.


  • 1 RGB Neopixel LEDs
  • 1 HC-SR04 Ultrasonic Sonar Distance Sensor
  • 1 GEMMA  – Wearable Microcontroller
  • 1 Lithium Ion Polymer Battery

  • Fleece
  • Felt
  • Stuffing
  • Velcro
  • Iron wire

Initial proposal:


I really like this hood initially. But the sewing was a very intricate task and harder then I had expected. I was trying to find what the other people did and learned how to make this hood. It is really tough and I tried to make the hood again and again. Finally, I made it even though it is not perfect. I also use the velcro to make this hood more suitable for the head. I added the detail to the fish like eyes, teeth, fins, and etc.


Besides making the whole hood, another challenge is to connect the light with hood. I have tried different ways like tied it on the breadboard. But finally I used the iron wire to make it like a headband which is much more stable.


For the circuit board. At first, I didn’t realize the distance sensor cannot be hidden in the hood. It must be at outside the hood without anything in front of it. Then I tried to tie it with the neopixel, making them like a little fish.

Below are more pictures and the code:


#include <Adafruit_NeoPixel.h>

#define PIN 1

#define NUM_LEDS 1

#define BRIGHTNESS 200

#define Trig 0 
#define Echo 2 
float cm; 
float temp; // 
// Parameter 1 = number of pixels in strip
// Parameter 2 = pin number (most are valid)
// Parameter 3 = pixel type flags, add together as needed:
//   NEO_RGB     Pixels are wired for RGB bitstream
//   NEO_GRB     Pixels are wired for GRB bitstream, correct if colors are swapped upon testing
//   NEO_RGBW    Pixels are wired for RGBW bitstream
//   NEO_KHZ400  400 KHz bitstream (e.g. FLORA pixels)
//   NEO_KHZ800  800 KHz bitstream (e.g. High Density LED strip), correct for neopixel stick
Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUM_LEDS, PIN, NEO_RGB + NEO_KHZ800);

int inches = 0;

long readUltrasonicDistance(int pin)
  pinMode(pin, OUTPUT);  // Clear the trigger
  digitalWrite(pin, LOW);
  // Sets the pin on HIGH state for 10 micro seconds
  digitalWrite(pin, HIGH);
  digitalWrite(pin, LOW);
  pinMode(pin, INPUT);
  // Reads the pin, and returns the sound wave travel time in microseconds
  return pulseIn(pin, HIGH);

void setup()
//  Serial.begin(9600);
  pinMode(Trig, OUTPUT);
  pinMode(Echo, INPUT);
  pinMode(1, INPUT);
  strip.show(); // Initialize all pixels to 'off'


void loop()
  digitalWrite(Trig, LOW); 
  digitalWrite(Trig, LOW); 
  temp = float(pulseIn(Echo, HIGH)); 
  cm = (temp * 17 )/1000; 

if (cm < 30){
    colorWipe(strip.Color(0, 255, 0), 50); // Red
  } else if (cm >=30 && cm < 500){
  colorWipe(strip.Color(100, 100, 100), 50); 

void colorWipe(uint32_t c, uint8_t wait) {
  for(uint16_t i=0; i<strip.numPixels(); i++) {
    strip.setPixelColor(i, c);

Week 7 Costume

This week I focus on both the circuit and the physical Lanternfish. My neopixel and other items are still on the way, so I use Tinkercad to test it. Here is the circuit.

ultrasonic sonar sensor

And I am trying to figure out how to measure the exact piece and make it fit into the head. Here are some photos of the process. I tried different kinds of methods to draw and cut. It is very difficult because I have no experience before. But it is a very interesting and special experience.


Here’s my To-Do for the next week:

  1. Cut the actual size on flannel fabric.
  2. Finish sewing the whole mask. Add teeth, fin, tail, and eyes.
  3. Solder the circuit and make it work.
  4. Put circuit into the lantern fish.

Halloween Costume Sketch

Here are my three sketches of Halloween Costume this week.


My first idea is a hat. It contains 4 RGB LEDs. 4 LEDs changes color, on and off when wearing it. Component: Neopixel, 4 RGB LEDs, Coin battery.

I was trying to figure out the circuit but not sure how to connect the LED and the Neopixel board.


The second sketch is Eyeball headband. I gonna use two Ping-Pong balls and contains LED inside. When someone comes close, the LEDs in Ping-Pong balls will on. Component: 2 Red LED, 2 x 1 kΩ Resistor, PIR sensors, 4.5V Battery, 2 Pingpang balls.


The third sketch is a Deep Sea Angler (Lantern Fish) Mask. It kind like a mask. Because there is a light hang in front of the face of Lantern fish, I am trying to put a Green LED into a Ping-Pong ball as the front light. Like the second sketch, when someone comes close, the LED will on and you can all the face of the fish. Component: PIR sensors, 1 Green LED, 4.5V Battery, 1 kΩ Resistor.

Week 5 Homework

This week I have a hard time to figure out how to put the transistor in the right direction. And the Neopixel strip light is so interesting!

Here are the videos of this week’s homework.

Analog input output


NeoPixel Lighting