Cov txheej txheem:
Video: Interfacing Pushbutton - Arduino Basics: 3 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Lub laub khawm yog ib feem uas txuas ob lub ntsiab lus hauv Circuit Court thaum koj nias nws.
Thaum lub laub khawm qhib (tsis muaj kev nyuaj siab) tsis muaj kev sib txuas ntawm ob txhais ceg ntawm lub laub, yog li tus pin txuas nrog 5 volts (los ntawm kev rub tawm tus tiv thaiv) thiab peb nyeem HIGH. Thaum lub pob raug kaw (nias), nws ua rau muaj kev sib txuas ntawm nws ob txhais ceg, txuas tus pin rau hauv av, kom peb nyeem LOW. (Tus pin tseem txuas nrog 5 volts, tab sis tus tiv thaiv hauv nruab nrab ntawm lawv txhais tau tias tus pin "ze" rau hauv av.)
Kauj Ruam 1: Cov Cheeb Tsam Yuav Tsum Tau:
1. Arduino UNO
2. Cov qhob cij
3. Pushbutton
4. Resistor
5. Jumper hlau
Kauj Ruam 2: Daim Duab Circuit:
Txuas peb xov hlau mus rau lub rooj tsavxwm. Thawj mus los ntawm ib txhais ceg ntawm lub pob nyem los ntawm kev rub tawm tus tiv thaiv (ntawm no 10k ohm) mus rau hauv av. Qhov thib ob mus los ntawm cov ceg sib txuas ntawm lub khawm mus rau 5 qhov hluav taws xob. Qhov thib peb txuas rau tus lej I/O tus lej (ntawm tus pin 2) uas nyeem lub pob lub xeev.
Thaum lub laub khawm qhib (tsis muaj kev nyuaj siab) tsis muaj kev sib txuas ntawm ob txhais ceg ntawm lub laub khawm, yog li tus pin txuas nrog hauv av (dhau qhov rub tawm tus neeg tawm tsam) thiab peb nyeem LOW. Thaum lub pob raug kaw (nias), nws ua rau muaj kev sib txuas ntawm nws ob txhais ceg, txuas tus pin rau qhov hluav taws xob, kom peb nyeem HIGH. (Tus lej tseem txuas nrog hauv av, tab sis tus tiv thaiv tiv thaiv cov dej ntws tam sim no, yog li txoj hauv kev tiv thaiv tsawg kawg yog +5V.) Yog tias koj txuas tus lej I/O tus pin los ntawm txhua yam, LED tuaj yeem ntsais muag tsis raug. Qhov no vim tias cov tswv yim yog "ntab" - uas yog, tsis txuas nrog rau qhov hluav taws xob lossis hauv av. Nws yuav ntau dua lossis tsawg dua qhov rov qab los yog HIGH lossis LOW. Tias yog vim li cas koj thiaj xav tau rub tawm tus tiv thaiv hauv Circuit.
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: https://instagram.com/official_techeor? Igshid = uc8…
int khawm = 2;
int ib; teeb tsa tsis muaj dab tsi () {Serial.begin (9600); pinMode (khawm, INPUT); } void loop () {a = digitalRead (khawm); Serial.print ("Tus nqi ntawm khawm ="); Serial.println (a); }
Pom zoo:
VBScript Basics - Pib Koj Cov Ntawv, Ncua Sijhawm thiab Ntau Ntxiv!: 5 Kauj Ruam
VBScript Basics - Pib Koj Cov Ntawv, Ncua Sijhawm thiab Ntau Ntxiv!: Zoo siab txais tos rau kuv thawj qhov kev qhia yuav ua li cas thiaj ua tau VBScripts nrog notepad. With.vbs cov ntaub ntawv, koj tuaj yeem tsim qee qhov lom zem pranks lossis kab mob tuag taus. Hauv qhov kev qhia no, Kuv yuav qhia koj cov lus txib yooj yim xws li pib koj tsab ntawv, qhib cov ntaub ntawv thiab ntau ntxiv. Hauv t
Txee Siv Pushbutton - Tinker Cad: 3 Kauj Ruam
Txee Siv Pushbutton | Tinker Cad: Thaum koj tau txais lub laub khawm ua haujlwm, koj feem ntau xav ua qee yam ua raws li pes tsawg zaus khawm raug thawb. Txhawm rau ua qhov no, koj yuav tsum paub thaum lub khawm hloov lub xeev los ntawm kev mus rau, thiab suav pes tsawg zaus qhov kev hloov pauv ntawm lub xeev no tshwm sim. Th
Animatronics Basics - Servo Motor: 8 Kauj Ruam
Animatronics Basics - Servo Motor: Txawm hais tias nws yog kev lom zem hnub so tso rau ntawm lub qhov rais ntawm lub khw muag khoom, lossis txaus ntshai Xus prank, tsis muaj ib yam dab tsi nyiam mloog zoo li tus menyuam roj hmab. Cov duab hluav taws xob no tau tswj qee zaum hu ua thiab thi
Ob Chav Pushbutton LED Circuit: 5 Kauj Ruam
Ob Chav Pushbutton LED Circuit: Kuv yuav sim kuv lub suab kom zoo li qub txhais tes ntawm kev ua haujlwm thiab ua haujlwm nrog arduinos tab sis, qhov tseeb raug hais, qhov tseeb kuv tsuas yog qhia rau cov no ob peb hnub dhau los, yog li kuv muaj kev xyiv fab dhau ntawm ua tiav tsim thiab ua haujlwm rau kuv
Pushbutton LED Matrix: 4 Cov Kauj Ruam
Pushbutton LED Matrix: Txoj haujlwm no tuaj yeem xav txog lwm qhov kev qhia ua ntej Arduino qhov haujlwm uas tau nce qib me ntsis ntau dua li koj li 'ntsais muag LED' txoj haujlwm. Txoj haujlwm no suav nrog ib qho LED matrix, thawb lub pob, hloov npe (uas tuaj yeem txuag pins ntawm koj Ard