Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: 3D Luam Lub Ntsej Muag Lub Ntsej Muag
- Kauj Ruam 2: Sau Tag Nrho Txhua Qhov Xav Tau
- Kauj Ruam 3: Txuas Rings
- Kauj Ruam 4: Txuas Lwm Cov Khoom Siv Hluav Taws Xob
- Kauj Ruam 5: Npaj rau Program Arduino Nano
- Kauj Ruam 6: Txhim Kho Adafruit NeoPixel Library
- Kauj ruam 7: Upload Sketch
Video: Neopixel Moos Nrog Peb Neopixel Rings: 7 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Qhov tsim tau zoo ntawm Neo Pixel moos los ntawm Steve Manley tau txav kuv los tsim cov lus qhia no txog yuav tsim lub moos zoo li cas rau qhov nyiaj tsawg kawg. (Ib qho tseem ceeb Dutch tus cwj pwm ib txwm sim txuag nyiaj;-))
Kuv pom tias qhov kev tsim qauv qub tsuas yog haum rau Adafruit NeoPixel rings, thiab cov no tsis yog qhov pheej yig.
Kuv ntsia ib ncig ntawm Ali Express thiab pom qee qhov nqi pheej yig dua ntawm nws. Hloov tawm los ua qhov chaw ua haujlwm, tab sis tsis nrog tib qhov ntev. Kuv xaus kev tshawb nrhiav thiab nrhiav tus tsim 3D rau lub moos, thiab kho nws raws li.
Ib sab ntawm lub rooj tsavxwm no kuv siv yog clone ntawm Arduino Nano, thiab tau teeb tsa ib yam nkaus. Txawm li cas los xij, txoj haujlwm huv lub moos, yam tsis muaj lwm yam ntxiv yog tsis muaj nyob qhov twg yog li kuv xav tau kho lub software me ntsis.
Khoom siv
- Thinary Nano mini USB board
- RTC moos
- LR1120 Roj teeb
- WS2812B 60 Coj Nplhaib
- WS2812B 24 Coj Nplhaib
- WS2812B 12 Coj Nplhaib
Kauj Ruam 1: 3D Luam Lub Ntsej Muag Lub Ntsej Muag
Hauv cov ntawv txuas nrog koj yuav pom cov ntaub ntawv stl koj xav tau luam tawm lub moos-ntsej muag.
Kauj Ruam 2: Sau Tag Nrho Txhua Qhov Xav Tau
Ntawm Ali Express koj yuav tuaj yeem pom txhua ntu uas koj xav tau rau txoj haujlwm no.
Ib sab ntawm cov khoom siv hluav taws xob Kuv yuav lub moos nrog lub ntsej muag tsis zoo-phaj, vim tias ua rau nws 10 euros pheej yig dua li ib qho xiav piv txwv.
Kauj Ruam 3: Txuas Rings
Siv cov kua nplaum kub los txuas cov hlua nyob hauv qhov chaw. Cov nplhaib tau muab nrog 5 Volts, thiab tom qab ntawd txuas rau ib leeg hauv kab ntawv txuas los ntawm txuas DOUT rau DIN ntawm txhua lub nplhaib raws li qhov loj me, yog li 60 txog 24 txog 12.
Kauj Ruam 4: Txuas Lwm Cov Khoom Siv Hluav Taws Xob
Cov txheej txheem saum toj no qhia koj yuav ua li cas txuas cov ntu rau ib leeg.
Peb yuav pib nrog lub sijhawm tiag tiag DS3234. Lub moos yog lub tsheb npav siv tsheb thiab muaj lub roj teeb thaub qab kom nco lub sijhawm teeb tsa.
Kauj Ruam 5: Npaj rau Program Arduino Nano
Arduino Nano tau teeb tsa siv Arduino IDE. Nws nyob hauv IDE uas koj sau "kos duab" uas yog tom qab ntawv suav ua cov firmware uas koj lub khoos phis tawj sau rau Arduino txuas nrog nws siv USB cable. Rub tawm IDE thiab nruab nws.
Thauj cov ntawv NeoPixelClock_V1.ino
Ua ntej peb xa cov cai mus rau pawg thawj coj, peb yuav tsum ua kom ntseeg tau tias peb tau teeb tsa cov tsav tsheb rau peb pawg thawj coj, thiab tias peb tau xaiv lub rooj tsav xwm raug. Nrog Arduino Nano clone, peb xav tau cov tsav tsheb rau CH340G USB-serial converter chip. Cov chipset siv rau USB-rau-serial yog CH340/CH341, uas cov tsav tsheb (rau Windows) tuaj yeem rub tawm ntawm no:
www.wch.cn/download/CH341SER_EXE.html
Yog tias koj ua haujlwm ntawm Mac koj yuav tsis muaj teeb meem ib yam li.
Kauj Ruam 6: Txhim Kho Adafruit NeoPixel Library
Ua ntej peb tuaj yeem siv NeoPixel Library, peb yuav tsum teeb tsa nws! Nws siv los ua qhov nyuaj me ntsis los teeb tsa cov tsev qiv ntawv rau hauv Arduino IDE, tab sis lawv tau yooj yim txij li nws thiab suav nrog Tus Thawj Saib Xyuas Kev Nyuaj Siab. Nws tau teev nyob rau hauv "Sketch> Library" cov ntawv qhia zaub mov nco. Qhib tus thawj tswj tsev qiv ntawv thiab tshawb nrhiav Adafruit Neopixel.
Thaum pom, xaiv nws thiab nyem lub pob install.
Tsis tas li nyob hauv "Cov Cuab Yeej> Pawg Thawj Coj" ntawv qhia zaub mov, kom ntseeg tau tias lub rooj tsav xwm raug xaiv, Arduino Nano.
Kauj ruam 7: Upload Sketch
Tam sim no peb tau npaj txhua yam, peb tuaj yeem pib xa mus rau lub rooj tsavxwm. Peb txuas lub rooj tsavxwm nrog USB cable.
Ua ntej peb xam tawm qhov chaw nres nkoj twg uas pawg thawj coj tau sau npe.
Hauv Windows:
Qhib cov lus txib nrog [Windows] [R] thiab ntaus ntawv compmgmt.msc, hauv Khoos phis tawj tswj hwm, nyem Device Manager Saib hauv qab Ports kom paub seb qhov chaw nres nkoj twg raug siv.
Mac OS:
Kua Icon> Txog ntawm Mac no> Qhia System> USB
Tam sim no hauv cov cuab yeej ntawv qhia zaub mov, xyuas kom tus txheej txheem nrog lub qub bootloader raug xaiv. Qhov no xav tau rau clone board.
Tam sim no nyob rau sab laug sab saud hauv IDE, nyem lub pob Upload. Qhov ntawd yuav yog lub pob nrog tus xub taw mus rau sab xis. Sai li qhov upload tiav, lub moos yuav pib ua haujlwm.
Pom zoo:
Cov Tub Ntxhais Hluav Taws Xob Moos Moos: 9 Kauj Ruam (nrog Duab)
Cov Tub Ntxhais Hluav Taws Xob Moos: Kuv ib txwm tau nyiam los ntawm cov teev tsis txawv txav. Nov yog ib qho ntawm kuv qhov kev tsim kho tshiab kawg uas siv cov tub ntxhais txias txias tus lej los tso saib lub sijhawm. Cov lej tau muab tso rau ntawm ib daim me me ntawm Plexiglas uas muaj cov ntawv nyias nyias laminated rau tom qab
Thumbwheel Moos - Cia Peb Paub Lub Sijhawm: 5 Kauj Ruam (nrog Duab)
Thumbwheel Clock - Cia Peb Ntseeg Lub Sijhawm: Nyob zoo txhua tus, ntawm no yog kuv thawj Kev Qhia, yog li kuv vam tias nws yuav zoo. Ntxiv mus, kuv qib lus Askiv tsis zoo yog li kuv vam tias kuv yuav tsis ua ntau qhov yuam kev! Lub hom phiaj ntawm txoj haujlwm no yog rov siv qee qhov "Thumbwheels" khaws los ntawm lub chaw kuaj ntshav qub
Ntau Tus Ywj Pheej NeoPixel Rings: 3 Kauj Ruam
Ntau Qhov Ywj Pheej NeoPixel Rings: Yog li kuv tsim qhov haujlwm no kom pom 12 LED Pixel ua haujlwm. Kuv pom qhov no nrog 16 ntawm no. Thiab kuv pom cov hlua tes sib xyaw ua ke no, tab sis kuv xav pom qhov sib txawv ntawm cov sib txawv, qhov sib txawv me me yuav ua haujlwm ywj siab los ntawm ib leeg. Yog li es tsis txhob txuas Dig
Kev Cai NeoPixel Rings Los Ntawm Kos!: 8 Cov Kauj Ruam (nrog Duab)
Kev Cai NeoPixel Rings Los Ntawm Kos!: NeoPixel rings, thiab NeoPixels feem ntau, yog cov khoom siv hluav taws xob nrov tshaj plaws rau cov tsim txhua yam. Rau qhov laj thawj zoo ib yam, nrog ib tus pin los ntawm ib qho nrov microcontroller Adafruit ua ntxiv LEDs zoo nkauj thiab cov duab rau txhua tus pro
Peb Axis SMD Cheeb Tsam Peb Tes: 9 Kauj Ruam
Peb Axis SMD Cheeb Tsam Thib Peb: Kuv, zoo li ntau lwm tus, tau muaj teeb meem tuav cov ntu ntu ntu thaum kuv muab lawv tso rau. Txij li qhov tsim nyog tsim tsiaj tsim khoom Kuv tau tshoov siab los tsim kuv tus kheej lub chaw haujlwm ua haujlwm uas yuav daws kuv cov teeb meem. Nov yog qhov yooj yim heev los tsim, pheej yig thiab h