Cov txheej txheem:

DIY - Cov RGB Goggles: 3 Kauj Ruam (nrog Duab)
DIY - Cov RGB Goggles: 3 Kauj Ruam (nrog Duab)

Video: DIY - Cov RGB Goggles: 3 Kauj Ruam (nrog Duab)

Video: DIY - Cov RGB Goggles: 3 Kauj Ruam (nrog Duab)
Video: Колыма - родина нашего страха / Kolyma - Birthplace of Our Fear 2024, Kaum ib hlis
Anonim
Image
Image
DIY | Cov RGB tsom iav
DIY | Cov RGB tsom iav
DIY | Cov RGB tsom iav
DIY | Cov RGB tsom iav

Hav! Kuv tau ua RGB Goggles siv WS2812B LEDs thiab Arduino Nano. Qhov Goggles muaj ntau yam duab uas lawv tuaj yeem tswj tau siv mobile app. The app tuaj yeem sib tham nrog arduino los ntawm Bluetooth Module.

Khoom siv

  • Nano Arduino (1)
  • WS2812B LEDs (88)
  • HC06 Bluetooth Module (1)
  • 3.7V Roj Teeb (1)
  • On/Off Hloov (1)
  • Khub Ntawm Goggles

Kauj Ruam 1: Kev Sib Txuas Hauv Circuit

Kev Sib Txuas Circuit
Kev Sib Txuas Circuit
Kev Sib Txuas Circuit
Kev Sib Txuas Circuit
Kev Sib Txuas Circuit
Kev Sib Txuas Circuit
  • Coj 88 WS2812b LEDs thiab npaj rau ntawm daim kab xev cello lossis daim kab xev ob tog.
  • Cov LEDs yuav tsum tau teeb tsa hauv txoj hauv kev uas txhua qhov chaw thiab Vcc yuav tsum yog nyob hauv tib txoj kab.
  • Cov kab LEDs sib txawv yuav tsum tau hloov pauv kom GND/Vcc dhau los ua ib qho rau ob kab LEDs.
  • Ua txhua qhov LEDs Cov Ntaub Ntawv hauv thiab Cov Ntaub Ntawv tawm kev sib txuas.
  • Tom qab tag nrho cov LEDs txuas tam sim no txuas Arduino raws li qhia hauv daim duab kos.
  • GND ~ NCO
  • 5v/3v ~ Vin/5v
  • Cov ntaub ntawv tus pin ~ Pin 3

Kauj ruam 2: Code

Code
Code
  • Ua ntej Uploading code kom paub tseeb tias RXD thiab TXD pins raug txuas.

  • Qhib cov cai hauv Arduino IDE.
  • Suav tag nrho cov tsev qiv ntawv uas muaj nyob hauv cov cai.
  • Xaiv Pawg Hom thiab Chaw Nres Nkoj.
  • Upload Cov Cai.
  • Tom qab Uploading code txuas lawv rov qab.
  • Code thiab App Txuas:

Kauj ruam 3: App teeb tsa

Teem App
Teem App
Teem App
Teem App
  • Nruab Lub app muab rau hauv kab ntawv txuas saum toj no.
  • Qhib Bluetooth nqis.
  • Qhib lub Goggles.
  • Tshawb nrhiav HC06 Hauv Bluetooth Chaw thiab ua ke nws los ntawm kev nkag tus password li 1234.
  • Qhib lub app nyem rau ntawm Bluetooth Icon Xaiv HC06.
  • Thiab Koj Npaj Tau!
  • Nyem rau ntawm cov duab koj xav tau.
  • Muab tag nrho cov khoom siv hluav taws xob tso rau hauv ib lub taub ntim.

Pom zoo: