Cov txheej txheem:
Video: Fading/Tswj Led/ci ntsa iab Siv Potentiometer (Variable Resistor) thiab Arduino Uno: 3 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Arduino analog input pin txuas nrog rau qhov tso zis ntawm potentiometer. Yog li Arduino ADC (analog to digital converter) analog pin tau nyeem qhov hluav taws xob tso tawm los ntawm lub hwj chim. Kev tig lub pob qhov rooj potentiometer sib txawv qhov hluav taws xob tso tawm thiab Arduino nyeem qhov kev hloov pauv no. Arduino hloov pauv qhov hluav taws xob nkag mus rau nws tus pin analog rau hauv daim ntawv digital. Tus nqi digital yog los ntawm 0 txog 1023 volts. 0 sawv cev rau 0 volts thiab 1023 sawv cev rau 5 volts. Arduino ADC yog 10 ntsis uas txhais tau tias nws ua piv txwv cov qauv siv hluav taws xob thiab tso nws tawm ntawm qhov nruab nrab ntawm 0 txog 1023 volts (2^10 = 1024). Arduino ua haujlwm ntawm 5 volts yog li nws ADC cov khoom siv hluav taws xob ntau kuj tseem nyob nruab nrab ntawm 0 txog 5 volts. Arduino boards ua haujlwm ntawm 3 volts input ntau rau ADC yog 0 txog 3 volts.
Nco tseg: Thov siv qhov hluav taws xob ntau dua rau Arduino analog pins yuav ua rau koj pawg Arduino puas tsuaj. Yog li hauv peb qhov xwm txheej, lub zog hluav taws xob tso tawm hluav taws xob yuav tsum tsis txhob nce 5 volts
Kauj Ruam 1: Cov Cheeb Tsam Yuav Tsum Tau:
1. Arduino Uno
2. Cov qhob cij
3. Potentiometer (10k)
4. Coj
5. Resistor
6. Jumper xov hlau
Kauj Ruam 2: Daim Duab Circuit:
Lub zog hluav taws xob tau siv hauv cov kab hluav taws xob uas peb xav tau qhov sib txawv tsis kam los tswj tam sim no thiab qhov hluav taws xob. Koj puas tau pom tias tus neeg hais lus uas koj muaj hauv koj lub tsev, koj txav nws lub pob qhov rooj raws lub moos thiab cov lus qhia rov qab los rau lub sijhawm kom teeb tsa lub ntim. Qhov tseeb, tom qab pob qhov rooj, muaj lub zog ntsuas, uas yog koj tab tom hloov qhov tsis kam los teeb lub ntim. Zoo ib yam hauv ntau lwm yam khoom siv hauv tsev potentiometer siv rau tib lub hom phiaj (TV qub, xov tooj cua qub thiab lwm yam).
Yog tias peb txuas ncaj qha coj nrog lub zog ntsuas peb tuaj yeem ploj/tswj qhov ci ntawm coj tab sis tsis raug thiab yog tias peb ntxig thiab nruab nrab microcontroller tom qab ntawd microcontroller tuaj yeem ploj coj nrog qib ci ci peb xav tau. Hauv kev tswj hwm qhov ci ncaj qha nyob ntawm qhov tsis kam ntawm lub hwj chim tab sis nrog lub microcontroller nyob nruab nrab ntawm qhov ci ci nyob ntawm qhov hluav taws xob tso tawm ntawm lub hwj chim thiab qee yam peb tuaj yeem tsis quav ntsej qhov hluav taws xob tso tawm thiab tswj ntawm peb cov kev ntsuas tsis tau txhais. Nrog lub microcontroller, muaj kev hloov pauv ntau dua li kev ua kom ploj mus.
Kauj ruam 3: Code:
Yog xav paub ntau cov phiaj xwm txuas nrog kuv ntawm:
Youtube: https://www.youtube.com/channel/UCTS10_CRYJhT-vb9 … Facebook nplooj:
Instagram:
void teeb tsa ()
{Serial.begin (9600); pinMode (5, NTAWV); pinMode (3, INPUT); } void loop () {int ib = analogRead (A0); int ib = a/4; Serial.println (b); analogWrite (5, b); ncua (200);
}
Pom zoo:
Badgelife: LED Teeb rau Lub Tswv Yim Ci ntsa iab: 6 Kauj Ruam
Badgelife: LED Teeb rau Lub Tswv Yim Ci ntsa iab: Kuv nyiam cov cim zoo ntawm hackaday, zoo nkauj heev thiab ntxim nyiam. Raws li tsis muaj hluav taws xob tshiab ntawm Makerfabs, Kuv xav paub yuav ua li cas thiaj ua tau lub PCBA lub rooj tsavxwm, yog li, daim ntawv lo daim ntawv yooj yim tuaj yeem yog zaj lus qhia zoo rau kuv
Phab Ntsa Mount rau IPad Raws Li Tsev Automation Tswj Vaj Huam Sib Luag, Siv Servo Tswj Cov Hlau nplaum los Qhib Screen: 4 Cov Kauj Ruam (nrog Duab)
Phab Ntsa Mount rau IPad Raws Li Tsev Automation Tswj Vaj Huam Sib Luag, Siv Servo Tswj Cov Hlau nplaum los Qhib Screen: Tsis ntev los no kuv tau siv sijhawm qee lub sijhawm siv khoom hauv thiab ib puag ncig kuv lub tsev. Kuv tab tom siv Domoticz ua kuv daim ntawv thov Tsev Automation, saib www.domoticz.com kom paub meej. Hauv kuv tshawb nrhiav daim ntawv thov daim ntawv qhia uas qhia tag nrho Domoticz cov ntaub ntawv tog
Arduino Neeg Hlau Nrog Kev Nyob, Kev Qhia thiab Qib Kev Sib Hloov (Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) Tswj los ntawm Lub Suab Siv Bluetooth Module thiab Kev Siv Tus Neeg Siv Hluav Taws Xob: 6 Kauj Ruam
Arduino Neeg Hlau Nrog Kev Nyob, Kev Qhia thiab Qib Kev Sib Hloov (Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) Tswj los ntawm Lub Suab Siv Bluetooth Module thiab Kev Siv Tus Neeg Siv Hluav Taws Xob: Cov lus qhia no piav qhia yuav ua li cas thiaj tsim tau Arduino Robot uas tuaj yeem txav mus raws qhov xav tau (Forward, Backward) , Sab laug, Txoj Cai, Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) xav tau Kev nrug deb hauv Centimeters siv lub suab hais kom ua. Neeg hlau kuj tseem tuaj yeem txav tau tus kheej
Tswj 100 Cov Khoom Siv hauv Ubidots Apps, Cov Koom Haum, Tus Kheej thiab Cov Neeg Siv: 11 Kauj Ruam
Tswj 100 Cov Khoom Siv hauv Ubidots Apps, Cov Koom Haum, Tus Kheej thiab Cov Neeg Siv: Hauv lub sijhawm no kuv tau txiav txim siab los sim qhov ua tau zoo ntawm IoT platform Ubidots rau cov neeg siv kev tswj hwm hauv qhov xwm txheej uas nws muaj ntau yam khoom siv rau ntau lub koom haum lossis tuam txhab nyob hauv tib yam Ubidots platform. Tus kav nroog cov ntaub ntawv: u
Dimming thiab ci ntsa iab LED nrog Arduino: 7 Kauj Ruam (nrog Duab)
Dimming thiab Ua kom pom lub ntsej muag LED nrog Arduino: Ua ntej koj pib tsim, koj yuav tsum tau txais cov ntaub ntawv raug: 1 Arduino Board - Kuv tau siv qhov poob ntawm Arduino Uno, tab sis nws ua haujlwm ib yam nkaus. 1 Potentiometer - kuv zoo li txawv dua li feem ntau, tab sis lawv kuj ua haujlwm tib yam. 1 Creadboard Ob peb