Cov txheej txheem:
- Kauj ruam 1: Txoj kev xav
- Kauj ruam 2: Database
- Kauj ruam 3: Teeb tsa Apache
- Kauj ruam 4: Teeb PHP
- Kauj Ruam 5: Tsim Lub Tshuab
- Kauj Ruam 6: Ua Lub Tshuab
- Kauj Ruam 7: Arduino Code
- Kauj Ruam 8: Txoj Haujlwm Python
- Kauj Ruam 9: Siv Tshooj Picker
Video: CNC Qhov Xaiv Tshuab: 9 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Yog tias koj yog tus tsim khoom loj ib yam li kuv yog, tom qab ntawd koj yuav muaj feem ntau suav nrog cov neeg tawm tsam, cov khoom siv hluav taws xob, thiab ntau yam khoom siv hluav taws xob nyob ib puag ncig. Tab sis muaj teeb meem loj: Yuav ua li cas ib tus neeg thiaj li taug qab seb muaj pes tsawg ntawm yam uas lawv muaj? Txog qhov teeb meem no kuv tsim lub tshuab CNC uas tau txais cov ntaub ntawv los ntawm MySQL database uas tom qab ntawd mus thiab khaws cov khoom uas tau thov. Ntxiv nrog rau cov ntaub ntawv rov qab-kawg, Kuv tau tsim lub vev xaib pem hauv ntej uas tso cai rau cov neeg siv nkag mus thiab tom qab ntawd tsim pawg ntawm ntu, ntxiv ntu tshiab, thiab hloov pauv qhov ntau. Txoj kev no txhua qhov khoom tuaj yeem suav nrog, ib yam li kev tswj hwm cov khoom lag luam.
Cheebtsam:
- Arduino UNO & Genuino UNO
- Tshuab Ntsia Hlau: 8mm, 3mm, 4mm
- MOSFET N-channel
- Rectifier Diode 1N4001
- Stepper Tsav NEMA 17 x2
- Tsav DRV8825 rau Stepper Motors x2
- Capacitor 100 µF x2
- DFRobot Servo Gripper
- DFRobot Sijhawm Siv x2
- DFRobot 5MM Sijhawm Pulley x2
- DFRobot Cov Kab Tawm Kab 6mmx12mm x2
- DFRobot Pob Bearing 8mmx12mm
Kauj ruam 1: Txoj kev xav
Lub hauv paus ntawm cov kab ke no yog txhawm rau taug qab cov khoom lag luam. Piv txwv li, yog tias ib tus neeg yuav 20 Arduino Uno cov laug cam lawv tuaj yeem yooj yim ntxiv cov nyiaj ntawd rau hauv cov lus database. Pawg yuav yog "Arduino", lub npe "Uno", thiab ntau npaum li 20. Rau ntau tus neeg, tus tswv ntawm qhov ntawd yuav yog lub npe siv ntawm tus neeg uas ntxiv nws. Ib feem tseem yuav suav nrog cov ntaub ntawv hais txog nws qhov chaw nyob ntawm kab sib chaws. Thaum twg ib feem ntawm qhov hloov pauv lub tshuab CNC yuav xaiv qhov ntawd thiab muab rau tus neeg siv.
Kauj ruam 2: Database
Kuv xav tau cov ntaub ntawv dav dav uas tuaj yeem nkag tau los ntawm Python thiab PHP. Nws kuj tseem yuav tsum yooj yim siv nrog kev txhawb nqa ntau, ua rau MySQL lub server zoo tshaj plaws database. Kuv pib los ntawm rub tawm mysql installer los ntawm https://dev.mysql.com/downloads/windows/installer/ thiab tom qab ntawd khiav nws. Kuv tau xaiv los teeb tsa server (tau kawg), thiab tseem ua haujlwm, lub plhaub, thiab cov khoom siv hluav taws xob. Thaum koj xaiv lub npe siv thiab tus lej nkag mus kom nco ntsoov nws, raws li cov ntawv pov thawj zoo ib yam xav tau hauv txhua qhov ntawm PHP cov ntaub ntawv thiab Python tsab ntawv. Tom qab pib lub server kom nws ua haujlwm raws li keeb kwm yav dhau los yog li nws ib txwm ua haujlwm. Txij ntawm no mus hauv txhua yam yuav tsum tau sau thiab nyob rau hauv qhov kev txiav txim zoo ib yam li kuv muaj. Tom ntej no, tsim cov ntaub ntawv tshiab (schema) hu ua "components". Tom qab ntawd ntxiv cov lus hauv qab no: "pawg", "ntu", thiab "cov neeg siv". Hauv pawg pawg ntxiv cov kab hauv qab no hauv qhov kev txiav txim kom raug: "id" -int (11), PK, AI; "npe" -varchar (45); "tswv" - varchar (45).
Hauv cov ntu ntu ntxiv cov kab hauv qab no hauv qhov kev txiav txim no: "id" -int (11), AI, PK; "qeb" -varchar (45); "npe" -varchar (45); "kom muaj nuj nqis" -int (11); "tswv" -varchar (45); "locationX" -int (11); "locationY" -int (11);
Hauv cov neeg siv cov lus ntxiv cov kab hauv qab no hauv qhov kev txiav txim no: "id" -int (11), AI, PK; "username" -varchar (45); "password" -varchar (128);
Kauj ruam 3: Teeb tsa Apache
Cov nplooj ntawv webpages Kuv tau tsim siv siv HTML, CSS, Javascript, thiab PHP. Pib los ntawm rub tawm qhov tseeb apache version los ntawm https://www.apachelounge.com/download/ thiab unzip nws, txav daim nplaub tshev rau C: / directory. Tom ntej no, rub PHP los ntawm https://windows.php.net/download#php-7.2 thiab xyuas kom tseeb tias nws yog Thread Safe version. Unzip nws, hloov nws mus rau "PHP", thiab txav nws mus rau C: / directory. Tom qab ntawd nkag mus rau C: / Apache24 / conf / httpd.conf thiab kho nws. Ntxiv cov kab hauv qab no hauv qab ntu:
LoadModule php7_module C: /PHP/php7apache2_4.dll
DirectoryIndex index.html index.php
Daim ntawv thov AddHandler/x-httpd-php.php
PHPIniDir "C:/PHP"
Tom qab ntawd sim koj lub server los ntawm kev khiav httpd.exe nyob hauv cov ntawv tais ceev tseg. Lub taub hau mus rau "localhost/" hauv koj tus browser thiab saib yog tias nplooj ntawv ntiaj teb nyob zoo tuaj. Yog tias nws ua sai sai, tam sim no koj muaj lub vev xaib hauv zos.
Kauj ruam 4: Teeb PHP
Txhawm rau teeb tsa MySQL rau PHP ntau yam yuav tsum tau ua. Ua ntej, hloov npe "php.ini-pom zoo" rau "php.ini" thiab tom qab ntawd qhib nws hauv notepad. Lub taub hau mus rau ntu txuas ntxiv thiab ntxiv lossis tsis pom zoo "txuas ntxiv = php_mysqli.dll" uas yuav cia PHP sib tham nrog MySQL server. Tam sim no rov pib dua httpd.exe thiab tsim cov ntawv tshiab hu ua "phptest.php" thiab muab tso rau hauv cov ntawv. Tam sim no mus rau localhost/phptest.php thiab pom tias koj li browser cov ntaub ntawv tuaj txog.
Kauj Ruam 5: Tsim Lub Tshuab
Kuv pib los ntawm kev tsim qee qhov yooj yim hauv Fusion 360: 6mm pas nrig, cov kab tawm, thiab lub cav tsav tsheb. Tom qab ntawd kuv tau hla ob txoj hlua hla los ua lub y axis, thiab tseem muab txoj siv sijhawm nyob ib puag ncig ntawm lub cav tsav thiab nqa. Kuv kuj ntxiv x axis, ib yam. Tom qab ntawd kuv pib 3D luam tawm ntau qhov chaw thiab tseem CNC hla ob sab vaj huam sib luag.
Kauj Ruam 6: Ua Lub Tshuab
Kuv tau mus dhau los ntawm ntau qhov rov ua dua ntawm txhua ntu, yog li yog ib qho sib txawv uas yog vim li cas. Kuv pib los ntawm kev txhuam txhua ntu thiab tom qab ntawd tshem tawm txhua lub qhov hauv 3D qhov chaw luam tawm. Tom qab ntawd kuv muab cov kab tawm mus rau hauv lub qhov thiab khiav 6mm pas nrig hla lawv. Kuv kuj tau teeb tsa lub tshuab hluav taws xob stepper rau hauv lawv qhov chaw tshwj xeeb tom qab txuas cov hlua rau lawv cov ncej. Lub sijhawm siv tau txuas ib ncig ntawm txhua ob sab rau ob qho tib si. Thaum kawg kuv pom tias tus tuav yuav nyuaj heev, yog li kuv tau xaiv lub tshuab hluav taws xob hloov. Kuv kuj tau txais qee qhov kev pab thaum tsim nws, zoo li miv.
Kauj Ruam 7: Arduino Code
Kuv lub hauv paus rau lub tshuab no yog GRBL. Qhov pib ntawm txoj cai teev ntau yam tsis xws li kev nrug deb ntawm kev sib hloov, offsets, thiab txuas ntxiv mus. Kuv siv lub tsev qiv ntawv BasicStepperDriver los tswj DRV8825 tus tsav tsheb tsav tsheb. Cov neeg tsav tsheb stepper tau teeb tsa siv 1/32 micro-stepping, nce kev daws teeb meem. Thaum twg los xij lub tshuab "khau looj plab hlaub" nws mus los ntawm cov homing sib xws qhov twg txhua txoj kab nqes mus txog thaum nws tsoo qhov txwv txwv. Tom qab ntawd nws txav raws qhov offset mus rau qhov chaw teeb tsa thiab teeb tsa qhov chaw mus rau 0, 0. Tam sim no thaum twg nws tau txais cov lus txib txav los ntawm cov lej nws txav mus rau qhov chaw ntawd.
Kauj Ruam 8: Txoj Haujlwm Python
Kuv xaiv siv Flask ua lub vev xaib uas yuav tau txais GET thov los ntawm lub vev xaib tseem ceeb. Cov lus thov suav nrog lub npe thiab qeb ntawm ib feem. Tom qab Flask tuav nws cov ntaub ntawv raug cais, tom qab ntawd MySQL server tau nug kom paub qhov chaw ntawm ib feem. Tom qab ntawv cov nab hab sej xa cov lus txib mus rau Arduino, qhia meej tias qhov twg yog qhov twg.
Kauj Ruam 9: Siv Tshooj Picker
Kuv tau muab cov vev xaib cov ntaub ntawv hauv kuv qhov chaw cia khoom github: https://github.com/having11/cnc_part_picker_webpages Hloov qhov tsis muaj nyob hauv PHP cov ntaub ntawv rau koj qhov MySQL server tshwj xeeb. Muab cov ntaub ntawv tso rau hauv htdocs nplaub tshev hauv Apache nplaub tshev. Cias khiav cov ntawv nab nab thiab tom qab ntawd thaum twg los xij qhov nyiaj tau hloov pauv lub tshuab yuav mus rau qhov chaw ntawd thiab tau txais nws. Nrhiav cov ntawv luam tawm 3D ntawm no thiab cov ntaub ntawv webpage ntawm no.
Pom zoo:
Arduino OLED Cov Ntawv Qhia zaub mov Nrog Kev Xaiv los Xaiv: 8 Cov Kauj Ruam
Arduino OLED Display Menu With Option to Select: Hauv qhov kev qhia no peb yuav kawm paub yuav ua cov zaub mov li cas nrog kev xaiv xaiv siv OLED Display thiab Visuino.Watch the video
Arduino RGB Xim Xaiv - Xaiv Xim Los Ntawm Lub Neej Lub Hom Phiaj: 7 Cov Kauj Ruam (nrog Duab)
Arduino RGB Xim Picker - Xaiv Xim Los Ntawm Lub Neej Lub Hom Phiaj: Yooj yim xaiv cov xim los ntawm cov khoom siv lub cev nrog rau Arduino raws li RGB xim xaiv, ua rau koj rov tsim cov xim uas koj pom hauv lub neej tiag tiag ntawm koj lub PC lossis xov tooj. Tsuas yog nias lub pob kom luam theej duab xim ntawm cov khoom siv pheej yig TCS347
YUAV UA LI CAS YUAV TSHUAB TSHUAB TSHUAB NROG NROG ARDUINO: 8 Kauj Ruam
YUAV UA LI CAS YUAV TSUM TSHUAB TSHUAB TSHUAB NROG ARDUINO: QHOV TSEEB Lub tshuab sau ntawv tau tsim los ntawm cov ntaub ntawv uas tuaj yeem tau yooj yim hauv tsev; nws ua rau siv rau lub cav hluav taws xob uas yog lub hauv paus tseem ceeb ntawm nws txoj haujlwm. Nws tuaj yeem siv hauv Kev kos duab Engineering thiab kos duab kos duab. Nws tuaj yeem yog
Arduino CNC Plotter (TSHUAB TSHUAB): 10 Kauj Ruam (nrog Duab)
Arduino CNC Plotter (TSHUAB TSHUAB): Hav guys! Kuv vam tias koj twb nyiam kuv cov lus qhia yav dhau los " Yuav ua li cas thiaj ua rau koj tus kheej Arduino kev qhia ua haujlwm platform " thiab koj tau npaj rau qhov tshiab, raws li ib txwm kuv tau ua cov lus qhia no los qhia koj ib qib zuj zus thaum ua qhov zoo li no zoo kawg nkaus
Txheeb Xyuas Roj Teeb Nrog Qhov Kub thiab Xaiv Roj Teeb: 23 Cov Kauj Ruam (nrog Duab)
Roj Teeb Txheeb Nrog Qhov Kub thiab Kev Xaiv Roj Teeb: Roj teeb lub peev xwm ntsuas.Nws siv lub cuab yeej no koj tuaj yeem tshawb xyuas lub zog ntawm 18650 roj teeb, kua qaub thiab lwm yam (lub roj teeb loj tshaj kuv tau sim Nws yog 6v Acid roj teeb 4,2A). Qhov txiaj ntsig ntawm qhov ntsuas yog hauv milliampere/teev Kuv tsim cov cuab yeej no vim xav tau Nws los chec