Cov txheej txheem:

Neopixel Moos Nrog Peb Neopixel Rings: 7 Kauj Ruam
Neopixel Moos Nrog Peb Neopixel Rings: 7 Kauj Ruam

Video: Neopixel Moos Nrog Peb Neopixel Rings: 7 Kauj Ruam

Video: Neopixel Moos Nrog Peb Neopixel Rings: 7 Kauj Ruam
Video: NeoPixel LED Strip on the Raspberry Pi Pico & Pico W using CircuitPython 2024, Hlis ntuj nqeg
Anonim
Image
Image

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

Sau Txhua Qhov Xav Tau
Sau Txhua Qhov Xav Tau

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

Sau Txhua Qhov Xav Tau
Sau Txhua Qhov Xav Tau
Sau Txhua Qhov Xav Tau
Sau 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

Txuas Rings
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

Txuas Lwm Cov Khoom Siv Hluav Taws Xob
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

Txhim kho Adafruit NeoPixel Library
Txhim kho Adafruit NeoPixel Library
Txhim kho Adafruit NeoPixel Library
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

Rub tawm Sketch
Rub tawm 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: