Cov txheej txheem:

Muslin Moos - LED NeoPixel: 6 Kauj Ruam
Muslin Moos - LED NeoPixel: 6 Kauj Ruam

Video: Muslin Moos - LED NeoPixel: 6 Kauj Ruam

Video: Muslin Moos - LED NeoPixel: 6 Kauj Ruam
Video: Audio Talk About My Journey Of Loksewa 2024, Kaum ib hlis
Anonim
Muslin Moos - LED NeoPixel
Muslin Moos - LED NeoPixel
Muslin Moos - LED NeoPixel
Muslin Moos - LED NeoPixel
Muslin Moos - LED NeoPixel
Muslin Moos - LED NeoPixel
Muslin Moos - LED NeoPixel
Muslin Moos - LED NeoPixel

Kev tsim thiab tsim ntawm cov lus qhia no tau tsim los rau lub hom phiaj ntawm Kev Tsim Qauv Qhib thiab Digital Fabrication ntawv ntawm Massey University, NZ. Raws li nyob hauv Fab Lab WGTN, lub hom phiaj ntawm daim ntawv yog siv qhib cov txheej txheem tsim thiab cov cuab yeej tsim khoom tsim los tsim qhov phiaj xwm qhib. Qhov kev tsim qauv tau tshoov siab los ntawm cov lus qhia no thiab tau yoog raws ob qho chaws thiab daim ntawv. Cov lus qhia no yuav muab rau koj cov cuab yeej tsim nyog thiab cov ntaub ntawv los tsim koj tus kheej LED NeoPixel Clock.

Yog tias koj xav pom ntau dua ntawm kuv cov txheej txheem tag nrho thaum tsim cov lus qhia no koj tuaj yeem tshawb xyuas kuv qhov blog. Kuv tau tshaj tawm tag nrho cov kev tshawb fawb uas kuv tau siv los pab kuv nkag siab txog txoj haujlwm thiab thev naus laus zis.

Kauj Ruam 1: Yam Koj Yuav Tsum Tau

Yam Koj Yuav Tsum Tau
Yam Koj Yuav Tsum Tau
Yam Koj Yuav Tsum Tau
Yam Koj Yuav Tsum Tau
Yam Koj Yuav Tsum Tau
Yam Koj Yuav Tsum Tau
Yam Koj Yuav Tsum Tau
Yam Koj Yuav Tsum Tau

Hluav Taws Xob Hluav Taws Xob thiab Kev Tsim Khoom

  • Arduino Software 1.8.8
  • Arduino Nano 3.0 (Pro Version) *1x Nano 3.0 Atmel ATmega328 Mini USB Board (Arduino Compatible) - DS130
  • RTC
  • CR 2032 3V RTC Roj Teeb (Kuv yuav lub npe dab noj hnub)
  • Txiv neej rau txiv neej cov xov hlau
  • Micro USB Charging Cable (Samsung)
  • 1x 60 LED Neopixel Sawb

Meem Ncej

  • Ib daim ntawv ntawm 4mm Plywood (1200mm los ntawm 600mm)
  • 4x 10mm Chicago Screws
  • Npuag, Muslin (1000mm los ntawm 1000mm quav rau hauv x4 txheej)

Machine thiab Apps

  • Laser Txiav
  • Illustrator
  • Soldering Iron thiab Solder
  • Kub kua nplaum phom
  • Daim npog qhov ncauj
  • Muaj qhov xuas nrig ntaus (yog tsim nyog)

Code, Tsav Tsheb thiab Tsev Qiv Ntawv

  • NeoPixel Sawb Clock Code
  • RTC Hloov Kho Code
  • Illustrator, Laser txiav cov ntaub ntawv
  • Tsav Tsheb - Rub tus tsav tsheb no yog tias koj siv Mac. Qhov no yuav ua kom Arduino Nano 'Clone' tau sib xws nrog koj lub cuab yeej. Yog tias koj siv lub qhov rais koj yuav tsum nrhiav tus tsav tsheb sib txawv.
  • Cov tsev qiv ntawv- Adafruit DMA Neopixel Library- DS1307RTC

Kauj Ruam 2: Arduino Nano, RTC thiab LED NeoPixel Sawb

Arduino Nano, RTC thiab LED NeoPixel Sawb
Arduino Nano, RTC thiab LED NeoPixel Sawb
Arduino Nano, RTC thiab LED NeoPixel Sawb
Arduino Nano, RTC thiab LED NeoPixel Sawb
Arduino Nano, RTC thiab LED NeoPixel Sawb
Arduino Nano, RTC thiab LED NeoPixel Sawb
Arduino Nano, RTC thiab LED NeoPixel Sawb
Arduino Nano, RTC thiab LED NeoPixel Sawb

Lub moos no qhia lub sijhawm los ntawm LED NeoPixel Sawb, nthuav qhia vib nas this, feeb thiab teev. Ua ntej koj tuaj yeem siv Arduino software txhawm rau sau koj cov neopixels, koj yuav tsum teeb tsa thiab muab lub zog rau koj 3 lub hauv paus tseem ceeb, Arduino Nano, RTC thiab LED NeoPixel Sawb. Txhawm rau ua qhov no, koj xav tau siv lub lauj kaub tais diav txhawm rau ntxig tag nrho koj cov xov hlau lossis koj tuaj yeem muab lawv tso rau hauv qhov chaw los ntawm kev ua raws daim duab. Kuv hloov kuv lub zog siv rau Arduino nws tus kheej kom nws tuaj yeem tig los ntawm USB Cable, rau qhov no kuv ua kom ntseeg tau tias cov hlau liab mus rau 5, dub rau hauv av thiab xiav hauv PIN8.

Thaum tag nrho koj cov xov hlau nyob hauv qhov chaw koj tuaj yeem ntsaws lub micro USB them cable rau hauv koj lub computer thiab rau hauv Arduino Nano. Thoob plaws hauv lub tshuab hluav taws xob no peb tab tom muab lub zog rau Arduino Nano los ntawm kev them nyiaj cable. Los ntawm no, koj tuaj yeem ntxig koj tus lej thiab xa nws mus rau neo pixel strip (saib cov kauj ruam tom ntej).

*Thaum koj tau xa cov cai mus rau Arduino Nano koj tuaj yeem hloov pauv los ntawm ntsaws qhov no los ntawm koj lub khoos phis tawj/khoos phis tawj rau hauv phab ntsa txuas rau lub moos kom dai.

Kauj Ruam 3: Teeb Txoj Cai

Muaj ob peb kauj ruam uas koj yuav tsum tau ua ua ntej koj tuaj yeem siv cov cai dhau los ntawm Arduino Software. Koj yuav tsum xub teeb tsa tus tsav tsheb thiab cov tsev qiv ntawv (cov no tuaj yeem pom hauv thawj kauj ruam). Thaum koj ua tiav qhov no koj tuaj yeem qhib Arduino software thiab tom qab ntawv zipped cov ntaub ntawv ntawm kuv tus lej, "NeoPixel Sawb Clock Code". Tom qab ntawd koj yuav tsum tau hloov Pawg Thawj Coj mus rau Arduino Nano thiab hloov chaw nres nkoj thiab txheej txheem. Kuv muaj kuv qhov chaw nres nkoj teeb tsa ntawm qhov kev xaiv uas tshwm tom qab ntsaws rau hauv usb, /dev/cu.usbserial-1420 tab sis koj tseem tuaj yeem siv qhov chaw nres nkoj no /dev/cu.wchusbserial1410 lossis /dev/tty.wchusbserial14210. Kuv lub processor txuas nrog ATmega328P (Old Bootloader).

Cov kauj ruam tom ntej yog kom ntseeg tau tias koj tus lej #define tau teeb tsa tus lej raug raws qhov koj tau teeb tsa ntawm Arduino Nano - Hauv kuv li, PIN 8.

Txhawm rau hloov cov xim ntawm koj cov LEDS koj tuaj yeem hloov kho qhov chaws nrog qhov sib txawv hexadecimal qhov tseem ceeb. Koj tuaj yeem ua qhov no los ntawm kev hloov pauv ib feem ntawm cov cai:

strip.setPixelColor (hourval, 0xFF5E00);

Los ntawm kev hloov 6 tus lej ua ntej 0x koj tuaj yeem tsim ntau yam xim txias los tso saib koj li vib nas this, feeb thiab teev nyob rau hauv. *Yog tias koj tsis paub meej tias tus lej sib xws rau xim yog dab tsi, koj tuaj yeem saib hauv cov hauv paus hauv paus qhov twg Kuv twb txuas lub tshuab hluav taws xob xim. Koj kuj tseem tuaj yeem hloov qhov ci ci ntawm koj cov LEDs los ntawm kev hloov ntu ntu ntawm cov cai no:

strip.begin (); strip.show (); // Pib tag nrho cov pixels rau 'tawm' strip.setBrightness (150);

Los ntawm kev kho tus lej ntawm kab kawg, koj tuaj yeem hloov qhov ci ntawm koj cov LEDs los ntawm 0-255. Kuv pom kev kho lub teeb ci kom hloov pauv xim ntawm kuv cov LEDs, muab nws sim!

Thaum koj tau ua si ib puag ncig thiab koj tau txheeb xyuas thiab suav koj tus lej, koj yuav tsum qhib RTC Hloov cov cai hauv koj li Arduino software. Tom qab ntawd koj yuav tsum txheeb xyuas thiab xa cov lej no mus rau Arduino Nano. Qhov no yuav hloov kho RTC txuas nrog lub sijhawm teev tseg ntawm koj lub laptop/computer. Tom qab ua qhov no, koj tuaj yeem rov tso koj li NeoPixel Sawb Clock Code rau Arduino, tsim kom raug lub sijhawm LED moos.

Kauj Ruam 4: Tsim Lub Sijhawm Teev

Lub Tsev Nceeg Vaj
Lub Tsev Nceeg Vaj
Lub Tsev Nceeg Vaj
Lub Tsev Nceeg Vaj
Lub Tsev Nceeg Vaj
Lub Tsev Nceeg Vaj
Lub Tsev Nceeg Vaj
Lub Tsev Nceeg Vaj

Txog qhov Qhia Ntawv no, Kuv tsim cov ntawv luam tawm laser ntawm tus kws kos duab uas suav nrog tag nrho 5 yam khoom/ntu uas koj yuav tsum tau luam tawm los tsim daim ntawv teev npe. Tsib lub Cheebtsam yog lub nplhaib sab nrauv, txhawb nqa sab nraub qaum, txhawb sab hauv, txhawb sab nraud thiab txuas kab. Txhua qhov kev tswj hwm kom haum rau hauv ib daim ntawv qhia uas yog 1219.2 x 609.6mm (vim qhov no yog qhov loj me ntawm lub txaj laser kuv tau siv). Koj yuav xav tau luam ib feem cais yog tias koj lub tshuab txiav laser muaj lub txaj me dua lossis koj daim ply tsis loj txaus. Txhua ntu tau tsim hauv 255RGB Liab thiab 0.1 kab kom ntseeg tau tias qhov teeb tsa raug rau lub tshuab txiav laser.

Thaum koj tau luam tawm tag nrho koj cov khoom, tam sim no koj tuaj yeem tso txhua yam ua ke. Pib nrog lub nplhaib, tam sim no koj tuaj yeem kab sab nrauv txhawb nqa hauv lub nplhaib (zoo li koj pom hauv daim duab), txuas txhua 4 tabs. Tom qab nyem Hauv txhua 4 tab koj yuav xav sim koj li kev txhawb nqa sab hauv. Ntxig sab hauv kev txhawb nqa kom nws so tawm tsam kev txhawb nqa sab nraud. Koj yuav tsum tau ua kom ntseeg tau tias txhua qhov ntawm cov ntsia hlau ua kab.

Tam sim no tias sab hauv thiab sab nraud txhawb nqa nyob hauv qhov chaw thiab zaum zoo, koj tuaj yeem pib ua haujlwm nrog cov ntaub npog ntawm lub moos. Tom qab nrhiav koj daim ntaub ntawm cov ntaub muslin koj tuaj yeem quav nws hauv ib nrab thiab ib nrab ntxiv kom nws muaj 4 txheej. Nws yuav tsum tau tuab txaus los zais Arduino Nano thiab cov xov hlau. Tom qab ua qhov no koj yuav tsum:

  • Muab lub nplhaib thiab sab nrauv txhawb nqa (nyem rau hauv) kom lub nplhaib nyob ntawm qhov ncaj ncaj rau hauv av
  • Rub cov ntaub hla tus ncej thiab thawb nws mus rau sab hauv ntawm lub nplhaib
  • Ntxig koj sab hauv txhawb sab hauv sab nrauv txhawb thiab ntaub
  • Kos qhov twg cov ntsia hlau qhov ntsib x4
  • Txiav lossis qhov punch tawm lub qhov me me ntawm cov ntaub uas qhov ntsia hlau qhov ntsib x4
  • Muab koj cov ntsia hlau Chicago hla kev txhawb nqa sab hauv - ntaub thiab sab nrauv txhawb nqa. Screwing thiab ruaj ntseg txhua yam hauv qhov chaw
  • Xyuas kom tseeb tias koj nthuav cov ntaub los tsim lub ntsej muag qhib ntsej muag (nyob ntawm qhov saib koj xav tsim dab tsi).
  • Txhim kho cov hlua LED raws txoj kev txhawb sab hauv kom ze rau cov ntaub raws li qhov ua tau
  • Daim kab xev Arduino Nano, RTC thiab xov hlau rau sab nraub qaum
  • Plug Hauv USB Cable rau Arduino thiab hlua los ntawm lub qhov nyob hauv qab kev txhawb nqa (txhawm rau txuas rau phab ntsa ntsaws)
  • Txiav thiab Muab cov ntaub tso rau hauv nruab nrab ntawm lub moos
  • Txuas qhov kev txhawb nqa nraub qaum rau nws plaub lub tab thiab ua kom ntseeg tau tias USB cable tau khiav qis dua hauv qab hauv ib feem uas tau muab
  • Plug rau hauv phab ntsa ntsaws

*Koj yuav tsum tau siv daim kab xev thoob plaws cov txheej txheem no, qhov no yuav pab koj ruaj ntseg txhua yam ib kauj ruam zuj zus.*Kuv kuj tau siv cov kua nplaum kub uas tsim nyog txhawm rau txhawm rau txhawm rau txhawb nqa lub nplhaib uas yog qhov tawg tawm ntawm qhov chaw los ntawm kev sib zog ntaub thiab ntoo*Yog tias koj muaj teeb meem txiav los ntawm plywood, pom teeb meem tua*Nco ntsoov tias ob daim duab kawg ntawm tus qauv tsim tau luam tawm hauv cov duab los qhia tab sis cia siab tias Nws ua rau lub tswv yim ntawm daim ntawv meej dua.

Kauj ruam 5: Teeb meem Shooting

Vim tias cov ntoo plywood feem ntau tau ua rog hauv nws cov qauv, muaj ob peb yam lus qhia yooj yim uas koj tuaj yeem siv yog tias koj lub tshuab txiav laser tsis txiav txhua txoj hauv kev los ntawm kev tsim. Kuv hnyav kuv cov plywood nrog cov kav hlau ntev, coj lawv mus rau daim ply, thiab ply rau lub tshuab. Kuv kuj tau nchuav thiab txhuam me me ntawm cov dej hla lub plua plav raws li nws tau luam tawm, qhov no tiv thaiv kev tsim los ntawm qhov hnyav laser hlawv. Cov kauj ruam no muaj txiaj ntsig tshwj xeeb tshaj yog tias koj yuav tsum rov luam koj cov ntawv ua piv txwv tom qab nws twb tau luam tawm lawm (kom txiav tag nrho).

Kuv tsis tuaj yeem txiav txim siab yuav ua li cas kom muaj tag nrho peb lub LEDs ntau rau lub sijhawm hla ntawm 12-1. Qhov no yuav yog lub hauv paus tseem ceeb los siv rau hauv txoj cai

Qhov ntev ntawm daim ntawv txiav cov ntawv laser tsis zoo tag nrho, rau cov khoom lag luam zoo kawg uas yuav tsum tau hloov kho.

Kauj Ruam 6: Cov peev txheej thiab Kev lees paub

Tsav Tsheb - Rub tus tsav tsheb no yog tias koj siv Mac kom Arduino Nano 'clone' tau sib xws nrog koj lub cuab yeej.

Tsev qiv ntawv -

  • Adafruit DMA Neopixel Lub Tsev Qiv Ntawv
  • DS1307 RTC

Thawj Qhia - Kuv ua raws li kuv qhov kev tsim tawm - tshwj xeeb cov cai rau Microcontroller thiab RTC.

Xim Xaiv - Xaiv koj cov xim hexadecimal los ntawm no

Pob khawm Nyob - Qhov twg kuv pom tus qauv uas kuv siv los tsim kuv sab hauv thiab sab nraud txhawb nqa. Kuv hloov daim ntawv ntawm cov no rau cov duab plaub ntev thiab ntxiv hauv kuv tabs thiab ntsia hlau qhov.

Fab Lab WGTN - Thoob plaws qhov haujlwm no kuv tau ua haujlwm hauv Wellington Fab Lab los tsim kuv tus qauv. Kuv tau ua haujlwm nrog cov neeg ua haujlwm (Wendy, Harry) los ntawm ib qho kev hloov kho uas kuv tsis paub meej txog.

Qhib Tsim thiab Digital Fabrication, Massey University

LUS CEEB TOOM: Vim yog hloov kho Lub Pob Zeb Nyob hauv kuv tus kheej tsim, Kuv ua raws li lawv daim ntawv tso cai CC rau kuv tus kheej tsim.

Kuv vam tias koj tau tswj hwm los nrhiav txhua yam thoob plaws kuv cov lus qhia kom koj tuaj yeem ua koj tus kheej LED NeoPixel Clock. Qhia rau kuv paub yog tias koj xav tau cov ntaub ntawv ntxiv

Pom zoo: