Cov txheej txheem:

Siv Arduino rau Kev Tshawb Fawb Txog Neeg Xam Xaj!: 14 Kauj Ruam (nrog Duab)
Siv Arduino rau Kev Tshawb Fawb Txog Neeg Xam Xaj!: 14 Kauj Ruam (nrog Duab)

Video: Siv Arduino rau Kev Tshawb Fawb Txog Neeg Xam Xaj!: 14 Kauj Ruam (nrog Duab)

Video: Siv Arduino rau Kev Tshawb Fawb Txog Neeg Xam Xaj!: 14 Kauj Ruam (nrog Duab)
Video: 🤞8 YAM COV NEEG TXAWJ NTSE ZAM TSIS UA YOG DAB TSI?🚫 2024, Hlis ntuj nqeg
Anonim
Image
Image
Pssst, Qhov Sib Txawv Ntawm Kev Tshawb Fawb Txog Neeg Xam Xaj thiab
Pssst, Qhov Sib Txawv Ntawm Kev Tshawb Fawb Txog Neeg Xam Xaj thiab

Kev tshawb fawb tso cai rau peb nug peb cov lus nug nrawm tshaj plaws thiab tshawb nrhiav txhua yam kev xav paub. Nrog qee qhov kev xav, ua haujlwm nyuaj, thiab ua siab ntev, peb tuaj yeem siv peb qhov kev tshawb nrhiav los tsim kev nkag siab zoo thiab txaus siab rau lub ntiaj teb nyuaj thiab zoo nkauj nyob ib puag ncig peb.

Phau ntawv qhia no yuav qhia koj yuav siv Arduino (uno) microcontroller li cas, yuav siv hom sib txawv li cas, thiab yuav sau thiab pom cov ntaub ntawv li cas. Nrog txoj kev, peb yuav tsim peb txoj haujlwm: hloov qaij, ntsuas kub thiab av noo, thiab lub teeb pom kev!

Qib Nyuaj: Pib

Lub Sijhawm Nyeem Ntawv: 20 feeb

Tsim Sijhawm: Nyob ntawm koj qhov project! (Cov haujlwm hauv qhov kev qhia no siv sijhawm li 15-20 feeb)

Kauj Ruam 1: Pssst, Qhov Sib Txawv Ntawm Zej Zog Kev Tshawb Fawb thiab "Kev Tshawb Fawb Txog Kev Tshawb Fawb" yog dab tsi?

Qhov sib txawv loj tshaj plaws yog pej xeem kev tshawb fawb yog, raws li kuv nyiam hais, "tes ntais ntawv", uas txhais tau tias muaj ntau qhov yuam kev thiab qhov tsis paub tseeb thiab tsis muaj txheej txheem nruj los txheeb xyuas lawv. Vim li no, cov lus xaus tau dhau los ntawm pej xeem kev tshawb fawb tsis raug ntau dua li kev tshawb fawb-science thiab yuav tsum tsis txhob cia siab rau ua qhov hnyav/hloov pauv lub neej/ua rau muaj kev phom sij rau lub neej lossis txiav txim siab.*

Uas tau hais tias, kev tshawb fawb pej xeem yog txoj hauv kev zoo los tsim kev nkag siab zoo ntawm txhua yam ntawm kev tshwm sim kev tshawb fawb uas txaus nyiam thiab zoo txaus rau feem ntau niaj hnub siv.

*Yog tias koj tab tom ua pej xeem kev tshawb fawb thiab koj pom qee yam uas muaj peev xwm txaus ntshai (piv txwv li qib siab hauv cov dej), qhia rau koj tus kws qhia ntawv (yog tias tsim nyog) thiab hu rau cov neeg muaj feem cuam tshuam thiab cov kws tshaj lij rau kev pab.

Kauj ruam 2: Dab tsi yog Arduino ??

Arduino yog dab tsi ??
Arduino yog dab tsi ??
Arduino yog dab tsi ??
Arduino yog dab tsi ??
Arduino yog dab tsi ??
Arduino yog dab tsi ??
Arduino yog dab tsi ??
Arduino yog dab tsi ??

Arduino yog pawg tswj hwm microcontroller thiab Kev Txhim Kho Ib Leeg Ib puag ncig ("IDE"), uas yog txoj hauv kev zoo li hais "coding program". Rau cov pib tshiab, Kuv pom zoo kom Arduino Uno cov laug cam vim tias lawv muaj zog heev, ntseeg tau, thiab muaj zog.

Cov laug cam Arduino yog qhov kev xaiv zoo rau pej xeem cov phiaj xwm kev tshawb fawb vim tias lawv muaj ntau cov tswv yim nkag los nyeem hauv ob qho tib si Analog thiab Digital (peb yuav nkag mus ntxiv rau tom qab no).

Tau kawg, koj tuaj yeem siv lwm tus tswj hwm microcontrollers rau pej xeem kev tshawb fawb nyob ntawm koj (lossis koj cov tub ntxhais kawm) qhov xav tau, lub peev xwm, thiab kev nplij siab. Nov yog cov ntsiab lus ntawm microcontrollers los pab koj txiav txim siab qhov twg yog qhov zoo tshaj rau koj!

Txhawm rau nyem, lossis program, Arduino board, ntsaws nws ntawm USB, tom qab ntawd:

1. Xaiv hom Arduino koj tab tom siv hauv Cov Cuab Yeej -> Cov laug cam. (Duab 2)

2. Xaiv qhov chaw nres nkoj (aka qhov twg nws txuas nrog koj lub computer). (Duab 3)

3. Nyem rau Upload khawm thiab xyuas tias nws ua tiav uploading. (Duab 4)

Kauj Ruam 3: Cov Cuab Yeej & Cov Khoom

Cov Cuab Yeej & Cov Khoom
Cov Cuab Yeej & Cov Khoom

Yog tias koj nyuam qhuav pib, tau txais cov khoom siv yog txoj hauv kev nrawm & yooj yim kom tau txais ib pawg ntawm ib feem. Cov khoom kuv siv hauv qhov kev qhia no yog Elegoo Arduino Starter Kit.*

Cov cuab yeej

  • Arduino Ib
  • USB A rau B cable (aka tshuab luam ntawv cable)
  • Jumper Hlau

    • 3 txiv neej-rau-txiv neej
    • 3 txiv neej-rau-poj niam
  • Cov qhob cij

    Yeem tab sis pom zoo kom ua rau koj lub neej yooj yim dua thiab lom zem dua:)

Khoom siv

Txog cov phiaj xwm tau hais hauv qhov kev qhia no, koj yuav xav tau cov khoom no los ntawm Elegoo Arduino Starter Kit:

  • Qaij Hloov
  • DTH11 Kub thiab Vaum Sensor
  • LED
  • 100 Ohm tus tiv thaiv

*Qhia tawm tag nrho: Kuv yuav cov khoom siv tib yam rau kev cob qhia, tab sis cov khoom siv hauv qhov kev qhia no tau pub los ntawm cov neeg ntxim nyiam ntawm Elegoo.

Kauj Ruam 4: Peb tuaj yeem siv Cov Ntsej Muag Zoo Li Cas?

Hom Sensors twg peb tuaj yeem siv tau?
Hom Sensors twg peb tuaj yeem siv tau?

Thaum tsim kev sim sim, peb ib txwm pib nrog lo lus nug: Cov nroj tsuag nqus CO2 ntau npaum li cas hauv ib hnub? Dab tsi yog qhov cuam tshuam quab yuam ntawm kev dhia? Kev nco qab yog dab tsi ??

Raws li peb cov lus nug, tom qab ntawv peb tuaj yeem txheeb xyuas qhov peb xav ntsuas thiab ua qee qhov kev tshawb fawb txhawm rau txheeb xyuas seb lub sensor peb tuaj yeem siv los sau cov ntaub ntawv (txawm hais tias nws yuav tsis yooj yim me ntsis los sau cov ntaub ntawv rau lo lus nug kawg!).

Thaum ua haujlwm nrog cov khoom siv hluav taws xob, muaj ob hom tseem ceeb ntawm cov ntaub ntawv sensor: Digital thiab Analog. Hauv daim duab, thawj ob kab ntawm ntu yog tag nrho cov ntsuas hluav taws xob, thaum ob kab saum toj kawg nkaus yog sib piv.

Muaj ntau ntau hom sib txawv ntawm cov ntsuas digital, thiab qee qhov nyuaj rau ua haujlwm nrog dua li lwm tus. Thaum ua kev tshawb fawb rau koj txoj haujlwm kev tshawb fawb pej xeem, ib txwm tshuaj xyuas qhov ntsuas qhov ntsuas tawm cov ntaub ntawv (srsly tho) thiab xyuas kom tseeb tias koj tuaj yeem nrhiav lub tsev qiv ntawv (Arduino) rau qhov tshwj xeeb sensor.

Hauv peb qhov haujlwm tau hais tseg hauv qhov kev qhia no peb yuav siv ob hom digital sensors thiab ib qho analog sensor. Cia peb kawm paub!

Kauj Ruam 5: Digital Sensors! Ntu 1: Cov Yooj Yim

Digital Sensors! Ntu 1: Cov Yooj Yim!
Digital Sensors! Ntu 1: Cov Yooj Yim!
Digital Sensors! Ntu 1: Cov Yooj Yim!
Digital Sensors! Ntu 1: Cov Yooj Yim!

Feem ntau cov ntsuas koj yuav siv lub Digital Signal, uas yog lub teeb liab uas yog nyob rau lossis tawm.* Peb siv tus lej zauv los sawv cev rau ob lub xeev no: On On signal is given by a 1, or True, while Off is 0, los yog Cuav. Yog tias peb tau kos duab ntawm qhov zoo li lub cim binary zoo li cas, nws yuav yog lub voos xwmfab zoo ib yam li hauv Duab 2.

Muaj qee qhov digital sensors, zoo li hloov pauv, uas yooj yim heev thiab yooj yim los ntsuas vim tias lub pob raug thawb thiab peb tau txais lub teeb liab (1), lossis nws tsis raug thawb thiab peb tsis muaj lub teeb liab (0). Cov duab kos duab hauv kab hauv qab ntawm thawj daim duab yog txhua yam yooj yim rau/tawm hom. Cov ntsuas ntawm kab saum toj no nyuaj me ntsis thiab tau npog tom qab peb thawj qhov haujlwm.

Thawj ob qhov haujlwm hauv zaj lus qhia no yuav qhia koj siv ob hom! Mus tom ntej los tsim peb thawj qhov project !!

*On txhais tau tias yog teeb liab hluav taws xob hauv daim ntawv hluav taws xob tam sim no thiab qhov hluav taws xob. Tawm txhais tau tias tsis muaj teeb liab hluav taws xob!

Kauj Ruam 6: Txoj Haujlwm 1: Qaij Hloov Digital Sensor

Txoj Haujlwm 1: Qaij Hloov Digital Sensor
Txoj Haujlwm 1: Qaij Hloov Digital Sensor
Txoj Haujlwm 1: Qaij Hloov Digital Sensor
Txoj Haujlwm 1: Qaij Hloov Digital Sensor
Txoj Haujlwm 1: Qaij Hloov Digital Sensor
Txoj Haujlwm 1: Qaij Hloov Digital Sensor

Rau thawj qhov haujlwm no, cia peb siv lub qaij tig, lub ntsej muag lub ntsej muag dub nrog ob txhais ceg! tsis muaj teeb meem

Kauj Ruam 2: Sau daim duab uas nyeem hauv thiab luam tawm cov xwm txheej ntawm Digital Pin 13

Lossis koj tuaj yeem siv kuv li!

Yog tias koj nyuam qhuav pib ua tus lej, nyeem los ntawm cov lus kom nkag siab zoo tias daim duab ua haujlwm zoo li cas thiab sim hloov qee yam kom pom tias muaj dab tsi tshwm sim! Nws tsis ua li cas txhawm rau rhuav tshem, yog txoj hauv kev zoo los kawm! Koj tuaj yeem rov rub tawm cov ntawv thiab pib dua:)

Kauj Ruam 3: Txhawm rau pom koj cov ntaub ntawv nyob, nyem rau ntawm Serial Monitor khawm (duab 2)

..aaaaaaaaa tu la! Tam sim no koj tuaj yeem siv qhov qaij hloov los ntsuas kev taw qhia! Teem nws kom hu koj tus miv thaum nws tsoo ib yam dab tsi, lossis siv nws los taug qab seb cov ceg ntoo txav li cas thaum muaj cua daj cua dub!.. & tej zaum muaj lwm daim ntawv thov nyob nruab nrab ntawm ob qhov kev kub ntxhov.

Kauj Ruam 7: Digital Sensors! Ntu 2: PWM thiab Kev Sib Txuas Lus

Digital Sensors! Ntu 2: PWM thiab Kev Sib Txuas Lus
Digital Sensors! Ntu 2: PWM thiab Kev Sib Txuas Lus
Digital Sensors! Ntu 2: PWM thiab Kev Sib Txuas Lus
Digital Sensors! Ntu 2: PWM thiab Kev Sib Txuas Lus
Digital Sensors! Ntu 2: PWM thiab Kev Sib Txuas Lus
Digital Sensors! Ntu 2: PWM thiab Kev Sib Txuas Lus

Muaj ntau txoj hauv kev los tsim cov teeb meem digital nyuaj dua! Ib txoj hauv kev hu ua Pulse Width Modulation ("PWM"), uas yog txoj hauv kev zoo los hais lub teeb liab uas nyob rau qee lub sijhawm thiab tawm rau qee lub sijhawm. Servo motors (uas tuaj yeem siv los ntsuas txoj haujlwm) thiab ultrasonic sensors yog piv txwv ntawm cov ntsuas uas siv PWM cov cim.

Kuj tseem muaj cov cim ntsuas uas siv kev sib txuas lus txuas mus xa cov ntaub ntawv ib ntsis, lossis tus lej binary, ib lub sijhawm. Cov ntsuas no xav tau qee qhov kev paub nrog kev nyeem cov ntaub ntawv thiab tuaj yeem ua qhov zoo nkauj yog tias koj nyuam qhuav pib. Hmoov zoo, cov ntsuas ntsuas ib txwm yuav muaj cov tsev qiv ntawv code* thiab cov qauv kev pab cuam los rub tawm yog li koj tseem tuaj yeem sib koom ua ke qee yam ua haujlwm. Xav paub ntau ntxiv txog cov txheej txheem kev sib txuas lus ntau dhau ntawm qhov kev qhia no, tab sis ntawm no yog cov peev txheej zoo ntawm kev sib txuas lus txuas los ntawm SparkFun kom paub ntau ntxiv!

Rau qhov haujlwm piv txwv no, cia siv qhov ntsuas kub thiab av noo (DHT11)! Qhov no yog lil 'lub xwmfab xiav nrog lub qhov thiab 3 tus pin.

Ua ntej peb yuav xav tau ob peb lub tsev qiv ntawv tshwj xeeb rau DHT11 sensor: DHT11 lub tsev qiv ntawv thiab Adafruit Unified Sensor lub tsev qiv ntawv.

Kauj Ruam 1: Qhib Arduino tus thawj tswj tsev qiv ntawv los ntawm kev mus rau Sketch -> Libraries -> tswj Tsev Qiv Ntawv (Duab 2)

Kauj Ruam 2: Nruab thiab qhib DHT lub tsev qiv ntawv los ntawm kev tshawb rau "DHT" thiab tom qab ntawd nyem Nruab rau "DHT Arduino Library" (Duab 3)

Kauj Ruam 3: Nruab thiab qhib Adafruit Unified Sensor lub tsev qiv ntawv los ntawm kev tshawb rau "Adafruit Unified Sensor" thiab nyem rau nruab.

Kauj Ruam 4: Ntxig DHT lub tsev qiv ntawv rau hauv koj daim duab qhib los ntawm kev mus rau Sketch -> Cov tsev qiv ntawv, thiab nyem rau ntawm "DHT Arduino Library. (Duab 4) Qhov no yuav ntxig ob peb kab tshiab rau saum koj daim duab, uas txhais tau tias peb lub tsev qiv ntawv tam sim no nquag siv thiab npaj siv! (Duab 5)

*Ib yam li koj lub tsev qiv ntawv nyiam hauv zos, cov tsev qiv ntawv muaj txiaj ntsig ntawm kev paub thiab lwm tus neeg txoj haujlwm nyuaj uas peb tuaj yeem siv los ua kom peb lub neej yooj yim dua, yog!

Kauj Ruam 8: Txoj Haujlwm 2: Temp and Humidity Digital Serial Sensor

Txoj Haujlwm 2: Temp and Humidity Digital Serial Sensor
Txoj Haujlwm 2: Temp and Humidity Digital Serial Sensor
Txoj Haujlwm 2: Temp and Humidity Digital Serial Sensor
Txoj Haujlwm 2: Temp and Humidity Digital Serial Sensor
Txoj Haujlwm 2: Temp and Humidity Digital Serial Sensor
Txoj Haujlwm 2: Temp and Humidity Digital Serial Sensor
Txoj Haujlwm 2: Temp and Humidity Digital Serial Sensor
Txoj Haujlwm 2: Temp and Humidity Digital Serial Sensor

Lob 3 tus txiv neej-rau-poj niam jumper xov hlau los ntawm Elegoo Arduino Starter Kit thiab peb tau npaj mus!

Kauj Ruam 1: Nrog lub taub hau taub hau ntsib koj, txuas tus pin sab xis sab xis ntawm DHT11 mus rau Arduino av ("GND") tus pin.

Kauj Ruam 2: Txuas nruab nrab lub taub hau tus pin rau Arduino 5V tso tus pin.

Kauj Ruam 3: Txuas tus pin header sab laug rau Arduino Digital Pin 2

Kauj Ruam 4: Thaum kawg, nyeem DHT lub tsev qiv ntawv thiab sim koj txhais tes ntawm kev kos duab! Oooor koj tuaj yeem siv kuv li lossis DHT xeem piv txwv kos duab hauv Arduino -> Piv txwv!

Thaum koj tau txais nws thiab khiav, tawm mus thiab ntsuas qhov ntsuas kub thiab av noo ntawm txhua yam!.. Zoo li tus tsiaj ua tsis taus pa, lub tsev cog khoom, lossis qhov chaw koj nyiam tshaj plaws nyob rau lub sijhawm sib txawv ntawm lub xyoo kom pom qhov * zoo meej * xa lub sijhawm.

Kauj ruam 9: Analog Sensors

Analog Sensors!
Analog Sensors!
Analog Sensors!
Analog Sensors!

Tom qab qhov nyuaj dhia rau hauv cov ntsuas digital, cov ntsuas sib piv tuaj yeem zoo li cua daj cua dub! Cov cim qhia analog yog lub teeb liab txuas ntxiv, raws li qhia hauv daim duab thib ob. Feem ntau ntawm lub ntiaj teb lub cev muaj nyob hauv kev sib piv (piv txwv li kub, hnub nyoog, siab, thiab lwm yam), tab sis txij li lub khoos phis tawj yog digital*, feem ntau cov ntsuas yuav tso tawm lub teeb liab. Qee lub microcontrollers, zoo li Arduino boards, tseem tuaj yeem nyeem hauv cov cim zoo sib xws **.

Rau feem ntau cov khoom siv sib piv, peb muab lub zog ntsuas hluav taws xob, tom qab ntawd nyeem hauv cov teeb liab sib piv siv Analog Input pins. Txog qhov kev sim no, peb yuav siv qhov teeb tsa yooj yim dua los ntsuas qhov hluav taws xob hla ib qho LED thaum peb ua lub teeb ci rau nws.

*Khoos phis tawj siv cov cim digital los khaws thiab xa cov ntaub ntawv. Qhov no vim tias cov cim digital tau yooj yim txhawm rau txheeb xyuas thiab ntseeg tau ntau dua, txij li txhua yam peb tau txhawj xeeb txog yog tau txais lub teeb liab lossis tsis tiv nrog kev txhawj xeeb txog qhov ua tau zoo/raug ntawm lub teeb liab.

** Txhawm rau nyeem hauv lub teeb liab sib piv ntawm cov cuab yeej digital, peb yuav tsum siv Analog-to-Digital, lossis ADC, hloov pauv, uas kwv yees kwv yees cov teeb liab sib piv los ntawm kev sib piv cov tswv yim rau qhov paub hluav taws xob ntawm lub cuab yeej, tom qab suav nws ntev npaum li cas siv mus txog qhov input voltage. Yog xav paub ntxiv, qhov no yog qhov chaw pab tau.

Kauj Ruam 10: Txoj Haujlwm 3: LED Ua Lub Teeb Pom Kev

Txoj Haujlwm 3: LED Ua Lub Teeb Pom Kev!
Txoj Haujlwm 3: LED Ua Lub Teeb Pom Kev!
Txoj Haujlwm 3: LED Ua Lub Teeb Pom Kev!
Txoj Haujlwm 3: LED Ua Lub Teeb Pom Kev!

Lob tus LED (ib qho xim tshwj tsis yog dawb), 100 Ohm resistor, thiab 2 jumper cables. Auj, thiab daim ntawv qhia zaub mov!

Kauj Ruam 1: Ntxig lub LED rau hauv lub khob cij nrog cov ceg ntev dua ntawm sab xis.

Kauj Ruam 2: Txuas lub xov hlau txuas los ntawm Arduino Analog Pin A0 thiab LED ntev dua

Kauj Ruam 3: Txuas tus tiv thaiv nruab nrab ntawm luv luv LED ceg thiab lub khob cij tsis zoo lub zog tsheb nqaj hlau (ib sab ntawm kab xiav).

Kauj Ruam 4: Txuas tus Arduino GND tus pin rau txoj kab hluav taws xob tsis zoo ntawm lub khob cij.

Kauj Ruam 5: Sau daim duab uas nyeem hauv Analog Pin A0 thiab luam tawm mus rau Serial Monitor

Nov yog tus qauv piv txwv kom pib ya.

Kauj Ruam 11: Pom Cov Ntaub Ntawv: Arduino IDE

Pom cov ntaub ntawv: Arduino IDE!
Pom cov ntaub ntawv: Arduino IDE!
Pom cov ntaub ntawv: Arduino IDE!
Pom cov ntaub ntawv: Arduino IDE!

Arduino IDE los nrog cov cuab yeej tsim los kom pom cov ntaub ntawv. Peb twb tau tshawb pom qhov pib ntawm Serial Monitor uas tso cai rau peb luam tawm qhov ntsuas qhov ntsuas. Yog tias koj xav khaws thiab tshuaj xyuas koj cov ntaub ntawv, theej tawm cov ntawv ncaj qha los ntawm Serial Monitor thiab muab tshuaj txhuam rau hauv cov ntawv sau, ntawv nthuav qhia, lossis lwm yam cuab yeej tshuaj xyuas cov ntaub ntawv.

Qhov cuab yeej thib ob peb tuaj yeem siv los saib peb cov ntaub ntawv hauv Arduino program yog Serial Plotter, qhov pom pom (aka duab) ntawm Serial Monitor. Txhawm rau siv Serial Plotter, mus rau Cov Cuab Yeej Siv Plotter. Cov duab hauv Duab 2 yog qhov tso tawm ntawm LED ua lub teeb pom kev los ntawm Project 3!*

Cov phiaj xwm yuav pib ntsuas thiab tsuav yog koj siv Serial.println () rau koj lub ntsuas cua, nws tseem yuav luam tawm txhua yam ntawm koj lub ntsej muag hauv cov xim sib txawv. Nyob zoo! Qhov ntawd yog nws!

*Yog tias koj saib qhov kawg, muaj qhov txawv txav zoo nkauj uas zoo li yuav tshwm sim los ntawm Kev Hloov Pauv Tam Sim No ("AC") hauv peb cov teeb pom kev ua haujlwm!

Kauj ruam 12: Pom cov ntaub ntawv: Excel! Tshooj 1

Pom cov ntaub ntawv: Excel! Tshooj 1
Pom cov ntaub ntawv: Excel! Tshooj 1
Pom cov ntaub ntawv: Excel! Tshooj 1
Pom cov ntaub ntawv: Excel! Tshooj 1
Pom cov ntaub ntawv: Excel! Tshooj 1
Pom cov ntaub ntawv: Excel! Tshooj 1
Pom cov ntaub ntawv: Excel! Tshooj 1
Pom cov ntaub ntawv: Excel! Tshooj 1

Txog kev txheeb xyuas cov ntaub ntawv hnyav dua, muaj qhov txias tshaj (thiab pub dawb!) Ntxiv rau Excel hu ua Data Streamer*, uas koj tuaj yeem rub tawm ntawm no.

Qhov ntxiv-hauv no nyeem los ntawm cov chaw nres nkoj hauv xov tooj, yog li peb tuaj yeem siv qhov txheej txheem coding zoo tib yam ntawm kev luam cov ntaub ntawv mus rau cov ntawv kom tau txais cov ntaub ntawv ncaj qha rau hauv Excel.. heck yog !!

Yuav siv Data Streamer Ntxiv-Hauv:

1. Thaum koj tau teeb tsa nws (lossis yog tias koj muaj O365), nyem rau ntawm Data Streamer tab (nyob sab xis) hauv Excel.

2. Txuas koj Arduino thiab nyem "Txuas Txuas", tom qab ntawd xaiv Arduino los ntawm cov ntawv qhia zaub mov nco-down. (Duab 1)

3. Nyem rau "Pib Cov Ntaub Ntawv" kom pib sau cov ntaub ntawv! (Duab 2) Koj yuav pom peb daim ntawv tshiab qhib: "Cov Ntaub Ntawv Hauv", "Cov Ntaub Ntawv Tawm", thiab "Chaw".

Cov ntaub ntawv nyob tau luam tawm hauv Cov Ntaub Ntawv Hauv daim ntawv. (Duab 3) Txhua kab sib raug rau lub ntsuas nyeem ntawv, nrog tus nqi tshiab tshaj tawm hauv kab kawg.

Los ntawm lub neej ntawd peb tsuas yog tau txais 15 kab ntawm cov ntaub ntawv, tab sis koj tuaj yeem hloov qhov no los ntawm kev mus rau "Chaw". Peb tuaj yeem sib sau tau txog 500 kab (txwv vim yog Excel bandwidth - muaj ntau qhov tshwm sim hauv keeb kwm yav dhau!).

*Qhia tawm tag nrho: Txawm hais tias qhov kev qhia no tsis koom nrog, kuv ua haujlwm nrog Microsoft Hacking STEM pab pawg uas tsim qhov ntxiv no.

Kauj Ruam 13: Pom Cov Ntaub Ntawv: Excel! Tshooj 2

Pom cov ntaub ntawv: Excel! Tshooj 2
Pom cov ntaub ntawv: Excel! Tshooj 2
Pom cov ntaub ntawv: Excel! Tshooj 2
Pom cov ntaub ntawv: Excel! Tshooj 2
Pom cov ntaub ntawv: Excel! Tshooj 2
Pom cov ntaub ntawv: Excel! Tshooj 2

4. Ntxiv Cov Phiaj Xwm ntawm koj cov ntaub ntawv! Ua qee qhov kev txheeb xyuas cov ntaub ntawv! Cov phiaj xwm tawg qhia koj li cas cov ntawv nyeem tau hloov pauv lub sijhawm, uas yog tib yam peb tau pom hauv Arduino Serial Plotter.

Txhawm rau ntxiv Scatter Plot:

Mus rau Insert -> Charts -> Scatter. Thaum cov phiaj xwm tshwm tuaj, nyem rau nws thiab xaiv "Xaiv Cov Ntaub Ntawv", tom qab ntawd Ntxiv. Peb xav kom peb cov ntaub ntawv nthuav tawm ntawm y-axis, nrog "sijhawm"* ntawm x-axis. Txhawm rau ua qhov no, nyem lub xub nyob ib sab ntawm y-axis, mus rau Cov Ntaub Ntawv Hauv daim ntawv, thiab xaiv tag nrho cov ntaub ntawv nkag mus sensor (Duab 2).

Peb kuj tseem tuaj yeem suav thiab sib piv hauv Excel! Txhawm rau sau tus lej, nyem rau ntawm lub xov tooj ntawm tes uas tsis muaj dab tsi thiab ntaus tus lej sib npaug ("="), tom qab ntawv suav koj xav ua. Muaj ntau ntau cov lus txib ua xws li nruab nrab, siab kawg, thiab yam tsawg kawg nkaus.

Txhawm rau siv qhov hais kom ua, ntaus qhov sib npaug kos npe, lub npe hais kom ua, thiab kab lus qhib, tom qab ntawv xaiv cov ntaub ntawv koj tab tom tshuaj xyuas thiab kaw cov kab lus (Photo 3)

5. Txhawm rau xa ntau dua ib kab ntawv ntawm cov ntaub ntawv (AKA ntau dua ib lub cim), luam qhov tseem ceeb ntawm tib txoj kab sib cais los ntawm tus lej, nrog kab kawg kawg tshiab tshiab, zoo li no:

Serial.print (sensorReading1);

Serial.print (","); Serial.print (sensorReading2); Serial.print (","); Serial.println ();

*Yog tias koj xav kom lub sijhawm tiag tiag nyob ntawm x-axis, xaiv lub sijhawm nyob hauv Kab A ntawm Cov Ntaub Ntawv Hauv daim ntawv rau x-axis qhov tseem ceeb hauv koj lub Platter Platter. Ua li cas los xij, peb yuav pom peb cov ntaub ntawv raws li nws hloov pauv lub sijhawm.

Kauj Ruam 14: Mus Forth thiab Ntsuas Txhua Yam

Mus Forth thiab Ntsuas Txhua Yam !!
Mus Forth thiab Ntsuas Txhua Yam !!
Mus Forth thiab Ntsuas Txhua Yam !!
Mus Forth thiab Ntsuas Txhua Yam !!
Mus Forth thiab Ntsuas Txhua Yam !!
Mus Forth thiab Ntsuas Txhua Yam !!

Yog lawm, cov neeg ntawd yog txhua yam! Lub sijhawm tawm mus sab nrauv thiab nce siab! Siv qhov no los ua lub hauv paus los pib tshawb nrhiav cov cim, Arduino coding, thiab txheeb xyuas cov ntaub ntawv txhawm rau daws koj cov lus nug, xav paub, thiab nyiam qhov tsis paub nyob hauv lub ntiaj teb loj, zoo nkauj no.

Nco ntsoov: muaj ntau tus neeg nyob ntawd los pab koj raws txoj kev, yog li thov tawm lus yog tias koj muaj lus nug!

Xav tau ib co tswv yim ntxiv? Nov yog yuav ua li cas txhawm rau hloov pauv lub xeev hloov pauv, lub hnub ci-siv hluav taws xob ntsuas qhov kub thiab txias, thiab Internet-txuas nrog kev lag luam nplai!

Zoo li qhov kev qhia no thiab xav pom ntau ntxiv? Txhawb nqa peb cov phiaj xwm ntawm Patreon!: D

Pom zoo: