Cov txheej txheem:
- Kauj Ruam 1: Cov Cheeb Tsam Xav Tau
- Kauj ruam 2: Sib sau ua ke
- Kauj ruam 3: Programming
- Kauj Ruam 4: Qhov tshwm sim
Video: Nyeem ADC Qhov Muaj Peev Xwm Los Ntawm Potentiometers: 4 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Hauv kab lus no kuv yuav qhia koj yuav ua li cas nyeem ADC qhov tseem ceeb los ntawm lub zog ntsuas.
qhov no yog lub hauv paus ntawm Arduino programming. uas yog nyeem qhov sib piv siv tus lej Analog muab los ntawm Arduino.
dua li siv lub zog, muaj ntau lub ntsuas cua uas siv cov tswv yim analog. xws li lub teeb pom kev zoo, lub suab suab thiab cov av noo noo.
Vim li cas siv lub lauj kaub? vim tias cov khoom siv no yooj yim nrhiav thiab tuaj yeem sawv cev rau cov ntsuas uas tau nyeem siv cov tswv yim analog.
Los ntawm ADC nyeem ntawv no, tom qab ntawv nws tuaj yeem koom tes nrog cov khoom tsim tawm. thiab yeej yuav tsim yam ntxim nyiam.
Kauj Ruam 1: Cov Cheeb Tsam Xav Tau
Nov yog ib feem uas xav tau hauv phau ntawv qhia no:
- Arduino nano v3.0
- Lub zog 100K
- Jumper Hlau
- Pawg Thawj Coj
- USB mini tso
- Laptop
- Arduino IDE Cov
Kauj ruam 2: Sib sau ua ke
Sib sau tag nrho cov khoom siv.
Siv cov duab kos duab saum toj no los ua cov lus qhia rau kev sib dhos nws.
Potentio rau Arduino
1 ==> GnP
2 ==> UA0
3 ==> 5V
Kauj ruam 3: Programming
Tom qab lub Circuit Court raug teeb tsa. Tom ntej no, sau arduino nrog ADC nyeem cov haujlwm uas tau ua.
Daim duab uas kuv tau ua yog ntxaws li no:
void teeb () {// initialize serial communication ntawm 9600 ntsis ib ob: Serial.begin (9600); }
// lub voj kev ua haujlwm dhau mus thiab ntau dua ib si:
void loop () {// nyeem cov tswv yim ntawm analog pin 0: int sensorValue = analogRead (A0); // luam tawm tus nqi koj nyeem: Serial.println (sensorValue); ncua (1); // ncua nyob nruab nrab ntawm kev nyeem rau kev ruaj ntseg}
Koj tseem tuaj yeem rub tawm thawj daim ntawv hauv qab no:
Kauj Ruam 4: Qhov tshwm sim
Cov hauv qab no yog ib txoj hauv kev pom cov txiaj ntsig:
- Qhib cov ntawv saib ntawm Arduino.
- Nco ntsoov tias tus nqi baud ntawm tus lej saib thiab qhov kev zov me nyuam tsim nyog (ntawm no siv 9600).
- ces tig lub hwj chim
- Thaum tig mus rau sab xis, ADC tus nqi yuav ntau dua
- Thaum tig sab laug, ADC tus nqi yuav tau me dua
- Tus nqi me tshaj yog 0 thiab tus nqi loj tshaj yog 1023.
Los ntawm cov ntaub ntawv digital 0-1023, peb tuaj yeem siv nws los ua lwm yam ntxim nyiam. Tsuas yog saib kuv kab lus tom ntej.
Pom zoo:
Lub Hwj Huam Muaj Peev Xwm Los Ntawm Sab Hauv Qhov Chaw: 8 Kauj Ruam
Lub Hwj Huam Muaj Peev Xwm Los Ntawm Sab Hauv Qhov Chaw: Nyob zoo, cov lus qhia no yog tsim lub txhab nyiaj hluav taws xob los ntawm sab laug. Kuv pib qhov no los siv qee qhov seem seem thiab dhau sijhawm. Nws tau tsim los ntawm rau 18650s, lub qub wireless qi charger, TP4056 Li-ion charger thiab ob peb 3.7V rau 5VDC USB txhawb
Circuit Kawm NANO: Ib qho PCB. Yooj Yim Kawm. Tsis Muaj Peev Xwm Muaj Peev Xwm: 12 Kauj Ruam (nrog Duab)
Circuit Kawm NANO: Ib qho PCB. Yooj Yim Kawm. Tsis muaj txoj hauv kev muaj peev xwm: Pib tawm hauv lub ntiaj teb cov khoom siv hluav taws xob thiab neeg hlau tuaj yeem ua rau txaus ntshai heev thaum xub thawj. Muaj ntau yam uas yuav tsum tau kawm thaum pib (kev tsim hluav taws xob, siv hluav taws xob, ua haujlwm zoo, xaiv cov khoom siv hluav taws xob raug, thiab lwm yam) thiab thaum cov khoom tsis raug th
Ib Tus Neeg Tsav Tsheb Muaj Peev Xwm Muaj Ntau Yam Muaj Peev Xwm: 8 Kauj Ruam (nrog Duab)
Ib Tus Neeg Siv Hluav Taws Xob Muaj Peev Xwm Muaj Peev Xwm: Nyob zoo cov phooj ywg, hauv qhov kev qhia no kuv yuav los qhia qhov tshiab ntawm kuv cov lus qhia yav dhau los uas tuaj yeem ua cov haujlwm hauv qab no: 1- Nws tuaj yeem txav mus los ntawm Arduino UNO thiab L298N tsav tsheb 2- Nws tuaj yeem ua tau ntxuav raws li lub tshuab nqus tsev 3- Nws yog
Raspberry Pi Tswj Kev Ntsuas Kub Hauv Chav Nrog Gnuplot Cov Duab Tso Tawm thiab Email Muaj Peev Xwm Muaj Peev Xwm: 7 Kauj Ruam
Raspberry Pi Kev Tswj Xyuas Qhov Kub Kub Hauv Chav Nrog Gnuplot Cov Duab Tso Tawm thiab Email Muaj Peev Xwm Muaj Peev Xwm: Qhov twg kuv ua haujlwm, muaj chav tseem ceeb heev uas muaj ntau lub khoos phis tawj. Qhov kub ib puag ncig ntawm chav no yuav tsum txias heev txhawm rau ua kom tau zoo ntawm cov kab ke no. Kuv tau thov kom los nrog lub kaw lus saib xyuas uas muaj peev xwm
Yuav Ua Li Cas Tau Txais Cov Nkauj Los Ntawm Txhua Qhov (Haha) Lub Vev Xaib (Ntev Li Koj Tau hnov Nws Koj Yuav Tau Txais Nws Ok Zoo Yog Nws Tau Ntxig Hauv Flash Koj Yuav Tsis Muaj Peev Xwm) EDITED !!!!! Ntxiv Info: 4 Cov Kauj Ruam
Yuav Ua Li Cas Tau Txais Cov Nkauj Los Ntawm Txhua Qhov (Haha) Lub Vev Xaib (Ntev Li Koj Tau hnov Nws Koj Yuav Tau Txais Nws … Ok Zoo Yog Nws Tau Ntxig Hauv Flash Koj Yuav Tsis Muaj Peev Xwm) EDITED !!!!! Ntxiv Cov Lus Qhia: yog tias koj tau mus rau lub vev xaib thiab nws ua nkauj nkauj uas koj nyiam thiab xav tau nws ntawm no yog cov lus qhia rau koj tsis yog kuv qhov txhaum yog tias koj cuam tshuam qee yam (tsuas yog txoj hauv kev nws yuav tshwm sim yog tias koj pib tshem cov khoom yam tsis muaj laj thawj. ) Kuv tuaj yeem tau txais cov nkauj rau