Cov txheej txheem:
- Kauj ruam 1: Yam Koj Yuav Tsum Tau
- Kauj ruam 2: Circuit Court
- Kauj Ruam 3: Pib Visuino, thiab Xaiv Arduino UNO Board Type
- Kauj Ruam 4: Hauv Visuino Ntxiv Cheebtsam
- Kauj Ruam 5: Hauv Visuino Teeb Cov Khoom
- Kauj Ruam 6: Hauv Visuino Connect Components
- Kauj Ruam 7: Tsim, Ua Ke, thiab Tshaj Tawm Arduino Code
- Kauj ruam 8: Ua si
Video: Arduino Neopixel LED Nplhaib Ws2812 - Visuino Tutorial: 8 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Hauv qhov kev qhia no peb yuav kawm paub yuav ua li cas thiaj tswj tau Neopixel Led Ring Ws2812 siv Arduino thiab Visuino kom khiav LED pixel ib puag ncig.
Saib daim vis dis aus.
Kauj ruam 1: Yam Koj Yuav Tsum Tau
- Arduino UNO (lossis lwm yam Arduino)
- Neopixel LED nplhaib
- Jumper xov hlau
- Visuino program: Rub tawm Visuino
Kauj ruam 2: Circuit Court
- Txuas LED Ntiv Nplhaib [VCC] rau Arduino tus pin [+5V]
- Txuas LED Ntiv Nplhaib [GND] rau Arduino tus pin [GND]
- Txuas LED Ntiv Nplhaib [IN] lossis (DI) rau Arduino tus pin [6]
Kauj Ruam 3: Pib Visuino, thiab Xaiv Arduino UNO Board Type
Txhawm rau pib ua haujlwm rau Arduino, koj yuav tsum muaj Arduino IDE teeb tsa los ntawm no:
Thov nco ntsoov tias muaj qee qhov teeb meem tseem ceeb hauv Arduino IDE 1.6.6. Nco ntsoov tias koj nruab 1.6.7 lossis siab dua, txwv tsis pub Cov Lus Qhia no yuav tsis ua haujlwm! Yog tias koj tsis tau ua raws cov kauj ruam hauv Phau Ntawv Qhia no teeb tsa Arduino IDE rau program Arduino UNO! Visuino: https://www.visuino.eu tseem yuav tsum tau teeb tsa. 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
- Ntxiv "Clock Generator" tivthaiv
- Ntxiv "Counter" tivthaiv
- Ntxiv "Sib Piv Tus Nqi" tivthaiv
- Ntxiv "Random RGBW Xim" tivthaiv
- Ntxiv "NeoPixels" tivthaiv
Kauj Ruam 5: Hauv Visuino Teeb Cov Khoom
- Xaiv "ClockGenerator1" tivthaiv thiab hauv cov khoom qhov rai teeb tsa "Zaus" rau 10
- Xaiv "Counter1" tivthaiv thiab hauv cov khoom qhov rai teeb tsa "Max" txog 12 lossis 16 (Nyob ntawm seb muaj pes tsawg LED koj lub nplhaib LED muaj)
- Xaiv "Counter1" tivthaiv thiab hauv cov khoom qhov rai teeb tsa "Min" rau 0
- Xaiv "CompareValue1" tivthaiv thiab teeb "Tus nqi" rau 12 lossis 16 (Nyob ntawm seb muaj pes tsawg LED koj lub nplhaib LED muaj)
- Xaiv "CompareValue1" tivthaiv thiab teeb tsa "Sib Piv Hom" rau ctNotEqual
- Ob npaug nias rau ntawm "NeoPixels1" thiab hauv "PixelGroups" qhov rai luag "Xim Pixel" mus rau sab laug
- Ntawm sab laug ntawm "PixelGroups" lub qhov rai tom qab ntawv xaiv "Xim Pixel1" thiab hauv cov khoom qhov rai teeb tsa "Suav Pixels" txog 12 lossis 16 (Nyob ntawm seb muaj pes tsawg LED koj lub nplhaib LED muaj)
Kauj Ruam 6: Hauv Visuino Connect Components
- Txuas "ClockGenerator1" tiv thaiv tus pin [Tawm] rau "Counter1" tiv thaiv tus pin [Hauv]
- Txuas "Counter1" tiv thaiv tus pin [Tawm] rau "CompareValue1" tiv thaiv tus pin [Hauv]
- Txuas "Counter1" tiv thaiv tus pin [Tawm] rau "NeoPixels1"> Xim Pixel1 tiv thaiv tus pin [Index]
- Txuas "CompareValue1" tiv thaiv tus pin [Tawm] rau "Counter1" tiv thaiv tus pin "Pib dua"
- Txuas "CompareValue1" tiv thaiv tus pin [Tawm] rau "RandomRGBWColor1" tiv thaiv tus pin "Clock"
- Txuas "RandomRGBWColor1" tiv thaiv tus pin [Tawm] rau "NeoPixels1"> Xim Pixel1 tiv thaiv tus pin [Xim]
- Txuas "NeoPixels1" tiv thaiv tus pin [Tawm] rau Arduino tus lej digital [6]
Kauj Ruam 7: Tsim, Ua Ke, thiab Tshaj Tawm Arduino Code
Hauv Visuino, Nias F9 lossis nyem rau ntawm lub pob uas qhia ntawm daim duab 1 los tsim Arduino code, thiab qhib Arduino IDE
Hauv Arduino IDE, nyem rau ntawm Upload khawm, txhawm rau sau thiab xa cov cai (Daim duab 2)
Kauj ruam 8: Ua si
Yog tias koj siv zog Arduino UNO module, lub nplhaib LED yuav pib hloov nws cov xim.
Nrog koj zoo siab! Koj tau ua tiav koj txoj haujlwm nrog Visuino. Kuj txuas nrog yog Visuino project, uas kuv tau tsim rau Cov Lus Qhia no, koj tuaj yeem rub tawm nws ntawm no thiab qhib nws hauv Visuino:
Pom zoo:
Qhov Ntsuas Qhov Ntsuas Neopixel Ws2812 LED Nplhaib & Arduino: 8 Kauj Ruam
Volume Indicator Neopixel Ws2812 LED Ring & Arduino: Hauv qhov kev qhia no peb yuav kawm paub yuav ua li cas thiaj li ua lub Volume Indicator siv Neopixel Ws2812 LED Ring thiab arduino.Watch Video
Kev Lom Zem Gyroscope Nrog Neopixel Nplhaib: 4 Cov Kauj Ruam (nrog Duab)
Gyroscope Fun With Neopixel Ring: Hauv qhov kev qhia no peb yuav siv MPU6050 gyroscope, lub nplhaib neopixel thiab arduino los tsim cov cuab yeej uas teeb coj coj mus rau lub kaum sab xis. Qhov no yog qhov haujlwm yooj yim thiab lom zem thiab nws yuav mus tau sib sau ua ke rau ntawm lub khob cij
Neopixel Ws2812 Zaj sawv LED Glow Nrog M5stick-C - Khiav Zaj sawv ntawm Neopixel Ws2812 Siv M5stack M5stick C Siv Arduino IDE: 5 Kauj Ruam
Neopixel Ws2812 Zaj sawv LED Glow Nrog M5stick-C | Khiav Zaj sawv ntawm Neopixel Ws2812 Siv M5stack M5stick C Siv Arduino IDE: Nyob zoo cov neeg hauv cov lus qhia no peb yuav kawm paub siv neopixel ws2812 LEDs lossis coj sawb lossis coj matrix lossis coj lub nplhaib nrog m5stack m5stick-C txhim kho pawg thawj coj nrog Arduino IDE thiab peb yuav ua zaj sawv zaj sawv nrog nws
Arduino Ws2812 LED lossis Neopixel Led Sawb lossis Ntiv Nplhaib Qhia: 4 Kauj Ruam
Arduino Ws2812 LED lossis Neopixel Led Sawb lossis Ntiv Nplhaib Qhia: Hauv cov lus qhia no peb yuav kawm paub siv neopixel lossis ws 2812 lossis coj nrawm nrog Arduino.Qhov hom LED lossis kab txaij lossis lub nplhaib raug tswj los ntawm ib tus pin nkaus xwb thiab txhua qhov LEDs yog qhov chaw nyob tus kheej yog li cov no tseem hu ua indi
Tswj Neopixel Coj Lub Nplhaib Nrog Gesture Sensor: 3 Kauj Ruam (nrog Duab)
Tswj Neopixel Led Ring Nrog Gesture Sensor: Hauv qhov kev qhia no peb yuav ua si nrog lub ntsej muag piav tes piav taw (APDS-9960) thiab lub nplhaib neopixel kom kawm paub yuav ua li cas ua ke ob qho tib si siv Arduino UNO.Qhov kawg cov khoom yuav teb rau sab laug - sab tes xis los ntawm kev ua kom muaj zog coj mus rau sab xis lossis sab laug, thiab rau koj