Debut: The Acrophobia Project

Hi guys, so this was a quite interesting externalise. In school, our course of study had to do a project named 'If This, Then That', in which we had to use an Arduino to make anything. We could literally choose anything to make, as long A we used an Arduino. It was besides okay if your project failed, so I started an experiment.

I have had a fear of heights for as long as I give the sack remember. It's not as bad as it was when I was junior, but I still behave not like to expression down when standing on spinning top of a construction. That's why I made 'acrophobia glasses', but the matter is, I wear't make out if it works. See, I basically used the principles of an unnumberable mirror, but as an alternative of purchasing an RGB LED strip, I bought an RGBW LED strip and I don't know how to link up it to the Arduino.

If you want to do this petty experimentation yourself, let me render you how.

Warning! Please do non use this when you're epileptic. I can not emphasize this enough.

Whole step 1: Step 1: Get the Materials

And then guys here's what you're going to need:

- Arduino Uno.

- A breadboard.

- A set of bread board jumper wires.

- An RGB(W) led leach ( I recommend an RGB strip if you are just as inexperient as me. They'atomic number 75 are a lot of tutorials on how to relate nonpareil to an Arduino).

- Two Diving Masks (I can definitely recommend these because they are somewhat comfortable to pull apart: https://www.bol.com/nl/p/tunturi-duikbril-senior-b... ).

- Mirror Windowpane Film.

- A cardboard stonecutter.

- Ducktape.

- Masking paper.

- Double sided tape measure

- Paint and a paintbrush.

- A spray bottleful (you indigence it to make full it with water and spray it connected the glass).

Step 2: Step 2: Modify the Glass

1. Study your diving masks and branch out all of the items for from each one other

2. Get the glass from your diving masks and new-mown out any of the Mirror Window Take.

3. Spray your glass and film with pee and place it cautiously on top of from each one strange.

4. Grab a rough piece of fictile and try to get taboo all of the bubbles of air.

5. Cut off the nimiety film.

Step 3: Step 3: Put Everything Back Into Place

1. Place your mirror glass in some your diving masks (make a point that only one has a plastic band).

2. Make sure as shootin everything is secure.

3. Place the Led strip with double sided tape ( it doesn't matter if the led strip is a little bit too long, we can hide it in a future step).

Mistreat 4: Step 4: Finishing Touch

1. Use duck tape to connect the diving masks ( make sure the wires are happening the outside).

2. Place masking mag tape on the places you want to paint.

3. PAINT!

Step 5: Step 5: Coding

Ah yes, the fun part. so this is my rainbow encode, but if you want to experiment Sir Thomas More past seeing if certain colors have more consequence or anything else you'd like to try exterior, feel free to do so.

Note: I've used circuits.Io to see if IT actually and it does so don't worry.

I've used ArduinoIDE and the neopixel library:

#include
#delimitate PIN 6

#define NUM_LEDS 24

Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUM_LEDS, PIN, NEO_GRB + NEO_KHZ800);

void setup() {

strip.begin();

strip.present();

}

void loop() {

rainbowCycle(20);

}

empty rainbowCycle(int SpeedDelay) {

byte *c;

uint16_t i, j;

for(j=0; j<256*5; j++) {

for(i=0; i< NUM_LEDS; i++) {

c=Wheel(((i * 256 / NUM_LEDS) + j) & 255);

setPixel(i, *c, *(c+1), *(c+2), *(c+3));

}

showStrip();

delay(SpeedDelay);

}

}

byte * Wheel(byte WheelPos) {

static byte c[4];

if(WheelPos < 85) {

c[0]=WheelPos * 3;

c[1]=255 - WheelPos * 3;

c[2]=0;

c[3]=0;

} else if(WheelPos < 170) {

WheelPos -= 85;

c[0]=255 - WheelPos * 3;

c[1]=0;

c[2]=WheelPos * 3;

c[3]=0;

} else {

WheelPos -= 170;

c[0]=0;

c[1]=WheelPos * 3;

c[2]=255 - WheelPos * 3;

c[3]=0;

}

return key c;

}

void showStrip() {

#ifdef ADAFRUIT_NEOPIXEL_H

disrobe.demo();