Cov txheej txheem:
- Kauj Ruam 1: Tau Txais Octoprint API Key
- Kauj Ruam 2: Teeb Koj Lub Raspberry kom Ua Haujlwm Python Script
- Kauj Ruam 3: Luam Ntawv Case rau LCD Screen
- Kauj Ruam 4: Txuas Txhua Yam rau Arduino
- Kauj Ruam 5: Tshaj Tawm Sketch rau Arduino
- Kauj Ruam 6: Txheeb Xyuas Txhua Qhov Zoo
- Kauj Ruam 7: Teeb tsa Tsab Ntawv rau Pib Pib Pib
- Kauj ruam 8: Ua tiav
Video: Octoprint Printing Monitor: 8 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Nyob zoo!
Kuv xav tias txoj haujlwm no yuav muaj txiaj ntsig zoo rau tib neeg, uas siv Octoprint.
Nws yog lub vijtsam nrog lub teeb pom kev zoo uas pom koj qee cov ntaub ntawv hais txog kev luam ntawv tau zoo. Nws ua haujlwm nrog Octoprint API kom tau txais txhua cov ntaub ntawv hais txog txheej txheem tam sim no. Python tsab ntawv txuas rau Arduino Leonardo (koj tuaj yeem siv ib qho nrog usb chaw nres nkoj. Kuv siv Leo, vim kuv tau muaj nws ua ntej) thiab muab nws cov ntaub ntawv. Tsis tas li koj tuaj yeem tswj hwm koj lub tshuab luam ntawv los ntawm cov cuab yeej no.
Koj xav tau:
- Raspberry pi (Kuv siv raspberry pi 3 B+)
- Arduino Leonardo (Ntawm cov duab koj tuaj yeem pom Iskra Neo, Nws yog qhov sib piv ntawm thawj Leonardo)
- Micro usb kab
- 20x4 LCD npo (Kuv siv yam tsis muaj I2C maub los, tab sis nws tsis nyuaj los kho qhov chaws los siv I2C ib qho)
- Plaub khawm (Kuv siv tus qauv)
- Mini khob cij
- Qee cov xov hlau
- RGB LED sawb (Ntev npaum li cas? Nws nyob ntawm koj)
- Fais fab mov, Kuv siv 12v 3a. Nws yog qhov zoo los muab LED sawb thiab Arduino
- 3D tshuab luam ntawv los tswj thiab koj kuj yuav tsum luam tawm rooj plaub rau lub vijtsam
- Qee qhov txuas: lub tog raj kheej (txiv neej thiab poj niam)
- Ob daim kab xev thiab daim kab xev insulating
- Buzzer
- DHT21 ntsuas kub thiab av noo
Yeem yeem. Koj tuaj yeem yooj yim txuas txhua yam yam tsis muaj kev sib txuas
- Soldering hlau
- Solder
Rau qee qhov nws yog qhov haujlwm nyuaj. Kuv tau siv 2 hnub tag los ua kom tiav.
Kauj Ruam 1: Tau Txais Octoprint API Key
Koj yuav tsum muaj tus lej API.
Txuag nws.
Kauj Ruam 2: Teeb Koj Lub Raspberry kom Ua Haujlwm Python Script
Thaum xub thawj koj yuav tsum txuas rau koj li raspberry los ntawm ssh.
Tom qab ntawv nkag mus thiab ntaus cov lus txib no
sudo apt-tau nruab python3-pip
Tom qab ntawd koj yuav tsum teeb tsa qee cov pob sej
sudo pip3 nruab pyserial
Tom qab txhua qhov kev teeb tsa rub cov ntawv nab npawb los ntawm Github nplooj ntawv
Github chaw cia khoom
Ntaus hauv ssh davhlau ya nyob twg sudo nano port.py, tom qab ntawv theej tag nrho los ntawm octoprint-monitor.py thiab muab tshuaj txhuam rau hauv davhlau ya nyob twg. Hauv qhov sib txawv API koj yuav tsum tau muab tshuaj txhuam koj tus lej Octoprint API. Koj tuaj yeem muab tshuaj txhuam los ntawm txhaj rau sab xis ntawm koj tus nas. Tom qab ntawd nias Ctrl + X, ntaus ntawv "y" thiab nias Enter.
Tom qab ntawd ua logMaster.py cov ntaub ntawv los ntawm sudo nano logMaster.py, tom qab ntawv theej tag nrho los ntawm octoprint-monitor.py thiab muab tshuaj txhuam rau hauv lub davhlau ya nyob twg. Koj tuaj yeem muab tshuaj txhuam los ntawm txhaj rau sab xis ntawm koj tus nas. Tom qab ntawd pres Ctrl + X, ntaus ntawv "y" thiab nias Enter.
Tom qab ntawv ua kom sudo python3 port.py
Yog tias koj muaj qhov yuam kev, txheeb xyuas cov kauj ruam dhau los.
Yog koj pom"
Txuas …
Txuas.
hauv koj lub davhlau ya nyob twg txhua yam zoo. Nias Ctrl+C.
Kauj Ruam 3: Luam Ntawv Case rau LCD Screen
Kuv muaj LCD 20x4 npo.
Koj yuav tsum luam ib daim ntawv los ntawm qhov txuas no
Kuv rooj plaub ntawm Thingiverse.
Kauj Ruam 4: Txuas Txhua Yam rau Arduino
Ntawm daim duab no koj tuaj yeem pom daim duab thaiv kab. Txuas lcd zaub rau arduino.
- Tom qab ntawd txuas lub buzzer rau tus lej 9
- Khawm 1 txog 7 tus pin
- Khawm 2 - 8
- Khawm 3 - 10
- Khawm 4 - 13
- Kub sensor - tus pin 0
- LED sawb - tus pin 6
Tom qab ntawd kho nws tag nrho ntawm lub tshuab luam ntawv sab, lo kua lcd thiab cov nyees khawm rau hauv rooj plaub luam tawm. Kho qhov rooj nrog daim kab xev ob tog.
Txuas arduino rau raspberry pi nrog usb cable.
Txuas lub zog xa mus rau arduino thiab LED sawb raws li ntawm daim duab.
Kauj Ruam 5: Tshaj Tawm Sketch rau Arduino
Koj yuav tsum rub tawm cov ntawv octoprint-monitor.ino los ntawm github thiab xa nws mus rau arduino.
Koj yuav xav tau qee lub tsev qiv ntawv.
- Adafruit NeoPixel
- Ua kua Crystal (Nws twb tau teeb tsa rau Arduino IDE)
- Troyka DHT lub tsev qiv ntawv
Tom qab ntawd txuas arduino rau raspberry pi.
Kauj Ruam 6: Txheeb Xyuas Txhua Qhov Zoo
Hloov tshiab: Nws pib nrhiav chaw nres nkoj ntxiv! Tam sim no koj tsis tas yuav nrhiav qhov chaw nres nkoj arduino.
Tua tawm sej code. Yog tias koj pom cov ntawv "Txuas txuas", txhua yam zoo.
Kauj Ruam 7: Teeb tsa Tsab Ntawv rau Pib Pib Pib
Yuav ua li cas ntxiv tsab ntawv rau autoload ntawm raspberry pi?
Nws yooj yim. Koj yuav tsum tau ntaus
sudo crontab -e
Thiab ntxiv qhov kawg ntawm cov ntawv tsuas yog ib kab.
@reboot/usr/bin/python3 /home/pi/port.py
Yog tag nrho. Tam sim no reboot koj raspberry thiab txheeb xyuas txhua qhov.
Kauj ruam 8: Ua tiav
Tam sim no cov kauj ruam kawg.
Txheeb xyuas txhua yam thiab yog tias qee yam tsis zoo, sau ib qho lus nrog koj qhov teeb meem.
Ua tsaug rau koj saib!
Pom zoo:
Kev Tswj Xyuas Khoom Noj Hauv miv (ESP8266 + Servo Motor + 3D Printing): 5 Kauj Ruam (nrog Duab)
Kev Tswj Xyuas Khoom Noj Hauv miv (ESP8266 + Servo Tsav + 3D Luam Ntawv): Txoj haujlwm no mus dhau cov txheej txheem Kuv tau siv los tsim lub tais zaub mov miv tsis siv neeg, rau kuv cov laus muaj ntshav qab zib miv Chaz. Saib, nws xav tau noj tshais ua ntej nws tuaj yeem tau txais nws cov insulin, tab sis kuv feem ntau tsis nco qab khaws nws cov zaub mov ua ntej kuv mus pw, uas ua rau
16 Channel Servo Tester Nrog Arduino thiab 3D Printing: 3 Cov Kauj Ruam (nrog Duab)
16 Channel Servo Tester Nrog Arduino thiab 3D Luam Ntawv: Zoo nkauj npaum li txhua txoj haujlwm kuv tau ua tsis ntev los no tau xav kom kuv sim tawm qee qhov kev pabcuam thiab sim nrog lawv txoj haujlwm ua ntej lawv mus rau hauv lub rooj sib txoos. Kuv ib txwm ua qhov ntsuas ntsuas servo nrawm ntawm lub khob cij thiab siv lub ntsuas saib nyob hauv ardui
3D Printing Wall-E: 6 Kauj Ruam
3D Luam Ntawv Phab Ntsa-E: Hauv qhov kev qhia no, kuv yuav qhia koj yuav ua li cas thiaj yooj yim Wall-e Robot los ntawm kev siv Arduino board, L293N nti, thiab 3D tshuab luam ntawv
Hais Lus Eggs - 3D Printing Tsim: 6 Cov Kauj Ruam
Hais Lus Eggs - 3D Luam Ntawv Tsim: Tus tsim DIY hais lus tau yog ib yam uas kuv xav ua rau lub sijhawm ntev heev thiab thaum kawg kuv tau hla qhov ntawd tawm ntawm kuv daim ntawv teev npe ua. Qhov kev tsim no yog qhov nyuaj heev, kev tsim qauv ua haujlwm tau dav dav thiab xav tau ntau qhov kev hloov kho me me tom qab ua tiav
Origami Lantern: 3D Printing on Paper: 4 Kauj Ruam (nrog Duab)
Origami Lantern: 3D Printing on Paper: Txoj haujlwm no pib ua ib lub tswv yim uas kuv muaj los ntawm cov yeeb yaj kiab kuv tau saib lub caij ntuj sov dhau los; Nruab nrab ntawm Cov Quav. Nws yog hais txog origami, thiab mus rau qhov kawg tus xibfwb los ntawm MIT, Erik Demaine tau hais tias koj muab lub cim xeeb rau ntawv thaum koj quav nws. Qhov ntawd ua rau kuv xav, w