Cov txheej txheem:

Sib tham sib Infinity Daim iav: 9 Cov Kauj Ruam (nrog Duab)
Sib tham sib Infinity Daim iav: 9 Cov Kauj Ruam (nrog Duab)

Video: Sib tham sib Infinity Daim iav: 9 Cov Kauj Ruam (nrog Duab)

Video: Sib tham sib Infinity Daim iav: 9 Cov Kauj Ruam (nrog Duab)
Video: Zoo Siab Nrog Koj - Paj Tsua Thoj [ Official MV ] Nkauj Tawm Tshiab 2022 2024, Hlis ntuj nqeg
Anonim
Image
Image
Sau tag nrho cov khoom koj yuav xav tau (lossis Xav Tau)
Sau tag nrho cov khoom koj yuav xav tau (lossis Xav Tau)

Txoj haujlwm rau chav kawm no yooj yim tab sis nyuaj: Ua qee yam sib tham nrog Arduino. Nws yuav tsum tau tsim kom zoo, thev naus laus zis txaus thiab txaus rau qhov deb raws li cov tswv yim qub niaj hnub no mus rau ntawm qhov chaw zoo li Cov Lus Qhia. Los ntawm qhov pib, Kuv tau txaus siab rau LEDs. Kuv txoj haujlwm yuav tsum suav nrog qee yam nrog LEDs, yog li thawj qhov kuv xav txog yog cov pom pom LED uas siv cov nkauj los ua qhov chaw los qhia qhov nrov nrov ib zaus piv txwv. Kuv pom tau sai tias lub sijhawm peb yuav tsum ua tiav txoj haujlwm no zoo nkauj luv thiab kuv xav ua qhov muag pom uas yuav muaj txhua tus coj teb ib tus zuj zus rau cov nkauj. Qhov ntawd yuav siv sijhawm ntev heev yog li kuv txiav txim siab ua lwm yam. Hloov chaw ntawm muaj qee yam ua haujlwm tau, Kuv yeej nyiam lub tswv yim ntawm qee yam zoo nkauj zoo nkauj. Ib yam dab tsi nrog LEDs koj tuaj yeem saib rau hnub nyoog … Daim iav infinity. Qhov iav infinity ib txwm yog lub kicker thiab ua kom LEDs sab hauv ua qee yam thaum koj thawb lub pob qee yam yuav yog nyob hauv qhov kev ua haujlwm no. Hloov chaw ntawm kev ua tus qauv kuv tau tsim qhov sib txawv me ntsis (uas tau ua tiav ua ntej ntawm chav kawm) uas muaj cov xwm txheej nyob nruab nrab ntawm daim iav ib yam li uas muaj cov hlua LED nyob ib puag ncig nws yog li nws zoo li ntauwd tsis muaj qhov kawg loj loj nce los ntawm tsis muaj dab tsi.

Kev tshoov siab los ntawm iav thiab zoo saib ntawm daim iav infinity Kuv xav kom muaj lub tswv yim uas yog qhov txaus siab npaum li tus so. Muaj kuv tuaj nrog cov nyees khawm uas xav tau tsis muaj siab (thiab tsis muaj kev sib cuag tiag yog tias koj hloov qhov nkag siab ntawm koj lub sensor) kom tau qhib thiab yog li tsim kev xav ntau yam ntxiv.

Txaus tham, cia peb tsim lub tsev!

ps ua. koj tuaj yeem ua qhov haujlwm no loj npaum li koj nyiam, tsuas yog nco ntsoov, ntau LEDs koj siv, lub zog nws xav tau ntau dua;)

Kauj Ruam 1: Sau tag nrho Cov Khoom Koj Yuav Xav Tau (lossis Xav Tau)

Cov iav tsom iav tsis tuaj yeem pheej yig tshwj xeeb tshaj yog thaum koj xav siv lawv nrog ib tus zuj zus tuaj yeem hais qhia LEDs. Tsis tas li yog tias koj tsis tau ua ib yam dab tsi zoo li no ua ntej koj yuav xav tau ntxiv ob peb yam cuab yeej rau koj cov khoom siv zoo li cov hlau yaj lossis iav txiav piv txwv. Ua ntej kuv yuav teev cov ntu koj yuav xav tau (nco ntsoov rau qhov sib txawv me me qhov project koj tsuas yog yuav tsum ntsuas txhua yam qis lossis nce raws li koj qhov piv txwv) rau kev tsim thiab daim ntawv teev npe thib ob yuav yog cov cuab yeej uas kuv tau siv los ua qhov no.

Qhov: 8x 6mm tuab 60x60cm MDF panels1x 3mm tuab 50x50cm Plexiglas vaj huam sib luag 1x 3m ws2812 5050smd LED Sawb nrog 60 LEDs rau ib lub meter, lossis ib puag ncig 160 LEDs (xyuas kom nws muaj 5V kev tsheb nqaj hlau hloov ib qho 12V) 1x 5mm tuab 50x50cm iav iav (iav daim iav muab cov txiaj ntsig zoo tshaj plaws! Koj tuaj yeem siv lwm hom iav tab sis nws tsuas yog yuav tsis zoo li!) 1x Arduino Uno (Ib qho me me lossis loj dua Arduino yuav txaus ntev li nws tau siv los ntawm 5V thiab muaj tsawg kawg 7 digital kuv /O pins1x 5V 7A dc adapter (Qhov no yuav sib txawv yog tias koj tau txais txoj haujlwm me me lossis loj dua yog li nco ntsoov xam ntau npaum li cas tam sim no koj txoj haujlwm yuav kos!) 1x Perfboard 15x15cm5x xim sib txawv 24 AWG hloov pauv cov xov hlau (ntau ntawm nws, tsuas yog yuav ib pob ntawv uas yuav tsum txaus) 1x 50x50cm ntiag tug qhov rai tint ntawv ci, koj yuav tsum txheeb xyuas kom paub tseeb tias koj muaj qhov xav tau zoo kom tau txais txiaj ntsig zoo tshaj plaws. thawj zaug vim nws zoo nkauj nyuaj 1x CAP1188 (at24qt1070) 5Key capacitive sens los yog breakout1x Ib qho me me ntawm tooj liab lossis txhuas daim kab xev (tau 1 meter yog tias koj xav kom paub tseeb) 1x pheej yig cov kua roj vanish

Cov cuab yeej: Lub tshuab txiav ntoo (yuav tsum muaj peev xwm txiav Plexiglas thiab 6mm tuab MDF panels txog 60x60cm) Cov cuab yeej siv yooj yim (me me fretsaw, ntoo cov ntaub ntawv, sanding ntawv ib qho grit, laum, thiab lwm yam) Soldering hlau Cables cutters Kub kub SolderWoodglueSome thav duab clampsGlass cutter

Kauj Ruam 2: Txiav Txhua Yam

Txiav Txhua Yam
Txiav Txhua Yam
Txiav Txhua Yam
Txiav Txhua Yam

Sijhawm los txiav ntoo! Thiab iav! Thiab Plexiglas! Siv cov ntaub ntawv kuv muab los txiav txhua tus ncej ntoo ib tus zuj zus raws li ib txheej hauv lub tshuab txiav laser. Koj tuaj yeem siv txheej txheej kawg los ua tus qauv rau lub xwmfab uas xav tau kom txiav tawm hauv qhov nruab nrab ntawm daim Plexiglas. Txog daim iav, koj yuav tsum ntxuav nws ua ntej txhua yam kom tsis muaj dab tsi nyob saum cov nplaim dej ntxiv lawm, tom qab qhov ua tib zoo ntsuas tawm yog li koj daim iav yog raws nraim 50x50cm thaum txiav. Tom qab ntawd hauv ib qho kev txav mus los ruaj khov siv lub log carbide ntawm koj lub iav txiav kom txiav iav. Nws yuav tsis tawg tag nrho tab sis yuav tsum muaj qhov khawb tawm tom qab, yog tias tsis yog, sim dua. Tom qab ntawd ua tib zoo ua kom khoov thiab ua kom daim iav tawg. Koj ua tiav nrog kev txiav!

Kauj ruam 3: Kua nplaum

Nplaum
Nplaum
Nplaum
Nplaum
Nplaum
Nplaum

Ua ntej, peb Muab cov ntoo sib dhos ua ke, Kuv pom zoo kom lo rau hauv qab 2 txheej ua ke. Tom qab ntawd txheej thib 3 txog rau qib 6 ua ke (tsis txuas nws mus rau thawj 2 txheej). Thiab gluing txheej 7 thiab 8 ua ke ib yam nkaus. Kuv pom zoo kom txhua yam ua ke ua cov kauj ruam kawg li koj yuav tsis tuaj yeem nkag mus rau qee qhov ntawm kev tsim tom qab gluing nws ua ke. Qhov khoob khoob hauv nruab nrab kuj tuaj yeem ua ke ua ke tawm sab saum toj. Cia txhua yam kom qhuav yam tsawg 2 teev nyob rau hauv qhov chaw qhuav ntawm qhov sov. Rau daim Plexiglas, peb tab tom yuav siv cov ntawv ci ci, nws tau pom zoo kom koj tau txais ib tus neeg los pab koj vim qhov no yog txheej txheem nyuaj heev thiab koj tsuas tuaj yeem cuam tshuam ntau zaus ua ntej cov ntawv ci tau tawg tas mus li (thiab qhov ntawd $ hlT kim!). Royally xab npum ib sab ntawm koj tus Plexiglas thiab tshem cov txheej tiv thaiv los ntawm cov ntawv ci kom nthuav tawm sab sab. sim ua kom nws zoo thiab du, siv daim npav rho nyiaj lossis qee yam tiaj tiaj kom thawb tawm txhua lub hnab cua uas tau tsim. (nws raug nquahu kom muab lub xwmfab koj txiav tawm ua ntej rov qab los ua kom lub ntsej muag ci). Txiav tawm cov ntawv ci ntau dhau thiab tawm mus kom qhuav yam tsawg ib teev. (nyiam dua hmo ntuj)

Kauj Ruam 4: LEDs Ua Qee Qhov Sawb

LEDs Ua Qee Qhov Sawb!
LEDs Ua Qee Qhov Sawb!
LEDs Ua Qee Qhov Sawb!
LEDs Ua Qee Qhov Sawb!
LEDs Ua Qee Qhov Sawb!
LEDs Ua Qee Qhov Sawb!
LEDs Ua Qee Qhov Sawb!
LEDs Ua Qee Qhov Sawb!

Ntawm 4 daim ntoo me me, peb tab tom yuav lo cov hlua coj. Koj tuaj yeem siv daim kab xev 3m muab rau tom qab ntawm feem ntau ntawm cov kab no. Yog tias tsis kub kua nplaum lossis lwm yam yuav txaus kom ntev li ntev tau. Txiav cov hlua coj mus rau qhov loj me thiab lo rau txhua 4 sab. (tsis txhob hnov qab lub xwmfab nruab nrab!) ntawm ob lub xwmfab nruab nrab thiab ib lub ntoo ntoo muaj qee qhov, tawm qee chav nyob ib puag ncig qhov no vim tias peb yuav ua cov kab hluav taws xob hla lawv. Tom qab koj tau glued LED strips koj tuaj yeem muab lawv ua ke. Qhov no yuav tsum yog ib qho loj coj sawb kom txhua yam yuav tsum tau muab sib dhos ua ke! Txawm tias lub xwmfab nruab nrab.

Kauj ruam 5: Tab sis! Tons … Cia Hlau Rau Lawv

Tab sis! Tons … Cia Hlau Rau Lawv
Tab sis! Tons … Cia Hlau Rau Lawv
Tab sis! Tons … Cia Hlau Rau Lawv
Tab sis! Tons … Cia Hlau Rau Lawv
Tab sis! Tons … Cia Hlau Rau Lawv
Tab sis! Tons … Cia Hlau Rau Lawv

Txog cov nyees khawm muaj peev xwm tsuas yog ua raws daim duab kuv tau muab. Qhov kev txiav tawm qhov kawg yuav mus rau Arduino ntawm ib sab thiab rau koj cov nyees khawm tiag tiag ntawm lwm sab. Tsis txhob hnov qab siv qee cov ntawv txhuas lossis tooj liab rau ntawm qhov chaw (qhov loj dua koj ua daim kab xev ntau dua koj lub pob tau txais!). Cov nyees khawm yuav tsum nyob rau sab saum toj ntawm lub xwmfab nruab nrab.

Kauj Ruam 6: Peb Puas Ua Qhov No?

Peb Puas Ua Qhov No?
Peb Puas Ua Qhov No?
Peb Puas Ua Qhov No?
Peb Puas Ua Qhov No?
Peb Puas Ua Qhov No?
Peb Puas Ua Qhov No?

Txhua yam uas tseem tshuav yog xaim hluav taws xob, tsuas yog txiav tawm lub dc ntsaws qhov kawg ntawm koj lub adapter thiab siv lub tshuab hluav taws xob 1000uF nruab nrab ntawm hauv av thiab 5v xaim. Tom qab ntawv txuas qhov no rau koj teeb tsa raws li qhia hauv daim duab yav dhau los. Koj tseem tuaj yeem txuas cov xov hlau los ntawm cov hlua coj (yuav tsum muaj 3 nkaus xwb) rau Arduino.

Kauj Ruam 7: HACKERTIME

HACKERTIME
HACKERTIME

Cov cai kuv tau muab yuav tsum ua haujlwm tsis muaj teeb meem (koj yuav xav ua si nrog lub pob khawm teeb tsa yog tias koj tau txuas koj lub xov tooj sib txawv) Yog li tsuas yog theej, luam tawm thiab rub tawm!

// Code los ntawm Jael van Rossum | Student Nr. 3032611 // ITTT Project: Ntse Daim iav Infinity

#suav nrog #suav nrog #suav nrog #suav nrog #suav nrog #suav nrog #suav nrog #suav nrog #suav nrog #suav nrog #suav nrog #suav nrog #suav nrog #suav nrog #suav nrog #suav nrog #suav nrog #suav nrog #suav nrog #suav nrog #suav nrog #suav nrog #suav nrog #suav nrog #suav nrog #ncig #ncig

// Tsim chaw hauv nco rau LED_Strip Teeb #define NUM_LEDS 151 #define DATA_PIN 6

// Tshaj tawm Cov Kab Mob thiab tsim Chaw Nyob LED_Strip CRGB leds [NUM_LEDS]; int LED_Hue = 0; int LED_Saturation = 255; int LED_Brightness = 255; int LED_Brightness_Right = LED_Brightness; int LED_Brightness_Top = LED_Brightness; int LED_Brightness_Left = LED_Brightness; int LED_Brightness_Bottom = LED_Brightness; int LED_Color = CRGB (255, 0, 0); CHSV hsv_Val (LED_Hue, LED_Saturation, LED_Brightness);

teeb tsa tsis muaj dab tsi () {Serial.begin (9600);

// Tshaj tawm pinModes tsis tshaj tawm LED_pin raws li uas tau ua tiav saum toj no los ntawm kev txhais DATA_PIN li 6 tus pinMode (7, INPUT); pinMode (8, INPUT); pinMode (9, INPUT); pinMode (10, INPUT); pinMode (11, INPUT); pinMode (12, INPUT); // Tsim Chaw Nyob LED_Strip FastLED.addLeds (leds, NUM_LEDS); CHSV LED_Color = CHSV (LED_Hue, LED_Saturation, LED_Brightness); fill_solid (leds, NUM_LEDS, LED_Color); FastLED.show (); }

lub voj void () {int Button_Bottom = digitalRead (8); int Button_Middle = digitalRead (9); int Button_Left = digitalRead (10); int Button_Top = digitalRead (11); int Button_Right = digitalRead (12); yog (Button_Middle == HIGH) {LED_Hue = LED_Hue +1; CHSV LED_Color = CHSV (LED_Hue, LED_Saturation, LED_Brightness); fill_solid (leds, NUM_LEDS, LED_Color); FastLED.show (); } yog (Button_Right == HIGH) {if (LED_Brightness_Right> 0) {LED_Brightness_Right = LED_Brightness_Right - 1; CHSV LED_Color_Right = CHSV (LED_Hue, LED_Saturation, LED_Brightness_Right); fill_solid (leds, 28, LED_Color_Right); fill_solid (leds+116, 10, LED_Color_Right); FastLED.show (); } lwm {LED_Brightness_Right = 255; }}

yog (Button_Top == HIGH) {if (LED_Brightness_Top> 0) {LED_Brightness_Top = LED_Brightness_Top -1; CHSV LED_Color_Top = CHSV (LED_Hue, LED_Saturation, LED_Brightness_Top); fill_solid (leds+28, 28, LED_Color_Top); fill_solid (leds+126, 10, LED_Color_Top); FastLED.show (); } lwm {LED_Brightness_Top = 255; }}

yog (Button_Left == HIGH) {if (LED_Brightness_Left> 0) {LED_Brightness_Left = LED_Brightness_Left-1; CHSV LED_Color_Left = CHSV (LED_Hue, LED_Saturation, LED_Brightness_Left); fill_solid (leds+56, 28, LED_Color_Left); fill_solid (leds+136, 10, LED_Color_Left); FastLED.show (); } lwm {LED_Brightness_Left = 255; }}

yog (Button_Bottom == HIGH) {if (LED_Brightness_Bottom> 0) {LED_Brightness_Bottom = LED_Brightness_Bottom-1; CHSV LED_Color_Bottom = CHSV (LED_Hue, LED_Saturation, LED_Brightness_Bottom); fill_solid (leds+84, 27, LED_Color_Bottom); fill_solid (leds+111, 5, LED_Color_Bottom); fill_solid (leds+146, 5, LED_Color_Bottom); FastLED.show (); } lwm {LED_Brightness_Bottom = 255; }}}

Kauj ruam 8: Qhov kawg

Qhov kawg
Qhov kawg
Qhov kawg
Qhov kawg

Tam sim no txhua yam uas tau ua yog ua txhua yam ua ke (tsis txhob hnov qab ntsuas nws txawm tias ua ntej muab tso ua ke). Txhua txhua daim ntoo ua ke uas tsis tau glued (txawm tias Arduino sab hauv nruab nrab lub xwmfab) thiab cia siab tias Murphy tsis tshwm ntawm qhov phem tshaj (lossis zoo tshaj) lub sijhawm ua tau. Koj Arduino yuav tsum ua haujlwm thaum koj ntsaws lub hwj huam qaum rau hauv phab ntsa thiab daim iav yuav tsum ua haujlwm zoo li tau qhia hauv cov yeeb yaj kiab.

Kauj ruam 9: Koj tau ua tiav

Ua tau zoo! Koj tau ua tiav cov lus qhia! Mus rau koj tus kheej lub ncuav qab zib, koj tuaj yeem txaus siab rau koj tus kheej txiav txim siab tias koj tau ua tiav cov ntawv qhia thawj zaug los ntawm cov tub ntxhais kawm ntawv tshiab! Mus kom muaj kev lom zem ntau thiab tsis txhob hnov qab tshaj tawm qhov koj tau ua!

Pom zoo: