Cov txheej txheem:

Low-Poly Iron Man With Wifi-Controlled LED Strips: 8 Kauj Ruam (nrog Duab)
Low-Poly Iron Man With Wifi-Controlled LED Strips: 8 Kauj Ruam (nrog Duab)

Video: Low-Poly Iron Man With Wifi-Controlled LED Strips: 8 Kauj Ruam (nrog Duab)

Video: Low-Poly Iron Man With Wifi-Controlled LED Strips: 8 Kauj Ruam (nrog Duab)
Video: Npawg Xeeb thiab Maiv Xis part2 Dab neeg Dab 4/28/2020 2024, Hlis ntuj nqeg
Anonim
Low-Poly Iron Man Nrog Wifi-Tswj LED Sawb
Low-Poly Iron Man Nrog Wifi-Tswj LED Sawb
Low-Poly Iron Man Nrog Wifi-Tswj LED Sawb
Low-Poly Iron Man Nrog Wifi-Tswj LED Sawb
Low-Poly Iron Man Nrog Wifi-Tswj LED Sawb
Low-Poly Iron Man Nrog Wifi-Tswj LED Sawb
Low-Poly Iron Man Nrog Wifi-Tswj LED Sawb
Low-Poly Iron Man Nrog Wifi-Tswj LED Sawb

Daim duab phab ntsa sib tham sib no yog kwv yees li 39 "siab thiab 24" dav. Kuv laser txiav ntoo ntawm Clemson University's Student Makerspace, tom qab ntawd kuv tau pleev xim txhua daim duab peb sab thiab teeb lub teeb nyob tom qab ntawm nws. Cov lus qhia no yuav taug kev li cas kuv ua daim ntawv qhia meej no, vam tias lub tswv yim ntawm nws yuav txhawb lwm tus los ua lawv tus kheej yam khoom tshwj xeeb. Nws siv ESP8266 microcontroller nrog qhov chaw nyob WS2812B LED sawb teeb thiab ib txwm RGB LED sawb teeb.

Cov Khoom thiab Cov Khoom

  • 1/4 "ntoo - 40" los ntawm 28 "(Max qhov ntev rau peb lub tshuab txiav laser)
  • 1/8 "acrylic opaque - TAPPlastics (Kuv siv Teeb pom kev dawb, 69%)
  • Roj teeb pob - TalentCell 12V/5V roj teeb pob (Kuv siv 12V/6000mAh pob)
  • RGB LED sawb - 6ft ish (Txuj 4 xaim, 5050 version qhov twg lub teeb RGB yog txhua qhov hauv ib qho qauv)
  • TIP122 transistor rau PWM tswj ntawm ntau lub teeb
  • WS2812B LED sawb - 2ft ish (Kuv siv cov ntawv nrog 144 LED ib lub 'meter')
  • ESP8266 NodeMCU microcontroller
  • Khoom tseem ceeb 22 ntsuas cov kab txuas txuas (txuas 1 - txuas 2 - txuas 3 - txuas 4)
  • Qee qhov 300Ω ish resistors
  • Txhuam txhuam
  • Xim - Kuv feem ntau siv Paj Ntaub Hwm xim. Cov ncauj lus kom ntxaws hauv kauj ruam

Cov cuab yeej

  • Nkag mus rau lub tshuab txiav laser (Kuv siv ib ntawm Clemson)
  • Soldering hlau
  • Phom phom kub (qhov no yog qhov tseem ceeb)
  • Hlau txiav/strippers
  • Tsev av Illustrator
  • Ua siab ntev

Kauj ruam 1: Tsim hauv Illustrator

Tsim hauv Illustrator
Tsim hauv Illustrator
Tsim hauv Illustrator
Tsim hauv Illustrator

Lub hauv paus duab yog qhov piv txwv los ntawm William Teal, thov muab nws cov ntaub ntawv pov thawj saib rau lwm yam haujlwm zoo los ntawm nws: https://www.behance.net/tealeo93 (Kuv xav tias nws yog nws - Kuv ua raws kab laum ntawm GoogleImages, Pinterest, GraphicDesignJunction, Txhim Kho)

Kuv pom cov duab los ntawm google tshawb rau "Low-Poly Iron Man" lossis "Geometric Iron Man Wallpaper". Kuv rub daim duab thiab qhib nws hauv Adobe Illustrator.

Tom ntej no, Kuv tau siv tus cwj mem hauv Illustrator los kos tus kheej hla txhua kab hauv daim duab. Kuv tau ua qhov no kom lub tshuab txiav laser tuaj yeem kos tag nrho cov kab sab hauv raws li cov duab txiav txiav rau lub zog qis es tsis tas yuav tsum raster hla tag nrho cov duab. Nws siv ob peb teev los ua (aka txog 3 lub sijhawm kawm hauv tsev kawm ntawv)

Thaum daim duab tau hais tseg tag nrho kuv tau faib txhua txoj kab no ua ke thiab tom qab ntawd kos duab rau ntawm txhais tes, hauv siab, thiab qhov muag. Kuv muab tag nrho cov no tso ua ib pawg thiab teeb lawv cov xim kom xiav zoo li kuv tuaj yeem qhia lawv sib nrug. Kuv theej cov ntawv ntawd mus rau ib qho ntawv cais rau acrylic txiav.

Rau cov acrylic ib feem kuv xav ua kom tau txais txiaj ntsig zoo tshaj plaws ntawm kuv daim acrylic yog li kuv tau muab tso rau hauv lub vev xaib no https://svgnest.com/ thiab muab cov ntaub ntawv tso nrog tsuas yog txiav cov acrylic txiav thiab cia nws "zes" ntu. Qhov no siv qee qhov rov ua dua thiab cov txheej txheem txias los txiav txim siab qhov ua tau zoo tshaj plaws ntawm koj qhov chaw ntawm daim ntawv kom txo qis. Nws tso tawm cov teeb tsa uas yog hauv IronManAcrylic.ai cov ntaub ntawv.

Kauj Ruam 2: Txiav Laser

Image
Image

Ua ntej txiav ntoo Kuv tsuag xim nws nrog primer thiab tom qab ntawd maj mam txhuam nws kom pib nws du. Kuv tau ua qhov no kom cov xim tom qab yuav tsum tawm los zoo ib yam.

Thaum kuv txiav cov qauv qhia txhua txoj kev hla ntoo kuv siv 100% lub zog 6% nrawm (kuv xav) ntawm peb 60W Epilog Fusion M2 40 hauv Clemson Makerspace. Qhov no ua haujlwm rau feem ntau ntawm nws, tab sis ntoo tau nrawm heev nyob rau hauv ib ces kaum kuv thiaj li tau rov tsom mus rau lub laser rau lub ces kaum thiab khiav qhov ntawd ntawm kev txiav dua.

Txij li thaum kuv tseem tau kos kab rau txhua sab hauv peb tog, Kuv kuj tseem tuaj yeem siv cov duab txiav kom nrawm rau tag nrho cov kab ntawd raws li qhia hauv video saum toj no. Qhov no tau nrawm dua li nws yuav tau raster etch cov ntawv. Kuv xav tias kuv siv 70% nrawm thiab 50% lub zog - koj tsuas yog yuav tsum tau sim txawm hais tias.

1/8 acrylic kuv xub txiav ntawm 100% lub zog thiab 8% nrawm uas yog qhov muaj zog me ntsis thiab tso qee qhov cim tseg ntawm qhov tsis tau tiv thaiv acrylic, yog li ntawd kuv tau ua nws ntawm 14% nrawm thiab nws ua haujlwm zoo li ntxim nyiam.

Kauj Ruam 3: Xim Xim

Painting
Painting
Painting
Painting
Painting
Painting

Yog li Ntau. Painting. Kuv xav kwv yees nws yog kwv yees li 20 teev ntawm kev pleev xim.

Yog tias koj tab tom xav txog kev ua ib qhov project nrog ntau daim duab peb sab li no, thov tsis txhob pleev xim koj tus kheej. Tsuas yog them nyiaj kom tau daim duab luam tawm ntawm hlau lossis ntoo thiab tom qab ntawd txiav tawm, lossis muab nws luam tawm ntawm lwm yam thiab lo cov ntawv ntawd mus rau qee yam khoom. Tsuas yog tsis txhob pleev xim koj tus kheej tshwj tsis yog koj nyiam pleev xim.

Kuv siv FrogTape cov neeg pleev xim kab xev kom piav qhia txhua daim duab peb sab ntawm daim ntawv thaum kuv pleev xim qhov no. Qhov no ua rau kuv muaj txiaj ntsig zoo dua li qhov kuv tau sim ua ntej ntawm txhua daim duab peb sab los ntawm txhais tes yam tsis muaj daim kab xev ciam teb.

FrogTape muab cov kab uas nkig ntau dua li cov xim pleev xim dawb lossis xiav. Koj lub sijhawm thiab tsis muaj txiaj ntsig yog qhov tsim nyog ntxiv $ 2/yob kab xev. Yog tias koj xav kom nws tawv dua koj tuaj yeem siv rab riam kom txiav ob peb txheej saum toj kawg nkaus ntawm kab xev rau hauv txawm tias ib daim kab xev me me kom thaum koj qhia txog ib daim duab peb sab nws tsis npog li ntau daim duab peb sab nyob sib ze.

Kuv pheej yig thiab tsis muaj kev paub ntau txog kev pleev xim yog li kuv siv 2 oz fwj xim ntawm Michael lossis Hobby Lobby. Kuv pom tias Craft Smart Premium kab tau npog zoo heev, thiab xaus rau siv CraftSmart Premium Metallic Festive Liab xim sib xyaw dawb lossis xim dub kom ua 95% ntawm kuv cov xim liab. Daj tsuas yog Craft Smart hwm daj, nrog kub me ntsis pov rau hauv raws li kev sim ua kom nws ci me ntsis.

Yog tias koj paub ntawm pheej yig -ish xim uas npog zoo dua - thov qhia rau kuv paub hauv cov lus !! Kuv feem ntau yuav tsum tau ua ob lub tsho xim kom tsis muaj xim dawb hauv qab yuav qhia tawm, thiab kuv xav muaj qee cov xim zoo nkauj uas yuav zam qhov ntawd.

Thaum nws tau pleev xim tag nrho (tab sis ua ntej gluing hauv daim acrylic) Kuv tau siv lub ntsej muag ci ntsa iab kom tiv thaiv cov xim thiab ua rau nws ci tag nrho.

Kauj Ruam 4: Acrylic Pieces thiab Acrylic Backlights

Acrylic Pieces thiab Acrylic Backlights
Acrylic Pieces thiab Acrylic Backlights
Acrylic Pieces thiab Acrylic Backlights
Acrylic Pieces thiab Acrylic Backlights
Acrylic Pieces thiab Acrylic Backlights
Acrylic Pieces thiab Acrylic Backlights
Acrylic Pieces thiab Acrylic Backlights
Acrylic Pieces thiab Acrylic Backlights

Muab cov ntawv acrylic ua qhov nyuaj me ntsis vim tias kuv lub rooj ua haujlwm/lub rooj thiab cov ntoo yog ob qho ua rau me ntsis, yog li tsis muaj txoj hauv kev kuv tuaj yeem lav tau tias nws yuav nyob tiaj tus ntev txaus rau kuv cov epoxy teeb tsa. Raws li kev daws teeb meem, Kuv nias ntoo mus rau ntawm lub rooj ze ntawm daim acrylic kuv tau lo rau hauv thiab thawj zaug siv cov kua nplaum kub los tuav txhua daim acrylic nyob hauv qhov chaw. Cov kua nplaum kub tau pom los ntawm sab xub ntiag ntawm cov acrylic, yog li kuv mam li siv Gorilla Glue ob ntu epoxy thov nrog tus txhuam hniav kom tuav cov khoom acrylic tas mus li. Kuv tau rov qab los nrog cov pliers me me thiab txiav tawm qhov qub cov kua nplaum kub.

Kuv tau ua lub teeb cais cais rau txhua daim acrylic. Ua ntej kuv txiav ib daim ntawm 1/4 pawg ua npuas ncauj dub rau qhov me me loj dua qhov tsim nyog thiab kos tus qauv ntawm daim acrylic ntawm nws. thaj tsam.

Cov kauj ruam no yuav ua tau zoo dua nrog lub rooj tsav xwm tsim qauv thiab qee qhov txuas ntsia hlau, tab sis kuv tsis muaj cov nyob ntawm tes thaum kuv tau npaj pib txuas nws. Raws li kev daws teeb meem, Kuv txiav qee tus poj niam lub taub hau tus lej txuas rau 4 lub tswv yim - Hauv av, 5V hauv, cov ntaub ntawv hauv, cov ntaub ntawv tawm. Kuv kub-glued tus poj niam header sawb rau lub rooj ua npuas ncauj thiab pib siv tag nrho cov teeb ua ke.

Kev siv tshuaj yaj yeeb yog qhov nyuaj tiag tiag vim tias cov pawm me me tau tsawg npaum li cas. Luckily Kuv muaj ob txoj hauv kev rau txhua lub hwj chim thiab cov ntaub qhwv hauv av vim tias txhua txoj hlua tuaj yeem muab lub zog rau ob qho kawg. Kuv tso tawm cov kab xev kom cov ntaub ntawv xov hlau ntws hauv cov qauv nab. Kuv siv cov hlau txuas nrog qhov ntsuas kub tau hloov pauv thiab kuv tau pom tias kuv nyiam qhov kub kom nyob rau qhov kawg ntawm qhov ntau ntawm cov xim ntsuab - Kuv tej zaum nyiam nws kub vim tias cov hlau txuas kuv tau siv rau xyoo yog pheej yig thiab tsis muaj qhov ntsuas kub. thiab khiav kub.

Thaum txhua yam tau muab muag rau, Kuv tau siv rab riam tshwj xeeb (nrog rab riam tshiab) los txiav cov kab ntawm lub rooj ua npuas ncauj kom kaw lub teeb thiab txo cov ntshav los. Kuv siv dawb siv dub vim tias kuv muaj cov kab ntev ntawm nws thiab qhov tseeb nws yog qhov zoo vim tias nws tso cai rau kuv pom yooj yim los ntawm sab nraub qaum yog tias ntu ntawm LED strips tau qhib thaum lub sijhawm ntsuas cov kab txuas nws tag nrho.

Kauj Ruam 5: Qhov seem ntawm Cov Khoom Siv Hluav Taws Xob

Qhov seem ntawm Electronics
Qhov seem ntawm Electronics
Qhov seem ntawm Electronics
Qhov seem ntawm Electronics
Qhov seem ntawm Electronics
Qhov seem ntawm Electronics

Kuv ib txwm sim xaim kuv cov phiaj xwm los ntawm kev tso thawj lub hwj chim nkag, tom qab ntawd tus tswj hwm, tom qab ntawd lwm lub rooj tsav xwm thiab cov khoom siv ib puag ncig. Kuv kub glued lub roj teeb pob nyob rau hauv qhov chaw thiab tom qab ntawd tau faib qhov sib txuas DC jack cable kom cov khoom siv them tau yooj yim nkag los ntawm ntug ntawm txoj haujlwm kom yooj yim them. Lub roj teeb tau los nrog cov kab hluav taws xob sib cais thiab cov lus qhia hais tias nws zoo rau them lub roj teeb pob thaum nws siv.

Kuv cannibalized pheej yig micro-usb cable thiab hloov micro USB kawg nrog DC chim jack yog li kuv tsuas tuaj yeem siv 5V cov tswv yim. Kuv muab 5V rau ntawm ib txoj kab tsheb nqaj hlau ntawm lub khob cij thiab rau hauv ESP8266 Vin tus pin, tom qab ntawd nkag mus rau hauv av tsheb nqaj hlau thiab tus pin hauv av ntawm ESP8266 (txhua thaj chaw yuav tsum tau txuas ua ke sab hauv hauv tus tswj hwm nws tsis muaj teeb meem dab tsi))

Txheem RGB LED strips raug tswj los ntawm PWM teeb liab los ntawm tus tswj. Txawm li cas los xij, microcontrollers tsuas tuaj yeem muab 20mA-50mA ntawm tus lej tam sim no nyob ntawm tus tswj. Txhua lub LED hauv kab txaij yuav tsum nyob ib puag ncig lub zog ntawd, yog li peb yuav tsum siv qee hom transistor los tswj cov kab txaij. Ob peb qhov chaw uas tshwm ntawm google tshawb fawb qhia tias TIP122 transistor uas tuaj yeem hloov 5 amps lossis 40W ntawm lub zog - ntau dua li txaus rau peb daim ntawv thov. Lawv tsis tau tsim tiag tiag kom haum rau hauv daim ntawv qhia zaub mov, tab sis yog tias koj tig txhua lub xov hlau ib sab 90 ° ces nws yuav haum rau hauv lub khob cij. Kuv tau npaj ua ntej kom ntswj lub rhaub dej me me rau txhua tus, tab sis tom qab qee qhov kev sim kuv txiav txim siab tias lawv tsis kub txaus rau nws kom tsim nyog. Kuv xaim txhua lub transistor nkag mus rau tus pin ntawm ESP8266 tau xaiv rau PWM tso tawm

RGB LED strips uas kuv tau tshwm sim kom muaj "dej tiv taus" roj hmab txheej, thiab vim li ntawd yuav tsis nyob nrog cov ntoo ib yam li kuv xav tau. Raws li kev daws teeb meem, Kuv txiav daim me me ntawm lub rooj ua npuas dej thiab ua cov nplaum ua npuas rau ntawm cov ntoo thiab tom qab ntawd lo rau LED kab txaij rau cov ntawd.

Kauj Ruam 6: Txheej Txheem Txheej Txheem

Txoj haujlwm no siv ntau lub tsev qiv ntawv kom nws tuaj yeem tswj tau los ntawm lub xov tooj app hu ua Blynk, qhib/tua los ntawm Amazon Echo, thiab cov cai tuaj yeem hloov kho dua wifi. Qee lub tsev qiv ntawv siv nyob hauv qab no

Blynk -

Blynk yog qhov kev pabcuam uas tso cai tswj tau yooj yim ntawm ESP8266 microcontroller thiab lub xov tooj tuaj yeem tsim kho tau. Lub xov tooj app tso cai rau koj los tsim daim ntawv thov nrog cov nyees khawm, swb, RGB xim xaiv, thiab ntau ntxiv. Txhua "widget" hloov pauv tus nqi uas tuaj yeem rub los ntawm Blynk app thaum twg koj ua haujlwm qee yam.

OTA (Tshaj Huab Cua) Hloov Kho- lub tsev qiv ntawv tsis suav nrog ESP8266

Alexa Wemo Emulator-https://github.com/witnessmenow/esp8266-alexa-wemo…

Ua kom yuam kev Amazon Echo xav tias koj txoj haujlwm yog Wemo hloov lub teeb. Txoj cai tso cai rau koj los txheeb xyuas lub luag haujlwm kom ua haujlwm thaum Alexa xa qhov "qhib rau" teeb liab thiab cais ua haujlwm rau lub teeb liab tua. Koj tuaj yeem ua raws ntau yam khoom siv (txog 10) nrog tus tswj hwm ib leeg uas tso cai yooj yim dua. Kuv tus lej tau teeb tsa kom Echo pom ob lub cuab yeej hu ua "Iron Man" thiab "Night Light". Lawv yog ob txoj haujlwm no thiab tus tswj hwm no, tab sis yog tias kuv qhib "Hmo Hmo Hmo" nws yuav ua haujlwm nrog lub teeb dawb tsaus, qhov twg raws li tig rau "Iron Man" teeb sab nrauv LED kab rau xim liab thiab daim acrylic rau dawb.

Arduino kho hauv Visual Studio siv vMicro

Kuv tau siv Visual Studio ntawm kev ua haujlwm rau ob peb lub hlis tam sim no thiab kuv nyiam txhua yam cuab yeej ua tiav uas nws tau tsim hauv, yog li tom qab qee qhov tshawb nrhiav kuv pom tias kuv tuaj yeem siv Visual Studio hloov ntawm Arduino IDE ib txwm muaj. Ib lub khoos phis tawj vMicro daim ntawv tso cai raug nqi $ 15 rau cov tub ntxhais kawm, uas hauv kuv lub tswv yim yog qhov tsim nyog nws yog tias koj yuav siv sijhawm ntau dua li ob peb teev teev programming Arduino code.

FastLED vs Neopixel

Kuv siv FastLED hauv kuv cov phiaj xwm yooj yim vim tias kuv pom ntau lub luag haujlwm online twb tau ua rau nws, thiab ntawm qhov no kuv tau ua ntau txoj haujlwm siv nws yog li kuv muaj ntau tus lej los siv dua. Kuv paub tseeb tias Neopixel lub tsev qiv ntawv yuav ua haujlwm zoo ib yam yog tias koj ua haujlwm txaus. Kuv tab tom npaj tso tag nrho kuv cov kev cai ua haujlwm ntawm GitHub rau lwm tus neeg siv, Kuv tsuas yog tsis tau mus txog nws.

Kauj Ruam 7: Lub Tswv Yim Qhia Ntawv

Cov Qauv Tag Nrho

Kuv yog tus tswj kev tswj hwm ntawm kuv txoj haujlwm thiab peb feem ntau siv cov qauv ntawm lub program hu ua PLC programming. Hom no zoo ib yam li Arduino vim tias nws muaj lub voj uas ua haujlwm tas li txhua ob peb lub vib nas this thiab cuam tshuam nrog kev nkag/tawm, dhia ntawm qhov sib txawv "xeev" hauv txoj cai. Piv txwv li, txoj cai yuav tsoo ib kauj ruam cuam tshuam nrog tus thauj khoom qhov twg yog tias muaj lub tais rau ntawm lub tshuab thauj khoom nws yuav txuas mus rau lub xeev 45, tab sis yog tias tsis muaj lub tais nws yuav txuas mus rau lub xeev 100. Qhov kev tsim qauv no tau tshoov kuv lub siab, txawm hais tias Kuv tau ua qee qhov kev hloov pauv kom kuv tsuas tuaj yeem nyeem kab ntawv tsis yog lub xeev tus lej.

Kuv siv lub ntiaj teb sib txawv (commandString) txhawm rau taug qab seb lub teeb pom kev zoo li cas hauv txoj haujlwm yog nyob rau hauv. Yog li thaum koj nias lub pob "Classic mode" ntawm Blynk kuv tus lej yuav teeb tsa ua qhov tsis raug (yog li nws tawg tawm ntawm qhov ua haujlwm tam sim no) thiab teeb tsa lo lus txib rau "RunClassic". Txhua qhov haujlwm tas li tshuaj xyuas cov tswv yim los ntawm Blynk, Alexa, thiab OTAUpdate los ntawm kev ua haujlwm "CheckInput".

Ntiaj teb Variables

Kuv siv kev hloov pauv thoob ntiaj teb txhawm rau taug qab qee qhov teeb tsa hauv kuv qhov project. Cov kev hloov pauv no tau pib ua ntej kuv teeb tsa tus lej, uas ua rau lawv nkag tau mus rau txhua txoj haujlwm hauv kuv cov cai.

  • ntiaj teb no ci ntsa iab (0-255)
  • globalSpeed - qhov ua kom nrawm ntawm txhua qhov ua haujlwm muaj suab npe. Txoj haujlwm no tsuas muaj cov nag ploj mus
  • globalDelayTime - FastLED xav tau kwv yees li 30 microseconds los sau cov ntaub ntawv rau txhua tus LED, yog li kuv teeb qhov sib txawv no rau NUM_LEDS * 30 /1000 + 1; tom qab ntawd ntxiv ncua sijhawm (globalDelayTime) tom qab feem ntau kuv ua FastLED.show () yog li cov lus txib tsis cuam tshuam.
  • _r, _g, _b - thoob ntiaj teb RGB qhov tseem ceeb. Txoj kev ntawd cov xim sib txawv cov nyees khawm tuaj yeem hloov pauv thoob ntiaj teb r/g/b qhov tseem ceeb thiab txhua tus hu tib txoj haujlwm thaum kawg

Arduino OTA hloov kho lub npe npe

Nws coj kuv mus rau qhov tsis txaus ntseeg ntawm kev tshawb fawb txog thaum kuv xam tawm yuav ua li cas rau npe lub maub los siv qhov tshaj tawm huab cua hloov tshiab. Cov lus cia li suav nrog kab no hauv ntu teeb tsa ntawm koj cov cai ua ntej "ArduinoOTA.onStart (" -

ArduinoOTA.setHostname ("IronMan");

vMicro nrog Visual Studio cov lus qhia

Qee zaum pom lub studio yuav pom qee qhov teeb meem nrog cov ntaub ntawv sib sib zog nqus zoo li tus qauv C ++ cov ntaub ntawv thiab pov qee qhov yuam kev. Sim toggling hom sib txawv ntawm cov lus yuam kev rau/tawm kom txog thaum koj tsuas yog muaj qhov yuam kev nrog koj li phiaj xwm qhib thiab tsis muaj cov ntaub ntawv txhawb nqa. Koj kuj tseem tuaj yeem qhib cov cai hauv Arduino IDE thiab pom tias nws yuav suav sau nyob rau ntawd lossis yog nws yuav muab cov lej yuam kev pab tau ntau dua.

FastLED

Qhia kuv yog tias Cov Lus Qhia no tau tshwm sim ntau dua li ob peb lub lis piam thiab kuv tseem tsis tau txiav txim siab yuav ua li cas tso kuv li kev cai ntawm GitHub.

FastLED tau teev tseg tias ua tau zoo nrog ESP8266, tab sis tus lej txhais cov ntsiab lus yuav tsis raug. Hauv cov ntaub ntawv rau FastLED nws hais tias koj tuaj yeem sim suav nrog ib ntawm cov kab hauv qab no ua ntej #suav nrog

  • //#txhais FASTLED_ESP8266_RAW_PIN_ORDER
  • //#txhais FASTLED_ESP8266_NODEMCU_PIN_ORDER
  • //#txhais FASTLED_ESP8266_D1_PIN_ORDER

Txawm li cas los xij, Kuv tau sim tag nrho peb qho thiab tsis tau muaj tag nrho kuv cov pins sib phim. Tam sim no kuv tab tom siv kab kawg thiab tsuas yog lees paub tias thaum kuv qhia FastLED siv tus pin D2 nws yeej siv tus pin D4 ntawm kuv tus tswj.

Txawm hais tias kuv lub teeb tsuas yog qhov pheej yig suav suav ntawm Neopixels, Kuv tseem qhia FastLED los kho lawv li Neopixels hauv kev teeb tsa

  • FastLED.addLeds (leds, NUM_LEDS);
  • FastLED.setCorrection (TypicalLEDStrip);
  • //FastLED.setMaxPowerInVoltsAndMilliamps(5, maxMilliamps); // Pab tau rau cov haujlwm siv roj teeb
  • FastLED.setBrightness (thoob ntiaj teb Bright);

Kauj Ruam 8: Cov Khoom Kawg

Khoom Kawg
Khoom Kawg
Khoom Kawg
Khoom Kawg
Khoom Kawg
Khoom Kawg

Ta-dab!

Xav tias tawm tswv yim lossis email rau kuv cov lus nug - Kuv nyiam cov khoom no thiab xav pab lwm tus neeg ua cov phiaj xwm txias. Txheeb xyuas kuv lub vev xaib rau qee qhov haujlwm uas kuv tau ua thiab qee qhov kuv yees duab: www.jacobathompson.com

Pom zoo: