Orodha ya maudhui:

Kusonga Gridi na Kioo cha infinity: Hatua 7
Kusonga Gridi na Kioo cha infinity: Hatua 7

Video: Kusonga Gridi na Kioo cha infinity: Hatua 7

Video: Kusonga Gridi na Kioo cha infinity: Hatua 7
Video: НЕ ВЗДУМАЙ снимать аккумулятор с машины. Делай это ПРАВИЛЬНО ! 2024, Novemba
Anonim
Image
Image

video hizo zinafanya video na kusonga video.

Tulitaka kuonyesha nafasi inayoyumba kupitia gridi zinazohamia na Miradi ya Infinity kuonyesha hali ya nafasi kwa ufanisi zaidi.

Kazi yetu inajumuisha sahani mbili za akriliki, mbele, na mabamba ya nyuma, ambayo yanaonyesha watu jinsi wanavyosumbuka moja kwa moja, na mabango ya nyuma yana motors za hatua 25 ambazo kwa kweli hutoa harakati.

Kazi hiyo ina jopo la mbele ambalo litaonyesha mwangaza wa nafasi, fimbo ya mbao ambayo hufanya harakati ya kati, mwongozo wa viboko, na ubao wa nyuma ambao huunda harakati kupitia motors 25 za hatua.

Vilele 25 vya gridi-iliyounganishwa na motors 25 za hatua hutengeneza mifumo tofauti kulingana na maadili yaliyowekwa. Kwa kuongezea, kampuni hiyo ilitaka kuongeza nafasi kwa kuchanganya akriliki ya uwazi na filamu ya mbele ya kioo cha kioo, kioo cha nyuma, na kioo cha infinity kilichowashwa nyeusi. Mifumo anuwai ya uhuishaji hufanywa kulingana na mawimbi na drabs ambayo hufanywa kulingana na mawimbi ya maji.

Vifaa

Vifaa

1. UV LED 12V 840cm

2. Mpira mweupe 12mm 750cm

3. Arduino mega 2560 x2

4. Dereva wa pikipiki x25

5. Stepper motor x25

6. Cipolar cable kwa stepper motor x25

7. Silinda ya kuni x25

8. pvc (9mm) x25

9. Mchanganyiko x 25

10.akriliki 700mm * 700mm

11. Filamu ya kioo cha Nusu 1524mm * 1M

12. Mstari wa uvuvi

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

14. kapi ya wakati (chapa 3d) x 25

Hatua ya 1: Panga Mfumo Mkubwa

Panga Mfumo Mkubwa
Panga Mfumo Mkubwa

Tunapoanza, tunahitaji kupanga na kuchora mfumo mkubwa. kwa hivyo, tuliandaa faili ya pdf kwa fremu ya jumla ya akriliki na faili ya muda ya pulley stl (tunayoiweka mbele ya motor motor kwa uzi wa upepo ambao unaweza kuvuta fimbo ya katikati ya kuni).

na fremu ya jumla ya akriliki na kapi ya majira, tunahitaji kufanya faili ya stl kwanza, na uchapishaji wa 3d.

Hatua ya 2: Kutengeneza vifaa

Kutengeneza vifaa
Kutengeneza vifaa
Kutengeneza vifaa
Kutengeneza vifaa
Kutengeneza vifaa
Kutengeneza vifaa

kisanduku1

1. Weka 2T akriliki nyeusi (Na. 1) sakafuni na ambatisha 5T upande mweusi wa akriliki (Na. 2) juu. Ongeza gridi nyeusi ya 5T ya akriliki (No. 3) na uiambatanishe kwa kutumia dhamana ya akriliki.

kisanduku2

2. Nyunyiza maji kwenye sahani ya uwazi ya akriliki na juu na filamu ya nusu kioo. Kioo cha nusu kinazunguka kadi ili kuizuia itoke. Ambatisha upande (2) na uwazi wa akriliki (1). Usilinde mchanganyiko wa akriliki pamoja na vioo vya akriliki (Na. 1) baadaye. Itengeneze kwa muda na mkanda (kwa kukarabati laini ya uvuvi au ukarabati mambo ya ndani).

Hatua ya 3: Kutengeneza Gridi

Kutengeneza Gridi
Kutengeneza Gridi
Kutengeneza Gridi
Kutengeneza Gridi
Kutengeneza Gridi
Kutengeneza Gridi

1. Safu ya mbao ina ukubwa wa 12mm. Piga shimo mwisho ili kuruhusu laini ya uvuvi iingie.

2. Ambatisha sahani za akriliki kwa upande mwingine wa safu ya mbao iliyotobolewa kwa kutumia wambiso.

3. Weka bendi ya mpira nyuma ya nguzo ya mbao na uweke chemchemi ndani yake.

4. Umbo la jumla

Hatua ya 4:

Picha
Picha
Picha
Picha
Picha
Picha

1. Arduino Mega 2560 Nambari ya Uunganisho wa Pini

2.gawanya umeme katika sehemu mbili

3. Mzunguko wa dereva wa motor na motor

4. Mega2560 mbili za Arduino zimeunganishwa kwa kuvuka TX na RX kwa mawasiliano ya serial.

Hatua ya 5: Kanuni

# pamoja

StepperMulti stepper (200, 2, 3, 4, 5); // stepper motor inayohesabu 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 (); hesabu = 0; kasi ya ndani

kuanzisha batili ()

Serial1.anza (115200); // mawasiliano ya serial Serial.begin (9600); kasi ya kasi (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; // kitanzi cha kasi ya kasi ya motor () {////////////////////////////////////////// if (millis (- set_timer1 <6000) {// Stepper motor 13 huenda kati ya sekunde 1500 na 6000. <if (millis () - on_timer <1500) {stepper13.setStep (SPEED); } mwingine ikiwa (millis () - on_timer <3000) {stepper13.setStep (-SPEED); // (- SPEED) inamaanisha kuzungusha nyuma} mwingine ikiwa (millis () - on_timer <4500) {stepper13.setStep (SPEED); } mwingine ikiwa (millis () - on_timer 1000) {Serial1.write (0x01); hesabu = 1; }} ///////////////////////// ikiwa (millis () - set_timer2 1000) {if (millis () - on_timer <2500) {stepper7.setStep (KASI); stepper8.setStep (SPEED); hatua.setStep (SPEED); stepper12.setStep (SPEED); } mwingine ikiwa (millis () - on_timer <4000) {stepper7.setStep (-SPEED); stepper8.setStep (-SPEED); stepper9.setStep (-SPEED); stepper12.setStep (-SPEED); } mwingine ikiwa (millis () - on_timer <5500) {stepper7.setStep (SPEED); stepper8.setStep (SPEED); hatua.setStep (SPEED); stepper12.setStep (SPEED); } mwingine ikiwa (millis () - on_timer <7000) {stepper7.setStep (-SPEED); stepper8.setStep (-SPEED); stepper9.setStep (-SPEED); stepper12.setStep (-SPEED); } mwingine {stepper7.setStep (0); hatua ya 8.setStep (0); hatua ya 9. setStep (0); stepper12.setStep (0); }} mwingine {stepper7.setStep (0); hatua ya 8.setStep (0); hatua ya 9.setStep (0); stepper12.setStep (0); } ikiwa (millis () - set_timer2 1000) {ikiwa (millis () - on_timer <2500) {stepper2.setStep (SPEED); hatua ya 5.setStep (-SPEED); hatua ya 6.setStep (SPEED); hatua 7. hatuaStep (SPEED); } mwingine ikiwa (millis () - on_timer <4000) {stepper2.setStep (-SPEED); hatua ya 5.setStep (SPEED); hatua ya 6.setStep (-SPEED); stepper7.setStep (-SPEED); } mwingine ikiwa (millis () - on_timer <5500) {stepper2.setStep (SPEED); hatua ya 5.setStep (-SPEED); hatua ya 6.setStep (SPEED); hatua 7. hatuaStep (SPEED); } mwingine ikiwa (millis () - on_timer <7000) {stepper2.setStep (-SPEED); hatua ya 5.setStep (SPEED); hatua ya 6.setStep (-SPEED); stepper7.setStep (-SPEED); } mwingine {stepper2.setStep (0); hatua ya 5.setStep (0); hatua 6. hatuaStep (0); hatua 7. hatuaStep (0); }} mwingine {stepper2.setStep (0); hatua ya 5.setStep (0); hatua 6. hatuaStep (0); hatua 7. hatuaStep (0); } /////////////////////////////////////////////// kama (millis () - set_timer3 2000) {if (millis () - on_timer <3500) {stepper.setStep (SPEED); stepper2.setStep (SPEED); stepper3.setStep (SPEED); stepper4.setStep (SPEED); hatua ya 5.setStep (SPEED); hatua 6. hatuaStep (SPEED); stepper10.setStep (SPEED); hatua11.setStep (SPEED); } mwingine ikiwa (millis () - on_timer <5000) {stepper.setStep (-SPEED); stepper2.setStep (-SPEED); stepper3.setStep (-SPEED); stepper4.setStep (-SPEED); hatua ya 5.setStep (-SPEED); hatua ya 6.setStep (-SPEED); stepper10.setStep (-SPEED); hatua11.setStep (-SPEED); } mwingine ikiwa (millis () - on_timer <6500) {stepper.setStep (SPEED); stepper2.setStep (SPEED); stepper3.setStep (SPEED); stepper4.setStep (SPEED); hatua ya 5.setStep (SPEED); hatua 6. hatuaStep (SPEED); stepper10.setStep (SPEED); hatua11.setStep (SPEED); } mwingine ikiwa (millis () - on_timer <8000) {stepper.setStep (-SPEED); stepper2.setStep (-SPEED); stepper3.setStep (-SPEED); stepper4.setStep (-SPEED); hatua ya 5.setStep (-SPEED); hatua ya 6.setStep (-SPEED); stepper10.setStep (-SPEED); hatua11.setStep (-SPEED); } mwingine {stepper.setStep (0); hatua ya 2.setStep (0); hatua ya 3.setStep (0); hatua 4.setStep (0); hatua ya 5.setStep (0); hatua 6. hatuaStep (0); hatua10.setStep (0); hatua11.setStep (0); }} mwingine {stepper.setStep (0); hatua ya 2.setStep (0); hatua ya tatu.setStep (0); hatua 4.setStep (0); hatua ya 5.setStep (0); hatua 6. hatuaStep (0); hatua10.setStep (0); hatua11.setStep (0); } ikiwa (millis () - set_timer3 2000) {ikiwa (millis () - on_timer <3500) {stepper3.setStep (SPEED); stepper4.setStep (SPEED); stepper8.setStep (SPEED); hatua.setStep (SPEED); stepper10.setStep (SPEED); stepep11.setStep (SPEED); stepper12.setStep (SPEED); stepper13.setStep (SPEED); } mwingine ikiwa (millis () - on_timer <5000) {stepper3.setStep (-SPEED); stepper4.setStep (-SPEED); stepper8.setStep (-SPEED); stepper9.setStep (-SPEED); stepper10.setStep (-SPEED); hatua11.setStep (-SPEED); stepper12.setStep (-SPEED); stepper13.setStep (-SPEED); } mwingine ikiwa (millis () - on_timer <6500) {stepper3.setStep (SPEED); stepper4.setStep (SPEED); stepper8.setStep (SPEED); hatua.setStep (SPEED); stepper10.setStep (SPEED); hatua11.setStep (SPEED); stepper12.setStep (SPEED); stepper13.setStep (SPEED); } mwingine ikiwa (millis () - on_timer <8000) {stepper3.setStep (-SPEED); stepper4.setStep (-SPEED); stepper8.setStep (-SPEED); stepper9.setStep (-SPEED); stepper10.setStep (-SPEED); hatua11.setStep (-SPEED); stepper12.setStep (-SPEED); stepper13.setStep (-SPEED); } mwingine {stepper3.setStep (0); hatua 4.setStep (0); hatua ya 8.setStep (0); hatua ya 9. setStep (0); hatua10.setStep (0); hatua11.setStep (0); stepper12.setStep (0); hatua13.setStep (0); }} mwingine {stepper3.setStep (0); hatua 4.setStep (0); hatua ya 8.setStep (0); hatua ya 9. setStep (0); hatua10.setStep (0); hatua11.setStep (0); stepper12.setStep (0); hatua13.setStep (0); } //////////////////////////////////// stepper.moveStep (); stepper2.soveStep (); mwendo3.soveStep (); stepper4.soveStep (); mwendo5.soveStep (); mwendo6.songaStep (); mwendo7.soveStep (); mwendo8.soveStep (); mwendo9.songaStep (); hatua10.soveStep (); mwendo11.soveStep (); mwendo12.soveStep (); mwendo13.soveStep (); }

kuweka msimbo wa ngumi

na..

# pamoja

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 (); hesabu = 0; int init_set_speed = 10; kuanzisha batili () Serial1.anza (115200); Kuanzia Serial (9600); kasi ya kasi (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; kitanzi batili () {

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

ikiwa (millis () - set_timer1 <6000) {ikiwa (millis () - on_timer <1500) {stepper13.setStep (SPEED); } mwingine ikiwa (millis () - on_timer <3000) {stepper13.setStep (-SPEED); } mwingine ikiwa (millis () - on_timer <4500) {stepper13.setStep (SPEED); } mwingine ikiwa (millis () - on_timer 1000) {Serial1.write (0x01); hesabu = 1; }} ///////////////////////// ikiwa (millis () - set_timer2 1000) {if (millis () - on_timer <2500) {stepper7.setSte ㄴ uk (SPEED); stepper8.setStep (SPEED); hatua.setStep (SPEED); stepper12.setStep (SPEED); } mwingine ikiwa (millis () - on_timer <4000) {stepper7.setStep (-SPEED); stepper8.setStep (-SPEED); stepper9.setStep (-SPEED); stepper12.setStep (-SPEED); } mwingine ikiwa (millis () - on_timer <5500) {stepper7.setStep (SPEED); stepper8.setStep (SPEED); hatua.setStep (SPEED); stepper12.setStep (SPEED); } mwingine ikiwa (millis () - on_timer <7000) {stepper7.setStep (-SPEED); stepper8.setStep (-SPEED); stepper9.setStep (-SPEED); stepper12.setStep (-SPEED); } mwingine {stepper7.setStep (0); hatua ya 8.setStep (0); hatua ya 9.setStep (0); stepper12.setStep (0); }} mwingine {stepper7.setStep (0); hatua ya 8.setStep (0); hatua ya 9. setStep (0); stepper12.setStep (0); } ikiwa (millis () - set_timer2 1000) {ikiwa (millis () - on_timer <2500) {stepper2.setStep (SPEED); hatua ya 5.setStep (-SPEED); hatua 6. hatuaStep (SPEED); hatua 7. hatuaStep (SPEED); } mwingine ikiwa (millis () - on_timer <4000) {stepper2.setStep (-SPEED); hatua ya 5.setStep (SPEED); hatua ya 6.setStep (-SPEED); stepper7.setStep (-SPEED); } mwingine ikiwa (millis () - on_timer <5500) {stepper2.setStep (SPEED); hatua ya 5.setStep (-SPEED); hatua 6. hatuaStep (SPEED); hatua 7. hatuaStep (SPEED); } mwingine ikiwa (millis () - on_timer <7000) {stepper2.setStep (-SPEED); hatua ya 5.setStep (SPEED); hatua ya 6.setStep (-SPEED); stepper7.setStep (-SPEED); } mwingine {stepper2.setStep (0); hatua ya 5.setStep (0); hatua 6. hatuaStep (0); hatua 7. hatuaStep (0); }} mwingine {stepper2.setStep (0); hatua ya 5.setStep (0); hatua 6. hatuaStep (0); hatua 7. hatuaStep (0); } /////////////////////////////////////////////// kama (millis () - set_timer3 2000) {if (millis () - on_timer <3500) {stepper.setStep (SPEED); stepper2.setStep (SPEED); stepper3.setStep (SPEED); stepper4.setStep (SPEED); hatua ya 5.setStep (SPEED); hatua 6. hatuaStep (SPEED); stepper10.setStep (SPEED); hatua11.setStep (SPEED); } mwingine ikiwa (millis () - on_timer <5000) {stepper.setStep (-SPEED); stepper2.setStep (-SPEED); stepper3.setStep (-SPEED); stepper4.setStep (-SPEED); hatua ya 5.setStep (-SPEED); hatua ya 6.setStep (-SPEED); stepper10.setStep (-SPEED); hatua11.setStep (-SPEED); } mwingine ikiwa (millis () - on_timer <6500) {stepper.setStep (SPEED); stepper2.setStep (SPEED); stepper3.setStep (SPEED); stepper4.setStep (SPEED); hatua ya 5.setStep (SPEED); hatua ya 6.setStep (SPEED); stepper10.setStep (SPEED); hatua11.setStep (SPEED); } mwingine ikiwa (millis () - on_timer <8000) {stepper.setStep (-SPEED); stepper2.setStep (-SPEED); stepper3.setStep (-SPEED); stepper4.setStep (-SPEED); hatua ya 5.setStep (-SPEED); hatua ya 6.setStep (-SPEED); stepper10.setStep (-SPEED); hatua11.setStep (-SPEED); } mwingine {stepper.setStep (0); hatua ya 2.setStep (0); hatua ya 3.setStep (0); hatua 4.setStep (0); hatua ya 5.setStep (0); hatua 6. hatuaStep (0); hatua10.setStep (0); hatua11.setStep (0); }} mwingine {stepper.setStep (0); hatua ya 2.setStep (0); hatua ya tatu.setStep (0); hatua 4.setStep (0); hatua ya 5.setStep (0); hatua 6. hatuaStep (0); hatua10.setStep (0); hatua11.setStep (0); } ikiwa (millis () - set_timer3 2000) {ikiwa (millis () - on_timer <3500) {stepper3.setStep (SPEED); stepper4.setStep (SPEED); stepper8.setStep (SPEED); hatua.setStep (SPEED); stepper10.setStep (SPEED); hatua11.setStep (SPEED); stepper12.setStep (SPEED); stepper13.setStep (SPEED); } mwingine ikiwa (millis () - on_timer <5000) {stepper3.setStep (-SPEED); stepper4.setStep (-SPEED); stepper8.setStep (-SPEED); stepper9.setStep (-SPEED); stepper10.setStep (-SPEED); hatua11.setStep (-SPEED); stepper12.setStep (-SPEED); stepper13.setStep (-SPEED); } mwingine ikiwa (millis () - on_timer <6500) {stepper3.setStep (SPEED); stepper4.setStep (SPEED); stepper8.setStep (SPEED); hatua.setStep (SPEED); stepper10.setStep (SPEED); hatua11.setStep (SPEED); stepper12.setStep (SPEED); stepper13.setStep (SPEED); } mwingine ikiwa (millis () - on_timer <8000) {stepper3.setStep (-SPEED); stepper4.setStep (-SPEED); stepper8.setStep (-SPEED); stepper9.setStep (-SPEED); stepper10.setStep (-SPEED); hatua11.setStep (-SPEED); stepper12.setStep (-SPEED); stepper13.setStep (-SPEED); } mwingine {stepper3.setStep (0); hatua 4.setStep (0); hatua ya 8.setStep (0); hatua ya 9.setStep (0); hatua10.setStep (0); hatua11.setStep (0); stepper12.setStep (0); hatua13.setStep (0); }} mwingine {stepper3.setStep (0); hatua 4.setStep (0); hatua ya 8.setStep (0); hatua ya 9. setStep (0); hatua10.setStep (0); hatua11.setStep (0); stepper12.setStep (0); hatua13.setStep (0); } //////////////////////////////////// stepper.moveStep (); stepper2.soveStep (); mwendo3.soveStep (); stepper4.soveStep (); mwendo5.soveStep (); mwendo6.songaStep (); mwendo7.soveStep (); mwendo8.soveStep (); mwendo9.songaStep (); hatua10.soveStep (); mwendo11.soveStep (); mwendo12.soveStep (); mwendo13.soveStep (); }

usimbuaji wa pili

Hatua ya 6: Kabla ya Kuandika …

Kabla ya Usimbuaji…
Kabla ya Usimbuaji…

Unapaswa kuongeza maktaba mpya inayohusiana na motors za hatua.

Kwa hivyo unaingia kwenye wavuti hii na upakue maktaba mpya.

blog.danggun.net/2092

Hatua ya 7: Mawasiliano ya serial

Lazima utengeneze mawasiliano ya mega mbili ya arduino.

ikiwa (start_count == 0) {

Takwimu = Serial1.read (); Serial.println (Takwimu); ikiwa (Data == 0x01) {start_count = 1; }

Kwanza kabisa, tunahitaji uandishi huu kwenye Maine Arduino Mega.

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

Arduino Mega, anayepokea mawasiliano ya mfululizo, anahitaji uandishi huu.

Usimbuaji wa kwanza umewekwa mahali ambapo aduino ya pili inapaswa kuhamia.

Ilipendekeza: