Main Menu

Secondary Menu

Relaxation Goggles - ITTT

Introduction: Relaxation Goggles - ITTT

HKU Project - ITTT (If This Then That) - Julia Berkouwer, 1B

Have you ever felt stressed out and you just don't know how to calm yourself, then you should try these relaxation goggles! You put them on and close your eyes, then a breathing pattern will play. By following this breathing pattern your breathing rythem will go down to breathing in and out 6 times a minute. Doing this it releave dayly stress.

You can also track your breathing intensity by flipping on a switch, using a fsr-sensor.

With this toturial I will guide you through building your own relaxation goggles step by step.

Step 1: Materials and Parts Needed:

Materials:

1x arduino uno;

1xbreadboard or PCV;

3x 10k resistors

Wires(Preferably different colors so it is easier to tell which things are going to the ground and which are going to different pins, etc.);

Some heat shrinking tubes;

2x NeoPixel Ring - 16 x 5050 RGB LED with Integrated Drivers;

1x switch;

1x FSR sensor;

1x SteamPunk goggles (You can buy these at a party shop, they are easy to use because the neopixel ring fits perfectly on the glasses. You always try using other goggles or create your own.);

1x some sort of an (elastick) band to put around your chest.

Tools:-Laptop

-Soldering iron

-Arduino IDE software

You will see two buttons and a switch on my pvc, I only use the left button to connect it to the switch, I don't use the second button on the right of the picture. I put the buttons on the pvc before realising i don't need them and I needed to use a switch instead.

Below here you'll see pictures of everything I used:

Step 2: Neopixel Rings

The white wire is connected to the ground on the back of the neopixel ring.

The orange wire is connected to the 5V.

And the brown wire is connected to the data input

Step 3: Connections

This is what my breadboard looked like while prototyping, you can use this as a reference.

I also made a layout of the wiring of what it is supposed to look like with just one button.

Step 4: The Code:

It is probably not the most efficient code, but it works for me. Challange yourself and try to make it more efficient ;P

#include

// Which
pin on the Arduino is connected to the NeoPixels?

#define
PIN 6

// Which
pin on the Arduino is connected to the button

#define
BUTTON_PIN 9

// How
many NeoPixels are attached to the Arduino?

#define
NUMPIXELS 16

// When
we setup the NeoPixel library, we tell it how many pixels, and which pin to use
to send signals.

// Note
that for older NeoPixel strips you might need to change the third
parameter--see the strandtest