Cov txheej txheem:
Video: RGB LED Teeb: 3 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Nov yog lub teeb tshwj xeeb uas pab koj pw tsaug zog zoo. Kuv siv RGB LED los ua lub teeb no, nws zoo nkauj yog tias koj ntxiv lub hau npog.
Khoom siv
1 x Arduino Leonardo
5x cev
4x kab xev
1 x RGB LED
1x Ntawv
1 x 100 ohm resistor
Kauj ruam 1: Code
Qhov txuas rau cov lej tag nrho: Arduino CC
// RGB LED teeb
// Cov xim ntawm LED hloov pauv qhov xim liab, txiv kab ntxwv, daj, ntsuab, xiav, xiav tsaus, thiab tom qab ntawd liab doog. // RGB LED yog tswj los ntawm xim liab, ntsuab, thiab xiav // Pin 7 tswj qhov ci ntawm liab // Pin 6 tswj qhov ci ntawm ntsuab // Pin 5 tswj lub teeb ci ntawm qhov teeb meem xiav () {// muab koj cov cai teeb tsa ntawm no, kom khiav ib zaug:} lub voj void () {// Cov cai loj analogWrite (7, 255); // 改 analogWrite (6, 0); // 改 analogWrite (5, 0); // 改 ncua (1000); // tos ob peb milliseconds // Liab analogWrite (7, 255); // 改 analogWrite (6, 120); // 改 analogWrite (5, 0); // 改 ncua (1000); // tos ob peb milliseconds // Txiv kab ntxwv analogWrite (7, 255); // 改 analogWrite (6, 255); // 改 analogWrite (5, 0); // 改 ncua (1000); // tos ob peb milliseconds // Yellow analogWrite (7, 0); // 改 analogWrite (6, 255); // 改 analogWrite (5, 0); // 改 ncua (1000); // tos ob peb milliseconds // Green analogWrite (7, 0); // 改 analogWrite (6, 255); // 改 analogWrite (5, 255); // 改 ncua (1000); // tos ob peb milliseconds // Blue analogWrite (7, 0); // 改 analogWrite (6, 0); // 改 analogWrite (5, 255); // 改 ncua (1000); // tos ob peb milliseconds // Dark Blue analogWrite (7, 130); // 改 analogWrite (6, 0); // 改 analogWrite (5, 255); // 改 ncua (1000); // tos ob peb milliseconds // Ntshav}
Kauj ruam 2: Piav qhia
RGB LED raug tswj los ntawm qhov tsis zoo ib yam thiab peb hom teeb pom kev: Liab, Ntsuab, thiab Xiav. Peb xim no yog thawj xim ntawm lub teeb. Qhov sib txawv ci ntsa iab rau txhua xim ua ke tuaj yeem ua rau txhua yam xim. Kuv xaiv cov xim ntawm zaj sawv: liab, txiv kab ntxwv, daj, ntsuab, xiav, tsaus xiav, thiab violet los ua xim ntawm kuv lub teeb.
Kauj Ruam 3: Txhim Kho Arduino
Txhim kho lub Circuit Court zoo li daim duab saum toj no.
- Peb lub xov hlau txuas los ntawm D5, D6, thiab D7 mus rau RGB LED.
- Ib txoj hlua txuas los ntawm GND mus rau LED qhov tsis zoo polarity
- 4 cov xov hlau txuas rau RGB LED
- Rub cov lej los ntawm Arduino app
- Ua ib daim ntawv ntxoov ntxoo npog rau nws
Nov yog qhov txuas rau yuav siv daim ntawv los ua lub npog npog li cas:
www.youtube.com/watch?v=DCelEdIow2c
Tom qab txhua qhov ntawd, koj ua tiav!
Nrog koj zoo siab!
Source: LED ntsais
Pom zoo:
10W RGB Sab Nraud Sab Nraud Teeb Teeb Teeb: 5 Kauj Ruam
10W RGB Sab Nraud Sab Nraud Teeb Teeb Teeb: Qhov haujlwm no yog 10W RGB coj teeb rau hmo ntuj, nws tuaj yeem tso rau ntawm koj ib sab thiab muab sijhawm rau koj teeb pom kev zoo. Kuv tau txais kev tshoov siab los ntawm Balad Teeb tam sim no hauv Fab Kis tab sis muaj zog me ntsis (kev lag luam luam tawm txog 3W, kuv li 10W) thiab ntau ntxiv
Maus Tail Teeb Nrog Cov Teeb Pom Kev Zoo Siv Lub Teeb LED: 4 Cov Kauj Ruam
Maus Tail Teeb Nrog Cov Teeb Pom Kev Zoo Siv Lub Teeb LEDs: Nyob Zoo! Qhov no yog qee qhov yooj yim DIY ntawm yuav ua li cas thiaj li tsim tau qhov kev cai Programmable RGB Tail Teeb (nrog ua ke ntsais muag/ntsuas ntsuas) rau koj lub maus taus lossis tej zaum muaj ib yam dab tsi siv WS2812B (tus kheej qhov chaw nyob leds) thiab Arduinos . Muaj 4 hom teeb pom kev zoo
Dusty Wall Arduino Animated Led Teeb Nrog Teeb Lub Teeb: 11 Cov Kauj Ruam (nrog Duab)
Dusty Wall Arduino Animated Led Lamp Nrog Lub Teeb Pom Kev: Kuv nyuam qhuav muaj me nyuam thiab tom qab ua nws chav pw, kuv xav tau lub teeb ntawm phab ntsa. Raws li kuv nyiam heev LED kuv txiav txim siab los tsim ib yam.Kuv nyiam lub dav hlau dav dav, yog li vim li cas ho tsis tso lub dav hlau los ntawm daim duab tas luav rau ntawm phab ntsa, ntawm no thaum nws pib thiab kuv ua li cas
DIY LED Teeb - Niaj Hnub Teeb Meem Teeb Nrog Cov Chaw Taws Teeb: 8 Kauj Ruam (nrog Duab)
DIY LED Teeb - Niaj Hnub Teeb Mood Teeb Nrog Chaw Taws Teeb: Hauv kab lus no kuv yuav mus hla cov txheej txheem Kuv tau siv los tsim qhov no zoo heev pyramid zoo li tus LED Mood Teeb.Kuv siv maple rau cov qauv tseem ceeb thiab qee qhov mahogany txhav ntxiv rau lub zog. Rau lub teeb Kuv siv RGB LED teeb uas tuaj nyob hauv 16 ko taw
LED Teeb Teeb Duab Cwjmem: Cov Cuab Yeej rau Teeb Teeb Doodles: 6 Kauj Ruam (nrog Duab)
LED Teeb Teeb Lub Cwjmem: Cov Cuab Yeej rau Teeb Doodles: Kuv tus poj niam Lori yog tus neeg siv tsis tu ncua thiab kuv tau ua si nrog kev yees duab ntev ntev rau ntau xyoo. Kev tshoov siab los ntawm PikaPika pab pawg teeb pom kev zoo thiab yooj yim ntawm cov koob yees duab digital peb tau siv lub teeb duab kos duab kom pom tias peb tuaj yeem ua dab tsi