Cov txheej txheem:

Txoj Haujlwm Acrophobia: 6 Kauj Ruam
Txoj Haujlwm Acrophobia: 6 Kauj Ruam

Video: Txoj Haujlwm Acrophobia: 6 Kauj Ruam

Video: Txoj Haujlwm Acrophobia: 6 Kauj Ruam
Video: Swiss Alps: Interlaken, Paragliding, Grindelwald, Jungfrau | Must-See Tips 2024, Hlis ntuj nqeg
Anonim
Qhov Project Acrophobia
Qhov Project Acrophobia

Nyob zoo cov menyuam, yog li qhov no yog qhov haujlwm txaus nyiam heev. Hauv tsev kawm ntawv, peb chav kawm yuav tsum ua qhov haujlwm hu ua 'Yog Qhov No, Tom Qab Ntawd', uas peb yuav tsum siv Arduino los ua ib yam dab tsi. Peb tuaj yeem xaiv xaiv txhua yam los ua, tsuav yog peb siv Arduino. Nws kuj tseem ua tau yog tias koj txoj haujlwm tsis ua tiav, yog li kuv pib sim.

Kuv tau muaj kev ntshai ntawm qhov siab ntev li kuv nco tau. Nws tsis phem npaum li nws yog thaum kuv tseem yau, tab sis kuv tseem tsis nyiam saib thaum sawv saum lub tsev. Tias yog vim li cas kuv thiaj ua 'tsom iav tsom iav', tab sis qhov yog, Kuv tsis paub tias nws ua haujlwm li cas. Saib, Kuv ib txwm siv cov hauv paus ntsiab lus ntawm daim iav tsis muaj qhov kawg, tab sis tsis yog yuav ib qho RGB coj sawb, Kuv yuav ib qho RGBW coj sawb thiab kuv tsis paub yuav txuas nws mus rau Arduino li cas.

Yog tias koj xav ua qhov kev sim me me no rau koj tus kheej, cia kuv qhia koj li cas.

Ceeb toom! Thov tsis txhob siv qhov no thaum koj mob vwm. Kuv tsis tuaj yeem nyuab siab qhov no txaus.

Kauj Ruam 1: Kauj Ruam 1: Tau Cov Khoom Siv

Kauj Ruam 1: Tau Cov Khoom
Kauj Ruam 1: Tau Cov Khoom

Yog li hais mav ntawm no yog yam koj yuav xav tau:

- Arduino Ib.

- Ib lub khob cij.

- Ib txheej ntawm daim kab xev jumper xov hlau.

- Ib qho RGB (W) coj kab txaij (Kuv pom zoo kom muaj kab txaij RGB yog tias koj tsis muaj txuj ci ib yam li kuv. Lawv tau qhia ntau yam qhia yuav ua li cas txuas ib qho rau Arduino).

-Ob Daim Npog Diving (Kuv tuaj yeem hais qhia qhov no vim tias lawv yooj yim rau rub sib nrug:

- Daim iav Qhov Rai Zaj Duab Xis.

- Ib daim ntawv txiav ntoo.

- Ducktape.

- Daim kab xev npog.

- Ob daim kab xev

- Xim thiab txhuam xim.

- Lub raj mis tsuag (koj xav tau nws los sau nws nrog dej thiab tsuag rau ntawm iav).

Kauj Ruam 2: Kauj Ruam 2: Hloov Kho Cov Iav

Kauj Ruam 2: Hloov Kho Cov iav
Kauj Ruam 2: Hloov Kho Cov iav
Kauj Ruam 2: Hloov Kho Cov iav
Kauj Ruam 2: Hloov Kho Cov iav
Kauj Ruam 2: Hloov Kho Cov iav
Kauj Ruam 2: Hloov Kho Cov iav

1. Nqa koj lub qhov ncauj dhia dej thiab cais txhua yam khoom rau ib leeg

2. Tau lub iav los ntawm koj lub qhov ncauj dhia dej thiab txiav tawm qee qhov ntawm Daim iav Qhov Rai Zaj Duab Xis.

3. Tsuag koj lub iav thiab zaj duab xis nrog dej thiab tso nws kom zoo zoo rau saum ib leeg.

4. Nqa ib daim tawv tawv tawv thiab sim tawm tag nrho cov cua ntawm huab cua.

5. Txiav tawm zaj duab xis ntau dhau.

Kauj Ruam 3: Kauj Ruam 3: Muab Txhua Yam Rov Los Rau Qhov Chaw

Kauj Ruam 3: Muab txhua yam rov qab rau hauv qhov chaw
Kauj Ruam 3: Muab txhua yam rov qab rau hauv qhov chaw
Kauj Ruam 3: Muab txhua yam rov qab rau hauv qhov chaw
Kauj Ruam 3: Muab txhua yam rov qab rau hauv qhov chaw
Kauj Ruam 3: Muab txhua yam rov qab rau hauv qhov chaw
Kauj Ruam 3: Muab txhua yam rov qab rau hauv qhov chaw

1. Muab koj daim iav tsom iav tso rau hauv ob qho tib si koj lub qhov ncauj dhia dej (nco ntsoov tias tsuas yog ib qho muaj cov yas yas).

2. Ua kom txhua yam ruaj ntseg.

3. Muab daim kab xev coj los nrog ob daim kab xev (nws tsis muaj teeb meem yog tias cov hlua coj tau ntev me ntsis dhau lawm, peb tuaj yeem zais nws hauv cov theem tom ntej).

Kauj Ruam 4: Kauj Ruam 4: Tiav Kov

Kauj ruam 4: Tiav Kov
Kauj ruam 4: Tiav Kov
Kauj ruam 4: Tiav Kov
Kauj ruam 4: Tiav Kov
Kauj ruam 4: Tiav Kov
Kauj ruam 4: Tiav Kov
Kauj ruam 4: Tiav Kov
Kauj ruam 4: Tiav Kov

1. Siv daim kab xev los txuas lub qhov ncauj dhia dej (xyuas kom cov xov hlau nyob sab nraud).

2. Muab daim kab xev npog rau ntawm qhov chaw koj xav pleev xim.

3. PAJ!

Kauj Ruam 5: Kauj Ruam 5: Coding

Kauj ruam 5: Coding
Kauj ruam 5: Coding

AH yog, qhov lom zem ib feem. yog li qhov no yog kuv tus lej zaj sawv, tab sis yog tias koj xav sim ntau dua los ntawm kev pom tias qee yam xim muaj txiaj ntsig ntau dua lossis lwm yam uas koj xav sim, tsis txhob ua li ntawd.

Nco tseg: Kuv tau siv circuits.io los saib seb nws puas yog thiab nws ua li ntawd tsis txhob txhawj.

Kuv tau siv ArduinoIDE thiab neopixel lub tsev qiv ntawv:

#suav nrog #txhais tus lej PIN 6

#define NUM_LEDS 24

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

void teeb tsa () {

strip.begin ();

strip.show ();

}

void voj () {

zaj sawv (20);

}

void rainbowCycle (int SpeedDelay) {

peb *c;

uint16_t kuv, j;

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

rau (kuv = 0; kuv <NUM_LEDS; kuv ++) {

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

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

}

showStrip ();

ncua (SpeedDelay);

}

}

byte * Log (byte WheelPos) {

zoo li qub byte c [4];

yog (WheelPos <85) {

c [0] = WheelPos * 3;

c [1] = 255 - WheelPos * 3;

c [2] = 0;

c [3] = 0;

} lwm yog (WheelPos <170) {

WheelPos -= 85;

c [0] = 255 - WheelPos * 3;

c [1] = 0;

c [2] = WheelPos * 3;

c [3] = 0;

lwm yam {

WheelPos -= 170;

c [0] = 0;

c [1] = WheelPos * 3;

c [2] = 255 - WheelPos * 3;

c [3] = 0;

}

rov c;

}

tsis muaj dabtsis showStrip () {

#ifdef ADAFRUIT_NEOPIXEL_H

strip.show ();

#ib

}

void setPixel (int Pixel, byte liab, byte ntsuab, byte xiav, byte dawb) {

#ifdef ADAFRUIT_NEOPIXEL_H

strip.setPixelColor (Pixel, strip. Color (liab, ntsuab, xiav, dawb));

#ib

}

tsis muaj dab tsi setAll (byte liab, byte ntsuab, byte xiav, byte dawb) {

rau (int kuv = 0; kuv <NUM_LEDS; kuv ++) {

setPixel (kuv, liab, ntsuab, xiav, dawb);

}

showStrip ();

}

Kauj ruam 6: Nws yog

Yog Nws!
Yog Nws!

Vam tias koj nyiam cov lus qhia!

- Brechje

Pom zoo: