ዝርዝር ሁኔታ:

በማያልቅ መስታወት ፍርግርግ ማንቀሳቀስ -7 ደረጃዎች
በማያልቅ መስታወት ፍርግርግ ማንቀሳቀስ -7 ደረጃዎች

ቪዲዮ: በማያልቅ መስታወት ፍርግርግ ማንቀሳቀስ -7 ደረጃዎች

ቪዲዮ: በማያልቅ መስታወት ፍርግርግ ማንቀሳቀስ -7 ደረጃዎች
ቪዲዮ: How To Crochet A Balloon Sleeve Cardigan | Pattern & Tutorial DIY 2024, ህዳር
Anonim
Image
Image

እነዚያ ቪዲዮዎች ቪዲዮ እየሠሩ እና ተንቀሳቃሽ ቪዲዮ እያደረጉ ነው።

የቦታ ስሜትን በበለጠ ውጤታማነት ለማሳየት በሚያንቀሳቅሱ ፍርግርግዎች እና Infinity Mirror በኩል የሚያወዛውዘውን ቦታ ለማሳየት ፈልገን ነበር።

የእኛ ሥራ ሁለት አክሬሊክስ ሳህኖች ፣ የፊት እና የኋላ ሰሌዳዎችን ያቀፈ ሲሆን ይህም ሰዎችን በቀጥታ የሚረብሹበትን መንገድ የሚያሳዩ ሲሆን የኋላ ሰሌዳዎች በእውነቱ እንቅስቃሴን የሚያመርቱ 25 የእርከን ሞተሮች አሏቸው።

ሥራው የቦታ ጭላንጭል ፣ የመካከለኛውን እንቅስቃሴ የሚያከናውን የእንጨት ዱላ ፣ ለዱላዎች መመሪያ እና በ 25 እርከን ሞተሮች በኩል እንቅስቃሴን የሚፈጥር የኋላ ሰሌዳ ያሳያል።

ከ 25 እርከን ሞተሮች ጋር የተገናኘው 25 ፍርግርግ ጫፎች በተቀመጠው የኮድ እሴቶች መሠረት የተለያዩ ንድፎችን ያመርታሉ። በተጨማሪም ፣ ኩባንያው ግልፅ አክሬሊክስን ከፊል ግማሽ መስታወት ፊልም ፣ የኋላ መስተዋት እና ጥቁር ብርሃን ካለው Infinity መስታወት ጋር በማጣመር ቦታውን ከፍ ለማድረግ ፈለገ። በውሃ ሞገዶች ላይ ተመስርተው በተሠሩ ማዕበሎች እና ድራቦች ላይ በመመርኮዝ የተለያዩ የአኒሜሽን ዘይቤዎች ተሠርተዋል።

አቅርቦቶች

አቅርቦቶች

1. UV LED 12V 840 ሴ.ሜ

2. ሮቤር ነጭ 12 ሚሜ 750 ሳ.ሜ

3. አርዱዲኖ ሜጋ 2560 x2

4. የሞተር ሾፌር x25

5. ስቴፐር ሞተር x25

6. ቢፖላር ገመድ ለ stepper ሞተር x25

7. የእንጨት ሲሊንደር x25

8. ፒቪሲ (9 ሚሜ) x25

9. ስፕሪንግ x 25

10. አክሬሊክስ 700 ሚሜ*700 ሚሜ

11. ግማሽ መስታወት ፊልም 1524 ሚሜ * 1 ሜ

12. የዓሣ ማጥመጃ መስመር

13. ኃይል 12V 12.5A ፣ 12V 75A

14. የጊዜ መወጣጫ (3 ዲ ህትመት) x 25

ደረጃ 1 - ትልቅ ማዕቀፍ ያቅዱ

አንድ ትልቅ ማዕቀፍ ያቅዱ
አንድ ትልቅ ማዕቀፍ ያቅዱ

ስንጀምር ትልቅ ማዕቀፍ ማቀድ እና መሳል አለብን። ስለዚህ ፣ ለአይክሮሊክ አጠቃላይ ክፈፍ እና የጊዜ መወጣጫ stl ፋይል የፒዲኤፍ ፋይልን አዘጋጀን (የመካከለኛውን የእንጨት ዘንግ ለመሳብ ለንፋስ ክር በደረጃ ሞተር ፊት የምናስቀምጣቸው)።

በአይክሮሊክ አጠቃላይ ክፈፍ እና የጊዜ መወጣጫ መጎተት ፣ በመጀመሪያ የ stl ፋይል እና 3 ዲ ህትመት ማድረግ አለብን።

ደረጃ 2 - ሃርድዌር መሥራት

ሃርድዌር መስራት
ሃርድዌር መስራት
ሃርድዌር መስራት
ሃርድዌር መስራት
ሃርድዌር መስራት
ሃርድዌር መስራት

ሳጥን 1

1. 2T አክሬሊክስ ጥቁር (ቁጥር 1) ወለሉ ላይ ያስቀምጡ እና ከላይ 5T አክሬሊክስ ጥቁር ጎን (ቁጥር 2) ያያይዙ። 5T አክሬሊክስ ጥቁር ፍርግርግ (ቁጥር 3) ያክሉ እና አክሬሊክስ ቦንድን በመጠቀም ያያይዙት።

ሳጥን 2

2. በአይክሮሊክ ግልፅ ሳህን ላይ ውሃ ይረጩ እና ከላይ ከፊል-መስታወት ፊልም ጋር። አንድ ግማሽ መስታወት እንዳይንከባለል ካርድ ይሽከረከራል። ጎን (2) እና አክሬሊክስ ግልፅነት (1) ያያይዙ። የተዋሃደውን አክሬሊክስ ፕሮቴሽን እና አክሬሊክስ መስተዋቶች (ቁጥር 1) በጎን በኩል አያስጠብቁ። ለጊዜው በቴፕ ያስተካክሉት (ከዓሣ ማጥመጃ መስመር ለመጠገን ወይም ውስጡን ለማደስ)።

ደረጃ 3 ፍርግርግ መስራት

ፍርግርግ መስራት
ፍርግርግ መስራት
ፍርግርግ መስራት
ፍርግርግ መስራት
ፍርግርግ መስራት
ፍርግርግ መስራት

1. የእንጨት ዓምድ መጠኑ 12 ሚሜ ነው። የዓሣ ማጥመጃው መስመር እንዲገባ ለማድረግ በመጨረሻው ላይ ጉድጓድ ይቆፍሩ።

2. ማጣበቂያ በመጠቀም ባለ ቀዳዳ የእንጨት አምድ በሌላኛው በኩል acrylic ሳህኖችን ያያይዙ።

3. ከእንጨት ምሰሶ ጀርባ በኩል የጎማ ባንድ ያስገቡ እና በውስጡ ምንጭን ያስቀምጡ።

4. አጠቃላይ ቅርፅ

ደረጃ 4

ምስል
ምስል
ምስል
ምስል
ምስል
ምስል

1. አርዱዲኖ ሜጋ 2560 ፒን የግንኙነት ቁጥር

2. ኤሌክትሪክን በሁለት ክፍሎች ይከፋፍሉ

3. Stepper ሞተር እና ሞተር ሾፌር የወረዳ

4. ሁለት አርዱinoኖ ሜጋ 2560 ዎች ለተከታታይ ግንኙነት TX እና RX ን በማቋረጥ ተገናኝተዋል።

ደረጃ 5 ኮድ

#ያካትቱ

ባለብዙ እርከን (200 ፣ 2 ፣ 3 ፣ 4 ፣ 5)። // የእንፋሎት ሞተር ቁጥር Stepper ባለ ብዙ stepper2 (200 ፣ 6 ፣ 7 ፣ 8 ፣ 9); ብዙ stepper3 (200, 10, 11, 12, 13); ብዙ stepper4 (200, A0, A1, A2, A3); ብዙ stepper5 (200, A4, A5, A6, A7); ብዙ stepper6 (200, 22, 23, 24, 25); ብዙ stepper7 (200, 26, 27, 28, 29); ብዙ stepper8 (200, 30, 31, 32, 33) ብዙ stepper9 (200, 34, 35, 36, 37); ብዙ stepper10 (200, 38, 39, 40, 41) ብዙ stepper11 (200, 42, 43, 44, 45); ብዙ stepper12 (200 ፣ 46 ፣ 47 ፣ 48 ፣ 49) ብዙ 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 ብዛት = 0; int init_set_speed

ባዶነት ማዋቀር ()

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; // የሞተር ፍጥነት ባዶነት loop () {/////////////////////////////////) - set_timer1 <6000) {// Stepper motor 13 በ 1500 እና 6000 ሰከንዶች መካከል ይንቀሳቀሳል። <if (millis () - on_timer <1500) {stepper13.setStep (SPEED); } ሌላ ከሆነ (ሚሊስ () - on_timer <3000) {stepper13.setStep (-SPEED); // (- - SPEED) ማለት የተገላቢጦሽ ሽክርክሪት} ሌላ ከሆነ (ሚሊስ () - on_timer <4500) {stepper13.setStep (SPEED) ፤ } ሌላ ከሆነ (ሚሊስ () - on_timer 1000) {Serial1.write (0x01); ቆጠራ = 1; }} ////////////////////////// ከሆነ (ሚሊስ () - set_timer2 1000) {if (millis () - on_timer <2500) {stepper7.setStep (ፍጥነት); stepper8.setStep (SPEED); stepper9.setStep (SPEED); stepper12.setStep (SPEED); } ሌላ ከሆነ (ሚሊስ () - on_timer <4000) {stepper7.setStep (-SPEED); stepper8.setStep (-SPEED); stepper9.setStep (-SPEED); stepper12.setStep (-SPEED); } ሌላ ከሆነ (ሚሊስ () - on_timer <5500) {stepper7.setStep (SPEED); stepper8.setStep (SPEED); stepper9.setStep (SPEED); stepper12.setStep (SPEED); } ሌላ ከሆነ (ሚሊስ () - on_timer <7000) {stepper7.setStep (-SPEED); stepper8.setStep (-SPEED); stepper9.setStep (-SPEED); stepper12.setStep (-SPEED); } ሌላ {stepper7.setStep (0); stepper8.setStep (0); stepper9.setStep (0); stepper12.setStep (0); }} ሌላ {stepper7.setStep (0); stepper8.setStep (0); stepper9.setStep (0); stepper12.setStep (0); } ከሆነ (ሚሊስ () - set_timer2 1000) {if (millis () - on_timer <2500) {stepper2.setStep (SPEED); stepper5.setStep (-SPEED); stepper6.setStep (SPEED); stepper7.setStep (SPEED); } ሌላ ከሆነ (ሚሊስ () - on_timer <4000) {stepper2.setStep (-SPEED); stepper5.setStep (SPEED); stepper6.setStep (-SPEED); stepper7.setStep (-SPEED); } ሌላ ከሆነ (ሚሊስ () - on_timer <5500) {stepper2.setStep (SPEED); stepper5.setStep (-SPEED); stepper6.setStep (SPEED); stepper7.setStep (SPEED); } ሌላ ከሆነ (ሚሊስ () - on_timer <7000) {stepper2.setStep (-SPEED); stepper5.setStep (SPEED); stepper6.setStep (-SPEED); stepper7.setStep (-SPEED); } ሌላ {stepper2.setStep (0); stepper5.setStep (0); stepper6.setStep (0); stepper7.setStep (0); }} ሌላ {stepper2.setStep (0); stepper5.setStep (0); stepper6.setStep (0); stepper7.setStep (0); } ///////////////////////////////// millis () - set_timer3 2000) {if (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); } ሌላ ከሆነ (ሚሊስ () - 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); } ሌላ ከሆነ (ሚሊስ () - 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); } ሌላ ከሆነ (ሚሊስ () - 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); } ሌላ {stepper.setStep (0); stepper2.setStep (0); stepper3.setStep (0); stepper4.setStep (0); stepper5.setStep (0); stepper6.setStep (0); stepper10.setStep (0); stepper11.setStep (0); }} ሌላ {stepper.setStep (0); stepper2.setStep (0); stepper3.setStep (0); stepper4.setStep (0); stepper5.setStep (0); stepper6.setStep (0); stepper10.setStep (0); stepper11.setStep (0); } ከሆነ (ሚሊስ () - set_timer3 2000) {if (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); } ሌላ ከሆነ (ሚሊስ () - 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); } ሌላ ከሆነ (ሚሊስ () - 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); } ሌላ ከሆነ (ሚሊስ () - 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); } ሌላ {stepper3.setStep (0); stepper4.setStep (0); stepper8.setStep (0); stepper9.setStep (0); stepper10.setStep (0); stepper11.setStep (0); stepper12.setStep (0); stepper13.setStep (0); }} ሌላ {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 ኮድ

እና..

#ያካትቱ

ባለብዙ እርከን (200 ፣ 2 ፣ 3 ፣ 4 ፣ 5)። ብዙ stepper2 (200, 6, 7, 8, 9); ብዙ stepper3 (200, 10, 11, 12, 13); ብዙ stepper4 (200, A0, A1, A2, A3); ብዙ stepper5 (200, A4, A5, A6, A7); ብዙ stepper6 (200, 22, 23, 24, 25); ብዙ stepper7 (200, 26, 27, 28, 29); ብዙ stepper8 (200, 30, 31, 32, 33) ብዙ stepper9 (200, 34, 35, 36, 37); ብዙ stepper10 (200, 38, 39, 40, 41) ብዙ stepper11 (200, 42, 43, 44, 45); ብዙ stepper12 (200 ፣ 46 ፣ 47 ፣ 48 ፣ 49) ብዙ 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 ብዛት = 0; int init_set_speed = 10; ባዶነት ማዋቀር () 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; ባዶነት loop () {

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

ከሆነ (ሚሊስ () - set_timer1 <6000) {if (millis () - on_timer <1500) {stepper13.setStep (SPEED); } ሌላ ከሆነ (ሚሊስ () - on_timer <3000) {stepper13.setStep (-SPEED); } ሌላ ከሆነ (ሚሊስ () - on_timer <4500) {stepper13.setStep (SPEED); } ሌላ ከሆነ (ሚሊስ () - on_timer 1000) {Serial1.write (0x01); ቆጠራ = 1; }} ////////////////////////// ከሆነ (ሚሊስ () - set_timer2 1000) {ከሆነ (ሚሊስ () - on_timer <2500) {stepper7.setSte ㄴ p (ፍጥነት); stepper8.setStep (SPEED); stepper9.setStep (SPEED); stepper12.setStep (SPEED); } ሌላ ከሆነ (ሚሊስ () - on_timer <4000) {stepper7.setStep (-SPEED); stepper8.setStep (-SPEED); stepper9.setStep (-SPEED); stepper12.setStep (-SPEED); } ሌላ ከሆነ (ሚሊስ () - on_timer <5500) {stepper7.setStep (SPEED); stepper8.setStep (SPEED); stepper9.setStep (SPEED); stepper12.setStep (SPEED); } ሌላ ከሆነ (ሚሊስ () - on_timer <7000) {stepper7.setStep (-SPEED); stepper8.setStep (-SPEED); stepper9.setStep (-SPEED); stepper12.setStep (-SPEED); } ሌላ {stepper7.setStep (0); stepper8.setStep (0); stepper9.setStep (0); stepper12.setStep (0); }} ሌላ {stepper7.setStep (0); stepper8.setStep (0); stepper9.setStep (0); stepper12.setStep (0); } ከሆነ (ሚሊስ () - set_timer2 1000) {if (millis () - on_timer <2500) {stepper2.setStep (SPEED); stepper5.setStep (-SPEED); stepper6.setStep (SPEED); stepper7.setStep (SPEED); } ሌላ ከሆነ (ሚሊስ () - on_timer <4000) {stepper2.setStep (-SPEED); stepper5.setStep (SPEED); stepper6.setStep (-SPEED); stepper7.setStep (-SPEED); } ሌላ ከሆነ (ሚሊስ () - on_timer <5500) {stepper2.setStep (SPEED); stepper5.setStep (-SPEED); stepper6.setStep (SPEED); stepper7.setStep (SPEED); } ሌላ ከሆነ (ሚሊስ () - on_timer <7000) {stepper2.setStep (-SPEED); stepper5.setStep (SPEED); stepper6.setStep (-SPEED); stepper7.setStep (-SPEED); } ሌላ {stepper2.setStep (0); stepper5.setStep (0); stepper6.setStep (0); stepper7.setStep (0); }} ሌላ {stepper2.setStep (0); stepper5.setStep (0); stepper6.setStep (0); stepper7.setStep (0); } ///////////////////////////////// millis () - set_timer3 2000) {if (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); } ሌላ ከሆነ (ሚሊስ () - 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); } ሌላ ከሆነ (ሚሊስ () - 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); } ሌላ ከሆነ (ሚሊስ () - 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); } ሌላ {stepper.setStep (0); stepper2.setStep (0); stepper3.setStep (0); stepper4.setStep (0); stepper5.setStep (0); stepper6.setStep (0); stepper10.setStep (0); stepper11.setStep (0); }} ሌላ {stepper.setStep (0); stepper2.setStep (0); stepper3.setStep (0); stepper4.setStep (0); stepper5.setStep (0); stepper6.setStep (0); stepper10.setStep (0); stepper11.setStep (0); } ከሆነ (ሚሊስ () - set_timer3 2000) {if (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); } ሌላ ከሆነ (ሚሊስ () - 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); } ሌላ ከሆነ (ሚሊስ () - 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); } ሌላ ከሆነ (ሚሊስ () - 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); } ሌላ {stepper3.setStep (0); stepper4.setStep (0); stepper8.setStep (0); stepper9.setStep (0); stepper10.setStep (0); stepper11.setStep (0); stepper12.setStep (0); stepper13.setStep (0); }} ሌላ {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 (); }

ሁለተኛ ኮድ መስጠት

ደረጃ 6: ከኮድ በፊት…

ከኮድ በፊት…
ከኮድ በፊት…

ከደረጃ ሞተሮች ጋር የሚዛመድ አዲስ ቤተመጽሐፍት ማከል አለብዎት።

ስለዚህ ወደዚህ ጣቢያ ገብተው አዲስ ቤተ -መጽሐፍት ያውርዱ።

blog.danggun.net/2092

ደረጃ 7 - ተከታታይ ግንኙነት

ሁለት አርዱዲኖ ሜጋ-ቴሌኮሙኒኬሽን ማድረግ አለብዎት።

ከሆነ (start_count == 0) {

int Data = Serial1.read (); Serial.println (ውሂብ); ከሆነ (ውሂብ == 0x01) {start_count = 1; }

በመጀመሪያ ፣ በሜይን አርዱዲኖ ሜጋ ላይ ይህንን ኮድ እንፈልጋለን።

ከሆነ (ቆጠራ == 0) {ከሆነ (ሚሊስ () - set_timer1> 1000) {Serial1.write (0x01); ቆጠራ = 1; }

ተከታታይ ግንኙነቶችን የሚቀበለው አርዱዲኖ ሜጋ ይህንን ኮድ ይፈልጋል።

የመጀመሪያው ኮድ የሚቀመጠው ሁለተኛው ዓዲኖ መንቀሳቀስ ያለበት ቦታ ነው።

የሚመከር: