Cov txheej txheem:

Sib tham sib Geodesic LED Dome: 15 Cov Kauj Ruam (nrog Duab)
Sib tham sib Geodesic LED Dome: 15 Cov Kauj Ruam (nrog Duab)

Video: Sib tham sib Geodesic LED Dome: 15 Cov Kauj Ruam (nrog Duab)

Video: Sib tham sib Geodesic LED Dome: 15 Cov Kauj Ruam (nrog Duab)
Video: zoo xyooj : txhob sib khuam neej nkauj tawm tshiab 2023 2024, Hlis ntuj nqeg
Anonim
Image
Image
Sib tham sib Geodesic LED Dome
Sib tham sib Geodesic LED Dome
Sib tham sib Geodesic LED Dome
Sib tham sib Geodesic LED Dome
Sib tham sib Geodesic LED Dome
Sib tham sib Geodesic LED Dome

Kuv tsim lub tsev geodesic suav nrog 120 daim duab peb sab nrog LED thiab lub ntsuas ntawm txhua daim duab peb sab. Txhua LED tuaj yeem hais qhia tus kheej thiab txhua lub ntsuas tau ntsuas tshwj xeeb rau ib daim duab peb sab. Lub dome tau teeb tsa nrog Arduino kom pom kev thiab tsim MIDI teeb liab nyob ntawm seb daim duab peb sab twg koj tso koj txhais tes.

Kuv tsim lub dome los ua kev lom zem uas tau txais cov neeg nyiam hauv lub teeb, hluav taws xob, thiab suab. Vim tias lub dome faib zoo ua tsib ntu, Kuv tsim lub dome kom muaj tsib qhov sib cais MIDI uas tuaj yeem ua rau txhua tus muaj lub suab sib txawv. Qhov no ua rau lub dome yog cov cuab yeej siv suab paj nruag loj heev, zoo tshaj rau kev ntaus nkauj nrog ntau tus tib neeg ib txhij. Ntxiv rau kev ua suab paj nruag, Kuv kuj tau teeb tsa lub dome rau lub teeb pom kev thiab ua yeeb yam ntawm Simon thiab Pong. Cov txheej txheem zaum kawg yog me ntsis ntau dua li ib lub 'meter' inch thiab siab 70cm, thiab feem ntau yog tsim nrog ntoo, acrylic, thiab 3D luam tawm ib feem.

Muaj ntau ntau Cov Lus Qhia Zoo ntawm LED cov ntxhuav thiab cov ntawv uas tau tshoov kuv siab kom pib txoj haujlwm no. Txawm li cas los xij, Kuv xav sim npaj cov LEDs hauv cov duab sib txawv. Kuv tsis tuaj yeem xav txog tus qauv zoo dua rau txoj haujlwm tshaj li lub tsev geodesic, uas tseem muaj cov ntaub ntawv teev tseg zoo ntawm Cov Lus Qhia. Yog li txoj haujlwm no yog kev sib dhos/sib dhos ntawm LED cov ntxhuav thiab thaj chaw geodesic. Hauv qab no yog txuas rau LED lub rooj thiab geodesic dome Cov Lus Qhia uas kuv tau txheeb xyuas thaum pib ntawm txoj haujlwm.

LED cov ntxhuav thiab ntsuas:

www.instructables.com/id/RGB-LED-Pixel-Touc…

www.instructables.com/id/Touch-LED-Table-Re…

www.instructables.com/id/Led-Cube-8x8x8/

www.instructables.com/id/500-LED-Pixel-RGB-…

Geodesic dome:

www.instructables.com/id/Folding-Geodesic-D…

www.instructables.com/id/Geodesic-dome-kit/

Kauj Ruam 1: Cov Khoom Siv

Cov Khoom Muag
Cov Khoom Muag
Cov Khoom Muag
Cov Khoom Muag
Cov Khoom Muag
Cov Khoom Muag

Cov ntaub ntawv:

1. Ntoo rau struts ntawm dome thiab puag ntawm dome (tus nqi nyob ntawm seb hom thiab qhov loj ntawm dome)

2. Addressable LED sawb (16.4ft/5m Addressable Xim LED Pixel Sawb 160leds Ws2801 Dc5v)

3. Arduino Uno (Atmega328 - sib dhos)

4. Lub rooj tsav xwm tsab ntawv (Penta Angel Ob-Sab Prototype PCB Universal (7x9cm))

5. Acrylic rau diffusing LEDs (Cast Acrylic Sheet, Clear, 12 "x 12" x 0.118 "Loj)

6. Cov khoom siv hluav taws xob (Aiposen 110/220V rau DC12V 30A 360W Hloov Cov Khoom Siv Hluav Taws Xob)

7. Buck converter rau Arduino (RioRand LM2596 DC-DC Buck Converter 1.23V-30V)

8. Buck hloov rau LEDs thiab cov ntsuas (DROK Mini Electric Buck Voltage Converter 15A)

9. 120 IR sensors (Infrared Obstacle Zam Txim Sensor Module)

10. Tsib 16 channel multiplexers (Analog/Digital MUX Breakout - CD74HC4067)

11. Rau 8 channel multiplexers (Multiplexer Breakout - 8 Channel (74HC4051))

12. Tsib 2 channel multiplexers (MAX4544CPA+)

13. Hlau qhwv hlau (PCB Solder 0.25mm Tin Plated Copper Cord Dia Wire-wrapping Wire 305M 30AWG Liab)

14. Hook-up wire (Solid Core, 22 AWG)

15. Pin Headers (Gikfun 1 x 40 Pin 2.54mm Ib Leeg Ib Leeg Breakaway Txiv Neej Pin Header)

16. Tsib MIDI jacks (Breadboard-friendly MIDI Jack (5-pin DIN))

17. Kaum 220ohm resistors rau MIDI jacks

18. Stand-off spacers rau mount electronics rau dome (Stand-off Spacer Hex M3 Txiv neej x M3 Poj niam)

19. Xov adapters txuas txuas sawv ntsug rau ntoo (E-Z Lok Threaded Insert, Brass, Riam Thread)

20. Epoxy lossis Gorilla Superglue

21. Daim kab xev hluav taws xob

22. Tub Rog

Cov Cuab Yeej:

1. Qhov Chaw Nres Tsheb

2. Laum fais fab

3. Lub voj voos pom

4. Orbital sander

5. Jig pom

6. Miter pom

7. Protractor

8. 3D tshuab luam ntawv

9. Hlau txiav

10. Hlau qhwv cov cuab yeej

11. Laser cutter rau txiav cov phaj LED (xaiv tau)

12. CNC shopbot rau lub hauv paus ntawm dome (yeem)

Kauj Ruam 2: Tsim Geodesic Dome

Tsim lub Geodesic Dome
Tsim lub Geodesic Dome
Tsim lub Geodesic Dome
Tsim lub Geodesic Dome

Raws li kuv tau hais hauv cov lus qhia, muaj ntau qhov chaw hauv online rau kev tsim koj tus kheej geodesic dome. Cov chaw no muab lub tshuab xam zauv dome uas txiav txim siab qhov ntev ntawm txhua sab (piv txwv li strut) thiab tus lej txuas uas xav tau rau yam twg ntawm lub dome koj xav tsim. Qhov nyuaj ntawm lub geodesic dome (piv txwv li qhov ntom ntom ntawm daim duab peb sab) tau teev tseg los ntawm nws chav kawm (1V, 2V, 3V, thiab ntxiv rau), nrog qhov nyuaj dua los ua qhov kwv yees zoo dua ntawm qhov zoo nkauj kheej kheej. Txhawm rau tsim koj tus kheej lub dome, koj yuav tsum xub xaiv lub dome taub thiab chav kawm.

Kuv siv lub xaib hu ua Domerama los pab kuv tsim 4V lub tsev pheeb suab uas tau txiav mus rau 5/12 ntawm tus kheej nrog lub vojvoog ntawm 40cm. Rau hom dome no, muaj rau qhov sib txawv ntev struts:

30 X "A" - 8.9cm

30 X "B" - 10.4cm

50 X "C" - 12.4 cm

40 X "D" - 12.5 cm

20 X “E” - 13.0 cm

20 X "F" - 13.2cm

Ntawd yog tag nrho 190 struts uas ntxiv txog 2223cm (73 ft) ntawm cov khoom. Kuv siv 1x3 (3/4 "× 2-1/2") ntoo thuv rau cov ntoo hauv lub dome no. Txhawm rau txuas cov hlua, kuv tsim thiab luam tawm 3D txuas siv Autocad. Cov ntaub ntawv STL muaj rau rub tawm thaum kawg ntawm cov theem no. Tus naj npawb ntawm cov txuas rau 4V 5/12 dome yog:

20 X 4-txuas

6 X 5-txuas

45 X 6-txuas

Hauv cov kauj ruam tom ntej, kuv piav qhia yuav ua li cas lub dome no tau tsim nrog cov ntoo struts thiab cov ntawv luam tawm 3D uas kuv tsim.

Kauj Ruam 3: Tsim Dome Nrog Struts thiab Cov Txuas Txuas

Kev Tsim Dome Nrog Struts thiab Cov Txuas Txuas
Kev Tsim Dome Nrog Struts thiab Cov Txuas Txuas
Kev Tsim Dome Nrog Struts thiab Cov Txuas Txuas
Kev Tsim Dome Nrog Struts thiab Cov Txuas Txuas
Kev Tsim Dome Nrog Struts thiab Cov Txuas Txuas
Kev Tsim Dome Nrog Struts thiab Cov Txuas Txuas
Kev Tsim Dome Nrog Struts thiab Cov Txuas Txuas
Kev Tsim Dome Nrog Struts thiab Cov Txuas Txuas

Siv kev suav los ntawm Domerama rau 4V 5/12 lub dome, Kuv txiav cov hlua siv lub ntsej muag pom. 190 struts tau sau npe thiab muab tso rau hauv ib lub thawv tom qab txiav. 71 qhov txuas (20 plaub-txuas, 6 tsib-txuas, thiab 45 rau-txuas) tau luam tawm 3D siv Makerbot. Ntoo struts tau muab tso rau hauv cov khoom sib txuas raws li daim duab tsim los ntawm Domerama. Kuv pib tsim kho los ntawm sab saud thiab txav mus los sab nraud.

Tom qab txhua txoj hlua txuas tau txuas nrog, Kuv tshem tawm ib txoj hlua ntawm ib lub sijhawm thiab ntxiv epoxy rau ntoo thiab txuas. Cov txuas tau tsim los kom muaj kev yoog raws li lawv txuas nrog cov qauv, yog li nws yog qhov tseem ceeb los tshuaj xyuas qhov sib npaug ntawm lub dome ua ntej ntxiv ib qho epoxy.

Kauj Ruam 4: Laser Txiav thiab Mounting Phaj Phaj

Laser Txiav thiab Mounting Phaj Phaj
Laser Txiav thiab Mounting Phaj Phaj
Laser Txiav thiab Mounting Phaj Phaj
Laser Txiav thiab Mounting Phaj Phaj
Laser Txiav thiab Mounting Phaj Phaj
Laser Txiav thiab Mounting Phaj Phaj
Laser Txiav thiab Mounting Phaj Phaj
Laser Txiav thiab Mounting Phaj Phaj

Tam sim no lub cev pob txha ntawm lub dome tau tsim, nws yog lub sijhawm los txiav daim duab peb sab puag. Cov qauv hauv qab no tau txuas rau hauv qab ntawm txoj hlua, thiab tau siv los teeb LEDs rau lub dome. Kuv xub txiav lub hauv paus tawm ntawm 5mm (3/16 ) tuab plywood los ntawm kev ntsuas tsib daim duab peb sab sib txawv uas nyob ntawm lub dome: AAB (30 daim duab peb sab), BCC (25 daim duab peb sab), DDE (20 daim duab peb sab), CDF (40 daim duab peb sab)), thiab EEE (5 daim duab peb sab). Qhov ntev ntawm txhua sab thiab cov duab ntawm daim duab peb sab tau txiav txim siab siv lub tshuab xam zauv dome (Domerama) thiab qee qhov duab geometry. Tom qab txiav cov ntawv xeem nrog tus lej jigsaw, kuv kos daim duab peb sab tsim siv Coral Draw, thiab txiav cov ntawv txuas ntxiv nrog lub tshuab txiav laser (nrawm dua!). Yog tias koj tsis muaj kev nkag mus rau lub tshuab txiav laser, koj tuaj yeem kos lub hauv paus rau ntawm plywood siv tus pas ntsuas thiab tus kws txiav plaub hau thiab txiav tag nrho lawv nrog jigsaw. Thaum lub hauv paus raug txiav, lub dome tau tig rov qab thiab cov phiaj tau txuas rau lub dome siv cov kua nplaum ntoo.

Kauj Ruam 5: Cov Txheej Txheem Hluav Taws Xob

Txheej txheem cej luam Electronics
Txheej txheem cej luam Electronics

Qhia hauv daim duab saum toj no yog cov txheej txheem ntawm cov khoom siv hluav taws xob rau lub dome. Ib qho Arduino Uno yog siv rau kev sau thiab nyeem cov cim rau lub dome. Txhawm rau teeb lub dome, RGB LED sawb tau khiav hla lub dome kom LED nyob ntawm txhua ntawm 120 daim duab peb sab. Yog xav paub ntxiv tias LED strip ua haujlwm li cas, txheeb xyuas cov lus qhia no. Txhua tus LED tuaj yeem hais qhia cais siv Arduino, uas tsim cov ntaub ntawv xov xwm thiab moos teeb liab rau kab txaij (saib A0 thiab A1 tus pin hauv cov qauv). Nrog cov kab txaij thiab ob lub cim no ib leeg, koj tuaj yeem muaj lub teeb ci ntsa iab txaus. Muaj lwm txoj hauv kev los hais txog kev sau cov cim rau ntau ntawm LED los ntawm Arduino, xws li Charlieplexing thiab hloov npe.

Txhawm rau cuam tshuam nrog lub dome, Kuv teeb tsa IR sensor saum toj ib qho LED. Cov ntsuas no tau siv los tshuaj xyuas thaum ib tus neeg txhais tes nyob ze rau daim duab peb sab ntawm lub dome. Vim tias txhua daim duab peb sab ntawm lub dome muaj nws tus kheej IR sensor thiab muaj 120 daim duab peb sab, koj yuav tsum ua qee yam ntawm kev sib tw ua ntej Arduino. Kuv txiav txim siab siv tsib 24-channel multiplexers (MUX) rau 120 lub cim ntawm lub dome. Nov yog cov lus qhia ntawm multiplexing, yog tias koj tsis paub. 24 channel MUX xav tau tsib lub cim qhia tswj. Kuv xaiv tus pin 8-12 ntawm Arduino, yog li kuv tuaj yeem ua tus tswj chaw nres nkoj (saib Kauj Ruam 10 kom paub ntau ntxiv). Cov zis ntawm MUX cov laug cam tau nyeem hauv kev siv tus pin 3-7.

Kuv kuj suav nrog tsib qhov MIDI tso tawm ntawm lub dome kom nws tuaj yeem tsim suab (Kauj Ruam 11). Hauv lwm lo lus, tsib tus neeg tuaj yeem ua lub dome ib txhij nrog txhua qhov tso tawm ua suab sib txawv. Tsuas muaj ib tus pin TX ntawm Arduino, yog li tsib MIDI cov cim qhia kom xav tau kev sib cais. Vim tias MIDI cov zis tau tsim tawm ntawm lub sijhawm sib txawv dua li kev nyeem ntawv IR sensor, kuv siv tib lub cim tswj.

Tom qab tag nrho IR cov tswv yim nkag tau nyeem rau hauv Arduino, lub dome tuaj yeem teeb thiab ua suab nrov txawm li cas los xij koj ua haujlwm Arduino. Kuv muaj qee qhov piv txwv hauv Kauj Ruam 14 ntawm cov lus qhia no.

Kauj Ruam 6: Teeb LEDs rau ntawm Dome

Mounting LEDs rau Dome
Mounting LEDs rau Dome
Mounting LEDs rau Dome
Mounting LEDs rau Dome
Mounting LEDs rau Dome
Mounting LEDs rau Dome

Vim tias lub dome loj heev, LED kab yuav tsum tau txiav kom tso ib qho LED ntawm txhua daim duab peb sab. Txhua lub LED tau lo rau ntawm daim duab peb sab siv super kua nplaum. Ntawm ob sab ntawm LED, lub qhov yog drilled los ntawm lub hauv paus rau cov xov hlau kom khiav hla lub dome. Tom qab ntawd kuv tau xaim hlua txuas ntawm txhua qhov kev sib cuag ntawm LED (5V, hauv av, moos, teeb liab) thiab pub cov xov hlau hla ntawm lub hauv paus. Cov xov hlau no tau txiav kom lawv ntev txaus kom mus txog tom ntej LED ntawm lub dome. Cov xov hlau tau rub hla mus rau LED tom ntej, thiab cov txheej txheem txuas ntxiv mus. Kuv txuas cov LEDs hauv kev teeb tsa uas yuav txo qis cov hlau xav tau thaum tseem ua qhov kev nkag siab rau kev hais daws cov LEDs siv Arduino tom qab. Ib lub qhov me me yuav tshem tawm qhov xav tau rau kev txiav cov hlua thiab txuag ntau lub sijhawm siv tshuaj txhuam. Lwm qhov kev xaiv yog siv cais RGB LEDS nrog hloov npe.

Kev sib txuas lus txuas mus rau kab txaij tau ua tiav siv ob tus pin (cov ntaub ntawv thiab tus lej pin) los ntawm Arduino. Hauv lwm lo lus, cov ntaub ntawv rau teeb pom kev zoo ntawm lub dome tau dhau los ntawm ib qho LED mus rau tom ntej raws li nws tawm cov ntaub ntawv tus pin. Nov yog qhov piv txwv hloov pauv los ntawm lub rooj sib tham Arduino:

// Ua kom tag nrho lub tsev pheeb suab nce thiab txo qis ntawm ib qho xim

#define numLeds 120 // Number of LEDs // OUTPUT PINS // int clockPin = A1; // txhais lub moos pin int dataPin = A0; // txhais cov ntaub ntawv tus pin // VARIABLES // int liab [numLeds]; // Initialize array rau LED strip int ntsuab [numLeds]; // Initialize array rau LED sawb int xiav [numLeds]; // Initialize array for LED strip // CONSTANT double scaleA = {0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1, 0.9, 0.8, 0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1}; // feem ntawm kev siv ntawm LEDs tsis muaj teeb tsa teeb tsa () {pinMode (clockPin, OUTPUT); pinMode (dataPin, OUTPUT); memset (liab, 0, numLeds); memset (ntsuab, 0, numLeds); memset (xiav, 0, numLeds); } void updatestring (int redA [numLeds], int greenA [numLeds], int blueA [numLeds]) {rau (int i = 0; i <numLeds; i ++) {shiftOut (dataPin, clockPin, MSBFIRST, redA ); shiftOut (dataPin, clockPin, MSBFIRST, greenA ); shiftOut (dataPin, clockPin, MSBFIRST, blueA ); }} tsis muaj dab tsi voj () {rau (int p = 0; p <20; p ++) // voj rau ua kom pom kev sib zog ntawm dome {ob chav nplai = scaleA [p]; ncua (20); rau (int i = 0; i <numLeds; i ++) // voj voog hla txhua LEDS {liab = 255 * teev; ntsuab = 80 * nplai; xiav = 0; } hloov kho tshiab (liab, ntsuab, xiav); // hloov tshiab coj strip}}

Kauj Ruam 7: Sensor Mount Tsim thiab Ua Haujlwm

Sensor Mount Tsim thiab Siv
Sensor Mount Tsim thiab Siv
Sensor Mount Tsim thiab Siv
Sensor Mount Tsim thiab Siv
Sensor Mount Tsim thiab Siv
Sensor Mount Tsim thiab Siv

Kuv txiav txim siab siv IR sensors rau lub dome. Cov ntsuas no muaj IR LED thiab tus txais. Thaum ib yam khoom tau txais nyob rau hauv pem hauv ntej ntawm lub sensor, qee qhov hluav taws xob IR los ntawm IR LED tau cuam tshuam rau tus txais. Kuv pib qhov haujlwm no los ntawm kev ua kuv tus kheej IR sensors, uas yog raws Richardouvina cov lus qhia. Txhua qhov kev siv tshuaj txhuam tau siv sijhawm ntev dhau, yog li kuv yuav 120 IR lub ntsuas hluav taws xob los ntawm eBay tias txhua tus tsim tawm digital. Qhov pib ntawm lub ntsuas tau teeb tsa nrog lub hwj chim ntawm lub rooj tsav xwm kom cov zis tawm siab tsuas yog thaum txhais tes nyob ze rau daim duab peb sab.

Txhua daim duab peb sab muaj cov plywood LED-baseplate, ib daim ntawm diffused acrylic mounted txog 2.5cm saum lub phaj LED, thiab IR sensor. Lub ntsuas rau txhua daim duab peb sab tau teeb tsa rau ntawm ib daim ntawv ntawm cov plywood nyias zoo li lub pentagon lossis hexagon nyob ntawm txoj haujlwm ntawm lub dome (saib daim duab saum toj no). Kuv drilled qhov rau hauv IR lub hauv paus txhawm rau txhawm rau IR cov ntsuas hluav taws xob, thiab tom qab ntawd txuas nrog hauv av thiab 5V tus pin nrog xaim xaim xaim xaim thiab xaim qhwv cov cuab yeej (liab thiab dub xov hlau). Tom qab txuas hauv av thiab 5V, Kuv qhwv cov xov hlau ntev-qhwv rau txhua qhov tso tawm (daj), hauv av, thiab 5V kom khiav hla lub dome.

Lub hexagon lossis pentagon IR sensor nce tom qab ntawd epoxied rau lub dome, sab xis saum toj ntawm 3D luam txuas, kom xaim tuaj yeem hla dhau lub dome. Los ntawm muaj cov ntsuas siab saum cov txuas, kuv kuj tseem tuaj yeem nkag mus thiab kho lub zog ntawm lub ntsuas hluav taws xob IR uas tswj kev nkag siab ntawm lub ntsuas cua. Hauv cov kauj ruam tom ntej, Kuv yuav piav qhia yuav ua li cas cov txiaj ntsig ntawm IR cov ntsuas tau txuas nrog rau ntau tus lej thiab nyeem rau hauv Arduino.

Kauj Ruam 8: Tso zis ntau zaus

Multiplexing Sensor Tso Tawm
Multiplexing Sensor Tso Tawm
Multiplexing Sensor Tso Tawm
Multiplexing Sensor Tso Tawm
Multiplexing Sensor Tso Tawm
Multiplexing Sensor Tso Tawm

Vim tias Arduino Uno tsuas muaj 14 digital I/O pins thiab 6 analog input pins thiab muaj 120 lub cim cim cim uas yuav tsum tau nyeem, lub dome yuav tsum muaj cov lej sib txawv los nyeem hauv txhua lub cim. Kuv xaiv los tsim tsib 24-channel multiplexers, txhua tus tau nyeem 24 ntawm IR cov cim (saib cov duab hluav taws xob saib ua ntej daim duab). 24-channel MUX suav nrog 8-channel MUX breakout board, 16-channel MUX breakout board, thiab 2-channel MUX. Tus pin taub hau tau muab muag rau txhua lub rooj sibtham tawg kom lawv tuaj yeem txuas nrog rau pawg thawj coj. Siv cov cuab yeej xaim qhwv, tom qab ntawd kuv txuas nrog hauv av, 5V, thiab tswj lub teeb liab ntawm MUX cov laug cam.

24-channel MUX xav tau tsib lub cim tswj, uas kuv tau xaiv los txuas rau tus pin 8-12 ntawm Arduino. Txhua tsib 24-channel MUX tau txais tib lub cim qhia los ntawm Arduino yog li kuv txuas cov xov hlau los ntawm Arduino pins mus rau 24-channel MUX. Cov txiaj ntsig digital ntawm IR sensors tau txuas nrog cov pins nkag ntawm 24-channel MUX kom lawv tuaj yeem nyeem hauv ntu rau Arduino. Vim tias muaj tsib tus lej sib cais rau kev nyeem ntawv hauv txhua 120 lub cim ntsuas pom, nws yog qhov muaj txiaj ntsig zoo los xav txog lub dome tau muab faib ua tsib ntu sib cais uas muaj 24 daim duab peb sab (kos xim ntawm dome hauv daim duab).

Siv Arduino chaw tswj chaw, koj tuaj yeem nrawm nrawm tswj cov cim xa los ntawm pins 8-12 mus rau tus lej sib kis. Kuv tau txuas qee qhov piv txwv piv txwv rau kev ua haujlwm multiplexers ntawm no:

int numChannel = 24;

// OUTPUTS // int s0 = 8; // MUX tswj 0 - PORTbD int s1 = 9; // MUX tswj 1 - PORTb int s2 = 10; // MUX tswj 2 - PORTb int s3 = 11; // MUX tswj 3 - PORTb int s4 = 12; // MUX tswj 4 - PORTb // INPUTS // int m0 = 3; // MUX cov tswv yim 0 int m1 = 4; // MUX input 1 int m2 = 5; // MUX cov tswv yim 2 int m3 = 6; // MUX input 3 int m4 = 7; // MUX cov tswv yim 4 // VARIABLES // int arr0r; // digital nyeem los ntawm MUX0 int arr1r; // digital nyeem los ntawm MUX1 int arr2r; // digital nyeem los ntawm MUX2 int arr3r; // digital nyeem los ntawm MUX3 int arr4r; // digital nyeem los ntawm MUX4 tsis muaj teeb meem teeb tsa () {// muab koj cov cai teeb tsa ntawm no, kom khiav ib zaug: DDRB = B11111111; // teeb tsa Arduino pins 8 txog 13 raws li kev nkag mus pinMode (s0, OUTPUT); pinMode (s1, NTAWV); pinMode (s2, NTAWV); pinMode (s3, NTAWV); pinMode (s4, NTAWV); pinMode (m0, INPUT); pinMode (m1, INPUT); pinMode (m2, INPUT); pinMode (m3, INPUT); pinMode (m4, INPUT); } void loop () {// muab koj tus lej tseem ceeb ntawm no, kom rov ua dua: PORTB = B00000000; // SET tswj pins rau mux qis rau (int i = 0; i <numChannel; i ++) {// Digital nyeem cov zis ntawm MUX0 - MUX4 rau IR sensor i // Yog IR sensor yog LO, daim duab peb sab raug kov los ntawm tus neeg siv. arr0r = digitalRead (m0); // nyeem los ntawm Mux 0, IR sensor kuv arr1r = digitalRead (m1); // nyeem los ntawm Mux 1, IR sensor i arr2r = digitalRead (m2); // nyeem los ntawm Mux 2, IR sensor kuv arr3r = digitalRead (m3); // nyeem los ntawm Mux 3, IR sensor i arr4r = digitalRead (m4); // nyeem ntawv los ntawm Mux 4, IR sensor i // Ua qee yam nrog MUX INPUTS LOSSIS QHOV CHAW NYOB HAUV QHOV TSEEB NTAWM NO // PORTB ++; // nce tswj cov cim rau MUX}}

Kauj Ruam 9: Teeb Lub Teeb Nrog Acrylic

Diffusing Teeb Nrog Acrylic
Diffusing Teeb Nrog Acrylic
Diffusing Teeb Nrog Acrylic
Diffusing Teeb Nrog Acrylic
Diffusing Teeb Nrog Acrylic
Diffusing Teeb Nrog Acrylic

Txhawm rau nthuav tawm lub teeb los ntawm LEDs, Kuv tau txhuam cov pob tshab acrylic nrog lub voj voos ncig ncig. Cov xuab zeb tau txav hla ob sab ntawm acrylic hauv daim duab-8 tsab ntawv tsa suab. Kuv pom cov txheej txheem no kom zoo dua li "frosted iav" tsuag xim.

Tom qab txhuam thiab ntxuav cov acrylic, kuv siv lub tshuab txiav laser txiav tawm cov duab peb sab kom haum rau ntawm cov LEDs. Nws tuaj yeem txiav cov acrylic siv cov cuab yeej txiav acrylic lossis txawm tias jigsaw yog tias acrylic tsis tawg. Cov acrylic tau tuav hla cov LED los ntawm 5mm tuab plywood duab plaub kuj tau txiav nrog lub tshuab txiav laser. Cov phiajcim me me no tau txuas rau ntawm cov hlua ntawm lub dome, thiab daim duab peb sab acrylic tau epoxied rau ntawm cov ntoo.

Kauj Ruam 10: Ua Nkauj Nrog Dome Siv MIDI

Ua Nkauj Nrog Dome Siv MIDI
Ua Nkauj Nrog Dome Siv MIDI
Ua Nkauj Nrog Dome Siv MIDI
Ua Nkauj Nrog Dome Siv MIDI
Ua Nkauj Nrog Dome Siv MIDI
Ua Nkauj Nrog Dome Siv MIDI

Kuv xav kom lub dome muaj peev xwm ua suab nrov, yog li kuv teeb tsa tsib MIDI raws, ib qho rau txhua ntu ntawm lub dome. Koj thawj zaug yuav tsum tau yuav tsib lub MIDI jacks thiab txuas nws raws li qhia hauv kab lus (saib qhov kev qhia no los ntawm Arduino txhawb nqa kom paub ntau ntxiv).

Vim tias tsuas muaj ib qho xa tus lej txuas ntawm Arduino Uno (tus pin 2 sau tias yog tus pin TX), koj yuav tsum de-multiplex cov cim tau xa mus rau tsib MIDI nkaus. Kuv siv tib lub cim tswj hwm (tus pin 8-12), vim tias MIDI cov cim qhia tau xa tawm ntawm lub sijhawm sib txawv dua li thaum IR cov ntsuas tau raug nyeem rau hauv Arduino. Cov kev ntsuas tswj no raug xa mus rau 8-channel demultiplexer kom koj tswj hwm qhov MIDI nkaus tau txais MIDI teeb liab tsim los ntawm Arduino. MIDI cov cim qhia tau tsim los ntawm Arduino nrog qhov txaus ntshai MIDI teeb liab lub tsev qiv ntawv tsim los ntawm Francois Best. Nov yog qee qhov piv txwv piv rau tsim ntau yam MIDI tso tawm rau MIDI sib txawv nrog Arduino Uno:

#suav nrog // suav nrog MIDI lub tsev qiv ntawv

#define numChannel 24 // Number of IR per Triangle #define numSections 5 // naj npawb ntawm ntu hauv dome, tus naj npawb ntawm 24channel MUX, tus lej ntawm MIDI jacks // OUTPUTS // int s0 = 8; // MUX tswj 0 - PORTbD int s1 = 9; // MUX tswj 1 - PORTb int s2 = 10; // MUX tswj 2 - PORTb int s3 = 11; // MUX tswj 3 - PORTb int s4 = 12; // MUX tswj 4 - PORTb // INPUTS // int m0 = 3; // MUX cov tswv yim 0 int m1 = 4; // MUX input 1 int m2 = 5; // MUX cov tswv yim 2 int m3 = 6; // MUX input 3 int m4 = 7; // MUX cov tswv yim 4 // VARIABLES // int arr0r; // digital nyeem los ntawm MUX0 int arr1r; // digital nyeem los ntawm MUX1 int arr2r; // digital nyeem los ntawm MUX2 int arr3r; // digital nyeem los ntawm MUX3 int arr4r; // digital nyeem los ntawm MUX4 int midArr [numSections]; // Khaws cia los yog tsis sau ntawv tau raug nias los ntawm ib tus neeg ua si int note2play [numSections]; // Khaws daim ntawv yuav tsum tau ua si yog tias lub sensor tau kov int notes [numChannel] = {60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83}; int pauseMidi = 4000; // ncua sijhawm ntawm nruab nrab cov cim qhia MIDI_CREATE_DEFAULT_INSTANCE (); tsis muaj teeb tsa teeb tsa () {// muab koj cov cai teeb tsa ntawm no, kom khiav ib zaug: DDRB = B11111111; // teeb tsa Arduino pins 8 txog 13 raws li inputs MIDI.begin (MIDI_CHANNEL_OFF); pinMode (s0, NTAWV); pinMode (s1, NTAWV); pinMode (s2, NTAWV); pinMode (s3, NTAWV); pinMode (s4, NTAWV); pinMode (m0, INPUT); pinMode (m1, INPUT); pinMode (m2, INPUT); pinMode (m3, INPUT); pinMode (m4, INPUT); } void loop () {// muab koj tus lej tseem ceeb ntawm no, kom rov ua dua: PORTB = B00000000; // SET tswj pins rau mux qis rau (int i = 0; i <numChannel; i ++) {// Digital nyeem cov zis ntawm MUX0 - MUX4 rau IR sensor i // Yog IR sensor yog LO, daim duab peb sab raug kov los ntawm tus neeg siv. arr0r = digitalRead (m0); // nyeem los ntawm Mux 0, IR sensor kuv arr1r = digitalRead (m1); // nyeem los ntawm Mux 1, IR sensor i arr2r = digitalRead (m2); // nyeem los ntawm Mux 2, IR sensor kuv arr3r = digitalRead (m3); // nyeem los ntawm Mux 3, IR sensor i arr4r = digitalRead (m4); // nyeem los ntawm Mux 4, IR sensor kuv yog (arr0r == 0) // Sensor ntawm ntu 0 raug thaiv {midArr [0] = 1; // Player 0 tau ntaus ntawv, teeb tsa HI kom muaj MIDI tso tawm rau cov neeg ua si 0 note2play [0] = sau ntawv ; // Nco tseg ua si rau Player 0} yog (arr1r == 0) // Sensor ntawm ntu 1 raug thaiv {midArr [1] = 1; // Player 0 tau ntaus ib daim ntawv, teeb tsa HI kom muaj MIDI tso tawm rau cov neeg uas ua ntawv 0 note2play [1] = sau ntawv ; // Nco tseg ua si rau Player 0} yog (arr2r == 0) // Sensor ntawm ntu 2 raug thaiv {midArr [2] = 1; // Player 0 tau ntaus ib daim ntawv, teeb tsa HI kom muaj MIDI tso tawm rau cov neeg uas ua ntawv 0 note2play [2] = sau ntawv ; // Nco tseg ua si rau Player 0} yog (arr3r == 0) // Sensor ntawm ntu 3 raug thaiv {midArr [3] = 1; // Player 0 tau ntaus ntawv, teeb tsa HI kom muaj MIDI tso tawm rau cov neeg ua si 0 note2play [3] = sau ntawv ; // Nco tseg ua si rau Player 0} yog (arr4r == 0) // Sensor ntawm ntu 4 raug thaiv {midArr [4] = 1; // Neeg uas ua ntawv 0 tau ntaus ntawv, teeb tsa HI kom muaj MIDI tso tawm rau cov neeg uas ua ntawv 0 note2play [4] = sau ntawv ; // Nco tseg ua si rau Player 0} PORTB ++; // nce tswj cov cim rau MUX} updateMIDI (); } void updateMIDI () {PORTB = B00000000; // SET tswj pins rau mux qis yog (midArr [0] == 1) // Player 0 MIDI tso zis {MIDI.sendNoteOn (note2play [0], 127, 1); delayMicroseconds (pauseMidi); MIDI.sendNoteOff (note2play [0], 127, 1); delayMicroseconds (pauseMidi); } PORTB ++; // nce MUX yog (midArr [1] == 1) // Player 1 MIDI tso zis {MIDI.sendNoteOn (note2play [1], 127, 1); delayMicroseconds (pauseMidi); MIDI.sendNoteOff (note2play [1], 127, 1); delayMicroseconds (pauseMidi); } PORTB ++; // nce MUX yog (midArr [2] == 1) // Player 2 MIDI tso zis {MIDI.sendNoteOn (note2play [2], 127, 1); delayMicroseconds (pauseMidi); MIDI.sendNoteOff (note2play [2], 127, 1); delayMicroseconds (pauseMidi); } PORTB ++; // nce MUX yog (midArr [3] == 1) // Player 3 MIDI tso zis {MIDI.sendNoteOn (note2play [3], 127, 1); delayMicroseconds (pauseMidi); MIDI.sendNoteOff (note2play [3], 127, 1); delayMicroseconds (pauseMidi); } PORTB ++; // nce MUX yog (midArr [4] == 1) // Player 4 MIDI tso zis {MIDI.sendNoteOn (note2play [4], 127, 1); delayMicroseconds (pauseMidi); MIDI.sendNoteOff (note2play [4], 127, 1); delayMicroseconds (pauseMidi); } midArr [0] = 0; midArr [1] = 0; midArr [2] = 0; midArr [3] = 0; midArr [4] = 0; }

Kauj ruam 11: Hwj chim lub Dome

Ua kom lub zog Dome
Ua kom lub zog Dome
Ua kom lub zog Dome
Ua kom lub zog Dome
Ua kom lub zog Dome
Ua kom lub zog Dome
Ua kom lub zog Dome
Ua kom lub zog Dome

Muaj ob peb yam khoom uas yuav tsum tau ua kom muaj zog hauv lub dome. Yog li koj yuav tsum tau suav cov amps kos los ntawm txhua qhov khoom siv txhawm rau txiav txim siab lub zog hluav taws xob uas koj xav tau yuav.

Cov hlua LED: Kuv siv kwv yees li 3.75meters ntawm Ws2801 LED sawb, uas siv 6.4W/meter. Qhov no sib xws rau 24W (3.75*6.4). Txhawm rau hloov qhov no mus rau amps, siv Fais fab = tam sim no*volts (P = iV), qhov twg V yog qhov hluav taws xob ntawm LED sawb, hauv qhov no 5V. Yog li, tam sim no kos los ntawm LEDs yog 4.8A (24W/5V = 4.8A).

Cov ntsuas IR: Txhua qhov ntsuas IR kos txog 25mA, tag nrho 3A rau 120 lub ntsuas.

Arduino: 100mA, 9V

Cov multiplexers: Muaj tsib 24 channel multiplexers uas txhua tus suav nrog 16 channel multiplexer thiab 8 channel multiplexer. 8 channel thiab 16 channel MUX txhua tus siv li 100mA. Yog li ntawd, kev siv hluav taws xob tag nrho ntawm tag nrho MUX yog 1A.

Ntxiv rau cov khoom no, tag nrho kev siv hluav taws xob xav tias yuav nyob ib puag ncig 9A. LED sawb, IR sensors, thiab multiplexers muaj input voltage ntawm 5V, thiab Arduino muaj 9V input voltage. Yog li ntawd, kuv tau xaiv 12V 15A lub zog xa khoom, 15A tus nqi hloov pauv rau hloov 12V rau 5V, thiab 3A tus nqi hloov pauv rau hloov 12V rau 9V rau Arduino.

Kauj Ruam 12: Hloov Dome Base

Dome puag puag
Dome puag puag
Dome puag puag
Dome puag puag
Dome puag puag
Dome puag puag

Lub dome nyob ntawm ib ncig ntawm cov ntoo nrog lub pentagon txiav tawm ntawm nruab nrab kom yooj yim nkag mus rau cov khoom siv hluav taws xob. Txhawm rau tsim cov hauv paus puag no, 4x6 'daim ntawv ntawm cov plywood tau txiav siv ntoo CNC router. Jigsaw kuj tseem tuaj yeem siv rau theem no. Tom qab lub hauv paus raug txiav, lub dome tau txuas nrog nws siv cov ntoo me me 2x3.

Nyob rau sab saum toj ntawm lub hauv paus, Kuv txuas lub zog muab hluav taws xob nrog epoxy thiab MUX's thiab Buck hloov pauv nrog PCB sawv-tawm spacers. Cov spacers tau txuas nrog plywood siv E-Z Lok xov adapters.

Kauj Ruam 13: Pentagon Dome Base

Pentagon Dome Base
Pentagon Dome Base
Pentagon Dome Base
Pentagon Dome Base
Pentagon Dome Base
Pentagon Dome Base

Ntxiv rau lub hauv paus puag ncig, Kuv kuj tau tsim lub hauv paus pentagon rau lub dome nrog lub qhov rais saib iav nyob hauv qab. Lub hauv paus no thiab saib lub qhov rais kuj tau ua los ntawm plywood txiav nrog ntoo CNC router. Ob sab ntawm lub pentagon tau ua los ntawm cov ntoo ntoo nrog ib sab muaj lub qhov nyob rau hauv nws rau cov txuas txuas mus dhau. Siv cov hlau txuas thiab 2x3 thaiv cov pob qij txha, cov ntoo ntoo tau txuas rau lub hauv paus pentagon. Lub zog hloov pauv, MIDI txuas, thiab USB txuas tau txuas rau lub vaj huam sib luag pem hauv ntej uas kuv tau tsim los siv lub tshuab txiav laser. Tag nrho lub hauv paus pentagon tau ntsia rau lub hauv paus puag uas tau piav qhia hauv Kauj Ruam 12.

Kuv tau teeb tsa lub qhov rais rau hauv qab dome kom txhua tus tuaj yeem saib mus rau hauv lub dome kom pom cov khoom siv hluav taws xob. Lub iav saib yog ua los ntawm acrylic txiav nrog lub laser txiav thiab yog epoxied rau ib puag ncig daim ntawm plywood.

Kauj Ruam 14: Ua Haujlwm Dome

Muaj qhov tsis muaj qhov xaus rau kev tsim lub dome. Txhua lub voj voog ntawm cov cai siv lub cim los ntawm IR cov cim, uas qhia txog cov voos plaub uas tau kov los ntawm ib tus neeg. Nrog cov ntaub ntawv no koj tuaj yeem pleev xim lub dome nrog ib qho xim RGB thiab/lossis tsim MIDI teeb liab. Nov yog qee qhov piv txwv ntawm cov haujlwm uas kuv tau sau rau lub dome:

Xim lub dome: Txhua daim duab peb sab mus txog plaub xim raws li nws tau kov. Raws li cov xim hloov pauv, arpeggio tau ua si. Nrog rau txoj haujlwm no, koj tau pleev xim lub dome hauv ntau txhiab txoj kev sib txawv.

Dome suab paj nruag: Lub dome yog xim nrog tsib xim, txhua ntu sib xws rau qhov sib txawv ntawm MIDI tso tawm. Hauv qhov kev zov me nyuam, koj tuaj yeem xaiv qhov sau tseg txhua daim duab peb sab ua yeeb yam. Kuv xaiv pib ntawm nruab nrab C rau sab saum toj ntawm lub dome, thiab ua kom lub suab nrov zoo li lub voos xwmfab txav mus ze rau hauv paus. Vim tias muaj tsib qhov txiaj ntsig, txoj haujlwm no zoo tshaj rau muaj coob tus neeg ua si lub dome ib txhij. Siv lub ntsuas MIDI lossis MIDI software, cov cim MIDI no tuaj yeem ua suab zoo li txhua yam twj paj nruag.

Simon: Kuv tau sau qhov hloov pauv ntawm Simon, kev ua si nco lub teeb ua si. Ib qho xwm txheej tsis sib xws ntawm cov teeb tau teeb ib qho zuj zus thoob plaws lub dome. Hauv txhua qhov tig, tus neeg uas ua ntawv yuav tsum theej ib qib zuj zus. Yog tias tus neeg ua si sib dhos ua ntu zus kom raug, lub teeb ntxiv tau ntxiv rau qhov ua ntu zus. Cov qhab nias siab tau muab khaws cia rau ib qho ntawm ntu ntawm lub dome. Qhov kev ua si no tseem lom zem heev ua si nrog ntau tus neeg.

Pong: Vim li cas ho tsis ua si pong ntawm lub dome? Ib lub pob nthuav dav hla lub dome kom txog thaum tsoo lub duav. Thaum nws ua, MIDI teeb liab tau tsim tawm, qhia lub duav ntaus pob. Lwm tus neeg uas ua ntawv yuav tsum coj tus duav mus rau hauv qab ntawm lub dome kom nws ntaus pob rov qab.

Kauj Ruam 15: Cov Duab Ua tiav Dome

Cov Duab ntawm Ua tiav Dome
Cov Duab ntawm Ua tiav Dome
Cov Duab ntawm Ua tiav Dome
Cov Duab ntawm Ua tiav Dome
Cov Duab ntawm Ua tiav Dome
Cov Duab ntawm Ua tiav Dome
Cov Duab ntawm Ua tiav Dome
Cov Duab ntawm Ua tiav Dome
Kev sib tw Arduino 2016
Kev sib tw Arduino 2016
Kev sib tw Arduino 2016
Kev sib tw Arduino 2016

Qhov khoom plig loj hauv Arduino Contest 2016

Kev Sib Tw Remix 2016
Kev Sib Tw Remix 2016
Kev Sib Tw Remix 2016
Kev Sib Tw Remix 2016

Qhov khoom plig thib ob hauv Kev Sib Tw Remix 2016

Ua nws Glow Contest 2016
Ua nws Glow Contest 2016
Ua nws Glow Contest 2016
Ua nws Glow Contest 2016

Qhov khoom plig thib ob hauv Kev Ua Nws Glow Contest 2016

Pom zoo: