Cov txheej txheem:

Neo Pixel LED Daim Duab Duab: 6 Kauj Ruam (nrog Duab)
Neo Pixel LED Daim Duab Duab: 6 Kauj Ruam (nrog Duab)

Video: Neo Pixel LED Daim Duab Duab: 6 Kauj Ruam (nrog Duab)

Video: Neo Pixel LED Daim Duab Duab: 6 Kauj Ruam (nrog Duab)
Video: Messi Compte sa liasse de billet 2024, Kaum ib hlis
Anonim
Image
Image
Neo Pixel LED Duab Duab
Neo Pixel LED Duab Duab

Nyob zoo dua! Kuv tau ua txoj haujlwm no tshwj xeeb rau kev sib tw "xim ntawm zaj sawv". Yog tias koj nyiam nws thov pov npav rau kuv hauv kev sib tw.

Yog li kuv txiav txim siab ua qhov haujlwm sai thiab yooj yim heev rau kev sib tw. Nws yog neo-pixel LED duab kab duab, nrog daim duab lom zem. Kuv tau txais lub tswv yim thaum kuv khaws daim duab los ntawm daim npav tos txais ntawm lub khw muag khoom (Kuv yog tus kiv cua ntawm lub hnub qub kev tsov kev rog thiab cov duab geometric uas tsis suav nrog yog li qhov no tau kos ob lub thawv). Txoj hauv kev twg zoo dua los tso saib daim npav zoo nkauj no qee qhov hloov xim LED's thiab cov duab zoo nkauj?

Txhua yam coj kuv mus txog 1 hnub, yog li yooj yim heev txoj haujlwm hnub so rau koj sim.

Kauj Ruam 1: Cov Khoom & Cov Cuab Yeej

Kuv muaj ntau yam ntawm no tau nyob ib puag ncig vim tias thaum kuv ua tiav txoj haujlwm kuv xaus nrog cov khoom seem uas sau sijhawm. Kuv zoo siab tsis yog txhua tus zoo li kuv thiab koj yuav tsum tau yuav qee cov khoom.

Cov ntaub ntawv:

  • Cov kua nplaum kub (ebay £ 1.30 rau kaum)
  • 5mm ridgid PVC (aka foamboard £ 1.49 rau ib daim A4 nkaus xwb)
  • Duab thav duab lees txais daim duab 5x7 nti (£ 2 los ntawm lub tsheb khau muag [khiav lag luam rau cov neeg nyeem thoob ntiaj teb])
  • Neo pixel LEDS WS2811 modules (Kuv yuav 300 ntawm cov no rau £ 20 tab sis kuv tsuas yog siv li kaum, koj tuaj yeem yuav cov no hauv ib daim hlab ntawm 30 rau £ 5.50 los ntawm ebay)
  • Dupont cables (£ 1 rau txoj haujlwm ntau tawm ntawm ebay)
  • Arduino Nano / Pro-Mini (£ 2 los ntawm peb cov npoj yaig hauv Shenzhen, xyuas kom nws yog 16MHz sib txawv)
  • Solder, 10g, 0.8mm (£ 0.99 los ntawm Tuam Tshoj)
  • Ntshiab daim kab xev (aka sellotape £ 0.99 rau 66m yob)
  • Funky tos txais daim npav (£ 2.50)
  • Micro USB breakout PCB (£ 1.49 rau 10 los ntawm Tuam Tshoj)
  • Cov ntawv dub me me (ebay £ 1.97)
  • Tshav kub
  • Cov laug cam me me uas tsis txhuam nrog tus kheej nplaum thim rov qab (ebay £ 0.99 los ntawm Hong Kong)

TSEEM CEEB

Rau pixel LED's ua haujlwm kom raug, koj tuaj yeem siv ib qho me me tswj hwm tsuav yog nws 16MHz version. Kuv xub xav siv ATTiny85 tab sis kuv tawm tsam, yog li kuv rov qab los rau qee yam uas kuv paub ua haujlwm tau zoo.

Cov cuab yeej

  • Cov Hluav Taws Xob (Yog tias koj siv cov tooj dag me me los txhuam zoo li kuv nyob ntawm no, koj yuav tau txais txiaj ntsig zoo los ntawm qhov ntsuas kub tswj cov hlau)
  • Khoom siv tes ua riam (aka stanley knife)
  • Kub kua nplaum phom
  • Phom cua kub

Kauj Ruam 2: Cov Qauv Txheej Txheem

Cov Khoom Siv Hluav Taws Xob
Cov Khoom Siv Hluav Taws Xob
Cov Khoom Siv Hluav Taws Xob
Cov Khoom Siv Hluav Taws Xob
Cov Khoom Siv Hluav Taws Xob
Cov Khoom Siv Hluav Taws Xob
Cov Khoom Siv Hluav Taws Xob
Cov Khoom Siv Hluav Taws Xob

Koj tuaj yeem yuav cov qauv no twb tau koom ua ke hauv cov hlua uas tuaj yeem txiav kom ntev. Kuv xav kom koj yuav cov ntawd txwv tsis pub koj yuav tsum ua raws cov theem no. Kuv yuav cov qauv no xyoo dhau los rau lwm qhov haujlwm uas kuv tso tseg. Yog li kuv siv cov no vim tias kuv muaj lawv lawm.

WS2811 thiab WS2812 yog cov chaw nyob uas tuaj yeem ua daisy txuas ua ke hauv txoj hlua. Txhua tus qauv tuaj yeem qhib thiab tawm lossis ua kom pom qee yam xim. Cov khoos phis tawj no muaj cov xub qhia qhov nkag thiab tawm, thiab nws yog ib qho tseem ceeb kom tau ceeb toom txog qhov no. Qhov tseem ceeb txhua tus xub xav tau rau txhua tus taw tes hauv tib txoj kev hauv txoj hlua tom qab lawv tau muag ua ke. Kuv tau txuas daim duab luv luv (zoo siab ntawm Adafruit, lawv muaj qhov zoo tshaj plaws "uberguide" uas npog yuav ua li cas siv cov qauv no thiab zoo ib yam ib yam nkaus, yog li nco ntsoov xyuas nws kom nkag siab qhov sib txawv).

Kuv siv cov kab dupont raws li cov no yog qhov loj me los txhawm rau ua kom zoo rau cov ntaub qhwv. Kuv txiav cov no mus rau 3cm ntev kom cais cov qauv. Thaum koj tau muab cov khoom sib dhos txaus ua ke hauv txoj hlua kom kab tag nrho ntawm daim duab thav duab, peb tuaj yeem xav txog kev teeb tsa lawv sab hauv daim duab.

Kauj Ruam 3: Txuas rau Arduino

Txuas rau Arduino
Txuas rau Arduino
Txuas rau Arduino
Txuas rau Arduino

Cov kauj ruam hauv qab no yog qhov yooj yim heev. Kuv rub tawm Adafruit Neo Pixel LED lub tsev qiv ntawv los ntawm Arduino IDE. Txhawm rau ua qhov no mus rau:

Sketch -> suav nrog Library -> Tswj Cov Tsev Qiv Ntawv

tom qab ntawv los ntawm cov ntawv qhia zaub mov xaiv "Adafruit Neo Pixel los ntawm Adafruit" thiab nyem rau nruab

Tshaj tawm qhov piv txwv kos duab "strandtest", los ntawm txhaj:

Cov Ntaub Ntawv -> Piv txwv -> Adafruit Neopixel -> Strandtest

Tom qab ntawd xa cov cai rau koj Arduino

Nyob ntawm seb muaj pes tsawg tus pixels nyob hauv koj txoj hlua koj yuav tau hloov koj tus lej qhov nws hais tias "NUMOFPIXELS = 60" rau tus lej pixels hauv koj txoj hlua, hauv kuv qhov no yog 13. Qhov ntawd yog nws! Yog tias koj xav tau qee yam sib txawv koj tuaj yeem hloov pauv txoj cai ib txwm tab sis kuv nyiam qhov cuam tshuam hauv qhov piv txwv.

Txoj hlua ntawm pixels muaj peb qhov txuas rau Arduino "5V, GND, thiab DATA". Txuas 5V kab rau 5V ntawm Arduino, GND rau GND ntawm Arduino thiab DATA rau Digital Pin 6 ntawm Arduino. Tom qab txuas txhua qhov qauv tsis meej kuv yuav ua kom txoj hlua txuas luv luv kom ntseeg tau tias lawv tau ua haujlwm raug ua ntej ua lwm yam. Vim yog qhov sib cais deb ntawm cov pawm nws yooj yim heev los ua luv luv lossis luv ob kab ntawv cov ntaub ntawv ua ke.

Thaum koj tau txuas cov hlua, tau tshaj tawm cov cai, thiab lees paub tias txoj hlua tau ua haujlwm raws li qhov xav tau mus rau kauj ruam tom ntej.

Kauj Ruam 4: Kua LED's Rau Hauv Tus Kheej

Glue LED's Into Frame
Glue LED's Into Frame
Glue LED's Into Frame
Glue LED's Into Frame
Glue LED's Into Frame
Glue LED's Into Frame
Glue LED's Into Frame
Glue LED's Into Frame

Siv cov kua nplaum kub rau sab hauv qab ntawm tus qauv LED thiab lo nws rau hauv tus ncej. Khaws cov xov hlau kom tiaj li sai tau rau sab hauv. Tom qab ntawd kuv txiav 3 cm x 1.5 cm strips ntawm 5 mm foamboard nrog riam riam los npog cov xov hlau uas kuv tau hla cov xov hlau nrog cov kua nplaum kub los nkaum lawv.

Kauj ruam 5: Tiav Tawm

Tiav Tawm
Tiav Tawm
Tiav Tawm
Tiav Tawm
Tiav Tawm
Tiav Tawm
Tiav Tawm
Tiav Tawm

Kuv txiav lub thav duab sab hauv rau daim npav tawm ntawm 5 hli foamboard thiab ruaj ntseg daim npav rau hauv tus ncej nrog muag daim kab xev. Kuv txiav ib lub kaum tawm ntawm lub nraub qaum rau cov xov hlau los txhawm rau sab nraub qaum ntawm tus ncej. Lub rooj tsav tsheb sab nraub qaum tau muab tso rau tom qab ntawm tus thav duab kom kaw daim duab.

Txhawm rau lub tsev Arduino Kuv tso txhua qhov kev sib txuas ntawm lub lauj kaub tais diav uas tsis txhuam nrog cov nplaum rov qab, thiab kaw nws rau hauv lub thawv me me. Kuv tau hlais qhov 6 hli nyob rau sab uas yog nkag rau cov xov hlau mus rau LED thiab rau lub zog. Tom qab ntawd kuv tsuas yog ntswj lub hau rov qab rau hauv lub npov thiab muab nws txuas rau sab nraub qaum nrog kua nplaum kub. Thaum kawg kuv tau siv lub zog kawg ntawm Arduino siv lub micro-USB breakout PCB thiab ua tiav qhov txiav tawm nrog cua sov ntsws.

Kauj ruam 6: Txaus siab rau

Txaus siab rau
Txaus siab rau

Kuv vam tias koj nyiam cov lus qhia luv no, yog tias koj nyiam nws thov pov npav rau nws hauv cov xim ntawm zaj sawv kev sib tw. Thov kuj saib kuv lwm cov lus qhia saum toj no.

Pom zoo: