Cov txheej txheem:
Video: Arduino Esplora Basics: 4 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Huag! Kuv tsis pom koj nyob ntawd! Koj yuav tsum xav kawm cov hauv paus ntawm cov hauv paus ntawm Esplora pawg thawj coj zoo. Zoo, nkag los, nkag los. Phau ntawv qhia no yuav qhia koj txog ob peb yam kev ua kom zoo uas koj tuaj yeem ua nrog koj Esplora.
Kauj Ruam 1: Qhov Chaw
Txhawm rau qhia qhov no tau, koj yuav xav tau:
- Arduino Esplora
- Arduino IDE
- Lub siab heev !!!!!!:)
Kauj Ruam 2: Paub Koj Tus Esplora
Esplora yog pawg thawj coj saib txias heev. Nws muaj 2 tus neeg ua haujlwm thiab nws muaj 11 lub tswv yim/sensors. Nws muaj lub mic, multiplexer, accelerometer, thiab txawm tias lub teeb pom kev zoo (photoresistor). Pawg no yooj yim dua rau kev teeb tsa thiab ua haujlwm tau muab qhov tseeb tias txhua qhov ntsuas thiab ua haujlwm tau tsim nrog. Nrog Arduino Uno, koj yuav tsum xaiv tus pin hauv koj daim duab, uas tuaj yeem ua rau mob me ntsis. Esplora yog tus qauv zoo rau cov pib tshiab. Hauv qhov kev qhia no, lub hom phiaj tseem ceeb yog ntawm RGB LED thiab Slide potentiometer. Ua ntej, koj yuav saib qhov yooj yim Esplora kos duab hu ua Esplora Blink.
Kauj ruam 3: LED
Yog li qhib koj lub tsev qiv ntawv Arduino thiab qhib qhov program Esplora ntsais muag. Nyeem cov ntawv sau ib sab thiab txhua yam, vim tias lawv txhua tus tseem ceeb. Cov khoom koj yuav tsum coj los ntawm cov ntawv yog yooj yim. Koj yuav tsum paub cov lus txib yooj yim, tab sis tsuas yog thaum koj tsis tau txais lawv, lawv mus raws li hauv qab no:
- #suav nrog -tells uas arduino board nws yog
- void teeb () {}-teeb tsa, tsis muaj dab tsi los teeb tsa
- void loop () {}-cov lus hais ua voj yooj yim
- Esplora.write (-, -, -); -Qhia Esplora xim dab tsi tig lub LED
- Ncua (-);-Ntxiv kev ncua
Koj tuaj yeem hloov kho qhov program los ntawm kev hloov pauv tsis nyob hauv Esplora.write hais kom ua. Qhov ntawd yuav hloov xim. Yog tias koj hloov qhov ntsuas hauv qhov hais kom ncua, koj tuaj yeem ua kom ntev dua lossis ua kom qeeb ntxiv.
Nco tseg: Lub sijhawm qeeb yog nyob rau hauv milliseconds, yog li 1000 hauv Kev ncua qeeb sib npaug 1 thib ob.
Kuv qhia tias koj tinker nrog daim duab thiab kawm paub siv cov lus txib ua ntej hloov mus rau qib tom ntej.
Kauj ruam 4: Slider
Yog li, tam sim no koj paub txog qee qhov pib Esplora cov lus txib, Kuv yuav qhia koj qee qhov lus txib me ntsis ntxiv. Mus rau Arduino.cc-> Kawm-> Esplora-> Kauj Ruam 7. Raws li koj pom, muaj qhov thaiv me me ntawm cov cai. Nyeem cov ntawv nyob ib sab ntawm nws thiab luam thiab muab tso rau hauv IDE. Nov yog yam koj yuav tsum tau ua los ntawm cov ntawv:
- int slider = Esplora.readSlider ();- Nyeem txoj haujlwm swb raws li qhov sib txawv
- byte ci = slider/4; -tsis hloov pauv qhov nyeem tau kom pom
- Esplora.writeRed (ci);-siv nyeem tawm rau Liab LED ci ci
"ci ntsa iab" yog qhov sib txawv uas sawv cev rau lub teeb nyob hauv txoj haujlwm. Nws yog ib qho yooj yim, tseem yog qhov program txias heev. tom qab koj tau muab cov cai tso rau hauv IDE, muab tso rau hauv koj lub rooj tsavxwm. Tam sim no, txav lub hwj chim thiab koj yuav tsum pom lub teeb hloov pauv qhov ci thaum koj txav nws mus rau lub joystick. Nrog koj zoo siab, koj tau ua tiav cov lus qhia no!
Tam sim no koj yuav tsum muaj qhov txuj ci tseem ceeb ntawm Esplora board! Siv koj txoj kev paub ntse!
Pom zoo:
Tsis Txaus Ntshai Racer Arduino OLED Game, AdafruitGFX thiab Bitmaps Basics: 6 Kauj Ruam
Racer Racer Arduino OLED Game, AdafruitGFX thiab Bitmaps Basics: Hauv qhov kev qhia no peb yuav saib yuav siv bitmaps li cas siv Adafruit_GFX.c lub tsev qiv ntawv raws li cov sprites hauv kev ua si. Qhov kev ua si yooj yim tshaj plaws uas peb tuaj yeem xav txog yog ib sab kab kab hloov pauv kev ua si tsheb, thaum kawg peb cov beta tester thiab tus pab coder de
Interfacing Pushbutton - Arduino Basics: 3 Kauj Ruam
Interfacing Pushbutton - Arduino Basics: Lub laub khawm yog ib feem uas txuas ob lub ntsiab lus hauv Circuit thaum koj nias nws.Thaum lub pob qhib qhib (tsis muaj kev nyuaj siab) tsis muaj kev sib txuas ntawm ob txhais ceg ntawm lub khawm, yog li tus pin txuas nrog 5 volts (los ntawm kev rub tawm resi
Arduino TFT Interfacing Basics: 10 Kauj Ruam (nrog Duab)
Arduino TFT Interfacing Basics: TFT touchscreens yog qhov zoo siv tau zoo uas tuaj yeem siv nrog microcontrollers xws li Atmel, PIC, STM, vim nws muaj ntau yam xim ntau yam, thiab muaj peev xwm ua tau zoo thiab daim duab qhia tau zoo ntawm hnub no. rau Interface 2.4 nti TFT
Esplora X M5Stack: 11 Kauj Ruam (nrog Duab)
Esplora X M5Stack: Cov lus qhia no qhia yuav ua li cas muab Arduino Esplora thiab M5Stack los ua NES game console
Program Pro-mini Siv Uno (Arduino Basics): 7 Kauj Ruam (nrog Duab)
Program Pro-mini Siv Uno (Arduino Basics): Hai tag nrho, Hauv qhov kev qhia no kuv xav qhia koj kuv qhov kev paub nrog kuv nyuam qhuav yuav Arduino pro-mini thiab yuav ua li cas kuv tswj tau xa cov cai rau nws thawj zaug, siv kuv li qub Arduino Uno.Arduino pro-mini muaj cov hauv qab no: Nws yog kuv