Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: Luam Lub Hli Teeb
- Kauj Ruam 2: Luam Lub Hli Teeb Sab saum toj thiab hauv paus
- Kauj Ruam 3: Luam Lub Hli Txhawb Nqa
- Kauj Ruam 4: Nyem ESP8266 Nrog MicroPython
- Kauj Ruam 5: Nruab WebRepl System
- Kauj Ruam 6: Txhim Kho Lub Rooj Tsav Xwm
- Kauj Ruam 7: Luam tawm Shim thiab Sib Sau Cov Baseplate
- Kauj Ruam 8: Txuas lub LED mus rau lub rhaub dej kub thiab tom qab ntawd xaim nws mus rau ntawm Circuit Board
- Kauj Ruam 9: Ua Tus Hluav Taws Xob
- Kauj ruam 10: Txheeb Xyuas Nws
- Kauj Ruam 11: Muab Cov Phaj Moonlamp Plate rau lub hli thiab muab tso ua ke
- Kauj Ruam 12: Lus Ceeb Toom Txog Kev Nyab Xeeb
- Kauj Ruam 13: Tus Python Code
Video: Moonlamp Hmo Hmo Ntuj: 13 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Lub teeb hmo ntuj zoo nkauj no siv lub hli zoo uas koj tuaj yeem pom ntawm no
www.instructables.com/id/Progressive-Detai…
Nws siv pawg ESP8266 tus nqi qis los tsim lub teeb pom kev zoo yav tsaus ntuj uas siv 3W RGB LED los ntawm Yav Tom Ntej Eden thiab tuaj yeem tso tawm ib ntawm xya xim ntxiv rau hom 'shimmer' zoo nkauj uas cov xim hloov pauv tas li.
Lub ntiaj teb lub hli tig tau - yog tias koj nyiam saib 'sab tsaus nti ntawm lub hli' ces tsuas yog tig lub ntiaj teb ib puag ncig.
Raws li qhov no yuav siv rau hauv tus menyuam chav, ua tib zoo saib xyuas kom tau txais kev saib xyuas kev nyab xeeb; saib ntu tom qab ntawm kev nyab xeeb kom paub meej ntxiv
Yog tias koj muaj cov tub ntxhais hluas txaus siab kawm kev ua haujlwm, lub teeb hmo ntuj raug tswj los ntawm MicroPython. Yog li qhov no tseem yog txoj hauv kev zoo kom tau txais ib tus neeg koom nrog hauv computer programming!.
Khoom siv
WeMos D1 Mini ESP8266 lub rooj tsavxwm.
Muaj ntau tus neeg xa khoom ntawm eBay. Kuv xav hais kom yuav 10 lossis ntau dua los ntawm tus neeg xa khoom Suav raws li hauv qab no. Lawv yog cov pheej yig heev thiab koj yuav tsis ntseeg tias yuav pom ntau qhov kev siv rau lawv hauv IoT cov phiaj xwm
www.ebay.co.uk/itm/ESP8266-ESP-12-WeMos-D1…
BC337 tus transistor
www.ebay.co.uk/itm/25-x-BC337-40-NPN-Trans…
Ferrite lim
www.ebay.co.uk/itm/10Pcs-Black-Clip-On-Cla…
2 W resistors
www.ebay.co.uk/itm/0-1-100ohm-Various-Valu…
Pawg thawj coj saib xyuas
www.ebay.co.uk/itm/Double-Sided-Prototypin…
3W RGB LED
futureeden.co.uk/products/3w-rgb-red-green…
2.5mm DC qhov (socket)
www.ebay.co.uk/itm/2-5mm-x-5-5mm-METAL-PAN…
40 hli heatsink
www.ebay.co.uk/itm/Aluminium-Heatsink-Radia…
Teb Encoder
Muaj ntau ntau tus neeg muag khoom hauv ebay muag cov no. Kuv siv 15mm D ncej encoder
www.ebay.co.uk/itm/Rotary-Shaft-Encoder-EC…
Pob qhov rooj (kom haum D ncej)
www.ebay.co.uk/itm/5-Colours-D-Shaft-270-P…
Kauj Ruam 1: Luam Lub Hli Teeb
Koj xav luam tawm 5 nti lub hli ci los ntawm cov lus qhia txuas uas kuv tau hais ua ntej. Kuv luam tawm ntawm Ender 3 siv PLA dawb ntawm 100% ntxiv thiab 0.15 nti txheej qhov siab nrog kev txhawb nqa. Tom qab ntawd kuv tau teeb lub tsaj ntawm lub luam ntawv thiab siv rab riam ntse los tshem tag nrho cov khoom txhawb nqa uas seem. Qhov tshwm sim yog qhov zoo tshaj plaws. Tag nrho cov sijhawm luam tawm nyob ib puag ncig 15 teev.
Kauj Ruam 2: Luam Lub Hli Teeb Sab saum toj thiab hauv paus
Siv STLs txuas los sau rau saum thiab hauv paus. Kuv luam cov no hauv PETG dub kom tau txais qhov ua tiav zoo nkauj tab sis PLA yuav ua haujlwm zoo ib yam.
Kauj Ruam 3: Luam Lub Hli Txhawb Nqa
Kuv luam tawm qhov no hauv PLA txhais kom tsis txhob muaj duab ntxoov ntxoo raug pov. Kuv siv PLA vim tias lub hli txhawb phaj yuav tau lo rau lub hli luam tawm thiab kuv xav yog li ntawd yuav tsum ntseeg tias nws yuav ua tau zoo.
Kauj Ruam 4: Nyem ESP8266 Nrog MicroPython
Rub tawm qhov hloov tshiab kawg ntawm Micro Python, txuas ESP8266 mus rau USB chaw nres nkoj ntawm koj lub PC thiab tom qab ntawd siv tus thawj tswj ntaus ntawv los txiav txim qhov chaw nres nkoj COM uas nws tau teeb tsa rau
Tom qab ntawd nyem lub Micro Python subsystem siv lub cuab yeej nyem uas lawv muab. Cov piv txwv hais kom ua hauv qab nyem qhov hloov tshiab kawg uas kuv pom thaum lub sijhawm sau ntawv, piv txwv tias COM4 yog qhov chaw nres nkoj uas lub cuab yeej tau teeb tsa rau thiab tias Python 2.7 tau teeb tsa hauv c: / python27
c: / python27 / scripts / esptool.py --port COM4 --baud 115200 erase_flash
c: / python27 / scripts / esptool.py --port COM4 --baud 115200 write_flash --flash_size = ntes 0 micropython / esp8266-20190529-v1.11.bin
Koj tsuas yog yuav tsum nyem Micro Python ib zaug.
Kauj Ruam 5: Nruab WebRepl System
WebRepl yog qhov browser-based system uas tso cai rau koj nkag mus rau Micro Python cov lus txib thiab tseem xa cov ntaub ntawv mus thiab los ntawm ESP8266. Nws txuas ntawm WiFi ncaj qha rau ESP8266 yog li koj tsis tas yuav muaj ESP pawg thawj coj los ntsaws rau hauv koj lub computer.
Ua raws li cov lus qhia ntawm no kom ua tiav txhua yam.
docs.micropython.org/en/latest/esp8266/tut…
Hloov ob daim ntawv Python saum toj no mus rau ESP8266 siv WebRepl browser UI
Kuj tseem xa cov ntaub ntawv los ntawm txoj haujlwm github no - muaj ob daim ntawv nab nab uas ua ke tswj cov cav ntoo teb
github.com/miketeachman/micropython-rotary
Thaum koj paub tseeb tias Micro Python tau ua haujlwm OK ntawm ESP8266 koj tuaj yeem nqa nrog cov kauj ruam tom ntej, qhov twg koj yuav tsim lub rooj tswj hwm.
Nco tseg - koj tuaj yeem rov sau dua ESP8266 txhua lub sijhawm txawm tias tom qab haum nws rau pawg tswj hwm. Txawm li cas los xij kuv tau muaj chav khib tsis flash kom raug yog li ua kom nws ua haujlwm tau zoo yog lub tswv yim zoo ua ntej yuav muab nws tso rau ntawm lub rooj tswj hwm
Kauj Ruam 6: Txhim Kho Lub Rooj Tsav Xwm
Kuv tau siv daim ntawv pov thawj raws li qhia hauv cov khoom siv txuas. Cov khoom siv tsuas yog siv xov tooj taw tes-rau-taw tes
RGB coj tau teeb tsa ntawm 40mm lub rhaub dej kub siv Akasa daim kab xev cua sov.
Lub WeMOS clones tau muab nrog lub taub hau taub hau; Kuv tau muab cov no tso rau ntawm lub rooj tsavxwm thiab tom qab ntawd mus rau lub rooj tsav xwm tsab.
Nco ntsoov tias tus pin encoder tau muab muag rau hauv qab ntawm lub rooj tsav xwm tsab ntawv thiab nws tau them me ntsis mus rau sab xis ntawm lub rooj tsavxwm saib los ntawm sab saum toj thiab nrog lub ntsej muag encoder ntsib koj. Qhov no yog vim tias muaj yim qhov muaj nyob rau ntawm lub rooj tsav tsheb kawg thiab yog li peb tus lej cim npe tau txuas nrog ua ob daim tsis muaj neeg nyob rau ib sab thiab peb mus rau lwm qhov.
Vim tias 40mm lub rhaub dej kub tso rau saum lub rooj tsav xwm txheej, xyuas kom thaj chaw uas npog los ntawm lub rhaub dej kub tsis muaj cov khoom siv teeb tsa siab dhau, lossis lawv yuav cuam tshuam nrog lub rhaub dej kub.
Kauj Ruam 7: Luam tawm Shim thiab Sib Sau Cov Baseplate
Lub shim tsuas yog ib lub xwmfab me me ntawm cov yas uas tso rau hauv qab lub rhaub dej kom paub tseeb tias nws tsis luv dab tsi.
Haum lub shim rau lub hauv paus phaj, tom qab ntawd tso lub rhaub dej kub rau saum. Koj tuaj yeem tso qee daim kab xev hluav taws xob tso rau ntawm lub rhaub dej kub yog tias koj xav tau. Nws tsis tau tiv tauj ib yam dab tsi ntawm lub rooj tsav xwm tseem ceeb tshwj tsis yog muaj peev xwm tiv thaiv daim phiaj ESP8266 thiab LED yog hluav taws xob raug rho tawm ntawm lub rhaub dej lawm
Tam sim no sib sau ua ke lub rooj tsav xwm hauv Circuit Court thiab lub hauv paus.
Kauj Ruam 8: Txuas lub LED mus rau lub rhaub dej kub thiab tom qab ntawd xaim nws mus rau ntawm Circuit Board
Kuv siv Akasa thermal daim kab xev. Cias txiav ib daim duab 20mm x 20mm thiab txuas cov LED. Nco tseg cov lus qhia raws li sab xim twg mus rau lub rhaub dej kub thiab sab twg mus rau LED.
Kuv siv qee tus qauv siv tshuab computer txuas txuas txuas rau xaim ntawm LED rov qab mus rau lub rooj tsav xwm hauv Circuit.
Kauj Ruam 9: Ua Tus Hluav Taws Xob
Lub hwj huam hluav taws xob tsuas yog tsim los ntawm USB cable pheej yig. Txiav tawm lub USB txuas tawm li 1-2 ntiv tes ntawm kab ntawv yog li koj tuaj yeem hle nws thiab txuas qee qhov ntxaib fais fab cable (Kuv siv cov tub ntxhais ntxaib cable muaj kwv yees li 5 hli tag nrho dav, yog li tus qauv 5mm ferrite suppressor yuav clip rau nws). Siv heatshrink tubing los txuas cov liab thiab dub ua los ntawm USB txuas rau lub zog thiab hauv av tom qab ntawd muab lub zog 2.5mm txuas rau lwm qhov kawg.
Nco ntsoov tias cov duab kab ntawv luv dua qhov koj xav tau - nws yog rau lwm qhov haujlwm tab sis txuas tib yam. Koj yuav zaum xav tau ib puag ncig 2m cable kom yooj yim.
Vim li cas ho tsis cia li xaim ncaj qha mus rau lub micro USB chaw nres nkoj ?. Zoo, muaj ob qho teeb meem. Qhov hluav taws xob poob qis dua tus qauv USB cable yog siab heev vim tias nyob rau qhov siab tam sim no cov xov hlau me me poob qis me ntsis ntawm qhov hluav taws xob thiab qhov no tuaj yeem ua teeb meem nrog ESP8266. Ib qho ntxiv, cov laug cam no tsis tau tsim los muab cov khoom tseem ceeb tam sim no - cov cim me me ntawm lub rooj tsavxwm - yog li kuv yuav muab lub zog cais.
Nco tseg: tsis pom ntawm kab ntawv no yog clip-on ferrite lim. Kuv pom zoo ntxiv ib qho ntawm qhov no yog tias lub suab hluav taws xob tau nthuav tawm los ntawm lub zog txuas. Nco ntsoov koj tab tom hloov pauv ib puag ncig 500mA ntawm tam sim no los ntawm peb lub LEDs thiab qhov no muaj peev xwm los tsim RFI.
Kauj ruam 10: Txheeb Xyuas Nws
Nrog lub zog txuas mus rau lub rooj tsav xwm hauv Circuit koj yuav tsum pom LEDs teeb ntawm ib puag ncig ib nrab ci thiab tom qab ntawd tig lub ntsuas phoo yuav tsum hloov qhov ci ci.
Yog tias koj tseem tig lub encoder koj yuav pom cov xim hloov pauv. Muaj xya xim thiab hom kawg yog 'shimmer'. Hauv hom shimmer xim tas li hloov. Cov nyhuv yog qhov hloov maj mam thiab zoo nkauj heev.
Thaum koj nias lub encoder hloov lub teeb yuav tsum tawm mus. Nias nws dua coj cov LEDs dawb ntawm ib nrab-ci dua.
Kauj Ruam 11: Muab Cov Phaj Moonlamp Plate rau lub hli thiab muab tso ua ke
Txheeb xyuas txhua yam kom haum ua ke kom raug. Tom qab ntawd muab lo rau daim phiaj txhawb nqa lub hli mus rau lub hli, tso lub hli nrog ib qho ntawm 'tus ncej' qis dua - ib txwm yog lub hauv paus ntawm 3D luam ntawv. Kuv siv epoxy cob raws li qhia hauv daim duab saum toj no.
Lub hli yuav tsum tig rov qab ywj pheej tom qab tab sis yuav tsum tuav kom ruaj ntseg mus rau sab saum toj los ua ke Tom qab ntawd tsuas yog siv plaub lub me me tus kheej tapping ntsia hlau los ntsia lub hauv paus mus rau sab saum toj los ua ke thiab ntawm chav kawm ruaj ntseg tus encoder ntawm nws cov txiv ntoo.
Kauj Ruam 12: Lus Ceeb Toom Txog Kev Nyab Xeeb
Raws li qhov no yog khoom siv npaj rau menyuam chav, kev nyab xeeb yog qhov tseem ceeb. Nws khiav los ntawm kev nyab xeeb 5V tus qauv them lub xov tooj kom ntev li ntev tau koj siv lub koob npe nrov npe uas yuav nyab xeeb heev. Lub hwj chim resistor qhov tseem ceeb tau xaiv kom lub rhaub dej kub sab hauv nyob ib puag ncig 10-15 degrees saum toj no ib puag ncig. Lawv kuj tseem raug xaiv kom nyob hauv qhov xwm txheej tsis tshua muaj tshwm sim ntawm LED luv-Circuit lub zog tso tawm hauv txhua tus tiv thaiv tseem zoo nyob hauv nws 2W lub zog ntsuas.
Kauj Ruam 13: Tus Python Code
Qhov kev pab cuam nab nab loj yog yooj yim heev. Nws tsis yog txoj cai ntxim nyiam heev - nws tuaj yeem ua nrog qee qhov rov ua dua tshiab rau hauv cov txheej txheem cais - tab sis nws ua haujlwm.
Txoj cai yuav tsum daws nrog qhov teeb meem tsis tau xav txog uas kuv pom - thaum sim, kuv tau txais kev cuam tshuam tsis zoo. Nws hloov tawm tias thaum koj hloov pauv PWM lub luag haujlwm ntawm cov channel koj tsis tuaj yeem hloov pauv ntau txoj hauv kev tib lub sijhawm. Yog tias koj ua li ntawd koj tau txais lub tswm ciab nyob rau lub sijhawm - yog li kuv teeb tsa lub sijhawm luv luv thiab tom qab ntawd PWM hloov pauv tau ua ntawm txhua cov channel hauv 'puag ncig -robin' yam, yog li ntawd flicker raug zam.
Pom zoo:
Hmo Hmo Pom Kev Tsaus Ntuj & Tsaus Ntuj Pom Kev - Tsis Muaj Micro: 7 Kauj Ruam (nrog Duab)
Hmo Hmo Pom Kev Tsaus Ntuj & Pom Kev Tsaus Ntuj - Tsis Muaj Micro: Cov lus qhia no yog hais txog kev tiv thaiv koj kom tsis txhob txhuam koj cov ntiv taw thaum taug kev los ntawm chav tsaus. Koj tuaj yeem hais nws yog rau koj tus kheej kev nyab xeeb yog tias koj sawv thaum hmo ntuj thiab sim ua kom lub qhov rooj nyab xeeb. Tau kawg koj tuaj yeem siv lub teeb rau ntawm lub txaj lossis lub ntsiab lus tseem ceeb
Nightvision Laserbeak! (LOS YOG Yuav Ua Li Cas Ua Kev Pom Kev Hmo Hmo Hmo Hmo, LED Throwie, Transformer Toy Mashup Teeb nyem!): 5 Kauj Ruam
Nightvision Laserbeak! (LOSSIS Yuav Ua Li Cas Nightvision-Preserving, LED Throwie, Transformer Toy Mashup Teeb nyem!): Cov lus qhia los ntawm noob rau noob neej.Koj tau txais dab tsi thaum koj mashup hmo ntuj pom lub teeb pom kev zoo, LED pov tseg, thiab hloov pauv zoo qho khoom ua si? Kev qhia paub nrog lub npe tiag tiag! Peb yuav hu nws "Nightvision Laserbeak" rau
Lus dab neeg ntawm Zelda Rupee Hmo Hmo Ntuj (N64 Tsab): 7 Kauj Ruam (nrog Duab)
Lus dab neeg ntawm Zelda Rupee Hmo Hmo Ntuj (N64 Tsab): Kuv tau ua qhov no tshwj xeeb rau Kev Qhia Zaj Zaj sawv kev sib tw. Ib yam li kuv lwm cov phiaj xwm, Kuv yog Legend Loj ntawm Zelda nerd (Thawj Rupee Hmo Hmo Ntuj, Majora's Mask). Nrog kev tawm tswv yim zoo los ntawm Cov Kws Qhia Ntawv hauv zej zog, Kuv txiav txim siab tsim
Yuav Ua Li Cas Tsim Kev Hais Lus Hmo Hmo Hmo Hmo: 15 Cov Kauj Ruam
Yuav Ua Li Cas Tsim Kev Hais Lus Hmo Hmo Hmo Hmo: Qhov no yog kev qhia yuav ua li cas thiaj tsim cov khoom siv hmo ntuj mloog cov neeg hais lus los ntawm ntu nthuav tawm
Tus Hluas Nkauj Hmo Hmo Hmo Hmo: 34 Kauj Ruam (nrog Duab)
Tus Hluas Nkauj Hmo Hmo Hmo: Kuv xub tuaj nrog lub tswv yim rau Hluas Nkauj Hmo Hmo Hmo thaum kuv lwm qhov tseem ceeb qhia tias nws ntshai tsaus ntuj thiab tsis tuaj yeem pw tsis tau lub TV nyob. Ua rau muaj kev cuam tshuam yooj yim, Kuv tsis tuaj yeem tsaug zog thaum lub TV qhib. & Nb