Cov txheej txheem:

HALO: Handy Arduino Teeb Rev1.0 W/NeoPixels: 9 Kauj Ruam (nrog Duab)
HALO: Handy Arduino Teeb Rev1.0 W/NeoPixels: 9 Kauj Ruam (nrog Duab)

Video: HALO: Handy Arduino Teeb Rev1.0 W/NeoPixels: 9 Kauj Ruam (nrog Duab)

Video: HALO: Handy Arduino Teeb Rev1.0 W/NeoPixels: 9 Kauj Ruam (nrog Duab)
Video: Halo LED Light control , using Irdroid & Arduino 2024, Hlis ntuj nqeg
Anonim
Image
Image
HALO: Handy Arduino Teeb Rev1.0 W/NeoPixels
HALO: Handy Arduino Teeb Rev1.0 W/NeoPixels
HALO: Handy Arduino Teeb Rev1.0 W/NeoPixels
HALO: Handy Arduino Teeb Rev1.0 W/NeoPixels

Hauv cov lus qhia no, kuv yuav qhia koj yuav tsim HALO, lossis Handy Arduino Teeb Rev1.0.

HALO yog lub teeb yooj yim, siv los ntawm Arduino Nano. Nws muaj tag nrho cov hneev taw ntawm kwv yees li 2 "los ntawm 3", thiab hnyav ntoo hauv paus rau kev ruaj khov heev. Lub caj dab hloov pauv tau thiab 12 lub ntsej muag ci ntsa iab NeoPixels tso cai rau nws yooj yim pom txhua yam ntawm txhua qhov chaw. HALO nta ob lub laub-khawm mus rau lub voj voog los ntawm ntau lub teeb sib txawv, uas muaj 15 qhov kev npaj ua ntej. Vim yog siv Arduino Nano ua tus txheej txheem, muaj peev xwm rau koj kom rov sau dua nws nrog cov yam ntxwv ntxiv. Tib lub hwj chim siv los kho qhov ci thiab/lossis nrawm uas hom tau tshwm. Kev tsim cov hlau yooj yim ua rau HALO lub teeb ruaj khov, haum rau siv hauv txhua qhov kev cob qhia. Kev yooj yim ntawm kev siv yog sib xyaw los ntawm Nano's onboard lub zog tswj hwm, yog li HALO tuaj yeem siv tau los ntawm USB lossis tus qauv 5mm lub tog raj txuas sab nraub qaum.

Kuv vam tias yuav pom ntau tus neeg siv cov teeb no nyob rau yav tom ntej, vim tias muaj ntau txoj hauv kev uas tuaj yeem qhib nrog qhov tsim qauv no. Thov tawm qhov pov npav hauv Microcontroller Contest yog tias koj nyiam qhov no lossis pom nws muaj txiaj ntsig hauv qee txoj kev, Kuv yuav txaus siab rau nws.

Ua ntej peb nkag mus rau hauv Cov Lus Qhia no, Kuv xav hais luv luv Ua tsaug rau txhua tus ntawm kuv cov thwjtim thiab txhua tus neeg uas tau tawm tswv yim, nyiam, lossis pov npav rau ib qho ntawm kuv cov haujlwm. Ua tsaug rau koj hais mav, Kuv Cov Ntawv Qhia Qhia tau dhau los ua qhov ua tiav loj, thiab tam sim no kuv, raws li kev ntaus ntawv mus txog ze rau 100 cov thwjtim, qhov tseem ceeb hauv kuv lub tswv yim. Kuv txaus siab rau txhua qhov kev txhawb nqa uas kuv tau txais los ntawm koj thaum kuv tso kuv li Ible's, thiab thaum nws los rau nws, Kuv yuav tsis nyob qhov twg hnub no kuv tsis muaj koj. Nrog qhov hais tias, ua tsaug, txhua tus!

NCO TSEG: Thoob plaws hauv Cov Lus Qhia no yog cov kab lus hauv kab lus loj. Cov no yog qhov tseem ceeb ntawm txhua kauj ruam, thiab yuav tsum tsis txhob quav ntsej qhov no tsis yog kuv qw lossis txhob txwm ua tsis zoo, Kuv tsuas yog sim ua cov txheej txheem sau ntawv tshiab kom zoo dua qhov yuav tsum tau ua. Yog tias koj tsis nyiam nws thiab nyiam li cas yav dhau los kuv nyiam sau kuv cov kauj ruam, qhia rau kuv paub hauv cov lus, thiab kuv yuav rov qab mus rau kuv li qub.

Kauj Ruam 1: Sau Cov Khoom

Sib Sau Cov Khoom
Sib Sau Cov Khoom
Sib Sau Cov Khoom
Sib Sau Cov Khoom
Sib Sau Cov Khoom
Sib Sau Cov Khoom
Sib Sau Cov Khoom
Sib Sau Cov Khoom

Kuv yuav tsum hais pes tsawg zaus? Ib txwm muaj qhov koj xav tau, thiab koj tau lees tias tuaj yeem tsim qee yam mus txog thaum ua tiav.

Nco tseg: Qee qhov no yog cov koom nrog txuas (cim "al"), Kuv yuav tau txais me me kickback yog tias koj yuav los ntawm lawv, tsis muaj tus nqi ntxiv rau koj. Ua tsaug yog tias koj yuav los ntawm qhov txuas

Qhov:

1x Arduino Nano Nano - al

1x 10k Rotary Potentiometer 5 pob 10k Potentiometers - al

1x 5mm chim jack (kuv tau rov ua dua los ntawm kib Arduino Uno) Poj Niam Barrel Jack (5 pob) - al

2x 2-pin momentary laub-khawm 10 pob SPST Pushbutton Hloov-al

12x NeoPixels los ntawm 60 LED/meter strand (ib qho sib npaug, piv txwv li WS2812B, yuav ua haujlwm) Adafruit NeoPixels

Ib daim ntawv ntawm 0.5 hli Aluminium

Lub caj dab hloov pauv tau los ntawm qhov qub flex sib zog

Lub hau npog sab saud los ntawm "Khaub Ncaws thiab Nyem" LED txee teeb LED Txee Teeb - al

Ib daim ntawv me me ntawm 1/4 nti Plywood

Ib qho hnyav, tiaj tus hlau qhov hnyav ntawm qhov ntev (kwv yees) 1.5 "los ntawm 2.5" los ntawm.25"

Txoj hlua hluav taws xob xaim hluav taws xob

Cov Cuab Yeej:

Kub Nplaum Rab Phom thiab Nplaum

Soldering Iron thiab Solder

Cordless fais fab laum thiab cov khoom me me sib tw me ntsis

X-acto riam (lossis riam siv hluav taws xob)

Cov hlua hlau

Pliers

Hlau cutters/snips

Hnyav plaub hau txiab

Yog tias koj tsis muaj qhov hnyav hlau hnyav, koj kuj xav tau:

1 yob ntawm cov khoom siv pheej yig (tsis yog cov khoom uas koj yuav siv rau cov laug) Cov Pheej Yig Tsis Pub Lead

Cawv Cawv (los yog Bunsen hlawv)

Ib qho me me-tawv tawv cov tais hlau uas koj tsis mloog puas (lossis lub crucible me me yog tias koj muaj)

Ib lub tswm ciab rau hais tais/crucible (Kuv ua kuv li ntawm 12 gauge steel hlau)

Ib qho av nplaum cog zaub (ib qho ntawm cov khoom uas mus hauv qab lub lauj kaub)

Qee cov ntawv txhuas

NCO TSEG: Yog tias koj muaj cov khoom siv txuas lossis lub tshuab luam ntawv 3D, koj yuav tsis xav tau tag nrho cov cuab yeej teev tseg ntawm no.

Kauj Ruam 2: Ua Qhov hnyav

Ua Qhov hnyav
Ua Qhov hnyav
Ua Qhov hnyav
Ua Qhov hnyav
Ua Qhov hnyav
Ua Qhov hnyav

Qhov no yog cov kauj ruam nyuaj, thiab koj yuav tsum siv kev ceev faj heev ua nws. Yog tias koj muaj qhov hnyav hlau hnyav lossis tiaj tus neodymium hlau nplaum txog 2.75 "los ntawm 1.75" los ntawm 0.25 ", Kuv xav kom siv qhov ntawd (thiab cov hlau nplaum tseem yuav tso cai rau koj tso lub teeb ib sab ntawm cov hlau!).

Disclaimer: Kuv tsis yog lub luag haujlwm rau qhov raug mob ntawm koj, yog li thov siv kev nkag siab

Tsis tas li, ua qhov no sab nraud dhau ntawm cov pob zeb uas koj yuav tsis mloog yog tias nws tau kub me ntsis (qhov no tsuas yog kev ceev faj). Kuv tsis muaj duab rau txheej txheem no vim tias lub koob yees duab yuav yog qhov cuam tshuam ntxiv uas kuv tsis xav tau lossis xav tau.

Ua ntej, ua cov pwm me me ntawm cov ntawv txhuas lossis cov av nplaum ntub, kwv yees li 2 3/4 ntiv tes los ntawm 1 3/4 ntiv tes los ntawm 1/4 nti hauv qhov ntev sab hauv. Nws tuaj yeem yog cov duab ovoid zoo li kuv, lossis duab plaub. Siv ntau txheej ntawv ci lossis txheej tuab ntawm cov av nplaum.

Muab cov pwm tso rau hauv cov tais zaub tais, thiab sau ob lub pwm thiab tais nrog dej txias.

Nqa koj lub tswm ciab cawv/cawv txiv ntoo uas tsis tau tso tawm, thiab tso cov tais hlau/ntsia hlau rau ntawm lub tswm ciab kom cov nplaim taws yuav kub nruab nrab ntawm lub tais (thaum pom). Ua ntej teeb lub qhov hluav taws xob, xyuas kom tseeb tias koj muaj tsawg kawg 1 khub pliers lossis cov hlau ua haujlwm ntawm tes, yog tias tsis yog 2.

Nws yog lub tswv yim zoo los hnav hnab looj tes tawv, tsho ntev, ris ntev, khau kaw ntiv taw, thiab tiv thaiv qhov muag thaum ua ob peb kauj ruam tom ntej

Npog thiab rhuav tawm ib pawg ntawm cov khoom siv pheej yig los ntawm cov xov thiab muab tso rau hauv cov tais hlau, tom qab ntawd teeb lub qhov cub. Tos kom txog thaum cov ntawv tawg tag, tom qab ntawd pib pub khoom noj ntawm cov laug rau hauv lub tais ntawm qhov nrawm. Yog tias tus neeg muag khoom muaj cov paj ntoo nyob hauv nws, qhov no tuaj yeem sib xyaw ua ke thaum tshav kub kub, ua rau cov nplaim daj daj thiab cov pa luam yeeb dub. Tsis txhob txhawj, qhov no tau tshwm sim rau kuv ntau zaus thiab zoo ib yam.

Txuas ntxiv pub cov laug rau hauv lub tais kom txog thaum kawg ntawm nws tau yaj.

Cia ib qho nplaim taws los ntawm kev tawg paj tawg tuag tag, thiab siv lub pliers/tus tes tuav lub tais thiab maj mam yoog cov hlau yaj sab hauv thaum ua tib zoo khaws nws hauv cov nplaim taws.

Tom qab koj paub tseeb tias tag nrho cov kab laug sab tau yaj tag thiab ntawm qhov kub zoo, sai thiab ua tib zoo tshem nws los ntawm cov nplaim taws thiab nchuav rau hauv pwm. Yuav muaj lub suab nrov nrov nrov thiab ua pa vim qee qhov dej tau ua pa thiab qhov seem raug yuam tawm ntawm cov pwm los hloov los ntawm cov tshuaj yaj yeeb yaj kiab.

Cia lub lauj kaub txias, tua koj lub qhov cub/tshuab koj lub tswm ciab thiab tso cov tais hlau tso rau qhov chaw kom txias. Koj tuaj yeem xav nchuav dej txias hla lub tshuab cua txias kom ua kom txias thiab ua kom tawv ntxiv. (Cov dej txias ua rau sab nraud txias dua sab hauv, tsim kev nruj sab hauv uas ua rau cov hlau tawv thiab tawv dua, zoo ib yam li Prince Rupert's Drop.) Koj tseem tuaj yeem tso dej hla koj lub tais hlau, tab sis qhov no yuav ua rau nws txhaws, tshwj xeeb tshaj yog yog ua ntau zaus.

Tom qab cov laug tau txias tag (li 20 feeb kom muaj kev nyab xeeb), tshem nws tawm ntawm cov ntawv ci.

Kuv qhov tuab tuab ntawm ib sab ntau dua li lwm qhov, yog li kuv siv tus rauj txawm tias nws tawm thiab ua kom cov ntug tiaj (ua rau cov duab zoo li koj pom hauv cov duab). Tom qab ntawd kuv maj mam txhuam nws hauv qab cov dej kom txhuam nws, thiab tso nws ib sab rau tom qab.

Kauj Ruam 3: Txhim Kho Lub Tsev Hluav Taws Xob, Kauj Ruam 1

Txhim Kho Lub Tsev Hluav Taws Xob, Kauj Ruam 1
Txhim Kho Lub Tsev Hluav Taws Xob, Kauj Ruam 1
Txhim Kho Lub Tsev Hluav Taws Xob, Kauj Ruam 1
Txhim Kho Lub Tsev Hluav Taws Xob, Kauj Ruam 1
Txhim Kho Lub Tsev Hluav Taws Xob, Kauj Ruam 1
Txhim Kho Lub Tsev Hluav Taws Xob, Kauj Ruam 1
Txhim Kho Lub Tsev Hluav Taws Xob, Kauj Ruam 1
Txhim Kho Lub Tsev Hluav Taws Xob, Kauj Ruam 1

Cov no yog ntu rau lub plhaub uas yuav nyob hauv Nano, teeb tsa lub interface, thiab yog qhov tseem ceeb uas tuav HALO Teeb ua ke. Kuv tau ua kuv li nrog kuv 0.5mm Aluminium thiab Kub Kua, tab sis yog tias koj muaj lub tshuab luam ntawv 3D (qee yam kuv tau sim ua rau kuv lub khw ib ntus) Kuv tau ua. STL version hauv Tinkercad uas kuv txuas ntawm no rau koj rub tawm. Txij li thaum kuv tsis muaj lub tshuab luam ntawv kuv tus kheej, kuv tsis tuaj yeem sim luam cov qauv kom pom tias txhua yam luam tawm kom raug, tab sis kuv xav tias nws yuav tsum zoo yog tias koj ntxiv cov qauv kev txhawb nqa tsim nyog hauv koj lub tshuab txiav. Koj kuj tseem tuaj yeem luam thiab kho cov ntaub ntawv los ntawm no yog tias koj xav tau lossis xav tau qhov tsim me me sib txawv lossis zoo nkauj.

Qhov ntev tau ua los ntawm cov hlau hnyav kuv pov rau kuv tus kheej tawm ntawm cov laug, tsis yog los ntawm qhov loj ntawm cov khoom siv hluav taws xob, tab sis nws muab tawm zoo heev lawm thiab qhov ntev yog qhov zoo nkauj.

Cov duab piav qhia qhov sib txawv me ntsis ntawm kev ua haujlwm rau qhov kuv yuav sau ntawm no, qhov no yog vim kuv tau tsim cov txheej txheem txhim kho raws li cov txiaj ntsig ntawm kuv li qub.

Yog tias koj tau sib sau los ntawm cov ntawv hlau zoo li kuv, ntawm no yog yam koj yuav tsum tau ua:

Kauj Ruam 1: Ntsej Muag Phaj

Txiav ob lub voj voos uas zoo ib yam li qhov ntev txog 1.5 "siab thiab 3" dav. (Kuv freehanded kuv, yog li lawv zoo li me ntsis ntawm sab xub ntiag ntawm lub thawv juke).

Hauv ib ntawm ob daim phiaj, laum peb lub qhov rau cov nyees khawm thiab lub hwj chim ntsuas. Kuv yog txhua 1/4 inch inch. Cov no tuaj yeem yog nyob hauv ib qho kev teeb tsa, tab sis kuv nyiam kuv lub hwj chim ntsuas kom me ntsis tsa hauv nruab nrab, nrog cov nyees khawm ntawm ob sab tsim ib qho isosceles 'daim duab peb sab. Thaum drilling, Kuv ib txwm ua lub qhov me me ua ntej yuav mus rau qhov xav tau me ntsis, nws pab nruab nrab qhov thiab ua rau lawv huv me ntsis.

Kauj ruam 2: Arched Npog

Khoov hla ib daim ntawm txhuas kom haum ib puag ncig nkhaus ntawm ib qho ntawm lub ntsej muag daim hlau, thiab kos qhov ntev kom haum.

Txiav tawm ib txoj hlua ntawm qhov ntev no thiab kwv yees li 2 ntiv tes dav, thiab tsim nws mus rau hauv ib puag ncig uas haum rau daim ntawv nkhaus ntawm lub ntsej muag daim hlau ntawm ob sab.

Nrhiav qhov chaw nruab nrab nyob rau sab saum toj ntawm txoj kab nkhaus, thiab laum lub qhov kom haum rau lub caj dab hloov pauv ntawm qhov sib zog. Kuv offset lub holetowards nraub qaum nyob rau hauv kuv vim kuv lub teeb feem ntau yuav muaj lub caj dab qaij rau pem hauv ntej thaum siv, yog li kuv xav ntxiv me ntsis ntawm qhov tsis sib xws rau qhov ntawd. Kuv lub caj dab hloov pauv tau tsuas yog me ntsis dhau 1/4 ntawm txoj kab uas hla, yog li kuv siv 1/4 nti me ntsis (qhov sib tw loj tshaj kuv muaj uas yog qis dua 3/4 ntawm ib nti) thiab tsuas yog ua tib zoo tig thiab sib tw laum kom 'tho' tawm lub qhov kom txog thaum lub caj dab haum.

Tam sim no peb muaj cov ntu rau lub plhaub, cov kauj ruam tom ntej yog ntxiv cov khoom siv hluav taws xob thiab muab tso ua ke!

Kauj Ruam 4: Txhim Kho Lub Tsev Hluav Taws Xob, Kauj Ruam 2

Tsim Lub Tsev Hluav Taws Xob, Kauj Ruam 2
Tsim Lub Tsev Hluav Taws Xob, Kauj Ruam 2
Tsim Lub Tsev Hluav Taws Xob, Kauj Ruam 2
Tsim Lub Tsev Hluav Taws Xob, Kauj Ruam 2
Tsim Lub Tsev Hluav Taws Xob, Kauj Ruam 2
Tsim Lub Tsev Hluav Taws Xob, Kauj Ruam 2
Tsim Lub Tsev Hluav Taws Xob, Kauj Ruam 2
Tsim Lub Tsev Hluav Taws Xob, Kauj Ruam 2

Tam sim no peb ntxiv cov nyees khawm thiab lub hwj chim, thiab muab tso ua ke.

Kauj Ruam 1: Khawm thiab Bolts

Ntsia lub txiv ntoo hex los ntawm koj cov nyees khawm thiab lub hwj chim loj. Yuav tsum muaj lub nplhaib tuav hauv qab cov txiv ntoo, tso qhov no tseg.

Qhov qhib txhua qhov khoom siv los ntawm nws lub qhov sib xws, tom qab ntawd ntswj cov txiv ntoo rov qab kom ruaj ntseg txhua qhov chaw. Ceev cov txiv ntoo mus rau qhov chaw uas koj paub tseeb tias txhua feem tiv thaiv muaj kev nyab xeeb tag nrho.

Kauj Ruam 2. Flex Neck

Hloov lub caj dab flex los ntawm lub qhov nyob rau sab saum toj ntawm daim nkhaus. Cov kua nplaum kub los yog txuas (yog tias koj muaj cov cuab yeej siv) lub caj dab ruaj ntseg.

Yog tias siv cov kua nplaum kub zoo li kuv yog, nws yog lub tswv yim zoo los lo nws nrog ntau cov kua nplaum rau ob sab kis mus rau thaj chaw loj kom tiv thaiv cov kua nplaum los tsis tuaj tom qab.

Kauj Ruam 3: Plhaub Sib dhos (Tsis siv rau 3D luam ntawv plhaub)

Siv cov hlua txuas los yog cov kua nplaum kub, ntsaws rau pem hauv ntej thiab nraub qaum lub ntsej muag rau hauv lawv qhov chaw ntawm lub npog npog. Nws coj kuv ob peb sim rau kuv cov kua nplaum lo, thiab zoo li ua ntej, qhov ua kom yuam kev yog siv ntau cov kua nplaum ntawm ob sab ntawm kev sib koom, ib yam li lub caj dab. Qhov loj dua thaj tsam npog los ntawm cov kua nplaum, qhov zoo dua nws yuav lo.

Tam sim no peb muaj lub plhaub, peb tuaj yeem txav mus ntxiv rau txhua qhov khoom siv hluav taws xob.

Kauj Ruam 5: Ntxiv Cov Khoom Siv Hluav Taws Xob

Ntxiv Electronics
Ntxiv Electronics
Ntxiv Electronics
Ntxiv Electronics
Ntxiv Electronics
Ntxiv Electronics

Thiab ntawm no yog qhov lom zem: Soldering! Nyob rau lub asthiv tsis ntev los no kuv tau ua siab ncaj me ntsis nkees nkees, vim tias kuv tau ua ntau dhau los tsis ntev los sim thiab ua tiav lwm qhov haujlwm kuv yuav tsum tau tso sai sai (khaws qhov muag tawm rau qhov hloov pauv tshiab version ntawm kuv cov neeg hlau platforms), ua rau kuv rhuav tshem ib lub hlau thiab tau txais lwm yam … Xijpeem, tsis muaj ntau yam rau ntawm no, yog li qhov no yuav tsum yog qhov yooj yim zoo nkauj.

Nco tseg: Yog tias koj Nano muaj tus pin headers twb tau ua rau nws lawm, Kuv xav kom muab lawv tso pov tseg rau txoj haujlwm no, lawv tsuas yog ua tau raws txoj hauv kev.

Muaj daim duab hauv cov duab saum toj no, koj tuaj yeem ua raws qhov ntawd yog tias koj nyiam.

Kauj ruam 1: Interface

Los ntawm txhua qhov kev hloov pauv, xaim xov hlau los ntawm ib tus pin mus rau sab tus pin ntawm lub zog. Siv cov xaim xaim los ntawm tib sab tus pin rau Ground pin ntawm Nano.

Siv cov xaim xaim los ntawm tus pin nruab nrab ntawm lub zog rau A0 ntawm Nano.

Siv lub xaim txuas los ntawm tus pin tsis txuas ntawm ob qho tib si hloov mus rau A1 ntawm Nano.

Siv lub xaim txuas los ntawm tus pin tsis txuas rau lwm qhov hloov mus rau A2 ntawm Nano.

Nco tseg: Nws tsis muaj teeb meem qhov kev hloov pauv twg yog qhov twg, koj tuaj yeem hloov pauv lawv yooj yim heev hauv txoj cai, ntxiv rau qhov tseeb tias ib qho hloov pauv yooj yim ua qhov txawv ntawm lwm qhov.

Txiav qhov ntev ntawm xaim 4 ntiv tes ntev dua li lub caj dab hloov pauv, thiab hle ob sab. Siv Sharpie, kos ib sab nrog ib kab.

Siv lub xaim txuas mus rau qhov kawg txuas tsis tau txuas tus pin ntawm lub zog, ntsuas qhov tsis txuas ntawm qhov kawg ntawm cov xaim no ua ke nrog qhov tsis cim qhov kawg ntawm xaim los ntawm qhov hloov pauv kawg.

Cov laug no koom nrog qhov kawg rau 5V ntawm Nano.

Kauj Ruam 2: Zaub thiab Cov Hluav Taws Xob

Txiav 2 qhov ntev ntawm xaim 4 ntiv ntev dua li lub caj dab hloov pauv, thiab hle ob lub qhov kawg.

Siv Sharpie, kos qhov xaus ntawm txhua lub xov hlau, ib txoj kab nrog 2 kab, thiab ib qho nrog 3.

Muab cov xaim txuas nrog 2 kab rau tus lej digital 9 ntawm Nano.

Ntawm koj li 5 hli lub tog raj kheej, xaim xaim los ntawm tus pin nruab nrab (zoo) rau Vin ntawm Nano.

Siv lwm tus xaim txuas rau tus pin sab hauv (hauv av/tsis zoo) ntawm lub tog raj kheej.

Twist cov xaim ntev nrog 3 linestogether nrog cov xaim los ntawm sab tus pin ntawm lub tog raj kheej.

Siv cov kab no txuas rau qhov qhib GND tus pin ntawm Nano.

Rho tawm kev sib txuas nrog daim kab xev hluav taws xob lossis kua nplaum kub qhov xav tau.

Kauj Ruam 3: Txiav Qhov (tsuas yog ntawm cov hlau, yog tias koj 3D luam tawm lub hau koj yuav tsum zoo)

Siv lub laum me ntsis thiab X-acto lossis Riam Riam, ua tib zoo ua lub qhov nyob rau sab ntawm lub npog rau USB chaw nres nkoj ntawm Nano.

Ua lwm qhov hais txog qhov loj me ntawm lub ntsej muag ntawm lub thoob yas nyob sab nraum qab ntawm lub npog, zoo dua nyob ze rau sab sab ntawm lub qhov rau USB chaw nres nkoj.

Kauj Ruam 4: Mounting Cheebtsam

Pub peb txoj hlua ntev los ntawm lub caj dab hloov pauv thiab tawm mus rau lwm sab.

Siv cov kua nplaum kub ntau, ua rau lub thoob ntim rau hauv qhov chaw nrog cov pins tig rau sab saum toj ntawm lub hau.

Ib zaug ntxiv siv ntau cov kua nplaum kub, teeb tsa Nano nyob rau hauv qhov chaw, nrog khawm rov pib dua tig thiab USB chaw nres nkoj hauv nws qhov. Kuv tau ua "cov kua nplaum kub kub" nruab nrab ntawm lub tog raj kheej thiab Nano, uas ua rau txhua tus ua kom ruaj khov nyob hauv qhov chaw.

Tam sim no peb tuaj yeem txav mus los ua qhov hnyav hnyav!

Kauj Ruam 6: Qhov hnyav hnyav

Luj luj
Luj luj
Luj luj
Luj luj
Luj luj
Luj luj

Kuv muaj kev ntseeg siab hauv kuv qhov kev txawj ntse thiab tau npaj qhov no zoo, yog li kuv tau mus tom ntej thiab ntxiv lub hauv paus ua ntej ntsuas cov cai. Yog tias koj tsis muaj kev ntseeg siab hauv koj li txuj ci, Kuv xav kom hla qhov kauj ruam no thiab rov qab mus rau qhov kawg thaum koj paub txhua yam ua haujlwm.

Yog tias koj ua 3D luam ntawv, koj tuaj yeem hla thawj kauj ruam thiab txav mus rau qhov thib ob.

Kauj ruam 1: Ntoo

Los ntawm ib daim ntawv ntawm 1/4 nti plywood, txiav lub hauv paus li 3 ntiv tes los ntawm 2 ntiv tes.

Xuab zeb cov npoo kom du lawv thiab tshem tawm cov burs.

Kauj Ruam 2: Qhov hnyav

Ua ntej, xyuas kom koj qhov hnyav ntawm qhov kev xaiv, yog tias yog cov hlau nplaum, hlau, lossis cov khoom siv ib leeg, haum rau ntawm ntug ntawm cov hlau npog peb tau ua. Kuv qhov loj me me hauv ib qho kev qhia, yog li kuv tau txiav tawm me ntsis los ntawm sab nrog rab riam X-acto. Yog tias koj tsis yog qhov chaw uas koj tuaj yeem ua qhov no, koj yuav tsum tau fiddle ib puag ncig nrog kev tsim qauv sib txawv.

Kub nplaum koj qhov hnyav nyob hauv nruab nrab ntawm daim plywood, lossis thaum tsim 3D luam ntawv, hauv qhov chaw "tais" thaj chaw kuv tsim los rau lub hom phiaj no.

Kauj ruam 3: Hauv paus

Haum cov hlau npog hla qhov hnyav thiab nruab nrab nws ntawm cov ntoo hauv paus. (Nyob rau hauv cov ntaub ntawv ntawm 3D luam ntawv tsim, haum nws rau hauv qhov ua ntej grooves.)

Xyuas kom qhov hnyav tsis cuam tshuam nrog ib qho ntawm cov khoom siv hluav taws xob

Siv cov kua nplaum kub kom ruaj ntseg puag hauv qhov chaw. Siv txaus los xyuas kom muaj kev sib txuas ruaj khov.

Tam sim no tias peb muaj peb lub thawv tswj tau ua tiav, cia peb txav mus rau lub teeb.

Kauj Ruam 7: NeoPixel Halo Ring

NeoPixel Halo Nplhaib
NeoPixel Halo Nplhaib
NeoPixel Halo Nplhaib
NeoPixel Halo Nplhaib
NeoPixel Halo Nplhaib
NeoPixel Halo Nplhaib
NeoPixel Halo Nplhaib
NeoPixel Halo Nplhaib

Kev tshoov siab lub npe ntawm lub teeb no, ntu no yog lub nplhaib NeoPixel uas peb yuav siv los ua peb qhov chaw teeb pom kev zoo. Cov khoom tshwj xeeb no tuaj yeem hloov kho lossis hloov pauv nrog ib qho NeoPixel lossis ib tus neeg tuaj yeem hais qhia lub nplhaib LED, yog tias xav tau.

Kauj ruam 1: Soldering

Txiav ib txoj kab ntawm NeoPixels 12 LEDs hauv qhov ntev.

Siv tus GND tus pin txuas rau xaim los ntawm lub caj dab uas muaj 3 kab.

Solder Din tus pin rau cov xaim uas muaj 2 kab.

Solder tus 5V tus pin rau cov xaim uas muaj 1 kab.

Kauj Ruam 2: Xeem Teeb

Rub tawm thiab teeb tsa Adafruit_NeoPixel lub tsev qiv ntawv, thiab qhib qhov "strandtest" code.

Hloov tus lej PIN tas mus li 9.

Hloov cov kab uas tau hais tseg hauv kab ntawv kom nws tau teeb tsa rau 12 LEDs.

Tshaj tawm cov cai rau Nano, thiab xyuas kom tag nrho koj cov LEDs ua haujlwm tau zoo.

Hloov ib qho LEDs uas tsis raug nrog ua haujlwm, kom txog thaum tag nrho cov hlua ua haujlwm.

Kauj ruam 3: Ntiv nplhaib

Nqa lub nplhaib sab saum toj los ntawm lub "Nris thiab Nyem" lub teeb thiab txiav tawm cov ntsia hlau ntsia ntawm lub npoo sab hauv.

Txiav ib qho me me rau ntawm ntug rau cov xov hlau los ntawm kab txaij.

Tev tawm lub npog rau daim kab xev nplaum nyob tom qab ntawm NeoPixels (yog tias muaj) thiab lo rau sab hauv lub nplhaib, nrog rau qhov kawg ntawm kab txaij txoj cai hais txog ntawm qhov thais peb tau ua.

Siv cov kua nplaum kub los khov kho cov ntug ntawm kab txaij

Tom qab cov kua nplaum txias tag, sim cov pixels dua. Qhov no yog kom ntseeg tau tias tsis muaj qhov ua tau zoo txog qhov kub thiab ci (qee qhov ntawm kuv yog).

Kauj ruam 4: Mount

Txiav tawm ob daim duab me me ntawm 1/4 nti ntoo, hais txog qhov siab ntawm lub nplhaib thiab 1 2/3 zaug li dav.

Muab cov kab no sib dhos ua ke rau ntawm ib sab ntawm cov xov hlau los ntawm lub nplhaib, sau qhov sib txawv thiab npog cov xov hlau ntawm tag nrho nrog cov kua nplaum.

Ua tib zoo thawb qhov ntev tshaj ntawm cov hlau rov qab rau hauv lub caj dab hloov pauv, thiab tom qab ntawd lo cov ntoo ntoo mus rau qhov kawg ntawm lub caj dab, siv cov kua nplaum ntau thiab ua tib zoo sau cov khoob (tsis tas sau lub caj dab nrog kua nplaum).

Kauj Ruam 6: Ua tiav

Koj tuaj yeem pleev xim rau lub nplhaib thiab teeb ib qho xim yog tias koj nyiam, Kuv nyiam qhov ua tiav cov nyiaj yog li kuv tsuas yog siv Sharpie los npog lub logo uas (cuam tshuam) luam tawm rau lub nplhaib. Tib yam mus rau seem ntawm lub teeb.

Tam sim no peb tuaj yeem txav mus kom tiav nrog cov lej kawg!

Kauj Ruam 8: Cov lej thiab Xeem

Codes thiab Tests
Codes thiab Tests
Codes thiab Tests
Codes thiab Tests

Yog li tam sim no txhua yam peb yuav tsum tau ua yog teeb lub teeb thiab ntsuas nws. Txuas nrog yog tus lej tam sim no (rev1.0), Kuv tau sim cov cai no ntau heev thiab nws ua haujlwm tau zoo heev. Kuv tab tom ua haujlwm rev2.0 qhov twg cov nyees khawm tau teeb tsa ua kev cuam tshuam sab nraud kom cov qauv tuaj yeem hloov pauv tau yooj yim dua ntawm, tab sis cov ntawv no yog kab laum thiab tseem tsis tau npaj rau tso tawm. Nrog rau qhov tam sim no koj yuav tsum tuav lub pob kom txog thaum nws ua haujlwm Debounce lub voj thiab lees paub lub xeev hloov pauv, uas tuaj yeem ua rau muaj kev cuam tshuam ntawm qhov ntev "Dynamic" loops. Hauv qab no yog cov cai nrog qee qhov kev piav qhia sau hauv (muaj tib cov lus piav qhia hauv cov ntawv rub tawm tau).

#include #ifdef _AVR_ #include #endif

#Txhais tus lej PIN 9

#define POT A0 #define BUTTON1 A1 #define BUTTON2 A2

// Parameter 1 = tus lej pixels hauv kab

// Parameter 2 = Arduino tus lej pin (feem ntau siv tau) // Parameter 3 = pixel hom chij, ntxiv ua ke raws li xav tau: // NEO_KHZ800 800 KHz bitstream (feem ntau cov khoom NeoPixel w/WS2812 LEDs) // NEO_KHZ400 400 KHz (classic) v1 '(tsis v2) FLORA pixels, WS2811 tus tsav tsheb) // NEO_GRB Pixels tau txuas rau GRB bitstream (feem ntau cov khoom NeoPixel) // NEO_RGB Pixels tau txuas rau RGB bitstream (v1 FLORA pixels, tsis yog v2) // NEO_RGBW Pixels tau txuas rau RGBW bitstream (NeoPixel RGBW khoom) Adafruit_NeoPixel halo = Adafruit_NeoPixel (12, PIN, NEO_GRB + NEO_KHZ800);

// Thiab tam sim no, xov xwm kev nyab xeeb los ntawm peb cov phooj ywg ntawm Adafruit:

// TSEEM CEEB: Txhawm rau txo NeoPixel kev pheej hmoo hlawv, ntxiv 1000 uF capacitor hla

// pixel lub zog ua, ntxiv 300 - 500 Ohm resistor ntawm thawj pixel cov ntaub ntawv nkag mus // thiab txo qis nrug ntawm Arduino thiab thawj pixel. Zam kev sib txuas // ntawm lub voj voog nyob … yog tias koj xav tau, txuas GND ua ntej.

// Variables

int buttonState1; int buttonState2; // kev nyeem ntawv tam sim no los ntawm tus lej pin int lastButtonState1 = LOW; // qhov nyeem yav dhau los los ntawm tus lej pin int lastButtonState2 = LOW; int hom; // hom ntawm peb lub teeb, tuaj yeem yog ib qho ntawm 16 qhov chaw (0 txog 15) int brightVal = 0; // qhov ci ci/ nrawm, raws li tau teev tseg los ntawm lub hwj chim

// qhov hloov pauv hauv qab no yog ntev vim tias lub sijhawm, ntsuas hauv vib nas this, // yuav dhau los ua tus lej loj dua tuaj yeem khaws cia rau hauv int. ntev LastDebounceTime = 0; // lub sijhawm kawg tus pin tso tawm tau toggled debounceDelay = 50; // lub sij hawm debounce; nce yog tias cov zis flickers

void debounce () {

// nyeem lub xeev ntawm qhov hloov mus rau qhov sib txawv hauv zos: int nyeem ntawv 1 = digitalRead (BUTTON1); int nyeem 2 = digitalRead (BUTTON2); // Yog ib qho ntawm cov nyees khawm hloov pauv, vim muaj suab nrov lossis nias: yog (nyeem 1! = LastButtonState1 || nyeem ntawv 2! = LastButtonState2) {// rov pib dua lub debouncing timer lastDebounceTime = millis (); } yog ((millis () - lastDebounceTime)> debounceDelay) {// yog tias lub xeev khawm tau hloov pauv vim yog nias/tso tawm: yog (nyeem 1! = buttonState1) {buttonState1 = nyeem 1; // teeb nws raws li kev nyeem ntawv yog tias nws tau hloov pauv yog tias (buttonState1 == LOW) {// cov no tau teeb tsa ua haujlwm qis qis hloov ++; yog (hom == 16) {hom = 0; }}} yog (nyeem 2! = buttonState2) {buttonState2 = nyeem2; yog (buttonState2 == LOW) {hom = hom - 1; yog (hom == -1) {hom = 15; }}}} // txuag nyeem rau lub sijhawm tom ntej los ntawm lub voj lastButtonState1 = nyeem1; lastButtonState2 = nyeem2; }

tsis muaj dab tsi getBright () {// peb cov cai los nyeem cov potentiometer, hais tawm tus nqi nruab nrab ntawm 0 thiab 255. Siv los teeb ci ci hauv qee qhov qauv thiab nrawm hauv lwm tus.

int potVal = analogRead (POT); brightVal = daim ntawv qhia (potVal, 0, 1023, 0, 255); }

// Nov yog peb hom xim. Qee qhov no tau muab los ntawm tus piv txwv strandtest, lwm tus yog thawj.

// Sau cov dots ib qho tom qab ib qho nrog cov xim (xim so, muab los ntawm strandtest)

void colorWipe (uint32_t c, uint8_t tos) {rau (uint16_t kuv = 0; i

// zaj sawv ua haujlwm (tseem tau muab los ntawm kev sib tw)

tsis muaj zaj sawv (uint8_t tos) {

uint16_t kuv, j;

rau (j = 0; j <256; j ++) {rau (i = 0; i

// Sib txawv me ntsis, qhov no ua rau zaj sawv sib npaug faib thoob plaws

void rainbowCycle (uint8_t tos) {uint16_t kuv, j;

rau (j = 0; j <256*5; j ++) {// 5 mus ntawm txhua xim ntawm lub log rau (i = 0; kuv <halo.numPixels (); i ++) {halo.setPixelColor (i, Log (((kuv * 256 / halo.numPixels ()) + j) & 255)); } halo.show (); ncua (tos); }}

// Sau tus nqi 0 txog 255 kom tau txais tus nqi xim.

// Cov xim yog qhov hloov pauv r - g - b - rov qab rau r. uint32_t Log (byte WheelPos) {WheelPos = 255 - WheelPos; yog (WheelPos <85) {rov halo. Color (255 - WheelPos * 3, 0, WheelPos * 3); } yog (WheelPos <170) {WheelPos -= 85; rov halo. Color (0, WheelPos * 3, 255 - WheelPos * 3); } WheelPos -= 170; rov halo. Color (WheelPos * 3, 255 - WheelPos * 3, 0); }

void teeb tsa () {

// Qhov no yog rau Trinket 5V 16MHz, koj tuaj yeem tshem tawm peb kab no yog tias koj tsis siv Trinket #if txhais (_AVR_ATtiny85_) yog (F_CPU == 16000000) clock_prescale_set (clock_div_1); #endif // Xaus ntawm trinket tshwj xeeb tus lej pinMode (POT, INPUT); pinMode (BUTTON1, INPUT_PULLUP); pinMode (BUTTON2, INPUT_PULLUP); pinMode (PIN, NTAWV); Serial.begin (9600); // debugging khoom halo.begin (); halo.show (); // Pib tag nrho cov pixels rau 'tawm'}

void voj () {

debounce ();

//Serial.println(mode); // ntau debugging //Serial.println(lastButtonState1); //Serial.println(lastButtonState2);

yog (hom == 0) {

tau Bright (); rau (int i = 0; i <halo.numPixels (); i ++) {halo.setPixelColor (i, halo. Color (brightVal, brightVal, brightVal)); // teeb tsa txhua lub pixels rau dawb} halo.show (); }; yog (hom == 1) {getBright (); rau (int i = 0; i <halo.numPixels (); i ++) {halo.setPixelColor (i, halo. Color (brightVal, 0, 0))); // teeb tsa txhua lub pixels rau liab} halo.show (); }; yog (hom == 2) {getBright (); rau (int i = 0; i <halo.numPixels (); i ++) {halo.setPixelColor (i, halo. Color (0, brightVal, 0)); // teeb tsa txhua lub pixels rau ntsuab} halo.show (); }; yog (hom == 3) {getBright (); rau (int i = 0; kuv <halo.numPixels (); i ++) {halo.setPixelColor (i, halo. Color (0, 0, brightVal)); // teeb tsa txhua lub pixels rau xiav} halo.show (); }; yog (hom == 4) {getBright (); rau (int i = 0; kuv <halo.numPixels (); i ++) {halo.setPixelColor (i, halo. Color (0, brightVal, brightVal)); // teeb tsa txhua lub pixels rau cyan} halo.show (); }; yog (hom == 5) {getBright (); rau (int i = 0; kuv <halo.numPixels (); i ++) {halo.setPixelColor (i, halo. Color (brightVal, 0, brightVal)); // teeb tsa txhua lub pixels rau ntshav/magenta} halo.show (); }; yog (hom == 6) {getBright (); rau (int i = 0; i <halo.numPixels (); i ++) {halo.setPixelColor (i, halo. Color (brightVal, brightVal, 0)); // teeb tsa txhua lub pixels rau txiv kab ntxwv/daj} halo.show (); }; yog (hom == 7) {// tam sim no cov qauv zoo tau txaisBright (); colorWipe (halo. Color (brightVal, 0, 0), 50); // Liab}; yog (hom == 8) {getBright (); colorWipe (halo. Color (0, brightVal, 0), 50); // Ntsuab}; yog (hom == 9) {getBright (); colorWipe (halo. Color (0, 0, brightVal), 50); Xiav}; yog (hom == 10) {getBright (); colorWipe (halo. Color (brightVal, brightVal, brightVal), 50); // dawb}; yog (hom == 11) {getBright (); colorWipe (halo. Color (brightVal, brightVal, 0), 50); // txiv kab ntxwv/daj}; yog (hom == 12) {getBright (); colorWipe (halo. Color (0, brightVal, brightVal), 50); // xim}; yog (hom == 13) {getBright (); colorWipe (halo. Color (brightVal, 0, brightVal), 50); // ntshav/magenta}; yog (hom == 14) {// ob qhov kawg yog kev tswj ceev, vim tias qhov ci ntsa iab yog qhov muaj zog getBright (); zaj sawv (ci ntsa iab); }; yog (hom == 15) {getBright (); rainbowCycle (ci ntsa iab); }; ncua (10); // tso cai rau tus txheej txheem so me ntsis}

Kauj Ruam 9: Grand Final

Grand kawg
Grand kawg

Thiab tam sim no peb muaj lub teeb zoo heev, ci ci me ntsis!

Koj tuaj yeem hloov kho nws ntxiv ntawm no, lossis tso nws zoo li nws yog. Koj tuaj yeem hloov pauv txoj cai, lossis tseem sau ib qho tshiab nkaus xwb. Koj tuaj yeem nthuav lub hauv paus thiab ntxiv roj teeb. Koj tuaj yeem ntxiv tus kiv cua. Koj tuaj yeem ntxiv NeoPixels ntxiv. Cov npe ntawm txhua yam koj tuaj yeem ua nrog qhov no yuav luag tsis muaj qhov kawg. Kuv hais "yuav luag" vim tias kuv zoo nkauj heev peb tseem tsis muaj lub thev naus laus zis los hloov qhov no mus rau hauv lub tshuab hluav taws xob me me portal (hmoov tsis zoo), tab sis ib sab los ntawm tej yam zoo li ntawd, qhov txwv tsuas yog koj lub tswv yim (thiab qee yam, raws li kuv tau pom tsis ntev los no, cov cuab yeej hauv koj lub rooj cob qhia). Tab sis yog tias koj tsis muaj cov cuab yeej, tsis txhob cia qhov ntawd nres koj, yog tias koj xav ua tiag tiag yam ib txwm muaj txoj hauv kev.

Qhov ntawd yog ib feem ntawm cov ntsiab lus ntawm txoj haujlwm no, los ua pov thawj rau kuv tus kheej (thiab kom tsawg dua, lub ntiaj teb) uas kuv tuaj yeem ua cov khoom muaj txiaj ntsig uas lwm tus neeg kuj xav tau, txawm tias txhua yam kuv muaj yog cov pov tseg pov tseg ntawm cov qub thiab muab pov tseg. Cheebtsam thiab lub thoob ntawm Arduino cov khoom siv.

Kuv yuav tawm ntawm no, vim kuv xav tias qhov no zoo dua. Yog tias koj muaj lus pom zoo rau kev txhim kho, lossis nug txog kuv txoj hauv kev, thov tawm lus hauv qab no. Yog tias koj ua qhov no, thaij duab, peb txhua tus xav pom nws!

Thov tsis txhob hnov qab Pov npav yog tias koj nyiam qhov no!

Raws li ib txwm muaj, cov no yog cov phiaj xwm ntawm Kev phom sij txaus ntshai, nws lub luag haujlwm tas mus li, "Txhawm rau ua siab loj tsim yam koj xav tsim, thiab ntau ntxiv!"

Koj tuaj yeem pom qhov seem ntawm kuv cov haujlwm ntawm no.

Ua tsaug rau kev nyeem, thiab Zoo Siab Ua!

Pom zoo: