Cov txheej txheem:

Arduino SteamPunk Goggles - Yooj Yim DIY: 9 Kauj Ruam
Arduino SteamPunk Goggles - Yooj Yim DIY: 9 Kauj Ruam

Video: Arduino SteamPunk Goggles - Yooj Yim DIY: 9 Kauj Ruam

Video: Arduino SteamPunk Goggles - Yooj Yim DIY: 9 Kauj Ruam
Video: Arduino SteamPunk Goggles - Simple DIY Tutorial 2024, Kaum ib hlis
Anonim

Hauv phau ntawv qhia no peb yuav kawm paub yuav ua li cas Legendary SteamPunk Goggles uas hloov xim siv LED Rings thiab Arduino.

Saib cov yees duab!

Kauj ruam 1: Yam Koj Yuav Tsum Tau

Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
  • Vuam tsom iav
  • 2X NeoPixel - Ws2812 RGB LED Nplhaib (nrog 12 LEDs)
  • Arduino UNO (lossis lwm yam Arduino)
  • Jumper xov hlau
  • Visuino software: Rub tawm Visuino
  • Nco tseg: siv Arduino Nano (vim tias nws me dua) tsuas yog txuas nws rau tib tus pin thiab hauv Visuino hloov ntawm Arduino UNO xaiv Arduino Nano

Kauj ruam 2: Circuit Court

Circuit Court
Circuit Court
  • Txuas Arduino board tus pin 5V rau thawj LedRing tus pin VCC
  • Txuas Arduino board tus pin GND rau thawj LedRing tus pin GND
  • Txuas Arduino board Digital pin 2 rau thawj LedRing pin DI
  • Txuas Arduino board tus pin 5V rau tus thib ob LedRing tus pin VCC
  • Txuas Arduino pawg thawj coj tus pin GND rau tus thib ob LedRing tus pin GND
  • Txuas Arduino board Digital tus pin 3 rau tus thib ob LedRing tus pin DI

Hlau txhua yam raws li cov txheej txheem tom qab ntawd siv Cov kua nplaum Kub thiab teeb tsa txhua lub LedRing ntawm lub tsom iav

Kauj Ruam 3: Pib Visuino, thiab Xaiv Arduino UNO Board Type

Pib Visuino, thiab Xaiv Arduino UNO Board Type
Pib Visuino, thiab Xaiv Arduino UNO Board Type
Pib Visuino, thiab Xaiv Arduino UNO Board Type
Pib Visuino, thiab Xaiv Arduino UNO Board Type

Visuino: https://www.visuino.eu tseem yuav tsum tau teeb tsa. Rub tawm Dawb version lossis sau npe rau Kev Sim Dawb.

Pib Visuino raws li pom hauv thawj daim duab Nyem rau ntawm "Cov cuab yeej" khawm ntawm Arduino tivthaiv (Daim Duab 1) hauv Visuino Thaum qhov kev sib tham tshwm, xaiv "Arduino UNO" raws li qhia hauv daim duab 2

Kauj Ruam 4: Hauv Visuino Ntxiv Cheebtsam

Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
  • Ntxiv 2X "Random Analog Generator" tivthaiv
  • Ntxiv "Sine Analog Generator" tivthaiv
  • Ntxiv "Sine Unsigned Generator" tivthaiv
  • Ntxiv "Analog To Color" tivthaiv
  • Ntxiv 2X "NeoPixels" tivthaiv

Kauj Ruam 5: Hauv Visuino Teeb Cov Khoom

Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem

Xaiv "SineUnsignedGenerator1" thiab hauv cov khoom qhov rai teeb tsa Amplitude rau 6, Zaus (Hz) txog 0.8 thiab Offset rau 6

  1. Ob npaug nias rau ntawm "NeoPixels1" thiab hauv "PixelGroups" qhov rai luag "Xim Pixel" mus rau sab laug thiab hauv cov khoom qhov rai teeb tsa "Suav Pixels" mus rau 12 PixelGroups "window
  2. Ob npaug nias rau ntawm "NeoPixels2" thiab hauv "PixelGroups" lub qhov rais luag "Xim Pixel" mus rau sab laug thiab hauv lub qhov rai khoom teeb tsa "Suav Pixels" rau 12 <qhov no yog qhov nyiaj ntawm LEDs ntawm LEDRing Kaw qhov "PixelGroups" qhov rai

Kauj Ruam 6: Hauv Visuino Connect Components

Hauv Visuino Connect Components
Hauv Visuino Connect Components
  • Txuas "RandomAnalogGenerator1" tus pin tawm mus rau "AnalogToColor1" tus pin liab
  • Txuas "RandomAnalogGenerator2" tus pin tawm mus rau "AnalogToColor1" tus pin ntsuab
  • Txuas "SineAnalogGenerator1" tus pin tawm mus rau "AnalogToColor1" tus pin xiav
  • Txuas "AnalogToColor1" tus pin tawm mus rau "NeoPixels1" tus pin xim
  • Txuas "AnalogToColor1" tus pin tawm mus rau "NeoPixels2" tus pin xim
  • Txuas "SineUnsignedGenerator1" tus pin tawm mus rau "NeoPixels1" tus lej ntsuas
  • Txuas "SineUnsignedGenerator1" tus pin tawm mus rau "NeoPixels2" tus lej ntsuas
  • Txuas "NeoPixels1" tus pin tawm rau Arduino tus lej digital 2
  • Txuas "NeoPixels2" tus pin tawm mus rau Arduino tus pin 3

Kauj Ruam 7: Tsim, Ua Ke, thiab Tshaj Tawm Arduino Code

Tsim, Sau, thiab Tso Tawm Arduino Code
Tsim, Sau, thiab Tso Tawm Arduino Code

Hauv Visuino, hauv qab nyem rau ntawm "Tsim" Tab, xyuas kom tseeb tias qhov chaw nres nkoj raug xaiv, tom qab ntawd nyem rau ntawm "Compile/Build and Upload" khawm.

Kauj ruam 8: Ua si

Yog tias koj ua lub zog Arduino module, LEDRings yuav pib hloov xim.

Nrog koj zoo siab! Koj tau ua tiav koj txoj haujlwm nrog Visuino. Kuj txuas nrog yog Visuino qhov haujlwm, uas kuv tau tsim rau Cov Lus Qhia no, koj tuaj yeem rub nws thiab qhib nws hauv Visuino:

Kauj Ruam 9: Ua kom muaj zog

Yog tias koj npaj rau lub zog Arduino nrog lub roj teeb koj tuaj yeem siv PowerBank uas muaj lub USB txuas kom koj tuaj yeem txuas nws yooj yim.

Yog tias koj npaj yuav siv roj teeb 9V lossis zoo sib xws ces siv xov hlau txuas lub roj teeb tsis zoo tus pin (-) rau Arduino tus pin [GND] thiab txuas lub roj teeb zoo tus pin (+) rau Arduino tus pin [VIN]

Pom zoo: