Cov txheej txheem:

RGB HexMatrix - IOT Moos: 5 Kauj Ruam (nrog Duab)
RGB HexMatrix - IOT Moos: 5 Kauj Ruam (nrog Duab)

Video: RGB HexMatrix - IOT Moos: 5 Kauj Ruam (nrog Duab)

Video: RGB HexMatrix - IOT Moos: 5 Kauj Ruam (nrog Duab)
Video: 20 MOMENTS YOU WOULDN'T BELIEVE IF NOT FILMED 2024, Kaum ib hlis
Anonim
Image
Image
RGB HexMatrix | IOT Moos
RGB HexMatrix | IOT Moos
RGB HexMatrix | IOT Moos
RGB HexMatrix | IOT Moos

Fusion 360 Cov Haujlwm »

HexMatrix yog LED matrix muaj ntau daim duab peb sab. Rau pixels sib txuas ua rau hexagon. Muaj ntau ntau cov duab sib txawv uas tuaj yeem pom ntawm daim ntawv matrix FastLED lub tsev qiv ntawv, Tsis tas li kuv tau tsim tus lej los ntawm 0 txog 9 siv 10 ntu rau txhua tus lej hauv cov lej thiab ua IOT moos.

Khoom siv

  • ESP8266 lossis Arduino (Uno/Nano)
  • WS2811 LED (96 LEDs)
  • 5V/2A Fais Fab Khoom
  • 3D Luam Ntawv

Kauj Ruam 1: 3D Luam Ntawv:

3D Luam Ntawv
3D Luam Ntawv
3D Luam Ntawv
3D Luam Ntawv
3D Luam Ntawv
3D Luam Ntawv
  • 3D luam tawm txhua qhov muab ua qauv 3D: Nyem qhov no rau STL Cov Ntaub Ntawv thiab Cov Cai
  • Luam tawm txheej txheej hauv PLA dawb.

Kauj Ruam 2: Kev Sib Txuas Circuit:

Kev Sib Txuas Circuit
Kev Sib Txuas Circuit
Kev Sib Txuas Circuit
Kev Sib Txuas Circuit
  • Ua txhua qhov kev sib txuas raws li qhia hauv daim duab qhia chaw.
  • GND ~ -Ve
  • Vin ~ 5V ~+Ve
  • DataIn ~ Pin 2
  • Kuj tseem txuas cov xov hluav taws xob txuas mus rau LED kawg thiab txuas, txhawm rau tiv thaiv qhov hluav taws xob poob thoob plaws cov LEDs.

Kauj ruam 3: Nco tseg:

  • Yog tias koj siv Arduino board ces koj tsuas tuaj yeem tso saib cov duab, koj tsis tuaj yeem tso saib sijhawm.
  • Yog tias koj siv ESP8266 pawg thawj coj saib peb tuaj yeem tso saib lub sijhawm thiab lwm yam kev ua yeeb yaj kiab ntawm qhov sib piv.

Kauj Ruam 4: Sib dhos:

Sib dhos
Sib dhos
Sib dhos
Sib dhos
Sib dhos
Sib dhos
  • Muab tag nrho cov LEDs hauv kev txiav txim zoo.
  • Sib sau txhua yam ua ke.
  • Solder tus txuas rau Microcontroller board, qhov txuas raug coj los ntawm lwm qhov kawg ntawm kab LEDs.

Kauj ruam 5: Coding:

Coding
Coding
Coding
Coding
Coding
Coding
  • Nyem qhov no rau cov lej
  • Rau cov lej no kuv tau ua peb tus lej HexMatrix.ino, clock1.ino thiab clock2.ino.
  • HexMatrix code yog tus lej rau tso saib cov tsiaj ntawv ntawm cov lej, nws tuaj yeem ua haujlwm ntawm txhua lub Microcontroller board.
  • Clock thiab clock2 code tsuas yog ua haujlwm ntawm ESP8266 cov laug cam.

HexMatrix.ino:

  • Qhib cov cai muab hauv Arduino IDE.
  • Nruab FastLED Library hauv Arduino IDE.
  • Xaiv hom pawg thawj coj, chaw nres nkoj thiab xa cov cai.

Clock1 thiab Clock2 Codes:

  • Qhib cov cai hauv Arduino IDE.
  • Hauv txoj cai no peb tuaj yeem hloov qhov txiaj ntsig no raws li qhov peb xav tau xim

// Lig xim qhov tseem ceeb hauv RGBint r = 255;

ua g = 255;

int ib = 255;

// Cov xim keeb kwm yav dhau hauv RGB

int ib = 0;

int ib = 20;

int bb = 10;

Sau lub npe Wifi thiab tus password

const char* ssid = "Wifi_Name";

const char* password = "Password";

Nkag mus rau thaj tsam sijhawm ntawm koj lub tebchaws (Is Nrias teb 5: 30 = 5.5 zoo ib yam nkag mus rau koj lub sijhawm)

// Koj lub sijhawm nyob ib puag ncig lub sijhawm = -5.5 * 3600;

  • Xaiv hom pawg thawj coj ua ESP8266, xaiv qhov chaw nres nkoj thiab xa cov cai.
  • Sib nrug los ntawm qhov no peb kuj muaj ntau lwm yam kev ua yeeb yaj kiab hauv FastLED Piv txwv.

Pom zoo: