Cov txheej txheem:
- Kauj Ruam 1: Cov Cheeb Tsam Xav Tau
- Kauj Ruam 2: Txuas RGB Coj mus rau Arduino Nano
- Kauj ruam 3: Programming
- Kauj Ruam 4: Qhov tshwm sim
Video: Nano Pixels 26 Ntsis Siv Arduino: 4 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Hauv kuv tsab xov xwm dhau los, Kuv tau qhia qhia yuav siv WS2812 Nano Pixel LED li cas. Hauv kab lus ntawd, Kuv tau siv 16 Bit Ring Nano Pixel WS2812.
Thiab hauv kab lus no, kuv yuav qhia koj yuav siv 26 lub nplhaib Nano Pixels WS2812 li cas.
Hauv ntu kho vajtse, tsis muaj dab tsi txawv ntawm 16 khoom thiab 26 khoom.
Tsuas yog hauv ntu software uas yuav tsum tau hloov kho.
Nta thiab Cov txiaj ntsig:
- Tswj Circuit thiab RGB nti tau koom ua ke hauv pob ntawm 5050 cov khoom.
- Built-in teeb liab hloov dua tshiab.
- Built-in hluav taws xob pib hluav taws xob thiab lub zog poob rov pib dua.
- Cascading chaw nres nkoj xa cov teeb liab los ntawm ib kab.
- Xa cov ntaub ntawv ntawm qhov nrawm ntawm 800Kbps.
Saib cov ntaub ntawv xov xwm ntau ntxiv WS2812.
Kauj Ruam 1: Cov Cheeb Tsam Xav Tau
Cov khoom koj xav tau rau qhov kev qhia no:
- 26 ntsis WS2812 RGB LED.
- Arduino Nano V.3
- Jumper hlau
- Mini USB
Yuav tsum muaj tsev qiv ntawv:
Adafruit NeoPixel
Txhawm rau ntxiv tsev qiv ntawv rau Arduino, saib kab ntawv no "Yuav Ua Li Cas Ntxiv Tsev Qiv Sab Nraud rau Arduino"
Kauj Ruam 2: Txuas RGB Coj mus rau Arduino Nano
Ua raws cov lus qhia hauv qab no txhawm rau txuas WS2812 rau Arduino Nano:
WS2812 rau Arduino
Hauv ==> D6
VCC ==> +5V
GND ==> GND
Kauj ruam 3: Programming
Hauv ntu no ntawm software uas xav tau kev kho me ntsis. Hauv ntu "Tus lej ntawm LEDs", kho tus lej ntawm LEDs siv.
Ua raws cov lus qhia hauv qab no txhawm rau teeb tsa Arduino board:
Qhib Arduino IDE
Nyem Cov Ntaub Ntawv> Piv txwv> Adafruit NeoPixels> strandtest
Koj yuav tsum hloov qee qhov txiaj ntsig los ntawm daim duab no, Dab tsi yuav tsum hloov yog raws li hauv qab no:
Pin siv
#define LED_PIN 12
Cov LEDs
#define LED_COUNT 26
Teeb Brightness
strip.setBrightness (10);
Hloov qhov program raws li koj xav tau.
Tom qab ntawd, rub qhov program mus rau Arduino board
Kauj Ruam 4: Qhov tshwm sim
Thaum koj ua tiav rub tawm qhov program rau Arduino. Cov txiaj ntsig tuaj yeem pom hauv video saum toj no.
Ua tsaug rau koj nyeem kab lus no. pom koj hauv kab lus tom ntej.
Yog tias koj muaj lus nug, tsuas yog sau hauv kab lus.
Pom zoo:
Arduino Nano-MMA8452Q 3-Axis 12-ntsis/8-ntsis Digital Accelerometer Tutorial: 4 Kauj Ruam
Arduino Nano-MMA8452Q 3-Axis 12-ntsis/8-ntsis Digital Accelerometer Tutorial: MMA8452Q yog tus ntse, tsis muaj zog, peb-axis, muaj peev xwm, micromachined accelerometer nrog 12 qhov kev daws teeb meem. Cov neeg siv yooj yim programmable xaiv tau muab nrog kev pab ntawm kev ua haujlwm hauv lub ntsuas qhov ntsuas, teeb tsa tau rau ob qho kev cuam tshuam
Yuav Ua Li Cas Siv Servo Motors Siv Moto: ntsis Nrog Micro: ntsis: 7 Kauj Ruam (nrog Duab)
Yuav Ua Li Cas Siv Servo Motors Siv Moto: ntsis Nrog Micro: ntsis: Ib txoj hauv kev txuas ntxiv kev ua haujlwm ntawm micro: ntsis yog siv lub rooj tsav xwm hu ua moto: ntsis los ntawm SparkFun Electronics (kwv yees li $ 15-20). Nws zoo li nyuaj thiab muaj ntau yam ntxwv, tab sis nws tsis nyuaj rau kev ua haujlwm servo motors los ntawm nws. Moto: me ntsis tso cai rau koj
Raspberry Pi MMA8452Q 3-Axis 12-ntsis/8-ntsis Digital Accelerometer Python Qhia: 4 Kauj Ruam
Raspberry Pi MMA8452Q 3-Axis 12-ntsis/8-ntsis Digital Accelerometer Python Tutorial: MMA8452Q yog tus ntse, tsis muaj zog, peb-axis, muaj peev xwm, micromachined accelerometer nrog 12 qhov kev daws teeb meem. Cov neeg siv yooj yim programmable xaiv tau muab nrog kev pab ntawm kev ua haujlwm hauv lub ntsuas qhov ntsuas, teeb tsa tau rau ob qho kev cuam tshuam
Raspberry Pi MMA8452Q 3-Axis 12-ntsis/8-ntsis Digital Accelerometer Java Qhia: 4 Kauj Ruam
Raspberry Pi MMA8452Q 3-Axis 12-ntsis/8-ntsis Digital Accelerometer Java Tutorial: MMA8452Q yog tus ntse, tsis muaj zog, peb-axis, muaj peev xwm, micromachined accelerometer nrog 12 qhov kev daws teeb meem. Cov neeg siv yooj yim programmable xaiv tau muab nrog kev pab ntawm kev ua haujlwm hauv lub ntsuas qhov ntsuas, teeb tsa tau rau ob qho kev cuam tshuam
DIY MusiLED, Music Synchronized LEDs Nrog Ib-nias Windows & Linux Application (32-ntsis & 64-ntsis). Yooj Yim Rov Ua Dua, Siv Yooj Yim, Yooj Yim rau Chaw Nres Nkoj: 3 Kauj Ruam
DIY MusiLED, Music Synchronized LEDs Nrog Ib-nias Windows & Linux Application (32-ntsis & 64-ntsis). Yooj Yim Rov Ua Dua, Siv Yooj Yim, Yooj Yim rau Chaw Nres Nkoj: Qhov haujlwm no yuav pab koj txuas 18 LEDs (6 Liab + 6 Xiav + 6 Daj) rau koj lub Rooj Tswjhwm Saib Arduino thiab txheeb xyuas koj lub khoos phis tawj Lub Suab Suab Lub suab lub sijhawm tiag tiag thiab xa lawv mus rau cov LEDs kom pom lawv raws li qhov cuam tshuam (Snare, High Hat, Kick)