Cov txheej txheem:

Chaw taws teeb-tswj Animating LED Chav Teeb: 5 Cov Kauj Ruam (nrog Duab)
Chaw taws teeb-tswj Animating LED Chav Teeb: 5 Cov Kauj Ruam (nrog Duab)

Video: Chaw taws teeb-tswj Animating LED Chav Teeb: 5 Cov Kauj Ruam (nrog Duab)

Video: Chaw taws teeb-tswj Animating LED Chav Teeb: 5 Cov Kauj Ruam (nrog Duab)
Video: # 3 YouTube Video Marketing Tools и приложения для продвижения местно... 2024, Kaum ib hlis
Anonim
Image
Image
Ntsuam Xyuas Koj LED Sawb
Ntsuam Xyuas Koj LED Sawb

Rau cov uas xav kom so lossis ua kom pom kev zoo nkauj lub teeb pom kev zoo, rau ib chav menyuam yaus, kho kom zoo nkauj Christmas, lossis tsuas yog kev lom zem, ntawm no yog kuv qhov kev txhawb zog ntxiv. Kuv tau txais cov lus teb zoo siab heev los ntawm cov menyuam mos hnub nyoog 6 hli rau cov menyuam loj ntawm txhua lub hnub nyoog.

Neo Pixels LED sawb (aka WS2812B) ua ke nrog Arduino thiab IR kev tswj chaw taws teeb ua rau neeg tua neeg ua ke xws li huab teeb pom kev, ib puag ncig daim ntawv teeb duab zoo, lossis lwm daim ntawv uas koj xav tau. Kuv tau siv qhov no los hloov lub teeb chav nyob uas twb muaj lawm: AC lub zog los ntawm lub qhov hluav taws xob uas twb muaj lawm pub rau 5V lub zog hluav taws xob thiab lub teeb 220V zoo ib yam uas dai hauv qab lub teeb LED.

Ceeb Toom 110V-220V: Tsis txhob ua qhov no tsis yog koj yog tsev neeg nrog rau kev nyab xeeb kev nyab xeeb ua ntej rau kev ua haujlwm nrog VOLTAGE HIGH.

Cov khoom koj yuav xav tau:

LED teeb

  • Ob lub Arduino boards (Kuv siv Cactus Micro Rev. 2 tab sis koj tuaj yeem siv tau yooj yim siv arduino nanos)
  • Cov qhob cij
  • LED sawb zoo li WS2812B (Kuv siv 150 LEDs uas haum rau chav nruab nrab ua lub teeb hmo ntuj)
  • Compact zog mov - 5V, tsawg kawg 0.06A X 150 LEDs + Arduinos li 10A (Kuv siv qhov no)
  • Loj (~ 1000 uF) capacitor
  • 2X Lub hwj chim txuas txuas kom yooj yim tshem lub teeb
  • Compact IR chaw taws teeb (tsuas yog cov chaw taws teeb, LED tsis xav tau). Lwm qhov chaw nyob deb tus qauv kuj yuav ua haujlwm.
  • IRM 3638 IR Txais
  • Ntsuab LED, 220 Ohm resistor
  • Jumper xov hlau

Txhawb nqa

  • Ntawv teeb - yam tsawg 10 "dia.
  • Kab nuv ntses
  • Zip kev sib txuas
  • Daim kab xev ob tog lossis kua nplaum kub + rab phom
  • ~ 59 cm (23 ") ntev, 12 mm (1/2") dia., Lub teeb yuag aluminium raj

Teeb lub teeb

  • E27 rau cov xov hluav taws xob
  • 220V AC solid-state relay
  • 2N2222 transistor, 47 kOhm resistor
  • E27 teeb lub tsev teeb
  • 220V ntsuas cov xaim

Kauj Ruam 1: Xeem Koj Cov LED Sawb

Ntsuam Xyuas Koj LED Sawb
Ntsuam Xyuas Koj LED Sawb

Koj yuav pib los ntawm kev ntsuas thiab ntsuas cov duab ua ntej dai txhua yam ntawm lub qab nthab. Koj yuav tsum rub lub Tsev Qiv Ntawv FastLED rau theem no thiab Lub Tsev Qiv Ntawv SimpleTimer rau qib tom ntej.

Txuas lub Rooj Tswjhwm Saib raws li pom hauv daim duab qhia duab, thiab xa daim ntawv xeem test_strip txuas nrog. Koj yuav tsum muaj peev xwm pom ntsuab thiab ntshav ntxoov ntxoo maj mam txav ntawm LED sawb. Qhov tseem ceeb hloov pauv yog MAXPIXELS (kab 5), fps (kab 8) thiab tam sim no_anim (kab 14).

FastLED yog qhov muaj zog heev thiab kuv txhawb koj kom tshawb xyuas nws cov yam ntxwv ntawm no.

buzzandy los ntawm hackster.io kuj siv lub tsev qiv ntawv no rau qee qhov cuam tshuam zoo.

Kauj Ruam 2: Mounting Sawb Sab Hauv Cov Ntawv Teeb

Mounting Sawb Sab Hauv Cov Ntawv Lanterns
Mounting Sawb Sab Hauv Cov Ntawv Lanterns

Qee tus neeg mus nrog huab zoo li cov duab, tab sis kuv ntseeg tias nws tuaj yeem muaj peev xwm dhau los ua cov hmoov av sau. Yog li kuv tau teeb lub 150 LED sawb spirally sab hauv 3 daim ntawv teeb duab dai ntawm kab rov tav. Lwm qhov muaj peev xwm: lub nplhaib ntawm cov ntawv teeb lossis daim duab ntawm 6 lub teeb nrog lub teeb nruab nrab 7th.

Txhawm rau teeb tsa cov LEDs ua ntej tso ib sab ntawm lub teeb lub teeb hlau txhawb rau hauv lub teeb, tom qab ntawd maj mam ntxig lub loops ntawm 8 LEDs sab hauv, kho txhua lub voj rau kev txhawb nqa nrog kua nplaum kub (pom zoo) lossis daim kab xev ob tog. Qhov chaw lawv sib npaug nrog 6 lub voj rau ib lub teeb, thiab 3 LEDs nruab nrab ntawm cov teeb (tsis txhob txiav lub sawb ntawm lub teeb). Kuv pom zoo kom nrhiav qhov chaw ib ntus rau dai cov hlua khi ze rau lub khoos phis tawj, tawm hauv Arduinos kom nkag mus tau yooj yim kom txog thaum cov lej ua tiav thiab lub teeb tau npaj yuav raug dai saum lub qab nthab.

Kauj Ruam 3: Ntxiv Qhov Kev Tswj Chaw Taws Teeb, Lub Teeb Pom Kev Zoo Li Qub mus rau Daim Duab Kawg

Ntxiv Qhov Kev Tswj Chaw Taws Teeb, Ib Qho Teeb Pom Kev Zoo rau Qhov Tseeb Kawg
Ntxiv Qhov Kev Tswj Chaw Taws Teeb, Ib Qho Teeb Pom Kev Zoo rau Qhov Tseeb Kawg

Chaw taws teeb tswj

Yog tias koj xav kom dai lub teeb LED no ntawm lub qab nthab koj yuav tsum tau tswj nws nyob deb. Lwm yam kev xaiv xws li tswj hwm ntawm koj lub xov tooj thiab Blynk muaj, tab sis kuv pom lawv qeeb thiab nyuab dua piv nrog qhov yooj yim IR chaw taws teeb tswj. Kuv muaj teeb meem ua haujlwm IR txiav txim siab niaj hnub nrog NeoPixels lub sijhawm tsis taus xav tau. Yog tias koj tswj tau txais NeoPixels nrog IR chaw taws teeb / Blynk thov qhia koj cov kev paub hauv nqe lus saib! Kuv txiav txim siab tawm ntawm cov chaw taws teeb tswj mus rau Arduino thib ob uas txuas nrog rau Arduino lub ntsiab los ntawm tus choj I2C yooj yim.

Lub teeb pom kev zoo ib yam

Txhua lub LED ntawm lub zog tag nrho tsuas yog tsim raws li qhov tshwj xeeb txog 0.4 lumens (~ 1/1000 ntawm 40W lub teeb roj teeb). Kuv yuav siv tsuas yog 150 LEDS thiab cia siab tias yuav tau txais lub teeb pom kev zoo ntawm lub teeb hmo ntuj, yog li kuv txiav txim siab suav nrog ib qho E27 teeb pom kev zoo ib yam uas raug kaw los ntawm Arduino thaum pib teeb pom kev zoo LED.

Muab nws tag nrho ua ke

Rau cov kauj ruam no koj yuav xav tau cov built-in Hlau thiab IRLib cov tsev qiv ntawv. Txuas txhua yam raws li cov txheej txheem txuas (koj tuaj yeem tso lub hwj chim txuas nrog rau qhov hluav taws xob 220V ib txwm rau tam sim no) thiab xa ob daim duab txuas txuas rau saum lub rooj tsavxwm hauv cov txheej txheem yog I2C qhev, thaum lub hauv qab pawg thawj coj yog I2C tus tswv. Yog tias koj siv lwm qhov chaw sib txawv dua li Khawv koob Teeb Pom Kev Zoo Kuv tau siv, tawm ntawm cov duab kos hauv hom DEBUG, thiab qhib Serial saib ntawm I2C tus tswv (IR lub rooj txais tos). Daim ntawv qhia koj cov nyees khawm nyob deb 'cov lej (ntxiv 0x yog tias tsim nyog) thiab hloov qhov thaiv uas muaj cov lej lej hex hauv I2C qhev kos duab.

Kauj Ruam 4: Kov Kawg

Kov Kawg
Kov Kawg
Kov Kawg
Kov Kawg
Kov Kawg
Kov Kawg

Customizing koj cov chaw tswj chaw taws teeb

Kuv nyiam cov teeb pom kev zoo tej thaj chaw deb raws li nws tau cog lus, nws IR LED tuaj yeem khoov rau koj tus txais thiab qhov tseem ceeb tshaj plaws - nws yooj yim los kho nws qhov tsos raws li hauv qab no:

  1. Siv lub yees duab ncaj qha ntawm koj lub chaw taws teeb, tso koj lub koob yees duab kom siab dua nws (tsis txhob qaij)
  2. Muab nws tso rau hauv PowerPoint lossis Inkscape (Kuv Siv inkscape, txuas kuv tus qauv tsim ua.svg cov ntaub ntawv), ntsuas tus tswj hwm qhov siab/ dav nrog tus pas ntsuas, hloov kho kom haum qhov ntev me me hauv nti.
  3. Kos koj tus txheej txheem tswj, siv daim duab ua tus qauv. Thaum ua tiav tshem tawm daim duab qub los ntawm hauv qab.
  4. Luam tawm, txiav thiab kab xev saum daim duab los thawj.

Raws li koj tuaj yeem pom hauv cov duab txuas, Kuv kuj tau nyiag lub LED tawm thiab qhia nws mus rau tus txais, uas yog qhov tseem ceeb rau qhov ua haujlwm. Lub hau sab saum toj yog ua los ntawm cov duab los qhia yog li kuv pried nws maj mam nrog tus ntsia hlau, txiav ib lub duab plaub me me ntawm sab saud thiab khoov lub LED. Kuv mam li txhawb lub teeb liab qee qhov ntxiv los ntawm kev muab cov ntawv txhuas lub khob hliav qab rau nws, uas tseem txhim kho kev ntseeg tau.

Dai lub teeb ntawm lub qab nthab

  1. Laum ib lub qhov ntawm lub raj txhuas qhov chaw rau 3 xov hlau (5V, Cov Ntaub Ntawv, GND) txuas cov hlua rau Arduino.
  2. Ntxig cov xov hlau hla lub qhov thiab rub lawv los ntawm ib sab ntawm lub raj.
  3. Thawb lub bar hla nruab nrab ntawm 3 lub teeb, siv zip txuas lossis ib qho nplaum uas koj xav kho qhov teeb tsa no.
  4. Txuas 5V, GND xov hlau dai ntawm lub raj sab mus rau LED sawb nrog Jack txuas. Kuv pom zoo siv Jack thib ob rau Cov Ntaub Ntawv Xov Xwm, yog li lub teeb tuaj yeem txuas tau yooj yim rau kev debugging thiab lwm yam.
  5. Txuas lwm qhov kawg ntawm cov xov hlau mus rau Arduino thiab lub zog xa khoom
  6. Dai lub teeb los ntawm aluminium bar siv ob txoj hlua nuv ntses ntawm txhua qhov kawg (qhov no tiag tiag nyob ntawm koj lub teeb teeb tsa uas twb muaj lawm …). Cov txiaj ntsig yuav tsum zoo ib yam li daim duab.

Pom zoo: