Cov txheej txheem:
- Khoom siv
- Kauj ruam 1: Kev sib txuas
- Kauj ruam 2: CODE
- Kauj Ruam 3: SIJ HAWM TEST
- Kauj Ruam 4: Cov ntaub ntawv ntxiv:
Video: LED Sawb Brightness Controller: 4 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
LED Strips muaj npe thoob plaws lub ntiaj teb rau nws kev siv hluav taws xob qis thiab nws qhov ci ntsa iab. Qee lub sij hawm peb yuav tsum tau hloov kho qhov hluav taws xob thiab qhov ci ntawm cov kab ntawv LED no, piv txwv li, thaum koj tsaug zog koj yuav tau cuam tshuam vim qhov ci ntawm LED. Nov yog qhov haujlwm arduino los tswj qhov ci ntawm LED sawb. nws yog tus neeg siv -phooj ywg raws li nws tau txais qhov ci ci los ntawm tus neeg siv. Tus nqi ci ci yog nyob ntawm qhov hluav taws xob muab rau LED sawb. Yog tias tus neeg siv muab 5v, nws muab qhov ci tshaj plaws, yog tias tus neeg siv muab 0.1 volts nws muab qhov ci ci qis. Arduino tuaj yeem sau qhov hluav taws xob los ntawm 0 - 255 (0-5v cais piv txwv: 1v = 51 units). Tab sis siv cov lus txib thiab suav peb tuaj yeem txo qhov no mus rau 0-5v. Cia peb mus rau hauv qhov project.
Khoom siv
Yuav tsum:
- Arduino UNO / nano / MEGA
- LED sawb (Yuav tsum ua haujlwm tsawg kawg nkaus
- Arduino IDE Cov
- txuas xov hlau (nos 2)
Kauj ruam 1: Kev sib txuas
Nov yog cov kev sib txuas los txuas LED Sawb nrog Arduino:
ARDUINO LED Sawb
GND >> - (tsis zoo)
DIGITAL PWM 3 (pin3) >> + (positive)
--------------------------------------------------------------------------------------
txuas tus pin tsis zoo ntawm LED sawb rau groung (GND) tus pin ntawm arduino
txuas tus pin zoo ntawm LED sawb rau tus pin 3 tus pin ntawm arduino
Kauj ruam 2: CODE
Qhov tseem ceeb tshaj plaws tom ntej ntawm kho vajtse hauv Arduino yog txoj cai. Qhov chaws tau muab hauv qab no. Ntaus tus lej no thiab xa nws siv arduino IDE lossis bluino loader.
ntab ci ci; int LED = 3; ntab realbrightness; ntab ncua 1; ntab ncua 2; kev xaiv ntab; teeb tsa tsis muaj dab tsi () {pinMode (LED, OUTPUT); Serial.begin (9600); Serial.println ("Arduino LED strip controller"); Serial.println (""); Serial.println ("Thov sau qhov ci ci ntawm LED sawb (1-5)"); Serial.println (""); thaum (Serial.available () == 0) {} ci ntsa iab = Serial.parseFloat (); realbrightness = (ci ntsa iab) * 51.0; yog (realbrightness> = 6) {Serial.println ("Thov sau qhov pom kev ci"); }} void loop () {Serial.println (""); Serial.println ("LED sawb yog ntsais muag ntawm tus nqi"); Serial.print (ci ntsa iab); analogWrite (LED, qhov tseeb tiag); ncua (1000); }
Kauj Ruam 3: SIJ HAWM TEST
Txuas Arduino upload cov cai, qhib Serial monitor. Cov lus "Thov nkag mus rau qhov ci ci ntawm LED sawb (1-5)" yuav tsum tshwm. Enter tus nqi ci ntsa iab thiab nyem xa. koj tuaj yeem pom tias koj cov hlua LED tau khiav hauv koj qhov kev hais kom ua ci ntsa iab!.
Kauj Ruam 4: Cov ntaub ntawv ntxiv:
- Qhov ci ntsa iab tuaj yeem nkag rau hauv tus lej zauv.
- ci ntsa iab nkag mus saum 5, yuav zoo ib yam li 5.
- Raws li tus nqi tau txais tsawg dua, qhov ci ci tau txo.
- Los ntawm lub sijhawm qee zaum Arduino cov tsav tsheb yuav ploj hauv koj lub computer. Txhawm rau daws qhov tsis raug, qhib tus thawj tswj ntaus ntawv thiab hloov kho txhua tus tsav tsheb tsis paub.
- Xaiv qhov tseeb COM chaw nres nkoj thiab version ntawm Arduino.
- Code lwm download:
Pom zoo:
RGB Led Sawb Bluetooth Controller V3 + Music Sync + Ambient Light Control: 6 Cov Kauj Ruam (nrog Duab)
RGB Led Sawb Bluetooth Controller V3 + Music Sync + Ambient Light Control: Txoj haujlwm no siv arduino los tswj RGB coj sawb nrog koj lub xov tooj ntawm bluetooth. Koj tuaj yeem hloov xim, ua teeb sib txuas nrog suab paj nruag lossis ua rau lawv pib kho rau lub teeb pom kev ib puag ncig
DIY LED Sawb: Yuav Txiav Li Cas, Txuas, Cuam Tshuam thiab Hwjchim LED Sawb: 3 Kauj Ruam (nrog Duab)
DIY LED Sawb: Yuav Ua Li Cas Txiav, Txuas, Cuam Tshuam thiab Lub Hwj Huam LED Sawb: Pib qhia rau koj tus kheej lub teeb pom kev zoo siv LED sawb.Flexible ntseeg tau thiab siv tau yooj yim, LED strips yog qhov kev xaiv zoo tshaj plaws rau ntau yam kev thov.Kuv yuav npog cov hauv paus ntawm kev txhim kho yooj yim sab hauv tsev 60 LED's/m LED sawb, tab sis
ESP8266 RGB LED Sawb WIFI Tswj - NODEMCU Raws li IR Chaw Taws Teeb rau Led Sawb Tswj Hauv Wifi - RGB LED Sawb Smartphone Tswj: 4 Cov Kauj Ruam
ESP8266 RGB LED Sawb WIFI Tswj | NODEMCU Raws li IR Chaw Taws Teeb rau Led Sawb Tswj Hauv Wifi | RGB LED Sawb Smartphone Tswj: Nyob zoo cov neeg hauv qhov kev qhia no peb yuav kawm paub siv nodemcu lossis esp8266 li IR chaw taws teeb los tswj RGB LED sawb thiab Nodemcu yuav raug tswj los ntawm smartphone dhau wifi. Yog li hauv paus koj tuaj yeem tswj RGB LED Sawb nrog koj lub xov tooj
LED Sawb Brightness Controller: 7 Kauj Ruam
LED Sawb Brightness Controller: Hii phooj ywg, Qee lub sij hawm peb tsis nyiam qhov ci ci ntawm LED sawb thiab ntawm qhov uas peb tua qhov hloov pauv. Yog li hnub no kuv yuav ua kom LED sawb lub teeb ci tswj lub voj voog.Lub Circuit no peb tuaj yeem tswj tau yooj yim ntawm LED sawb Qhov ci no
Arduino RGB LED Sawb Controller: 4 Cov Kauj Ruam
Arduino RGB LED Strip Controller: Feem ntau thaum tib neeg xav tswj lawv RGB LED sawb nrog Arduino, peb lub zog ntsuas tau siv los sib xyaw xim liab, ntsuab thiab xiav. Qhov no ua haujlwm thiab tuaj yeem ua tiav zoo rau koj cov kev xav tau, tab sis kuv xav ua qee yam kom nkag siab zoo, qee yam