Cov txheej txheem:
- Kauj Ruam 1: Txoj Cai rau Lub Teeb
- Kauj ruam 2: Teeb
- Kauj Ruam 3: Nws Zoo Li Cas Thaum Koj Sim Nws Thaum Kawg
Video: Bentzi Led: 3 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
qhov no zoo li cas thaum nws ua haujlwm
Kauj Ruam 1: Txoj Cai rau Lub Teeb
Nws yuav yog me ntsis ntxhib thaum koj saib nws los ntawm no
int greenled = 9; // teev cov xim ntsuab rau lub teeb
int blueled = 10; // teev cov xim xiav rau lub teeb int redled = 11; // teev cov xim liab rau lub teeb int redval = 0; // teeb tsa tus nqi uas tuaj yeem hloov pauv rau xim liab int blueval = 0; // teeb tsa tus nqi uas tuaj yeem hloov pauv rau xim xiav int greenval = 0; // teeb tsa tus nqi uas tuaj yeem hloov pauv rau xim ntsuab int potPin = A0; // teeb tsa tus nqi rau pententiometer tso cai rau nws ua haujlwm tsis muaj teeb tsa () {// muab koj cov cai teeb tsa ntawm no, kom khiav ib zaug: pinMode (potPin, INPUT); // los ntawm kev ua nws INPUT koj tab tom qhia rau Potpin nyeem dab tsi qhov txiaj ntsig yog pinMode (A0, INPUT); // los ntawm kev ua nws cov tswv yim nws tau qhia nws kom nyeem qhov tseem ceeb xa nws mus rau lub teeb pinMode (greenled, OUTPUT); // rau txhua lub teeb los ntawm kev qhia lawv ua OUTPUTs koj tab tom qhia lawv kom tsim xim. pinMode (redled, OUTPUT); pinMode (blueled, OUTPUT); Serial.begin (9600); // qhov no yog qhia rau Serial kom pib luam qhov tseem ceeb}
void loop () {// tso koj tus lej tseem ceeb ntawm no, kom rov ua dua: redval = analogRead (potPin); // qhov no qhia tus nqi nyeem los ntawm potpin greenval = analogRead (potPin); // qhov no qhia tus nqi nyeem los ntawm potpin blueval = analogRead (potPin); // qhov no yog qhia tus nqi nyeem los ntawm potpin redval = daim ntawv qhia (redval, 0, 1023, 255, 0); // qhov no yog qhia qhov tseem ceeb los cuam tshuam 0 rau 1023 thiab 255 rau xoom blueval = daim ntawv qhia (blueval, 0, 1023, 0, 255); // tib yam li saum toj no tsuas yog sib txawv tus lej greenval = daim ntawv qhia (greenval, 0, 1023, 130, 5); // tib yam li ob qho saum toj no xwb cov lej sib txawv Serial.print (redval); // qhia Serial luam tawm tus nqi sib npaug rau xiav thiab ntsuab Serial.print (blueval); Serial.println (greenval); analogWrite (redled, redval); // qhia lub teeb ua raws li tus nqi liab qhia nws rau analogWrite (greenled, greenval); analogWrite (blueled, blueval);
}
Kauj ruam 2: Teeb
ceg loj rau lub teeb mus rau tsib volts nruab nrab ceg rau pentameter mus rau A0
Kauj Ruam 3: Nws Zoo Li Cas Thaum Koj Sim Nws Thaum Kawg
Yog tias koj xav hloov cov xim rov qab mus rau txoj cai teeb tsa thiab kho cov lej thaum redvalue lossis ntsuab lossis xiav tau nyeem los ntawm daim ntawv qhia qhov tseem ceeb hloov tus lej ntawm no cov kauj ruam redval = daim ntawv qhia (redval, 0, 1023, 255, 0);
Pom zoo:
Hloov-Hloov Cov Khoom Ua Si: Cov Khoom Ua Si Cov Khoom Ua Si Ua Tau Zoo!: 7 Cov Kauj Ruam (nrog Duab)
Hloov-Hloov Cov Khoom Ua Si: Cov Khoom Siv Hluav Taws Xob Ua Tau Zoo!: Qho khoom ua si hloov pauv qhib txoj hauv kev tshiab thiab kev daws teeb meem kom tso cai rau menyuam yaus uas muaj lub cev muaj peev xwm txwv lossis kev xiam oos qhab kev loj hlob los cuam tshuam nrog cov khoom ua si ntawm nws tus kheej. Hauv ntau qhov xwm txheej, cov menyuam yaus uas xav tau cov khoom ua si hloov pauv tsis tuaj yeem nkag mus
Cov av noo noo Cov Lus Qhia Tswj Xyuas Internet Txuas Cov Dej Dej (ESP32 thiab Blynk): 5 Cov Kauj Ruam
Cov av noo noo Cov lus pom zoo Tswj Xyuas Internet Txuas Cov Dej Dej (ESP32 thiab Blynk): Tsis txhawj xeeb txog koj lub vaj lossis nroj tsuag thaum koj mus rau hnub so ntev, lossis tsis nco qab ywg dej koj cov nroj tsuag txhua hnub. Zoo ntawm no yog kev daws teeb meem Nws cov av ya raws tswj hwm thiab thoob ntiaj teb txuas nrog cov dej txau dej tswj los ntawm ESP32 ntawm software pem hauv ntej kuv
Ua Cov Phiaj Xwm Zoo Los Ntawm Cov Ntaub Ntawv Nyob Arduino (thiab Txuag Cov Ntaub Ntawv rau Excel): 3 Cov Kauj Ruam
Ua Cov Phiaj Xwm Zoo Los Ntawm Cov Ntaub Ntawv Nyob Arduino (thiab Txuag Cov Ntaub Ntawv rau Excel): Peb txhua tus nyiam ua si nrog peb tus lej L … cov ntsiab lus tau ntxiv thiab nws tsis tshwj xeeb rau lub qhov muag. Arduino IDE cov phiaj xwm tsis
Cov Ntawv Cim Hluav Taws Xob LED Taws Teeb Cov Neeg Hlau Cov Ntawv Cim - Cov Khoom Siv Soldering: 11 Kauj Ruam
Cov Khoom Siv Hluav Taws Xob LED Taws Teeb Cov Neeg Hlau Daim Npav - Cov Khoom Siv Soldering: Kab lus no tau txaus siab txhawb nqa los ntawm PCBWAY.PCBWAY ua cov qauv zoo PCBs rau tib neeg thoob plaws ntiaj teb. Sim nws rau koj tus kheej thiab tau txais 10 PCBs rau tsuas yog $ 5 ntawm PCBWAY nrog qhov ua tau zoo heev, Ua tsaug PCBWAY. Robadge#1 uas kuv tau tsim rau
Windows 7: Cov Ntsiab Lus Cov Ntawv Cov Khoom Tsis Muaj: 3 Cov Kauj Ruam
Windows 7: Cov Ntawv Qhia Cov Khoom Uas Tsis Muaj: Thaum twg los peb xaiv ntau dua 15 cov ntaub ntawv hauv Windows. qee yam khoom los ntawm cov ntawv qhia zaub mov ploj mus … Cov ntawv qhia no yuav qhia koj yuav ua li cas kom tau txais cov khoom ntawd rov qab los ntawm cov ntawv qhia zaub mov