Cov txheej txheem:

DIY Ambient Phab Ntsa Teeb: 9 Kauj Ruam
DIY Ambient Phab Ntsa Teeb: 9 Kauj Ruam

Video: DIY Ambient Phab Ntsa Teeb: 9 Kauj Ruam

Video: DIY Ambient Phab Ntsa Teeb: 9 Kauj Ruam
Video: Phab is an Open World | Fitness made fun! 2024, Hlis ntuj nqeg
Anonim
DIY Ambient Phab Ntsa Teeb
DIY Ambient Phab Ntsa Teeb

Nyob zoo. Kuv yog Anonymous Shrimp, zoo siab txais tos rau thawj qhov Qhia Qhia los ntawm cov channel no. Yog tias koj xav pom ntau ntxiv ntawm no, txheeb xyuas kuv tus Youtube channel ntawm no:

Tam sim no, mus rau qhov kev qhia. Cov teeb ntsa no tau tswj hwm los ntawm ib qhov ntev tuaj yeem hais qhia RGB kab. Muaj 4 hexes nrog kab txaij thiab ib qho ir sensor, thiab ib lub ntsiab hex. Qhov loj hex no suav nrog Ardiuno nano, thiab ob peb yam ntxiv.

Khoom siv

Qauv

  1. Ua npuas ncauj lossis ntoo
  2. Kub kua nplaum
  3. Dual kaw Velcro/phab ntsa mounts
  4. Cov kab xev (xaiv tau)
  5. 3D luam tawm 120 Cov Cim (https://bit.ly/2YRMyCY)

Electronics

  1. Arduino Nano:
  2. WS2811 Chaw Nyob RGB LED Sawb: amzn.to/2CmM2oR
  3. IR Sensors: https://amzn.to/2V02Ok1 (Tsis teb los tau Qhov no yuav tsim kev tawm tswv yim los tsim qee yam txias thaum koj txhais tes hovers. EX: Lub teeb nyem dawb thaum koj txhais tes hover)
  4. Protoboard (Thiab headers):
  5. 30 AWG Hlau:
  6. Resistors
  7. Cov xwm txheej LED

Kauj ruam 1: Saib Video

Image
Image

Los ntawm kev saib daim vis dis aus 2 feeb, koj tuaj yeem nkag siab qhov yooj yim ntawm txoj haujlwm

Kauj Ruam 2: Txiav Tawm Ua Npuas Ncauj

Txiav Tawm Ua Npuas Ncauj
Txiav Tawm Ua Npuas Ncauj

Koj tuaj yeem xub kos kab rau txhua tus hexes ntawm koj cov npuas lossis ntoo.

Rau txhua hex, koj yuav xav tau:

  1. 1 hexagon 6 hauv ob sab
  2. 61x6 wb

Tau kawg, koj tuaj yeem hloov qhov ntau thiab tsawg lossis txawm tias hloov cov duab. Tsuas yog xyuas kom tseeb tias sab ntawm lub polygon yog qhov ntev ib yam li cov duab plaub.

Kauj Ruam 3: Tsim Hexes

Tsim Hexes
Tsim Hexes

Siv cov ntawv txiav tshiab los ua ib lub thawv. Ib txoj hauv kev yooj yim los txuas lawv ua ke yog ua kom luav txiav, tom qab ntawd muab lo rau hauv cov duab plaub ua npuas ncauj. Yog tias koj siv ntoo, koj tuaj yeem siv ntoo nplaum thiab ntsia hlau.

Tom qab ntawd, siv 3D luam tawm 120 kab xev los sib dhos cov duab plaub ua ke. Yog tias koj tsis muaj lub tshuab luam ntawv 3D, koj tuaj yeem siv cov kua nplaum ntau dua, lossis khoov hlau 90 kab zauv. Tsis tas li ntawd, txoj hlua khi yog 120 degrees vim tias lub hexagon lub kaum sab xis yog 120. Yog tias koj tab tom ua daim duab peb sab, nws yuav yog 60 degrees.

Nco ntsoov txhuam txhua yam kom ua tiav zoo.

Thaum kawg, tso koj cov phab ntsa los yog Velcro nyob tom qab.

Kauj Ruam 4: Ua Hex Electronics

Ua Hex Electronics
Ua Hex Electronics
Ua Hex Electronics
Ua Hex Electronics

Txhua tus hexes muaj VCC, GND, IN, OUT, thiab IR. Yog li txhua tus yuav tsum muaj 5 xaim tawm los.

Txuag ib qho ntawm hexes rau tus tswj hwm tseem ceeb, rau txhua tus ntawm lwm tus, ua raws cov theem no:

  1. Txoj hlua RGB LEDs nyob ib puag ncig sab hauv ntawm hex.
  2. Ua raws daim kab xev nplaum, siv cov kua nplaum kub kom ruaj ntseg. Koj kuj tseem tuaj yeem siv cov kab xev kaw kom ruaj ntseg kab txaij (xaiv tau)
  3. Siv cov xov hlau txuas mus rau qhov kawg ntawm txoj hlua. 2 ntawm lawv yuav tsum yog VCC, thiab 2 yuav tsum yog hauv av. 1 ntawm txhua tus rau DIN thiab Ua
  4. Siv rab riam siv hluav taws xob txiav ib lub duab plaub me me rau ntawm lub hex kom muab 5 tus taub hau taub hau. (Tsis teb los tau)
  5. Yog tias koj xaiv siv IR sensor, xaim hluav taws xob txuas rau IR Sensor. Yuav tsum muaj VCC, GND, thiab Tawm
  6. Kuaj txhua tus VCC cov xov hlau ua ke, thiab tom qab ntawd txuas nws mus rau thawj tus pin ntawm tus pin header. Yog tias koj tsis siv tus pin header, txuas nws mus rau xaim ntev.
  7. Kuaj txhua tus ntawm GND xov hlau ua ke, thiab tom qab ntawd txuas nws mus rau tus lej thib ob ntawm tus pin header.
  8. Siv lub DIN xaim ntawm kab txaij rau tus pin thib peb ntawm tus pin header.

  9. Solder DO hlau ntawm kab txaij rau tus pin thib peb ntawm tus pin header.
  10. Solder OUT hlau yog tias IR sensor mus rau tus lej thib peb ntawm tus pin header.

Ua qhov no rau txhua qhov hexes tshwj tsis yog rau ib qho uas yuav siv los ua lub hauv paus tseem ceeb

Kauj Ruam 5: Ua Lub Hauv Paus Loj Hex

Ua Main Hex Electronics
Ua Main Hex Electronics
Ua Main Hex Electronics
Ua Main Hex Electronics

Txoj haujlwm no tau khiav tawm ntawm Arduino micro controller. Schematic zoo li nyuab dua li qhov yog. Koj tuaj yeem xau nws rau lub protoboard, tab sis yog tias koj tsis muaj peev xwm nkag tau rau qee qhov, koj tuaj yeem siv lub khob cij. Kuv nyiam siv protoboard vim tias nws nyob me ntsis ntxiv. Yeej, lub rooj tsav xwm tseem ceeb tsuas yog ib qho ntawm lwm qhov hexes, nrog RGB Sawb xov nyob ib puag ncig thiab IR Sensor. Lub rooj tsav xwm tseem ceeb muaj ntau tus pin headers ntau dua li tso tawm rau lwm qhov hexes. Muaj 5 tus pin rau txhua tus hex. VCC, GND, RGB Hauv, RGB Tawm, IR. Txhua tus IR pins mus rau ib qho ntawm cov lej digital ntawm Arduino. VCC Mus rau 5V ntawm Arduino, GND rau GND. Rau ib qho ntawm cov teeb ntawm tus pin headers, RGB In yuav tsum yog hauv av rau tus lej digital ntawm Arduino los ntawm 330 ohm resistor. Qhov thib ob RGB Hauv mus rau thawj RGB Tawm. Thib Peb RGB Hauv rau qhov thib ob RGB Tawm thiab nws ua raws mus txog thaum koj teeb tsa kawg ntawm tus pin headers tsis muaj RGB Tawm. Los yog tsawg kawg, RGB tawm mus tsis pom qhov twg. Ib qho ntxiv, kuv ntxiv qhov xwm txheej LED rau ntsuas zoo.

Kauj Ruam 6: Nkag Siab Txoj Cai (lossis Sau Koj Tus Kheej)

Nkag Siab Txoj Cai (lossis Sau Koj Tus Kheej)
Nkag Siab Txoj Cai (lossis Sau Koj Tus Kheej)

Cov kauj ruam no tuaj yeem hla yog tias koj tsis quav ntsej tiag.

Tsuas yog qhov kuv xav qhia rau koj yog tias muaj kab uas tuaj yeem hloov pauv hloov cov qauv ntawm lub teeb.

Kauj Ruam 7: Xeem Hexes

Xeem Hexes
Xeem Hexes

Tom qab xa cov cai mus rau Arduino (Cov lej tuaj yeem pom ntawm no: https://bit.ly/3fEHuIJ), ntsaws rau txhua tus hexes rau tus pin headers ntawm lub ntsiab hex. Yog tias nws tig rau, zoo! Yog tsis yog, txheeb xyuas txhua qhov kev sib txuas. Kuv tau kib ib qho ntawm kuv Arduino nanos vim tias ntawm ib qho ntawm hexes, Kuv hloov VCC thiab GND ntawm RGB Sawb. Sim sim txhua tus hexes ib tus zuj zus. Nco ntsoov, yog tias thawj hex tsis ua haujlwm, lossis raug txiav tawm, tus so tsis ua haujlwm vim yog txoj kev uas peb txuas nws.

Yog tias koj tau txais yog ua haujlwm, npog IR Sensor xwm txheej LEDs thiab Arduino cov xwm txheej teeb tsa coj nrog kab xev hluav taws xob. Lawv tsuas yog ua kom puas tsuaj xwb.

Kauj Ruam 8: Npog Hexes

Npog Hexes
Npog Hexes

Nrog daim ntawv taug qab, npog cov hexes nrog nws. Koj tuaj yeem siv daim kab xev ntim ntim kom ruaj ntseg, lossis kua nplaum. Nco ntsoov tias koj tsis npog lub hau taub hau.

Yog tias koj muaj IR sensor, ua ntej kev sib khi ua tiav, siv lub hau ntswj me me los ntsuas qhov ntsuas IR mus rau daim ntawv hla tshiab los ntawm kev sib tw lub hwj chim ntsuas lub ntsuas (Clockwise = Rhiab dua, CCW = tsis nkag siab).

Kauj ruam 9: Ua tiav

Tiav lawm!
Tiav lawm!

Tom qab teeb tsa nws ntawm phab ntsa, thiab ntsaws txhua yam rov qab rau hauv, thaum kawg koj ua tiav!. Sim tig chav tsaus, ces nws zoo li txias heev. Ua tsaug rau koj ua qhov no deb, thiab txaus siab rau lub teeb zoo ntawm koj phab ntsa.

Txuas ntxiv:

Lub Vev Xaib: sites.google.com/view/anonymous-shrimp/home?authuser=0

Lub vev xaib txuas mus rau qhov project: sites.google.com/view/anonymous-shrimp/projects/diy-nano-leaf?authuser=0

YT:

Pom zoo: