Cov txheej txheem:

Drawbot !: 6 Kauj Ruam (nrog Duab)
Drawbot !: 6 Kauj Ruam (nrog Duab)

Video: Drawbot !: 6 Kauj Ruam (nrog Duab)

Video: Drawbot !: 6 Kauj Ruam (nrog Duab)
Video: thaij movie nrog phaj ej tawb 5/6/2022 2024, Kaum ib hlis
Anonim
Drawbot!
Drawbot!

Cov lus qhia no yuav teev cov kev tsim kho ntawm Raspberry Pi tswj cov duab neeg hlau uas tso cai rau koj tig ib qho tiaj tiaj mus rau hauv daim ntaub. Thaum koj tau tsim cov duab neeg hlau koj yuav muaj peev xwm ntsuas thiab xa cov duab rau nws ntawm WiFi.

*Qhov no tau tsim hauv Dub & Veatch MakerSpace los ntawm cov phiaj xwm tsim los ntawm MakerSpace tus neeg saib xyuas thiab muaj tswv yim xav tsis thoob Andy Wise. Saib Drawbot txoj haujlwm ntawm Github los ntawm Andy kom paub ntau ntxiv.

Kauj ruam 1: Yam Koj Yuav Tsum Tau

Yam Koj Yuav Tsum Tau
Yam Koj Yuav Tsum Tau
Yam Koj Yuav Tsum Tau
Yam Koj Yuav Tsum Tau

3D-Luam tau qhov chaw:

Polargraph gondola - https://www.thingiverse.com/thing:372244Servo horn txuas ntxiv - https://www.thingiverse.com/thing:2427037Drawbot lub cev muaj zog mount thiab spool (x2) - https://www.thingiverse.com/ yam: 2427037Drawbot cov ntaub ntawv siv hluav taws xob (xaiv tau) - https://www.thingiverse.com/thing:2427037Drawbot Pi + Stepper mount (yeem) - https://www.thingiverse.com/thing:3122682Suction Cup Dome nrog qhov (lwm txoj) -

Kho vajtse:

NEMA 17 Stepper Motors (x2) Lub khob nqus nrog Tso Tawm sai-Chaw Thauj Khoom Khoom #62715 (x2) Spiderwire 80-phaus nuv ntses kabMicro USB cable 10-ft. (x2) Micro USB breakout (x2) USB hom A poj niam breakout (x2) Raspberry Pi Zero W (lossis lwm WiFi qhib Pi) Micro SD cardEasyDriver Stepper Tsav Tsheb V4.5 (x2) SG92R Micro Servo6003zz bearings (x2) 3-pin servo txuas ntxiv (ob peb) 2.1mm x 5.5mm chim jack 12v 1a lub zog hloov pauv 2.1mm/5.5mm coj USB Micro Power Adapter rau PiPololu Universal Mounting Hub rau 5mm ncej, #4-40 qhov (x2) #8-32 x 1- 5/8 in. Eye Bolts (x2) 8 screws for spools (#4-40 x ~ ½ ) 8 screws for motors (M3-.50 x 6mm metric machine screws) 1-2 me screws rau gondola kom ruaj ntseg cwj mem/ markerStandard wire or jumper WiremarkersMeasuring daim kab xev/lo

Cov cuab yeej

ComputerSoldering IronWire Strippers/Cutters

Yeem:

PaperMounting PuttyUSB FanHot GluePaperclipHeader PinsBreadboard/Perfboard

Drawbot githubwill yuav muaj qee qhov txuas rau cov muag khoom/khoom tshwj xeeb.

Kauj Ruam 2: Stepper Motor thiab Suction Cup Assembly

Stepper Motor thiab Suction Cup Assembly
Stepper Motor thiab Suction Cup Assembly
Stepper Motor thiab Suction Cup Assembly
Stepper Motor thiab Suction Cup Assembly
Stepper Motor thiab Suction Cup Assembly
Stepper Motor thiab Suction Cup Assembly
Stepper Motor thiab Suction Cup Assembly
Stepper Motor thiab Suction Cup Assembly

Qhov xav tau cov kauj ruam no:

3D luam tawm: 2 lub cev muaj zog mount2 spools2 suction khob domes nrog 1/8 qhov drilled -or- Suction Cup Dome nrog Qhov

Lus Cim: Luam tawm hauv PLA

Kho vajtse: 2 Stepper Motors2 Suction Cups2 Universal mounting hubs2 Eye Bolts (#8-32 x 1-5/8 in.) 8 Screws for spools (#4-40 x ~ ½ ) 8 Screws for motors (M3-.50 x 6mm metric tshuab ntsia hlau) Kab nuv ntses

Cov Lus Cim: Lub khob nqus xav tau cov hlau ntev ntev kom mus txog lub cav nce.

  1. Ua ntej tshaj, txuas lub aluminium universal mounting hub rau stepper lub cev muaj zog. Siv cov txheej txheem screws suav nrog lub hauv paus txuas thiab txuas lub hub ze rau qhov kawg ntawm tus ncej stepper.
  2. Tom ntej no, txuas 3D luam tawm twist lub cav txuas rau lub tshuab hluav taws xob siv plaub M3 ntsia hlau. Kev sib tw lub cev muaj zog yuav muaj qhov nkag los txhawm rau taw qhia sab twg txhawm rau txhawm rau lub cav.
  3. Tam sim no txuas 3D luam ntawv spool mus rau lub hub txuas nrog 4-40 ntsia hlau.
  4. Txog rau lub khob nqus nce koj yuav tsum tau muab tshem tawm koj lub nkoj thauj khoom thauj khoom. Khaws cov roj hmab nqus khob, lub caij nplooj ntoo hlav thiab cov hlau. Laum ib qhov in "hauv lub qhov nqus tsev thiab xov hauv koj lub qhov muag ntsia liaj qhov rooj lossis siv Suction Cup Dome nrog Qhov. Muab lub 3D luam ntawv dome hla lub khob nqus roj hmab. Txuas lub cav txuas los ntawm kev thawb nws rau ntawm lub qhov nqus kom koj tuaj yeem ntswj ntsia hlau los ntawm tus ncej hlau.
  5. Tam sim no ua tib yam rau lwm lub tshuab tsav.
  6. Spool nuv ntses kab ntawm cov spools.

Cov Lus Cim: Cov thawv ntim khoom thauj khoom hauv nkoj yog qhov yuav tsum muaj, lawv muaj cov ncej hlau siab dua li lwm lub khob nqus. Cov khoom naj npawb yog 62715.

Kauj Ruam 3: Tus Cwj Pwm Holder Gondola Assembly:

Cwj mem tuav Gondola los ua ke
Cwj mem tuav Gondola los ua ke
Cwj mem tuav Gondola los ua ke
Cwj mem tuav Gondola los ua ke

Qhov xav tau cov kauj ruam no:

3D luam tawm: Polargraph Gondola2 Bearing txuas caj npab 2 Bearing txuas rings1 Gondola retainer1 Servo txuas ntxiv

Kho vajtse: 1 SG92R Servo motor2 6003zz bearings1 Twist khi

  1. Kua nplaum 3D luam tawm servo txuas caj npab rau ib qho ntawm servo caj npab muab nrog rau servo. -Thaum kawg peb poob tawm yog li peb siv daim ntawv kaw uas peb ntais ib nrab thiab kaw nws mus rau sab caj npab.
  2. Siv txoj hlua khi yooj yim kom ruaj ntseg servo mus rau lub nkoj gondola.
  3. Tom ntej ntsaws cov kab sib txuas sib txuas rau cov kabmob txuas caj npab. Thawb cov kabmob los ntawm cov kabmob sib dhos sib dhos, peb 3D cov ntawv luam tawm xav tau kev tu me ntsis nrog rab riam kom tso cov kabmob thawb mus rau hauv cov kabmob txuas.
  4. Xaub cov kabmob uas tam sim no muaj cov kabmob sib txuas thiab caj npab ntawm lub gondola. Lub taub hau ntawm 3D luam ntawv gondola yuav tsum tau muab xuab zeb ua haujlwm zoo kom tso cov kabmob kom swb.
  5. Kawg yog tus tuav lub gondola uas yuav khaws txhua yam ua ke, siv cov ntsia hlau ruaj ntseg nws mus rau lub nkoj gondola - cov no kuj yuav ua rau koj tus cwj mem ruaj ntseg thaum kos duab.

Kauj ruam 4: Software

Software
Software

Yog tias koj tsis tau npaj ib qho Raspberry Pi pib los ntawm kev tshuaj xyuas peb phau ntawv qhia. Rau theem no kuv pom zoo hais txog Drawbot Github.

Ntawm Pi koj yuav hloov kho thiab txhim kho pob khoom thiab teeb tsa lwm tus:

Hloov tshiab thiab hloov kho tshiab:

sudo apt-tau hloov tshiab

sudo apt-tau hloov tshiab

Nruab NPM thiab Git:

sudo apt-tau nruab npm

sudo apt-tau nruab git

Nruab Node.js:

sudo npm nruab -g n

sudo n ruaj khov

Txhim kho NPM -thiab tshem tawm qub apt -tau version:

sudo npm nruab npm@latest -g

sudo apt-tau tshem tawm npm sudo reboot

Nruab pigpio C lub tsev qiv ntawv:

sudo apt-tau nruab pigpio *yog tias koj siv Raspbian Lite *

npm nruab pigpio

Nruab Drawbot software:

git clone https://github.com/andywise/drawbot.gitcd drawbot npm kuv

Txhawm rau pib Drawbot software:

cd/drawbot

npm pib -or- sudo node kos.js

Nkag mus rau Drawbot tswj interface

Los ntawm lwm lub khoos phis tawj ntawm tib lub network:

  • Los ntawm Mac: Mus rau raspberrypi.local/tswj kom nkag mus rau Drawbot tswj interface.
  • Los ntawm lub PC: nkag mus rau tus IP chaw nyob (ifconfig yog lub davhlau ya nyob twg hais kom ua) thiab nkag mus rau koj tus IP chaw nyob/tswj ex: 10.167.5.58/control

Los ntawm Raspberry Pi:

Qhib qhov browser. Mus rau 127.0.0.1/control kom nkag mus rau Drawbot tswj interface

Kauj ruam 5: Kev sib txuas. Hlau Txhua qhov txhia chaw

Kev sib txuas. Hlau Txhua qhov txhia chaw
Kev sib txuas. Hlau Txhua qhov txhia chaw
Kev sib txuas. Hlau Txhua qhov txhia chaw
Kev sib txuas. Hlau Txhua qhov txhia chaw
Kev sib txuas. Hlau Txhua qhov txhia chaw
Kev sib txuas. Hlau Txhua qhov txhia chaw

Qhov xav tau cov kauj ruam no:

Kho vajtse: USB Ib tug poj niam tawm - 2EasyDriver Stepper Motor Drivers - 2Pi Zero lossis lwm WiFi qhib PiStepper Motors - 2Micro USB breakout - 2Barrel Jack 2.1mm x 5.5mmOther parts you might need: Breadboard for testing connectionsHeader Pins3D Printed Stepper + Pi mountPerf or Proto board

Txuas lub EasyDriver tsav tsheb tsav mus rau Pi:

Tsav tsheb sab laug:

  • GND -Pi GPIO 39
  • DIR -Pi GPIO 38 (BCM 20)
  • STE -Pi GPIO 40 (BCM 21)

Txoj cai tsav tsheb:

  • GND -Pi GPIO 34
  • DIR -Pi GPIO 31 (BCM 6)
  • STE -Pi GPIO 33 (BCM 13)

Txuas lub Gondola Servo rau Pi:

  • GND -Pi GPIO 14
  • VCC → Pi GPIO 1 (3V3 Hwj chim)
  • CNT -Pi GPIO 12 (BCM 18)

Cov Lus Cim: Rau kev sim kom ntseeg tau tias kev sib txuas raug lawm nws tau pom zoo kom ua khob cij ua ntej ua ntej muab txhua yam tso ua ke.

  1. Yog tias koj Pi thiab/lossis EasyDriver tsis suav nrog header pins solder lawv tam sim no.
  2. Txuas tus poj niam USB tawg rau txhua tus EasyDriver siv ntu lub cev ntawm lub rooj tsavxwm. Rau cov kauj ruam no vam tias, koj muaj cov ntaub ntawv lossis siv rau koj Stepper Motros. Nco ntsoov khaws cov hlua/coils ua ke. Tus stepper ntawm no muaj khub Dub & Ntsuab thiab Liab & Xiav. Ntawm no peb khaws "Winding A" rau hauv av thiab D+ ntawm USB breakout thiab "Winding B" rau VCC thiab D- ntawm USB breakout.
  3. Siv cov xov hlau txuas los txuas lub tshuab servo mus rau Pi GPIO. -cov ntaub ntawv saum toj no.
  4. Siv jumper xov hlau txuas rau EasyDriver cov laug cam rau Pi GPIO. -cov ntaub ntawv saum toj no
  5. Txuas lub stepper lub cev muaj zog cov xov hlau mus rau Micro USB kev tawm tsam dua kom ntseeg tau tias cov khub tau sib phim raug.
  6. Lub EasyDrivers xav tau lub zog. Txuas lub taub hau ntawm lub thoob rau lub "PWR IN" ntawm EasyDrivers thiab lub tes tsho ntawm lub tog raj txuas rau GND ntawm "PWR IN" ntawm EasyDrivers. Peb siv lub perfboard los faib peb lub zog thiab hauv av los ntawm lub thoob rau lub EasyDrivers.

Kauj Ruam 6: Xeem thiab Teeb Duab

Image
Image
Kuaj thiab Teeb Duab!
Kuaj thiab Teeb Duab!
Kuaj thiab Teeb Duab!
Kuaj thiab Teeb Duab!

Thaum koj tus Pi, EasyDrivers thiab USB breakouts tau txuas nrog ib qho ntawm lub khob cij lossis yog tias koj dhia ncaj los ntawm cov laug, nws yog lub sijhawm sim. yog lub cev muaj zog yooj yim los tswj, servo. Nyem rau tus cwj mem khawm nyob hauv nruab nrab ntawm cov maub los muag qhov muag thiab cia siab tias servo caj npab yuav tig 90 °. Siv qhov kev ntsuas no kom ntseeg tau tias lub caj npab servo tau taw qhia kom raug kom tshem tus cwj mem tawm ntawm qhov chaw. Qhov no tseem yuav qhia rau koj paub yog tias koj txuas nrog Pi thiab Drawbot maub los software. Ntau yog stepper motor. Nws yooj yim dua pib nrog ib tus zuj zus. Nrog stepper lub cev muaj zog txuas nrog nyem ua haujlwm ntawm Drawbot maub los bulls-eye. Tus stepper yuav tsum txav txav mus los. Yog hais tias tus stepper stutters ua kom ntseeg tau tias cov hlua raug thiab cov khub tau sib phim. Kuaj lwm tus stepper.

Nrog cov steppers disconnected nrhiav tau lub tiaj tus zoo, du nto thiab nce cov steppers kom ntseeg tau tias lawv yog qib sib. Ncua qee txoj kab nuv ntses los ntawm txhua tus spool thiab txuas nws mus rau caj npab ntawm lub gondola. Reconnect cov steppers. Siv Drawbot maub los txav lub gondola. Thaum nyem rau sab xis sab xis ntawm cov nyuj-qhov muag lub gondola yuav tsum txav mus rau sab xis sab saud, yog tias tsis kho cov ntawv teeb tsa. Yog hais tias lub gondola txav rov qab ntawm qhov nws yuav tsum tig rau tsom iav hauv cov ntawv teeb tsa ntawm Pi.

Ntsuas

Yuav luag muaj. Tom ntej no yog ntsuas. Peb tau pom daim kab xev ntsuas me me tuaj yeem siv tau, txhua qhov kev ntsuas yuav yog millimeters.

Nyem rau lub cim teeb tsa hauv Drawbot maub los thiab yuav muaj peb qhov txiaj ntsig uas xav tau, "D", "X" thiab "Y". Saib daim duab rau kev piv txwv ntawm yuav ntsuas li cas. Thawj tus nqi, "D" yog qhov nrug ntawm spools. Cov txiaj ntsig tom ntej yog qhov tseem ceeb ntawm qhov chaw nyob hauv tsev ntawm gondola. Tus "X" tus nqi yog ntsuas los ntawm tus laug laug mus rau txoj haujlwm ntawm tus cwj mem hauv lub nkoj. Tus "Y" tus nqi yog qhov kev ncua deb ntawm tus spool nqes mus rau lub gondola. Nkag mus rau qhov teeb tsa ntawm Drawbot software. Kev teeb tsa lub tsev nyob rau kaum kaum sab saud yog pom zoo.

Teeb duab

Thaum kawg kos duab !!

Thaum txhua yam raug ntsuas kom raug raws li muaj peev xwm ua tau thiab tus cwj mem hauv lub gondola raug tshem tawm ntawm qhov chaw thiab nyob nws yog lub sijhawm los pub Drawbot SVG los kos. Cias rub ib txoj hauv kev SVG mus rau qhov muag-qhov muag ntawm Drawbot software kom pib teeb duab, Kuv tau suav nrog kev teeb duab kos rau koj tus neeg hlau kos duab txaus siab. Txaus siab rau!

Pom zoo: