Cov txheej txheem:
- Kauj Ruam 1: Nqi Khoom
- Kauj ruam 2: Schematic thiab Cicruit
- Kauj Ruam 3: Txoj Cai
- Kauj Ruam 4: Kho Tus Nqi
- Kauj Ruam 5: Txoj Haujlwm Tom Qab Kev Ntsuam Xyuas thiab Txheeb Xyuas
- Kauj Ruam 6: Tom Qab Qee Qhov Muag Ua Haujlwm
- Kauj Ruam 7: Lub Sijhawm Ntawm Qhov Tseeb
- Kauj Ruam 8: Qhov Kawg
Video: Ib tus Pin 4 × 4 Keypad: 10 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Txhua lub sijhawm kuv pom cov keyboard, nws los nrog ntau tus pin, nws yog qhov pov tseg loj ntawm koj tus pin Arduino, yog li peb puas tuaj yeem siv lub keyboard nrog ib tus thiab tsuas yog ib tus pin?. Cov lus teb nyob ntawm no.
Kauj Ruam 1: Nqi Khoom
Kho vajtse:
01 Arduino UAS
02 Cov ntawv qhia zaub mov
01 LCD nrog I2C
16 Laub khawm
04 tus tiv thaiv 1.5 kΩ
04 resistors 620 Ω
04 resistors 220 Ω
08 resistors 100 Ω
01 tus tiv thaiv 1 kΩ
07 Jumper xov
Software:
Arduino IDE teeb tsa ntawm koj lub PC
Kauj ruam 2: Schematic thiab Cicruit
Txhua lub tswv yim yog tias peb muaj 4*4 matrix ntawm thawb khawm txuas mus rau hauv av los ntawm txoj cai txhuas thiab kab rov tav los ntawm lwm cov hlau lead (khawm coj) thiab resistors ntawm 1.5 kΩ, 620Ω, 220Ω, thiab 100Ω, qhov kawg ntawm 4 kab sib txuas los ntawm plaub 100Ω resistors raws li qhia hauv kab lus.
Txhua lub sijhawm koj thawb lub pob koj kaw lub Circuit Court thiab tam sim no dhau los ntawm txoj kev sib txawv thiab cov saw sib txawv ntawm cov resistors uas yog vim li cas tus pin A0 tau txais qhov sib txawv nyeem rau txhua lub laub khawm. Txhua yam koj xav tau tam sim no yog codding.
Kauj Ruam 3: Txoj Cai
#suav nrog
#suav nrog
LiquidCrystal_I2C lcd (0x3f, 20, 4);
int Khawm = A0;
koj readvalue;
void teeb tsa ()
{
Serial.begin (9600);
lcd.begin ();
pinMode (Khawm, INPUT);
lcd.backlight ();
lcd.print ("Nyob Zoo Ntiaj Teb");
ncua (2000);
lcd.clear ();
lcd.print ("Ib tus lej 4*4 tus lej");
ncua (2000); }
void lub voj ()
{
readvalue = analogRead (Khawm);
Serial.println (nyeem tau tus nqi);
yog (readvalue == 852) {lcd.clear (); lcd.print ("A");}
lwm {yog (readvalue == 763) {lcd.clear (); lcd.print ("B");}
lwm tus {yog (readvalue == 685) {lcd.clear (); lcd.print ("C");}
lwm tus {yog (readvalue == 965) {lcd.clear (); lcd.print ("D");}
lwm tus {yog (readvalue == 565) {lcd.clear (); lcd.print ("9");}
lwm {yog (readvalue == 614) {lcd.clear (); lcd.print ("6");}
lwm {yog (readvalue == 360) {lcd.clear (); lcd.print ("3");}
lwm {yog (readvalue == 335) {lcd.clear (); lcd.print ("#");}
lwm tus {yog (readvalue == 396) {lcd.clear (); lcd.print ("8");}
lwm tus {yog (readvalue == 349) {lcd.clear (); lcd.print ("5");}
lwm {{yog (tus nqi == 235) {lcd.clear (); lcd.print ("2");}
lwm {yog (readvalue == 279) {lcd.clear (); lcd.print ("0");}
lwm {yog (readvalue == 452) {lcd.clear (); lcd.print ("7");}
lwm {yog (readvalue == 271) {lcd.clear (); lcd.print ("4");}
lwm {yog (readvalue == 170) {lcd.clear (); lcd.print ("1");}
lwm tus {yog (readvalue == 92) {lcd.clear (); lcd.print ("*");} lwm yam {}}}}}}}}}}}}}}}}}}
Kauj Ruam 4: Kho Tus Nqi
Thaum koj qhib tus saib xyuas lub luag haujlwm nws yuav qhia tus nqi ntawm 1023, yog tias koj thawb lub pob nws yuav muab lwm qhov kev nyeem rau koj koj yuav tsum coj cov txiaj ntsig ntawd thiab ua qee qhov hloov pauv hauv txoj cai
Kauj Ruam 5: Txoj Haujlwm Tom Qab Kev Ntsuam Xyuas thiab Txheeb Xyuas
Tsis muaj qhov tsis ntseeg tias peb txhua tus nyob ntawm no kom kawm thiab qhia peb cov kev paub, ua tsaug rau qee cov lus tawm los ntawm qee tus neeg los ntawm zej zog uas tau pab tau zoo, Kuv txiav txim siab los ua qee qhov kev hloov kho thiab txhim kho rau kuv qhov project:
Kho vajtse:
Kuv txiav txim siab ua kom tag nrho cov khoom siv hauv PCB kom tsis txhob muaj teeb meem kev sib txuas tsis zoo hauv lub khob cij.
Cov cai:
Ib tus phooj ywg qhia kuv kom siv software debouncing thiab nws tsuas yog lub voj ("rau" lub voj piv txwv) los ua qhov haujlwm siv qee lub sijhawm los xaiv qhov nyeem nws txhais tau tias nws nyeem ntau (500 hauv kuv qhov kev xeem) tab sis siv tsuas yog zaum kawg.
rau (kuv = 1; kuv <= 500; kuv ++) {// coj tsuas yog 500th analogread
tus nqi = analogRead (Khawm);} // uas yog pab kom siv qee lub sijhawm kom tsis txhob nyeem tsis zoo
Lwm tus phooj ywg ua tsaug rau nws qhia kuv los sib piv "readvalue" nrog ntau qhov txiaj ntsig tsis yog ib qho vim "readvalue" siv ntau qhov txiaj ntsig rau tib lub laub khawm. Qhov "A" piv txwv muab nyeem ntawm: 849, 850, 851 852, 853, 854, 855 yog li nws yog qhov ntau ntawm 7 qhov tseem ceeb: qhov pib (852) thiab 3 qhov tseem ceeb sab laug thiab sab xis. yam peb yuav tsum ua ntawm no yog los sib piv qhov tsis sib xws ntawm qhov sib txawv ntawm "readvalue" thiab "852" rau "3".
yog (abs (readvalue-852) <= 8) {lcd.clear (); lcd.print ("A");}
Kauj Ruam 6: Tom Qab Qee Qhov Muag Ua Haujlwm
Kauj Ruam 7: Lub Sijhawm Ntawm Qhov Tseeb
Raws li koj tuaj yeem pom qhov haujlwm qee zaum cuam tshuam cov nyees khawm tab sis nws tseem ua haujlwm, hauv kev xav ther tsis muaj qhov tsis raug nrog lub Circuit Court tab sis cov cai xav tau kev ntsuas ntau dua.
Kauj Ruam 8: Qhov Kawg
Kuv vam tias koj nyiam txoj haujlwm no thiab koj sim ua nws, tej zaum koj yuav ua tau zoo dua li kuv tau ua.
Nug kuv yog tias koj muaj lus nug, tawm tswv yim thiab, tsis txhob hnov qab pov npav rau kuv yog tias koj nyiam qhov ntawd.
Pom zoo:
Pandemi: Tus Nqi Tus Nqi Tus Nqi Tus Kab Mob Qis Tsawg Tus Nqi: 7 Kauj Ruam
Pandemi: Tus Nqi Tus Nqi Tus Nqi Tus Kab Mob Qis Tsawg Tus Nqi: Qhov no yog qhov pheej yig, yooj yim los ua neeg hlau. Nws tuaj yeem ua kom tsis muaj menyuam hauv koj chav nrog UV-C lub teeb, nws yog lub teeb thiab nrawm, nws tuaj yeem mus rau txhua qhov av, thiab nws tuaj yeem haum rau txhua lub qhov rooj. Nws tseem yog tib neeg-nyab xeeb, thiab muaj kev ywj pheej tag nrho
Yuav Ua Li Cas Tsim Kev Tswj Tus Kheej 3D Luam Tus Kheej Tus Kheej Tus Kheej: 9 Kauj Ruam (nrog Duab)
Yuav Ua Li Cas Tsim Kev Tswj Tus Kheej 3D Luam Tus Kheej Tus Kheej Tus Kheej: Qhov no yog kev hloov pauv ntawm B-neeg hlau ua ntej. 100% Qhib QHOV CHAW / Arduino neeg hlau. CODE, 3D ntu thiab khoom siv hluav taws xob tau qhib yog li xav hloov kho nws lossis tsim qhov loj ntawm tus neeg hlau. Yog tias koj muaj kev ua xyem xyav, tswv yim lossis xav tau kev pab ua rau
ARUPI - Tus Nqi Tus Nqi Tus Nqi Uas Tau Txais Tus Nqi Uas Tau Txais Tus Nqi/Tus Kheej Tus Kheej (ARU) rau Soundscape Ecologists: 8 Kauj Ruam (nrog Duab)
ARUPI - Tus Nqi Tus Nqi Uas Tau Txais Tus Nqi Tus Nqi Uas Tau Txais Tus Nqi/Tus Kheej Tus Kheej (ARU) rau Soundscape Ecologists: Cov lus qhia no tau sau los ntawm Anthony Turner. Txoj haujlwm tau tsim los nrog ntau qhov kev pab los ntawm Shed hauv Tsev Kawm Ntawv ntawm Kev Suav, University of Kent (Mr Daniel Knox tau pab zoo!)
Tus Nqi Tus Nqi Tus Nqi Qis Tus Nqi Qis Tsawg: 15 Kauj Ruam (nrog Duab)
Tsawg-tus nqi Spherical Speaker Array: Cov cuab yeej ua suab nrov ua suab nrov hauv qhov xav tsis thoob, 360 degree zam, thaum lub suab nrov nrov nrov ua rau ntau qhov tsis txaus ntseeg, tsom teeb ntawm lub suab. Koj tuaj yeem siv nyiaj ib tuj ntawm cov khoom zoo nkauj: Hemisphere los ntawm Electrotap Experim
ISP 6 Tus Pin rau 8 Tus Pin: 4 Kauj Ruam
ISP 6 Tus Pin rau 8 Tus Pin: Qhov laj thawj kuv tau tsim qhov haujlwm no yog txhawm rau program ATTiny45, uas muaj 8 tus pin txuas, thaum kuv USBtinyISP (los ntawm Ladyada) tsuas muaj 10 tus pin thiab 6 tus pin txuas. Tom qab snooping ncig internet txog 3-4 lub lis piam kuv pom tsis muaj dab tsi