Cov txheej txheem:
- Kauj Ruam 1: Cov Cheeb Tsam Xav Tau
- Kauj ruam 2: Scheme
- Kauj ruam 3: Programming
- Kauj Ruam 4: Qhov tshwm sim
Video: Arduino: Qhov Taw Qhia Muaj Peev Xwm Siv Led Matrix MAX7219: 4 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Hauv qhov kev qhia yav dhau los Kuv tau ua lub zog ntsuas qhov ntsuas siv lub nplhaib RGB neo pixels coj. koj tuaj yeem pom nws hauv kab lus no "Potentio Qhov Taw Qhia Siv RGB Neopixel"
Thiab hnub no kuv yuav qhia lub hwj chim qhia tau siv MAX7219 coj cov ntsuas ntsuas ntsuas.
Ua raws cov theem hauv qab no kom ua tau.
Kauj Ruam 1: Cov Cheeb Tsam Xav Tau
Yam Yuav Tsum Tau Ua:
- Arduino nano cov
- Potentiometer
- Max7219 Led Matrix Zaub
- Jumper Hlau
- Pawg Thawj Coj
- USB mini tso
- laptop
Yuav tsum muaj tsev qiv ntawv
LedControl
Kauj ruam 2: Scheme
Txhawm rau sib sau ua ke pom cov duab kos duab saum toj no, koj tuaj yeem pom cov ntaub ntawv hauv qab no:
Arduino rau Led & hwj chim
+5V ==> VCC & 3. Potentio
GND ==> GND & 1. Penentio
D6 ==> Cov ntaub ntawv hauv
D7 ==> CLK
D8 ==> CS / Thauj khoom
Kauj ruam 3: Programming
Siv cov cai hauv qab no los ua ait:
#suav nrog "LedControl.h"
/*
Tam sim no peb xav tau LedControl los ua haujlwm nrog. ***** Cov lej tus lej no tej zaum yuav tsis ua haujlwm nrog koj lub khoos phis tawj ***** tus pin 6 txuas nrog rau DataIn tus pin 7 txuas nrog CLK tus pin 8 txuas nrog LOAD Peb tsuas muaj ib qho MAX72XX nkaus xwb. */
LedControl lc = LedControl (6, 7, 8, 1);
unsigned ntev ncua sijhawm = 100;
void teeb tsa () {
lc.shutdown (0, tsis tseeb); lc.setIntensity (0, 8); lc.clearDisplay (0); } void loop () {int val = analogRead (A0); val = daim ntawv qhia (val, 0, 1023, 0, 8);
yog (val == 1)
{
lc.setRow (0, 0, B10000000);
}
yog (val == 2)
{lc.setRow (0, 0, B10000000); lc.setRow (0, 1, B10000000); } yog (val == 3) {
lc.setRow (0, 0, B10000000);
lc.setRow (0, 1, B10000000); lc.setRow (0, 2, B10000000); } yog (val == 4) {
lc.setRow (0, 0, B10000000);
lc.setRow (0, 1, B10000000); lc.setRow (0, 2, B10000000); lc.setRow (0, 3, B10000000); } yog (val == 5) {
lc.setRow (0, 0, B10000000);
lc.setRow (0, 1, B10000000); lc.setRow (0, 2, B10000000); lc.setRow (0, 3, B10000000); lc.setRow (0, 4, B10000000); } yog (val == 6) {lc.setRow (0, 0, B10000000); lc.setRow (0, 1, B10000000); lc.setRow (0, 2, B10000000); lc.setRow (0, 3, B10000000); lc.setRow (0, 4, B10000000); lc.setRow (0, 5, B10000000); } yog (val == 7) {lc.setRow (0, 0, B10000000); lc.setRow (0, 1, B10000000); lc.setRow (0, 2, B10000000); lc.setRow (0, 3, B10000000); lc.setRow (0, 4, B10000000); lc.setRow (0, 5, B10000000); lc.setRow (0, 6, B10000000); } yog (val == 8) {lc.setRow (0, 0, B10000000); lc.setRow (0, 1, B10000000); lc.setRow (0, 2, B10000000); lc.setRow (0, 3, B10000000); lc.setRow (0, 4, B10000000); lc.setRow (0, 5, B10000000); lc.setRow (0, 6, B10000000); lc.setRow (0, 7, B10000000); } lc.clearDisplay (0); }
Kauj Ruam 4: Qhov tshwm sim
Thaum programmed, cov txiaj ntsig yuav zoo li no.
Yog tias lub hwj chim tau tig mus rau sab xis, cov nyob LEDs yuav nce raws tus naj npawb ntawm tig.
Yog tias lub lauj kaub tau tig mus rau sab laug, LED nyob yuav tsawg dua thiab tsawg dua tom qab lub zog hloov pauv.
Pom zoo:
LED Qhov Taw Qhia Qhov Taw Qhia Tus Menyuam: 5 Kauj Ruam (nrog Duab)
LED Qhov Taw Qhia Qhov Taw Qhia Tus dev: Kuv ib txwm coj kuv tus dev Rusio mus taug kev thaum lub hnub poob qis kom nws tuaj yeem ua si yam tsis tau kub heev. Qhov teeb meem yog tias thaum nws tawm ntawm txoj hlua qee zaum nws tau zoo siab heev thiab ua haujlwm ntau dua li nws yuav tsum thiab nrog lub teeb qis thiab lwm tus dev
Qhov Muaj Peev Xwm Muaj Zog Arduino-UNO, Massduino-UNO: 9 Cov Kauj Ruam
Qhov Muaj Peev Xwm Muaj Zog Arduino-UNO, Massduino-UNO: Massduino yog dab tsi? Massduino yog cov khoom lag luam tshiab, uas suav nrog Arduino platform ib puag ncig-nplua nuj, yooj yim thiab txhim kho sai, tus nqi qis thiab yooj yim los tsim cov khoom lag luam loj. Yuav luag txhua ntawm Arduino code tuaj yeem yog
Circuit Kawm NANO: Ib qho PCB. Yooj Yim Kawm. Tsis Muaj Peev Xwm Muaj Peev Xwm: 12 Kauj Ruam (nrog Duab)
Circuit Kawm NANO: Ib qho PCB. Yooj Yim Kawm. Tsis muaj txoj hauv kev muaj peev xwm: Pib tawm hauv lub ntiaj teb cov khoom siv hluav taws xob thiab neeg hlau tuaj yeem ua rau txaus ntshai heev thaum xub thawj. Muaj ntau yam uas yuav tsum tau kawm thaum pib (kev tsim hluav taws xob, siv hluav taws xob, ua haujlwm zoo, xaiv cov khoom siv hluav taws xob raug, thiab lwm yam) thiab thaum cov khoom tsis raug th
Ib Tus Neeg Tsav Tsheb Muaj Peev Xwm Muaj Ntau Yam Muaj Peev Xwm: 8 Kauj Ruam (nrog Duab)
Ib Tus Neeg Siv Hluav Taws Xob Muaj Peev Xwm Muaj Peev Xwm: Nyob zoo cov phooj ywg, hauv qhov kev qhia no kuv yuav los qhia qhov tshiab ntawm kuv cov lus qhia yav dhau los uas tuaj yeem ua cov haujlwm hauv qab no: 1- Nws tuaj yeem txav mus los ntawm Arduino UNO thiab L298N tsav tsheb 2- Nws tuaj yeem ua tau ntxuav raws li lub tshuab nqus tsev 3- Nws yog
Raspberry Pi Tswj Kev Ntsuas Kub Hauv Chav Nrog Gnuplot Cov Duab Tso Tawm thiab Email Muaj Peev Xwm Muaj Peev Xwm: 7 Kauj Ruam
Raspberry Pi Kev Tswj Xyuas Qhov Kub Kub Hauv Chav Nrog Gnuplot Cov Duab Tso Tawm thiab Email Muaj Peev Xwm Muaj Peev Xwm: Qhov twg kuv ua haujlwm, muaj chav tseem ceeb heev uas muaj ntau lub khoos phis tawj. Qhov kub ib puag ncig ntawm chav no yuav tsum txias heev txhawm rau ua kom tau zoo ntawm cov kab ke no. Kuv tau thov kom los nrog lub kaw lus saib xyuas uas muaj peev xwm