Cov txheej txheem:

App-controlled Alphabet Board Inspired by Stranger Things: 7 Kauj Ruam (nrog Duab)
App-controlled Alphabet Board Inspired by Stranger Things: 7 Kauj Ruam (nrog Duab)

Video: App-controlled Alphabet Board Inspired by Stranger Things: 7 Kauj Ruam (nrog Duab)

Video: App-controlled Alphabet Board Inspired by Stranger Things: 7 Kauj Ruam (nrog Duab)
Video: Night 2024, Hlis ntuj nqeg
Anonim
App-tswj Alphabet Board tau tshoov siab los ntawm Yam Tsis Zoo
App-tswj Alphabet Board tau tshoov siab los ntawm Yam Tsis Zoo

Qhov no tau pib ob peb lub lis piam dhau los thaum sim txiav txim siab yuav ua li cas kom tau kuv tus ntxhais xeeb ntxwv cuaj xyoo rau Christmas. Thaum kawg kuv tus nus qhia kuv tias nws yog tus kiv cua loj ntawm Cov Neeg Tsis Txaus Siab. Kuv tam sim paub tias kuv xav tau nws li cas, ib yam dab tsi uas dai rau ntawm phab ntsa nrog Christmas teeb thiab ntawv uas nws tuaj yeem sau ua kab lus tsis raug. Koj puas yuav tsis paub nws, tsis muaj leej twg ua qhov zoo li no … Kuv pom ntau qhov suav nrog ntawm phab ntsa nrog cov ntawv pleev xim thiab ib txwm-rau Christmas teeb. Kuv pom ntau qhov me me ntawm qhov qub. Kuv pom tsuas yog ob peb txoj haujlwm siv microcontrollers (Arduinos) thiab cov lus qhia LEDs los ua cov kab lus tseeb, tab sis txhua tus zoo li vam khom cov kab lus nyuaj hauv micro software. Tsis muaj dab tsi zoo li qhov kuv muaj hauv kuv lub taub hau. Yog li txoj haujlwm rudLights Alphabet Board tau yug los.

RudLights Alphabet Board, lossis rudLights luv luv, kuj tseem siv Arduino thiab cov chaw nyob LEDs los qhia kab lus ntawm kab "Christmas teeb." Txawm li cas los xij, nws tseem ua rau siv tus txais Bluetooth pheej yig thiab ib qho kev cai hauv app uas tus neeg siv, kuv tus ntxhais, tuaj yeem siv los qhia txhua kab lus nws xav xa nws los ntawm nws lub ntsiav tshuaj (Amazon Hluav Taws hauv qhov no).

Nyeem rau kom paub meej cov ntsiab lus ntawm yuav ua li cas kuv ua qhov no raws li kuv tam sim no ua tus thib ob rau kuv tus kheej lub tsev. Kuv tsis tau txais tag nrho ntau ntawm cov duab lossis cov ntaub ntawv raws li kuv tau ua thawj, ntxiv rau tam sim no kuv xav tau ib qho hauv kuv tus kheej chav nyob. Ua raws nrog yog tias koj xav tsim ib qho rau koj tus kheej. Txog qhov kawg ntawm Cov Lus Qhia no cov cai tsim nyog yuav muaj nyob hauv daim ntawv tso cai tshaj plaws uas kuv tuaj yeem ua tau, tej zaum GPLv3 nws zoo li.

Kauj Ruam 1: Yam Yuav Tsum Tau Ua

Yam Tsim Nyog
Yam Tsim Nyog
Yam Tsim Nyog
Yam Tsim Nyog

Daim ntawv teev npe rau rudLights yog qhov yooj yim zoo nkauj. Kuv yuav tsum tau yuav LEDs, kuv xav tau 26 tab sis tsuas muaj tsib ntawm tes. Hmoov zoo kuv pom 100 pob ntawm WS2812B PCBs ntawm Amazon rau tsuas yog kaum tsib bucks. Qhov nyuaj tshaj plaws los ntawm qhov chaw yog qee yam kom dhau mus rau cov duab tsis zoo los ntawm cov yeeb yam. Kuv tus tub thiab kuv thaum kawg pom qee yam hauv seem ntawv scrapbooking ntawm JoAnn's uas ua haujlwm tau zoo. Nov yog cov npe khoom kuv siv thiab nws yog dab tsi. Thaum ua tau kuv mam li txuas mus rau qhov yuav khoom. Kuv yuav tsis siv ib qho kev koom nrog txuas, txawm hais tias lawv yog Amazon Smile txuas thaum ua tau.

Yam Uas Xav Tau

  • 26+ qhov chaw nyob LEDs (aka NeoPixels) - 100 rau $ 15 ntawm Amazon (Kuv tsis paub yog vim li cas lawv nyob hauv Cov Ntsuas Hluav Taws Xob).
  • Arduino Pro Mini - knockoffs ntawm Amazon lossis raug cai los ntawm SparkFun Tsis muaj qhov laj thawj koj tsis tuaj yeem siv qhov loj me Arduino Uno yog tias koj muaj qhov chaw.
  • HC-05 Bluetooth module-$ 8 ntawm Amazon Kuv xav txog qhov HC-06 module yuav ua haujlwm ib yam nkaus, tab sis tsis muaj lus cog tseg.
  • 5VDC 2A A/C lub zog hloov pauv - $ 7.49 ntawm Amazon
  • Cov ntaub ntawv thav duab - 8.5 x 11 nti thav duab, Kuv pom ib qho ntawm JoAnn's txog li $ 10. Koj tuaj yeem siv qhov loj me uas koj xav tau, Kuv tau xaiv ib qho loj ib yam li ntawv uas kuv lub tshuab luam ntawv tau noj.
  • Cov duab tsis zoo - Qhov tseeb 12x12 "ntawv sau ua paj ntaub hu ua" Tan Swirly Flowers "Kuv pom ntawm JoAnn Npuag & Paj Ntaub Khw. tus muag khoom "kom pom cov nplooj ntawv) YMMV
  • Ob daim ntawm vellum - Tsis tas li los ntawm JoAnn's, siv los ua diffusers los tiv thaiv qhov muag thaum pom cov LEDs.
  • 1/8 "fiber board, 8.5x11" - 24x48 "ntawv yog $ 5 ntawm Tsev Depot

Lub hauv paus

  • Voltage divider resistors - 1k7 thiab 3k3 (lossis 1k thiab 2k, lossis txawm tias 2k2 thiab 3k3) rau qib hloov pauv ntawm 5v Arduino TX tus pin thiab 3.3v BT module tus RX tus pin.
  • 220-470 Ohm resistor - Mus rau ntawm cov ntaub ntawv kab ntawm Arduino thiab thawj WS2812B LED.
  • 4 16V 1000µF capacitors - Phenomenal cosmic zog. $ 11 pob ntawm lub kaus mom ntawm Amazon
  • 20-22g xaim xaim xaim hauv 3 xim - Lub Hwj Chim, Hauv av, thiab Cov Ntaub Ntawv raws cov hlua ntawm LEDs.
  • Me me prototyping PCB - Kuv siv ib qho los tsim lub hauv paus fais fab faib khoom.
  • Ntau yam khoom cua sov -ntsws tubing - Txhawm rau npog cov resistors soldered rau hauv cov kab txuas. Tsib tus nqi ntawm Harbor Freight.

Cov cuab yeej

  • Cov hlau txiav thiab cov txiab
  • Soldering hlau thiab solder
  • Breadboard thiab hookup hlau
  • Riam riam hobby ntse (X-Acto)
  • Txiav txiag
  • Riam riam
  • Ncaj los yog square
  • Pushpin, awl, nruab nrab punch, lossis lwm yam ntse pokey yam
  • 5/16 "laum thiab qee yam kom tig nws (lub laum lub cev muaj zog, laum xovxwm, qe taub …)
  • Cov ntaub ntawv lossis cov ntawv xuab zeb
  • Ntoo nplaum (lossis kua nplaum dawb)
  • Kub nplaum phom thiab pas

Yeem yeem

  • Raspberry Pi Zero W-Kuv yuav siv qhov no ntawm kuv tus kheej rudLights Alphabet Board hloov HC-05 vim tias kuv txhua tus tawm ntawm HC-05 Bluetooth modules. Koj yuav xav tau daim npav SD rau nws ib yam.
  • 1/2 "x 3/4" x 48 "ntoo thuv stick - Siv los tsim kev txuas mus rau tom qab ntawm daim ntawv kab ntawv.
  • Xim kom phim koj tus ncej thiab txhuam (es) - Siv los zais qhov txuas ntxiv saum toj no tom qab tus ncej. Kuv siv cov xim pleev xim dub acrylic thiab txhuam ua npuas ncauj.
  • Lub thawv duab ntxoov ntxoo - Hloov ntawm daim ntawv kab ntawv, tshem tawm qhov xav tau rau lo lus txuas ntxiv saum toj no.
  • 2.1mm lub zog fais fab - $ 6 rau 5 pob ntawm Amazon. Koj tseem tuaj yeem tsuas yog txiav qhov txuas tawm ntawm lub hwj chim thiab txuas nws ncaj qha rau txoj haujlwm.
  • 3.3V Arduino thiab cov khoom siv hluav taws xob yog tias koj xav mus qis zog. WS2812B LEDs yuav tsum ua haujlwm ntawm 3.3v. Qhov no yuav tshem qhov xav tau ntawm qhov faib hluav taws xob. Ib zaug ntxiv, tsis muaj lus cog tseg.

Kauj Ruam 2: Qhov Zoo Nkauj

Qhov Aesthetic Part
Qhov Aesthetic Part
Qhov Aesthetic Part
Qhov Aesthetic Part
Qhov Aesthetic Part
Qhov Aesthetic Part

Kuv xav tias kuv tuaj yeem pom qhov screengrab lossis qee yam ntawm cov yeeb yam kom tau luam tawm ua daim duab los siv hauv tus ncej. Sim raws li kuv yuav kuv tsis tuaj yeem pom cov duab uas kuv tab tom nrhiav. Qhov no yog qhov ua rau tshawb nrhiav uas tsaws peb daim ntawv tsis txaus ntseeg. Kuv tau kuv tus tub kos cov tsiaj ntawv nrog txoj hlua ntawm lub teeb, thiab nws txiav daim 12x12 "ntawv mus rau 8.5x11" yog li nws yuav haum hauv lub tshuab luam ntawv. Tom qab ntawd kuv tau yooj yim luam cov tsiaj ntawv ncaj qha mus rau daim ntawv tsis zoo thiab tau kiddo txiav tawm txhua lub qhov muag teeb nrog rab riam X-Acto.

Yog tias koj xav mus tib txoj kev, thov koj xav kom txuag tau cov duab saum toj no, rub tawm daim duab los ntawm kuv tus neeg rau zaub mov, lossis koj tuaj yeem tau txais nws los ntawm GitHub chaw cia khoom.

Siv daim ntawv ib txwm siv ntawm lub tshuab luam ntawv, lossis zoo dua, iav los ntawm koj daim duab thav duab, teeb ib feem ntawm 12x12 "ntawv los ua 8.5x11" daim ntawv uas yuav luam cov tsiaj ntawv. Cov ntawv uas kuv siv muaj qee qhov xim ib puag ncig los ua kom nws zoo li hnav, kuv twv. Raws li qhov kuv tau txiav tawm ib feem ntawm qhov nruab nrab ntawm daim ntawv. Tom qab ntawd kuv tsuas yog siv rab riam hluav taws xob los txiav. Nco ntsoov txiav rau ntawm qhov chaw txi, tshwj tsis yog koj yog tus tswv muaj hmoo ntawm daim ntawv txiav. Tom qab kuv txiav daim ntawv siv ib daim ntawv ntawm lub tshuab luam ntawv raws li phau ntawv qhia kuv pom tias kuv lub thav duab tsuas yog me ntsis me dua 8.5x11 ntiv tes … Txhawm rau "kho" nws kuv tsuas yog muab lub iav tso rau ntawm kuv daim duab tsis zoo thiab txiav txog 1/16 "tawm ob sab nrog rab riam nyiam.

Tam sim no nws yog lub sijhawm los luam koj cov rudLights tso rau ntawm daim duab tsis zoo. Koj yuav xav paub tseeb tias koj qhia koj lub tshuab luam ntawv kom luam tawm hauv toj roob hauv pes, nrog cov npoo tau teeb tsa kom tsawg. Cov duab muaj cov qij xim, tab sis txij li lawv yuav raug txiav tawm ib qho twg koj tuaj yeem luam tawm hauv cov xim dub thiab dawb yam tsis muaj teeb meem. Kuv pom zoo kom luam nws tawm ntawm cov ntawv ib txwm tsawg kawg ib zaug kom paub tseeb tias cov chaw teeb tsa nws tawm raws li koj xav tau. Tam sim no koj tuaj yeem thauj koj cov ntawv txiav-txiav rau hauv koj lub tshuab luam ntawv thiab luam tawm daim uas yuav siv rau hauv txoj haujlwm. Tsis txhob txiav lub qhov muag tawm tam sim no, txawm li cas los xij, peb yuav ua qhov ntawd thaum kawg ntawm cov kauj ruam tom ntej.

Mus tom ntej thiab teeb tsa cov ntawv tshiab uas tau luam tawm thiab ua kom ntseeg tau tias txhua yam muaj tseeb nyob hauv txoj kev uas nws xav tau.

Kauj Ruam 3: Npaj Pawg Thawj Coj

Npaj Pawg Thawj Coj
Npaj Pawg Thawj Coj
Npaj Pawg Thawj Coj
Npaj Pawg Thawj Coj
Npaj Pawg Thawj Coj
Npaj Pawg Thawj Coj
Npaj Pawg Thawj Coj
Npaj Pawg Thawj Coj

1/8 fiberboard (hardboard, masonite, xijpeem koj xav hu nws) yog ob txhais taw los ntawm plaub ko taw raws li nws los ntawm lub khw. Kom meej meej peb yuav tsum coj nws los me me me me. Qhov zoo ntawm kev ua haujlwm nrog yam no ntawm lub rooj tsavxwm yog nws zoo li cov ntawv tuab thiab tuaj yeem txiav tau yooj yim nrog rab riam muaj txiaj ntsig. laj kab rau rab riam. Siv ob peb daim hla nrog rab riam, siv koj lub sijhawm, tsis muaj kev maj nrawm. Tshwj tsis yog tias koj yuav tsum ua tiav qhov no los ntawm Christmas thiab koj tseem tsis tau paub tias koj yuav tsum ua kom txog thaum txog lub Kaum Ob Hlis 16 … Tseem, koj cov ntiv tes muaj nqis ntau dua qhov phiaj xwm, yog li ceev faj!

Thaum koj tau txais lub rooj txiav tawm, tsoo cov npoo nrog koj cov ntawv lossis ntawv txhuam kom nws tsis ntse. Tiag tiag, cov khoom no muab cov ntawv txiav tsis zoo tshaj plaws … Tom qab ntawd ntsuas haum nws hauv koj tus ncej thiab ua cov ntaub ntawv/xuab zeb ntug raws li xav tau kom haum haum nrog tsuas yog qhov tsim nyog. Ib zaug ntxiv, siv koj lub sijhawm thiab ua kom haum rau thawj zaug. Nws nyuaj heev kom muab cov khoom ntoo rov qab rau ntawm daim uas tau txiav me me dhau.

Nyob ntawm kev tsim khoom zoo ntawm tus ncej koj tau txais koj yuav xav sim tsuas yog tig lub rooj tsavxwm ib puag ncig thiab pom yog tias nws haum rau lwm txoj kev. Kuv lub thav duab tsis yog plaub fab thiaj li ua kom yuam kev no ua haujlwm nrog qhov ua tsawg kawg. Yog tias koj pom koj tus cwj pwm zoo ib yam, nco ntsoov kos qhov kawg ntawm ob daim, nws yuav muaj teeb meem thaum nws los txog sijhawm los teeb thiab tho qhov lub qhov.

Tam sim no koj xav nqa cov ntawv ntsa uas koj luam tawm hauv cov kauj ruam kawg thiab muab tso rau saum koj daim ntawv fiberboard thiab muab nws ua kom tag nrho. Nws yuav tsum yog hais txog qhov loj me. Thaum nws tau kab, siv koj cov pokey ntse tshaj plaws txhawm rau txhawm rau los ntawm qhov nruab nrab (-ish) ntawm txhua lub teeb thiab muab qhov faib rau hauv fiberboard. Qhov kev faib tawm no yuav yog lub cim uas koj laum 5/16 qhov hauv lub rooj tsavxwm kom cov LEDs ci los ntawm. Yog tias koj twb tau txiav lub qhov muag teeb tawm ntawm daim ntawv ntsa koj tuaj yeem kwv yees qhov chaw laum lossis siv ib qho ntawm cov ntawv xeem. Kuv tau pom nws yooj yim me ntsis rau qhov muag qhov muag ntawm cov khoom no los ntawm kev kos lub voj voog me ntsis nyob ib ncig ntawm txhua qhov faib nrog tus xaum.

Lub sijhawm los ua qee cov chips. Siv cov cuab yeej laum twg los xij uas koj muaj thiab 5/16 "laum kom tso 26 qhov rau hauv pawg thawj coj saib. Kuv tus menyuam laum xovxwm yuav tsis tsoo lub qhov hauv nruab nrab … yog li kuv yuav tsum siv lwm lub tshuab ntaus nrig. Koj hais yog lawm, kuv lub qe me me yuav tsis tuav 5/16 "laum, tab sis nws yuav chuck li 9/32" zoo xwb;-) Lub qhov tshiab yuav tawg me ntsis yog li coj koj cov ntaub ntawv lossis ntawv txhuam thiab txhuam lawv cov ntug ib yam. LED yuav tsum tsuas yog haum los ntawm lub qhov kom PCB tso ncaj rau tom qab ntawm lub rooj tsavxwm.

Yog tias koj tseem tsis tau txiav cov qij tawm, tam sim no yog lub sijhawm. Tua tawm X-Acto riam thiab txiav ntoo thiab mus rau hauv nroog. Kuv tus tub hais tias txiav ib qho X duab rau hauv txhua lub teeb thiab tom qab ntawd txiav tawm cov duab peb sab uas ua haujlwm tau zoo.

Kauj Ruam 4: Muab qee Cov Sparkles tso rau hauv

Muab qee cov txim taws tso rau hauv
Muab qee cov txim taws tso rau hauv
Muab qee cov txim taws tso rau hauv
Muab qee cov txim taws tso rau hauv
Muab qee cov txim taws tso rau hauv
Muab qee cov txim taws tso rau hauv
Muab qee cov txim taws tso rau hauv
Muab qee cov txim taws tso rau hauv

Nws yog lub sijhawm los pib LED qhov kawg ntawm txoj haujlwm no. Txiav tawm 26 ntawm WS2812Bs thiab kab lawv ntawm lub rooj tsavxwm. Koj xav kom ntseeg tau tias lawv txhua tus pw ncaj. Qhov no kuj yog lub sijhawm zoo los sim lawv txhua tus zuj zus ua ntej yuav muag tag nrho pawg kom pom tias muaj ib qho yeej nyob rau ntawd. Kuv tau txuas qhov yooj yim Arduino kos duab uas tsuas yog spits tawm xim xim hauv WS2812-hais lus. Koj tuaj yeem siv lub cable servo, lossis kab xov txuas, lossis cov xaim xaim xaim uas koj yuav muaj nyob ib puag ncig txhawm rau txhawm rau ntsuas kab. Tsuas yog lo 3-pin me ntsis ntawm tus pin header rau hauv kab thiab koj tuaj yeem tuav qhov ntawd ntawm "hauv" pawm ntawm LEDs 'PCBs. Txhua LED yuav tsum teeb pom kev, thiab tsuav yog koj tsuas yog kuaj ib zaug xwb Arduino lub zog muab khoom tuaj yeem ua haujlwm tau yooj yim.

Thaum koj paub tseeb tias txhua lub LEDs tau ua haujlwm tau zoo koj tuaj yeem pib ua cov xov hlau. Kuv tsuas yog siv qee qhov qub 20 ntsuas ntsuas tso tseg hlau txuas kuv tau txais thaum Xov Tooj Cua Shack tseem nyob ib puag ncig. Koj yuav tsum ua 23 txhua qhov liab, dub, thiab ntsuab, lossis xim twg koj xav siv rau lub zog, hauv av, thiab cov ntaub ntawv. Kuv tsis muaj qhov ntev los muab qhov ntev ntawm cov xov hlau. Kuv nyuam qhuav tuav ib daim hlau ntawm ob peb LEDs thiab pib txiav pawg mus txog qhov ntev ntawd. Muaj ob peb tus nyob hauv nruab nrab uas zoo li ntev me ntsis dua li lwm tus, yog li khaws qhov muag rau qhov ntawd.

Tom qab koj cov xov hlau raug txiav mus tom ntej thiab hle me ntsis los ntawm txhua qhov kawg, tsuas yog txaus kom yaj mus rau cov pawm ntawm PCBs. Peb yuav tsis txuas H rau kuv, lossis Q rau R tam sim no. Tua qhov kawg ntawm cov xov hlau, thiab xaum cov ntaub qhwv ntawm LEDs. Tom qab ntawd npaj rau cov txheej txheem uas nyuaj rau hu nkauj lub ntsis ntiv tes thiab muab cov xov hlau txuas rau hauv PCBs. Rov ua qhov zoo li kaum ib txhiab lub sijhawm, txawm tias nws zoo li 155 thaum kawg.

Tom qab koj tau txais tag nrho peb kab uas tau muag lawm, koj yuav tso cov ntaub ntawv xov hlau ntev los ntawm H mus rau kuv, tom qab ntawd los ntawm Q rau R., yog li A, kuv, thiab R txhua tus muaj lawv tus kheej cov xov hluav taws xob. Saib daim duab thiab cov duab thiab nws yuav ua rau txhua tus nkag siab. Koj tseem yuav tso ib qho ntawm 1000μF lub kaus mom rau lwm qhov kawg ntawm txhua kab, ntawm H, Q, thiab Z, kom khaws lub zog cia rau txhua txoj hlua. (Kuv tsis tuaj yeem cog lus tias nws tsim nyog, tab sis nws paub tseeb tias tsis ua mob dab tsi.) Thaum kawg koj yuav ua lub jumper hlau los ntawm A cov ntaub ntawv hauv ncoo uas yuav mus rau Arduino. Tsuas yog siv lub jumper ib txwm thiab txiav nws hauv nruab nrab, tom qab ntawd solder R1, 220 txog 470 Ohm resistor, inline thiab npog nrog cua sov ntsws. Cov laug ib sab rau DIN ncoo ntawm thawj LED, thiab lwm qhov kawg mus rau Arduino tus pin 6 (nws tsis tas yuav yog 6, nws tuaj yeem yog tus pin tiag tiag).

Thaum koj tau txais tag nrho koj cov LEDs ua ke ua ke, thiab cov xov hluav taws xob txuas ntawm ib kawg ntawm txhua kab, thiab cov khoom sib txuas ntawm lwm qhov, nws yog lub sijhawm mus tom ntej thiab kub kua nplaum txhua yam rau hauv pawg thawj coj saib. Siv koj lub sijhawm, tsis txhob txhuam koj cov ntiv tes rau ntawm lub rooj tsavxwm. Kuv siv zoo li peb lossis plaub daim nplaum lo kom ntseeg tau tias txhua yam nyob qhov twg kuv tso nws, suav nrog txhim kho me ntsis ib ncig ntawm cov khoom siv hluav taws xob thiab cov xov hluav taws xob los ua kom muaj zog.

Koj yuav pom ob lub rooj sib txawv sib txawv hauv cov duab. Ib qho muaj Arduino Pro Mini thiab HC-05 Bluetooth module, lwm qhov muaj, zoo, tseem tsis tau muaj dab tsi. Ib qho nrog Pro Mini yog qhov uas tau mus rau kuv tus ntxhais xeeb ntxwv uas kuv tsis tau txais cov duab tsim txaus. Nws tseem yog ib qho uas tau piav qhia hauv kab ntawv txuas nrog. Qhov faib hluav taws xob uas txo qis Arduino's 5v TX mus rau HC-05's 3.3v RX tsuas yog tsim rau hauv kab uas txuas ob. Koj tuaj yeem tsuas yog kaw qhov xaim thiab txuas R2, tus tiv thaiv 1k7, hauv kab. Tom qab ntawd txuas R3, 3k3 resistor, los ntawm HC-05 kawg ntawm R2 mus rau xaim mus rau hauv av. Lossis koj tuaj yeem tsim qhov ntawd mus rau tus protoboard yog tias koj xav tau.

Lwm lub rooj tsavxwm hauv cov duab yog kuv li thiab yuav siv Raspberry Pi Zero W hloov chaw ntawm HC-05. Arduino ib qho muaj lub rooj tsav xwm faib hluav taws xob kuv khob ua ke ntawm tus tiv thaiv kab thaiv. Nws tsuas yog ob peb kab ntawm lub taub hau thiab lwm 1000µF lub tshuab hluav taws xob txuas mus rau lub zog txuas hluav taws xob. Kuv tawm tshiab ntawm lub hwj chim cable jack zoo li ntawd rau Pi version yog li kuv tsuas yog tau txais yam zoo nrog cov ntsia hlau txuas ntawm qhov kawg thiab ntsia tag nrho lub zog ua rau qhov ntawd. Kuv yuav zaum tsim lub tsev kom zoo me ntsis, thiab kuv yuav xaus ntxiv qhov 1000µF cap ib yam.

Kauj Ruam 5: Muab Nws Qee Qhov Ntsej Muag - Txoj Kev Arduino

Image
Image

Tam sim no ib feem peb txhua tus tau tos, ua rau nws ua tau ib yam dab tsi. Hmoov zoo rau koj Kuv twb tau siv ob peb hmo dhau los sau cov cai rau txoj haujlwm no. Txhua yam koj yuav tsum tau ua yog rub tawm cov ntawv zip, rho tawm nws rau koj lub khoos phis tawj qhov twg, qhib nws hauv Arduino IDE, thiab xa nws mus rau koj Arduino. Hmoov zoo rau kuv kuv yog hmo ntuj, hmo lig tsis yog qhov loj (nws yog 4 teev sawv ntxov thaum kuv sau qhov no).

Arduino qhov kawg ntawm qhov no yeej yog rau daim ntawv hauv daim nplaub tshev npe "rudLightsArduino." Cov ntaub ntawv zip uas muaj lawv tau txuas nrog cov kauj ruam no. Xwb, koj tuaj yeem tau txais nws los ntawm GitHub chaw cia khoom. Txawm li cas los xij koj txiav txim siab kom tau txais cov ntaub ntawv, ib zaug lawv nyob hauv koj lub computer qhib rudLightsArduino.ino hauv Arduino IDE. Uas yuav tsum thauj tsib lwm cov ntaub ntawv raws li tabs hauv IDE ib yam. Yog tias koj txuas koj li WS2812B LED cov ntaub ntawv tus pin rau Arduino tus pin uas tsis yog tus pin 6 koj yuav xav nrhiav kab "#define LED_PIN 6" thiab hloov 6 rau tus pin koj siv.

Tom qab ntawd koj tuaj yeem hloov mus rau lub tab uas sau tias "daVars.h" thiab nrhiav ib feem rau cov hlua nyuaj uas tau nthuav tawm ntawm lub rooj tsavxwm. Cov no yog cov kab pib nrog "const char string_X PROGMEM blah blah" ze rau saum cov ntaub ntawv. Hloov cov no raws li xav tau, tsuas yog xyuas kom lawv yog txhua tus CAPs thiab tsis muaj cov cim tshwj xeeb (zoo li lub sijhawm, tus lej, thiab lwm yam …) Qhov chaw zoo xwb.

Koj tuaj yeem ntxiv kab ntau ntxiv los ntawm kev luam kab uas twb muaj lawm, muab nws tso rau hauv qab ntawm lwm tus, thiab hloov tus lej hauv ntu "string_X ". Tsuas yog nce tus lej txhua lub sijhawm. Koj tuaj yeem kwv yees kwv yees ntau kab raws li yuav haum rau hauv Arduino lub flash cia. Cov txuj ci tseem ceeb ntawm PROGMEM ib feem txhais tau tias cov hlua no tsis yog txhua qhov khaws cia hauv RAM, lawv tau nyeem ncaj qha los ntawm lub cim xeeb flash xwb. Kuv yuav tsis nkag mus ntxiv, tab sis koj tuaj yeem kawm paub ntau ntxiv ntawm Arduino nplooj ntawv siv. Thaum koj ntxiv lossis tshem tawm kab nyob ntawd koj yuav tsum tau hloov kho ob peb ntu ib yam nkaus. Nrhiav ntu txuas ntxiv nrog "ref table rau cov hlua saum toj no" thiab ntxiv/tshem tawm "string_X" raws li xav tau los ntawm nruab nrab ntawm {kab zauv kab}. Thaum kawg, nrhiav kab "int string_count = X" thiab hloov tus lej kom yog cov hlua ntawm cov lus saum toj no. Tus lej no yog suav qhov tseeb, piv txwv li tsis pib ntawm xoom. Yog tias muaj xya "const char string_X" kab ces muab 7 ntawm no.

Tam sim no suav thiab xa cov cai rau koj Arduino. Koj yuav tsum tau txiav tawm HC-05 txhawm rau ua li ntawd raws li Bluetooth module siv tib TX/RX kab ib yam li khoos phis tawj-> Arduino cov cuab yeej tsim khoom. Tom qab tus lej tau muab tso rau, tshem tawm 'duino los ntawm lub khoos phis tawj thiab rov txuas koj li BT module.

Tam sim no koj tuaj yeem thaum kawg sib sau cov pawg uas mus rau hauv tus ncej. Cov iav ua ntej, tom qab ntawd cov duab tsis zoo nrog lub teeb txiav tawm. Tom ntej no los ob daim ntawv ntawm vellum ua lub diffuser. Kuv tau xaus ntxiv lwm txheej ntawm kev nthuav tawm los ntawm lo ib daim ntawv ntawm cov ntawv luam ntawv ib txwm nyob hauv ib yam. Thaum kawg koj tuaj yeem tso daim ntawv fiberboard puv ntawm cov khoom zoo rau hauv tus thav duab, ua kom ntseeg tau tias nws tau qhia ncaj ncees rau daim ntawv ntsa.

Dab tsi los tom ntej nyob ntawm qhov koj tau siv rau lub thav duab, thiab yuav ua li cas cov khoom ua tau zoo nyob hauv cov kab ntawd. Koj tuaj yeem pom hauv daim duab ntawm qhov ua tiav ib qho uas kuv yuav tsum tsim kev txuas mus rau lub thav duab kom muaj qhov siab ntxiv ntawm txhua yam. Qhov txuas ntxiv no tsuas yog 1/2 los ntawm 3/4 ntoo thuv sawb, mitered ntawm cov ces kaum, thiab glued mus rau tom qab ntawm tus ncej nrog ntoo kua nplaum. Tom qab ntawd kuv tau siv qee daim duab me me uas zoo li daim duab ntawm daim txiag ntoo los ua lub ntsej muag sab hauv lub thav duab uas tuav hauv qhov thaub qab. Rau cov uas kuv glued qee qhov sawv ntsug ntawm cov ntoo thuv los tsim lawv tawm mus rau sab nraub qaum ntawm tus thav duab txuas ntxiv. Tom qab ntawd kuv tau drilled qee qhov kev sim tsav thiab rub lub thav duab qub thaub qab mus rau qhov tsis pom kev. Thaum kawg kuv tsav-drilled thiab ntsia qhov ntev ntawm cov hlua txuas txuas mus rau tus ncej txuas ntxiv los ua tus khuam khawb ncaws. Yog tias koj siv lub thawv duab ntxoov ntxoo lossis lub thav duab tuab koj yuav tsis tas yuav hla txhua qhov kev lom zem ntxiv no.

Thaum kawg kawg, ntxeev nws thiab ntsaws rau hauv AC adapter thiab saib lub teeb pom kev pib. Thaum kuv tus ntxhais thawj zaug ntsaws nws hauv nws ntsais tawm "Zoo siab heev Christmas." Koj li yuav sau kab ntawv twg los xij koj muab tso rau hauv "const char string_0 " lossis "RUDLIGHTS ALPHABET BOARD" yog tias koj tseem tsis tau hloov pauv txoj cai.

Yog tias koj hla HC-05 Bluetooth module ib feem ntawm qhov no, nrog koj zoo siab, koj ua tiav! Kuv vam tias koj tau txais ntau mais ntawm koj kev sib tham nrog Upside Down:-)

Yog tias koj mus rau Bluetooth tus qauv, mus rau kauj ruam tom ntej rau, qhov kuv ntseeg yog, qhov txias, thiab vim li cas kuv thiaj li pib ua txoj haujlwm no es tsis yog yuav kuv tus ntxhais xeeb ntxwv lwm tus menyuam roj hmab.

Kauj ruam 6: App (!)

Lub App (!)
Lub App (!)
Lub App (!)
Lub App (!)

Yog, koj nyeem qhov yog. Muaj tus khub Android app rau rudLights uas tso cai rau koj los tso saib, thiab txawm tias txuag, kev cai cov lus ntawm koj lub rooj tsavxwm. Christmas kawg peb tau muab kuv tus ntxhais xeeb ntxwv tso rau Amazon Fire ntsiav tshuaj. Yog li ib qho ntawm cov ntsiab lus tseem ceeb ntawm txoj haujlwm no yog kom muaj txoj hauv kev rau nws siv lub ntsiav tshuaj ntawd los cuam tshuam nrog rudLights Alphabet Board. Kuv tau xaus ntawm Thunkable uas tau muab txoj hauv kev zoo, yooj yim ntawm kev tsim app rau tus txiv leej tub uas tsis tau ua Android app ua ntej. Kuv tswj hwm los ua ke ib yam uas ua txhua yam kuv xav tau hauv ob peb hnub xwb. Koj tsis tas yuav ua li ntawd, koj tsuas tuaj yeem rub tawm lub app los ntawm kuv tus neeg rau zaub mov lossis GitHub chaw cia khoom. Los ntawm ib qho chaw twg koj tseem tuaj yeem rub lub app txoj haujlwm.aia cov ntaub ntawv uas koj tuaj yeem siv ntawm Thunkable los ua koj tus kheej version ntawm rudLights App. Xav tias dawb los yog tshem tawm ib yam dab tsi, rov tsim dua, hloov cov duab, koj muaj dab tsi. Nws muaj nyob hauv GPLv3 ib yam li Arduino qhov kawg ntawm yam.

Koj tuaj yeem mus ntsib rudLights lub vev xaib kom paub meej txog kev teeb tsa thiab teeb tsa lub app, ib yam li yuav siv nws li cas thaum nws tau teeb tsa.

Kauj Ruam 7: Xaus?

Xaus?
Xaus?

Zoo, muaj koj muaj nws, rudLights Alphabet Board. Raws li kuv tus Pi-powered version tseem tab tom ua haujlwm Kuv tsis tau ntxiv ib qib lossis txhawb cov ntaub ntawv rau qhov ntawd. Kuv yuav hloov kho Cov Lus Qhia no sai li sai tau thaum kuv muaj qee yam ua haujlwm. Yog tias koj muaj lus nug lossis lus pom, yog tias muaj dab tsi tsis meej, tsuas yog ntaus kuv hauv cov lus hauv qab no lossis xa lus ntawm kuv nplooj ntawv profile. Kuv zoo siab los teb.

Ua tsaug rau kev nyeem, txaus siab rau!

Hloov kho 20180113 - Hloov pauv txuas mus rau HC -05 Bluetooth module raws li cov khoom txuas ua ntej yog tawm ntawm Tshuag

Pom zoo: