Cov txheej txheem:

Tsiv daim phiaj nrog daim iav Infinity: 7 Kauj Ruam
Tsiv daim phiaj nrog daim iav Infinity: 7 Kauj Ruam

Video: Tsiv daim phiaj nrog daim iav Infinity: 7 Kauj Ruam

Video: Tsiv daim phiaj nrog daim iav Infinity: 7 Kauj Ruam
Video: Kev Txua Qeej,Ntaus Ntiv Qeej Hmoob Thaum pib Txog Thaum xaus 2017 2024, Kaum ib hlis
Anonim
Image
Image

cov video no ua video thiab txav video.

Peb xav qhia qhov chaw nrawm nrawm los ntawm kev txav chaw thiab Daim iav Infinity los qhia qhov kev nkag siab ntawm qhov chaw zoo dua.

Peb txoj haujlwm muaj ob daim phaj acrylic, sab xub ntiag, thiab daim duab nraub qaum, uas qhia tib neeg txoj hauv kev uas lawv tau nrawm nroos, thiab cov backplate muaj 25 kauj ruam lub cev muaj zog uas ua rau lub zog txav mus los.

Kev ua haujlwm suav nrog lub vaj huam sib luag pem hauv ntej uas yuav qhia qhov ci ntawm qhov chaw, tus pas ntoo uas ua haujlwm nruab nrab txav mus, qhia rau tus pas nrig, thiab lub nraub qaum uas tsim kev txav mus los ntawm 25 kauj ruam lub cev muaj zog.

25 qhov siab tshaj ntawm daim phiaj-txuas nrog rau 25 kauj ruam lub cev muaj zog tsim cov qauv sib txawv raws li txheej txheej coding qhov tseem ceeb. Ib qho ntxiv, lub tuam txhab xav kom ua qhov dav tshaj plaws los ntawm kev sib txuas ua pob tshab acrylic nrog rau pem hauv ntej ib nrab-daim iav zaj duab xis, tsom iav tom qab, thiab tsom iav dub-teeb pom kev zoo Infinity. Ntau yam qauv ntawm kev ua yeeb yaj kiab tau tsim los ntawm kev nthwv dej thiab cov duab uas tau ua raws cov dej nthwv dej.

Khoom siv

Khoom siv

1. UV LED 12V 840cm

2. Rubber dawb 12 hli 750cm

3. Arduino mega 2560 x2

4. Motor tsav x25

5. Stepper lub cev muaj zog x25

6. Bipolar cable rau stepper lub cev muaj zog x25

7. Wood lub tog raj kheej x25

8.pvc (9mm) x25

9. Caij nplooj ntoos hlav x 25

10.acrylic 700mm*700mm

11. Hlf daim iav zaj duab xis 1524mm * 1M

12. Kev nuv ntses

13. Power 12V 12.5A, 12V 75A

14. lub sijhawm rub tawm (3d luam tawm) x 25

Kauj Ruam 1: Npaj Txoj Haujlwm Loj

Npaj Txoj Haujlwm Loj
Npaj Txoj Haujlwm Loj

Thaum peb pib, peb yuav tsum tau npaj thiab kos lub hauv paus loj. yog li, peb tau npaj cov ntawv pdf rau acrylic tag nrho cov thav duab thiab lub sijhawm pulley stl cov ntaub ntawv (qhov peb muab tso rau hauv pem hauv ntej ntawm kauj ruam lub cav rau cua xov uas tuaj yeem rub tus ntoo nruab nrab).

nrog cov txheej txheem acrylic tag nrho thiab lub sijhawm rub tawm, peb yuav tsum ua stl cov ntaub ntawv ua ntej, thiab luam ntawv 3d.

Kauj ruam 2: Ua Kho Vajtse

Ua Kho Vajtse
Ua Kho Vajtse
Ua Kho Vajtse
Ua Kho Vajtse
Ua Kho Vajtse
Ua Kho Vajtse

lub thawv 1

1. Muab 2T acrylic dub (No. 1) tso rau hauv pem teb thiab muab 5T acrylic dub sab (No. 2) tso rau saum. Ntxiv 5T acrylic dub daim phiaj (Tsis tau. 3) thiab txuas nws siv cov ntawv acrylic.

lub thawv 2

2. Siv dej rau ntawm daim iav pob tshab acrylic thiab sab saum toj nrog zaj duab xis ib nrab iav Ib daim iav ib nrab yob ib daim npav kom nws tsis txhob npub. Txuas rau sab (2) thiab pob tshab acrylic (1). Tsis txhob ua kom ruaj khov ua ke ntawm qhov sib txuas ntawm acrylic thiab iav tsom iav (No. 1) ib sab. Kho nws nrog daim kab xev ib ntus (txhawm rau kho kab nuv ntses lossis kho dua tshiab sab hauv).

Kauj Ruam 3: Ua Daim phiaj

Ua daim phiaj
Ua daim phiaj
Ua daim phiaj
Ua daim phiaj
Ua Daim phiaj
Ua Daim phiaj

1. Ib kem ntoo yog qhov loj 12mm. Laum ib lub qhov kawg kom cov kab nuv ntses nkag mus.

2. Txhais daim phiaj acrylic mus rau lwm sab ntawm kab ntoo ntoo uas siv cov nplaum.

3. Muab cov roj hmab tso rau tom qab ntawm tus ncej ntoo thiab muab lub caij nplooj ntoo hlav rau hauv.

4. Txhua yam zoo

Kauj ruam 4:

Duab
Duab
Duab
Duab
Duab
Duab

1. Arduino Mega 2560 Tus Pin Txuas Tus Xov Tooj

2. faib cov hluav taws xob ua ob ntu

3. Stepper lub cev muaj zog thiab tsav tsheb Circuit Court

4. Two Arduino mega2560s txuas nrog hla TX thiab RX rau kev sib txuas lus txuas.

Kauj ruam 5: Code

#suav nrog

StepperMulti stepper (200, 2, 3, 4, 5); // stepper motor numbering StepperMulti stepper2 (200, 6, 7, 8, 9); StepperMulti stepper3 (200, 10, 11, 12, 13); StepperMulti stepper4 (200, A0, A1, A2, A3); StepperMulti stepper5 (200, A4, A5, A6, A7); StepperMulti stepper6 (200, 22, 23, 24, 25); StepperMulti stepper7 (200, 26, 27, 28, 29); StepperMulti stepper8 (200, 30, 31, 32, 33); StepperMulti stepper9 (200, 34, 35, 36, 37); StepperMulti stepper10 (200, 38, 39, 40, 41); StepperMulti stepper11 (200, 42, 43, 44, 45); StepperMulti stepper12 (200, 46, 47, 48, 49); StepperMulti stepper13 (200, 50, 51, 52, 53); uint32_t on_timer = millis (); uint32_t set_timer1 = millis (); uint32_t set_timer2 = millis (); uint32_t set_timer3 = millis (); uint32_t set_timer4 = millis (); uint32_t set_timer5 = millis (); uint32_t set_timer6 = millis (); uint32_t set_timer7 = millis (); uint32_t set_timer8 = millis (); uint32_t set_timer9 = millis (); uint32_t set_timer10 = millis (); int suav = 0; int pib_set_speed

void teeb tsa ()

Serial1.begin (115200); // kev sib txuas lus txuas Serial.begin (9600); stepper.setSpeed (init_set_speed); stepper2.setSpeed (init_set_speed); stepper3.setSpeed (init_set_speed); stepper4.setSpeed (init_set_speed); stepper5.setSpeed (init_set_speed); stepper6.setSpeed (init_set_speed); stepper7.setSpeed (init_set_speed); stepper8.setSpeed (init_set_speed); stepper9.setSpeed (init_set_speed); stepper10.setSpeed (init_set_speed); stepper11.setSpeed (init_set_speed); stepper12.setSpeed (init_set_speed); stepper13.setSpeed (init_set_speed); } int SPEED = 200; // lub cev muaj zog void voj () {///////////////////////////////////////) - set_timer1 <6000) {// Stepper motor 13 txav ntawm 1500 thiab 6000 vib nas this. <yog (millis () - on_timer <1500) {stepper13.setStep (SPEED); } lwm tus yog (millis () - on_timer <3000) {stepper13.setStep (-SPEED); // (- SPEED) txhais tau tias rov qab tig} lwm qhov yog (millis () - on_timer <4500) {stepper13.setStep (SPEED); } lwm tus yog (millis () - on_timer 1000) {Serial1.write (0x01); suav = 1; }} //////////////////////// if (millis () - set_timer2 1000) {yog (millis () - on_timer <2500) {stepper7.setStep (Ceev); stepper8.setStep (SPEED); stepper9.setStep (SPEED); stepper12.setStep (SPEED); } lwm tus yog (millis () - on_timer <4000) {stepper7.setStep (-SPEED); stepper8.setStep (-SPEED); stepper9.setStep (-SPEED); stepper12.setStep (-SPEED); } lwm tus yog (millis () - on_timer <5500) {stepper7.setStep (SPEED); stepper8.setStep (SPEED); stepper9.setStep (SPEED); stepper12.setStep (SPEED); } lwm tus yog (millis () - on_timer <7000) {stepper7.setStep (-SPEED); stepper8.setStep (-SPEED); stepper9.setStep (-SPEED); stepper12.setStep (-SPEED); } lwm {stepper7.setStep (0); stepper8.setStep (0); stepper9.setStep (0); stepper12.setStep (0); }} lwm tus {stepper7.setStep (0); stepper8.setStep (0); stepper9.setStep (0); stepper12.setStep (0); } yog (millis () - set_timer2 1000) {yog (millis () - on_timer <2500) {stepper2.setStep (SPEED); stepper5.setStep (-SPEED); stepper6.setStep (SPEED); stepper7.setStep (SPEED); } lwm tus yog (millis () - on_timer <4000) {stepper2.setStep (-SPEED); stepper5.setStep (SPEED); stepper6.setStep (-SPEED); stepper7.setStep (-SPEED); } lwm tus yog (millis () - on_timer <5500) {stepper2.setStep (SPEED); stepper5.setStep (-SPEED); stepper6.setStep (SPEED); stepper7.setStep (SPEED); } lwm tus yog (millis () - on_timer <7000) {stepper2.setStep (-SPEED); stepper5.setStep (SPEED); stepper6.setStep (-SPEED); stepper7.setStep (-SPEED); } lwm {stepper2.setStep (0); stepper5.setStep (0); stepper6.setStep (0); stepper7.setStep (0); }} lwm {stepper2.setStep (0); stepper5.setStep (0); stepper6.setStep (0); stepper7.setStep (0); } /////////////////////////////////////////////// yog millis () - set_timer3 2000) {yog (millis () - on_timer <3500) {stepper.setStep (SPEED); stepper2.setStep (SPEED); stepper3.setStep (SPEED); stepper4.setStep (SPEED); stepper5.setStep (SPEED); stepper6.setStep (SPEED); stepper10.setStep (SPEED); stepper11.setStep (SPEED); } lwm tus yog (millis () - on_timer <5000) {stepper.setStep (-SPEED); stepper2.setStep (-SPEED); stepper3.setStep (-SPEED); stepper4.setStep (-SPEED); stepper5.setStep (-SPEED); stepper6.setStep (-SPEED); stepper10.setStep (-SPEED); stepper11.setStep (-SPEED); } lwm tus yog (millis () - on_timer <6500) {stepper.setStep (SPEED); stepper2.setStep (SPEED); stepper3.setStep (SPEED); stepper4.setStep (SPEED); stepper5.setStep (SPEED); stepper6.setStep (SPEED); stepper10.setStep (SPEED); stepper11.setStep (SPEED); } lwm tus yog (millis () - on_timer <8000) {stepper.setStep (-SPEED); stepper2.setStep (-SPEED); stepper3.setStep (-SPEED); stepper4.setStep (-SPEED); stepper5.setStep (-SPEED); stepper6.setStep (-SPEED); stepper10.setStep (-SPEED); stepper11.setStep (-SPEED); } lwm {stepper.setStep (0); stepper2.setStep (0); stepper3.setStep (0); stepper4.setStep (0); stepper5.setStep (0); stepper6.setStep (0); stepper10.setStep (0); stepper11.setStep (0); }} lwm {stepper.setStep (0); stepper2.setStep (0); stepper3.setStep (0); stepper4.setStep (0); stepper5.setStep (0); stepper6.setStep (0); stepper10.setStep (0); stepper11.setStep (0); } yog (millis () - set_timer3 2000) {yog (millis () - on_timer <3500) {stepper3.setStep (SPEED); stepper4.setStep (SPEED); stepper8.setStep (SPEED); stepper9.setStep (SPEED); stepper10.setStep (SPEED); stepper11.setStep (SPEED); stepper12.setStep (SPEED); stepper13.setStep (SPEED); } lwm tus yog (millis () - on_timer <5000) {stepper3.setStep (-SPEED); stepper4.setStep (-SPEED); stepper8.setStep (-SPEED); stepper9.setStep (-SPEED); stepper10.setStep (-SPEED); stepper11.setStep (-SPEED); stepper12.setStep (-SPEED); stepper13.setStep (-SPEED); } lwm tus yog (millis () - on_timer <6500) {stepper3.setStep (SPEED); stepper4.setStep (SPEED); stepper8.setStep (SPEED); stepper9.setStep (SPEED); stepper10.setStep (SPEED); stepper11.setStep (SPEED); stepper12.setStep (SPEED); stepper13.setStep (SPEED); } lwm tus yog (millis () - on_timer <8000) {stepper3.setStep (-SPEED); stepper4.setStep (-SPEED); stepper8.setStep (-SPEED); stepper9.setStep (-SPEED); stepper10.setStep (-SPEED); stepper11.setStep (-SPEED); stepper12.setStep (-SPEED); stepper13.setStep (-SPEED); } lwm {stepper3.setStep (0); stepper4.setStep (0); stepper8.setStep (0); stepper9.setStep (0); stepper10.setStep (0); stepper11.setStep (0); stepper12.setStep (0); stepper13.setStep (0); }} lwm {stepper3.setStep (0); stepper4.setStep (0); stepper8.setStep (0); stepper9.setStep (0); stepper10.setStep (0); stepper11.setStep (0); stepper12.setStep (0); stepper13.setStep (0); } ///////////////////////////////// stepper.moveStep (); stepper2.moveStep (); stepper3.moveStep (); stepper4.moveStep (); stepper5.moveStep (); stepper6.moveStep (); stepper7.moveStep (); stepper8.moveStep (); stepper9.moveStep (); stepper10.moveStep (); stepper11.moveStep (); stepper12.moveStep (); stepper13.moveStep (); }

frist codeing

thiab..

#suav nrog

StepperMulti stepper (200, 2, 3, 4, 5); StepperMulti stepper2 (200, 6, 7, 8, 9); StepperMulti stepper3 (200, 10, 11, 12, 13); StepperMulti stepper4 (200, A0, A1, A2, A3); StepperMulti stepper5 (200, A4, A5, A6, A7); StepperMulti stepper6 (200, 22, 23, 24, 25); StepperMulti stepper7 (200, 26, 27, 28, 29); StepperMulti stepper8 (200, 30, 31, 32, 33); StepperMulti stepper9 (200, 34, 35, 36, 37); StepperMulti stepper10 (200, 38, 39, 40, 41); StepperMulti stepper11 (200, 42, 43, 44, 45); StepperMulti stepper12 (200, 46, 47, 48, 49); StepperMulti stepper13 (200, 50, 51, 52, 53); uint32_t on_timer = millis (); uint32_t set_timer1 = millis (); uint32_t set_timer2 = millis (); uint32_t set_timer3 = millis (); uint32_t set_timer4 = millis (); uint32_t set_timer5 = millis (); uint32_t set_timer6 = millis (); uint32_t set_timer7 = millis (); uint32_t set_timer8 = millis (); uint32_t set_timer9 = millis (); uint32_t set_timer10 = millis (); int suav = 0; int pib_set_speed = 10; teeb tsa tsis muaj dab tsi () Serial1.begin (115200); Serial.begin (9600); stepper.setSpeed (init_set_speed); stepper2.setSpeed (init_set_speed); stepper3.setSpeed (init_set_speed); stepper4.setSpeed (init_set_speed); stepper5.setSpeed (init_set_speed); stepper6.setSpeed (init_set_speed); stepper7.setSpeed (init_set_speed); stepper8.setSpeed (init_set_speed); stepper9.setSpeed (init_set_speed); stepper10.setSpeed (init_set_speed); stepper11.setSpeed (init_set_speed); stepper12.setSpeed (init_set_speed); stepper13.setSpeed (init_set_speed); } int SPEED = 200; void voj () {

/////////////////////////////////////

yog (millis () - set_timer1 <6000) {yog (millis () - on_timer <1500) {stepper13.setStep (SPEED); } lwm tus yog (millis () - on_timer <3000) {stepper13.setStep (-SPEED); } lwm tus yog (millis () - on_timer <4500) {stepper13.setStep (SPEED); } lwm tus yog (millis () - on_timer 1000) {Serial1.write (0x01); suav = 1; }} //////////////////////// if (millis () - set_timer2 1000) {yog (millis () - on_timer <2500) {stepper7.setSte ㄴ p (SPEED); stepper8.setStep (SPEED); stepper9.setStep (SPEED); stepper12.setStep (SPEED); } lwm tus yog (millis () - on_timer <4000) {stepper7.setStep (-SPEED); stepper8.setStep (-SPEED); stepper9.setStep (-SPEED); stepper12.setStep (-SPEED); } lwm tus yog (millis () - on_timer <5500) {stepper7.setStep (SPEED); stepper8.setStep (SPEED); stepper9.setStep (SPEED); stepper12.setStep (SPEED); } lwm tus yog (millis () - on_timer <7000) {stepper7.setStep (-SPEED); stepper8.setStep (-SPEED); stepper9.setStep (-SPEED); stepper12.setStep (-SPEED); } lwm {stepper7.setStep (0); stepper8.setStep (0); stepper9.setStep (0); stepper12.setStep (0); }} lwm tus {stepper7.setStep (0); stepper8.setStep (0); stepper9.setStep (0); stepper12.setStep (0); } yog (millis () - set_timer2 1000) {yog (millis () - on_timer <2500) {stepper2.setStep (SPEED); stepper5.setStep (-SPEED); stepper6.setStep (SPEED); stepper7.setStep (SPEED); } lwm tus yog (millis () - on_timer <4000) {stepper2.setStep (-SPEED); stepper5.setStep (SPEED); stepper6.setStep (-SPEED); stepper7.setStep (-SPEED); } lwm tus yog (millis () - on_timer <5500) {stepper2.setStep (SPEED); stepper5.setStep (-SPEED); stepper6.setStep (SPEED); stepper7.setStep (SPEED); } lwm tus yog (millis () - on_timer <7000) {stepper2.setStep (-SPEED); stepper5.setStep (SPEED); stepper6.setStep (-SPEED); stepper7.setStep (-SPEED); } lwm {stepper2.setStep (0); stepper5.setStep (0); stepper6.setStep (0); stepper7.setStep (0); }} lwm {stepper2.setStep (0); stepper5.setStep (0); stepper6.setStep (0); stepper7.setStep (0); } /////////////////////////////////////////////// yog millis () - set_timer3 2000) {yog (millis () - on_timer <3500) {stepper.setStep (SPEED); stepper2.setStep (SPEED); stepper3.setStep (SPEED); stepper4.setStep (SPEED); stepper5.setStep (SPEED); stepper6.setStep (SPEED); stepper10.setStep (SPEED); stepper11.setStep (SPEED); } lwm tus yog (millis () - on_timer <5000) {stepper.setStep (-SPEED); stepper2.setStep (-SPEED); stepper3.setStep (-SPEED); stepper4.setStep (-SPEED); stepper5.setStep (-SPEED); stepper6.setStep (-SPEED); stepper10.setStep (-SPEED); stepper11.setStep (-SPEED); } lwm tus yog (millis () - on_timer <6500) {stepper.setStep (SPEED); stepper2.setStep (SPEED); stepper3.setStep (SPEED); stepper4.setStep (SPEED); stepper5.setStep (SPEED); stepper6.setStep (SPEED); stepper10.setStep (SPEED); stepper11.setStep (SPEED); } lwm tus yog (millis () - on_timer <8000) {stepper.setStep (-SPEED); stepper2.setStep (-SPEED); stepper3.setStep (-SPEED); stepper4.setStep (-SPEED); stepper5.setStep (-SPEED); stepper6.setStep (-SPEED); stepper10.setStep (-SPEED); stepper11.setStep (-SPEED); } lwm {stepper.setStep (0); stepper2.setStep (0); stepper3.setStep (0); stepper4.setStep (0); stepper5.setStep (0); stepper6.setStep (0); stepper10.setStep (0); stepper11.setStep (0); }} lwm {stepper.setStep (0); stepper2.setStep (0); stepper3.setStep (0); stepper4.setStep (0); stepper5.setStep (0); stepper6.setStep (0); stepper10.setStep (0); stepper11.setStep (0); } yog (millis () - set_timer3 2000) {yog (millis () - on_timer <3500) {stepper3.setStep (SPEED); stepper4.setStep (SPEED); stepper8.setStep (SPEED); stepper9.setStep (SPEED); stepper10.setStep (SPEED); stepper11.setStep (SPEED); stepper12.setStep (SPEED); stepper13.setStep (SPEED); } lwm tus yog (millis () - on_timer <5000) {stepper3.setStep (-SPEED); stepper4.setStep (-SPEED); stepper8.setStep (-SPEED); stepper9.setStep (-SPEED); stepper10.setStep (-SPEED); stepper11.setStep (-SPEED); stepper12.setStep (-SPEED); stepper13.setStep (-SPEED); } lwm tus yog (millis () - on_timer <6500) {stepper3.setStep (SPEED); stepper4.setStep (SPEED); stepper8.setStep (SPEED); stepper9.setStep (SPEED); stepper10.setStep (SPEED); stepper11.setStep (SPEED); stepper12.setStep (SPEED); stepper13.setStep (SPEED); } lwm tus yog (millis () - on_timer <8000) {stepper3.setStep (-SPEED); stepper4.setStep (-SPEED); stepper8.setStep (-SPEED); stepper9.setStep (-SPEED); stepper10.setStep (-SPEED); stepper11.setStep (-SPEED); stepper12.setStep (-SPEED); stepper13.setStep (-SPEED); } lwm {stepper3.setStep (0); stepper4.setStep (0); stepper8.setStep (0); stepper9.setStep (0); stepper10.setStep (0); stepper11.setStep (0); stepper12.setStep (0); stepper13.setStep (0); }} lwm {stepper3.setStep (0); stepper4.setStep (0); stepper8.setStep (0); stepper9.setStep (0); stepper10.setStep (0); stepper11.setStep (0); stepper12.setStep (0); stepper13.setStep (0); } ///////////////////////////////// stepper.moveStep (); stepper2.moveStep (); stepper3.moveStep (); stepper4.moveStep (); stepper5.moveStep (); stepper6.moveStep (); stepper7.moveStep (); stepper8.moveStep (); stepper9.moveStep (); stepper10.moveStep (); stepper11.moveStep (); stepper12.moveStep (); stepper13.moveStep (); }

thib ob coding

Kauj Ruam 6: Ua ntej Coding…

Ua ntej Coding…
Ua ntej Coding…

Koj yuav tsum ntxiv lub tsev qiv ntawv tshiab cuam tshuam nrog cov kauj ruam tsav tsheb.

Yog li koj mus rau hauv lub vev xaib no thiab rub tawm lub tsev qiv ntawv tshiab.

blog.danggun.net/2092

Kauj Ruam 7: Kev Sib Txuas Lus

Koj yuav tsum ua ob qho arduino mega-telecommunications.

yog (start_count == 0) {

int Cov ntaub ntawv = Serial1.read (); Serial.println (Cov Ntaub Ntawv); yog (Cov ntaub ntawv == 0x01) {start_count = 1; }

Ua ntej tshaj plaws, peb xav tau tus lej no ntawm Maine Arduino Mega.

yog (suav == 0) {yog (millis () - set_timer1> 1000) {Serial1.write (0x01); suav = 1; }

Arduino Mega, uas tau txais kev sib txuas lus txuas, xav tau cov lej no.

Thawj qhov coding raug tso rau qhov twg aduino thib ob yuav tsum txav mus.

Pom zoo: