Cov txheej txheem:

PH Regulater/Meter - Arduino: 7 Kauj Ruam
PH Regulater/Meter - Arduino: 7 Kauj Ruam

Video: PH Regulater/Meter - Arduino: 7 Kauj Ruam

Video: PH Regulater/Meter - Arduino: 7 Kauj Ruam
Video: pH meter Arduino, pH Meter Calibration, DIYMORE pH Sensor, pH Sensor Arduino Code, pH of liquids 2024, Kaum ib hlis
Anonim
PH Regulater/Meter - Arduino
PH Regulater/Meter - Arduino

*** Yog tias cov duab thiab cov ntawv txuas tsis tshwm, rov ua nplooj ntawv tshiab

Nov yog cov lus qhia rau arduino pH tus tswj hwm lossis ntsuas:

--- Tus tswj hwm lub ntsiab lus rau cov tshuaj tiv thaiv uas pib ntawm qee qhov pH thiab ib txwm txo/nce hauv pH vim qhov tshuaj tiv thaiv. Txawm li cas los xij, rau ntau qhov kev xav, nws xav kom nyob ntawm qhov pib pH. Yog li, yog tias cov tshuaj tiv thaiv sib txawv deb ntawm qhov xav tau pH, txoj haujlwm arduino no yuav tso kua qaub lossis hauv paus coj cov pH rov mus rau qhov qub.

--- Txoj haujlwm no tseem tuaj yeem siv yooj yim tsuas yog pH sensor uas nyeem pH ntawm ib qho kev daws teeb meem.

Kauj Ruam 1: Cov Khoom Uas Tsim Nyog

-Arduino Ib

-Khoos phis tawj thiab keyboard

-12V Peristaltic Liquid Pump

-Analog pH Sensor / Meter Pro Kit rau Arduino

-I2C 20x4 Arduino LCD Zaub Module

-IN4001 Diode

-NP2222 Transistor

-12V DC Power Adapter

-Male rau Poj Niam Jumper Xov

-Male rau Txiv Neej Jumper Xov

-Qhov Qub Qub

-Arduino USB Cable

-Breadboard

Kauj Ruam 2: Solder Diode Ntawm Prongs ntawm Pump

Solder Diode Ntawm Prongs ntawm Pump
Solder Diode Ntawm Prongs ntawm Pump

Solder lub diode nruab nrab ntawm cov ceg ntawm lub twj tso kua mis peristaltic raws li daim duab. Nco ntsoov muab cov hlua nyiaj ntawm cov diode taw rau ntawm (+) prong ntawm lub twj tso kua mis. Qhov no yuav tiv thaiv lub cav ntawm lub twj tso kua mis.

Kauj Ruam 3: Txuas Cov Khoos Phis Tawj

Txuas Cov Khoos Phis Tawj
Txuas Cov Khoos Phis Tawj
Txuas Cov Khoos Phis Tawj
Txuas Cov Khoos Phis Tawj
Txuas Cov Khoos Phis Tawj
Txuas Cov Khoos Phis Tawj

A4 -------------------- mus rau SDA ntawm LCD

A5 -------------------- rau SCL ntawm LCD

GND ----------------- rau GND ntawm LCD

5V -------------------- rau VCC ntawm LCD

A0 -------------------- mus rau qhov nruab nrab qhov nruab nrab (hauv paus) ntawm transistor

GND ----------------- rau ** sab laug prong (emitter) ntawm transistor, ** xa mus rau sab tiaj ntawm transistor

(-) prong twj tso kua mis ---- rau ** txoj cai prong (sau) ntawm transistor

(+) prong twj tso kua mis ---- rau Vin (12V)

A3 -------------------- rau teeb liab xaim (xiav) ntawm pH meter

5V -------------------- rau (+) xaim (liab) ntawm pH meter

GND ----------------- rau (-) xaim (dub) ntawm pH meter

_

*** Saib cov duab kom paub meej ntxiv

Kauj ruam 4: Txoj Cai

Muaj 2 qhov hloov pauv ntawm Arduino Code cov ntawv txuas nrog … ib qho yog rau kev tswj hwm cov tshuaj tiv thaiv uas nce hauv pH, thiab lwm qhov yog rau cov tshuaj tiv thaiv qis dua hauv pH

_

*** TSEEM CEEB ***

Rub tawm cov tsev qiv ntawv xav tau (zip txuas hauv phau ntawv qhia no)

Txoj cai no siv lub tsev qiv ntawv LCD uas tsis tau suav nrog hauv Arduino …

Txhawm rau siv cov ntawv zip no rau hauv koj qhov project, rub mus rau koj lub computer, Hauv arduino qhov rai, mus rau "Sketch" "Xws li Lub Tsev Qiv Ntawv" "Ntxiv. ZIP Library"

Kauj Ruam 5: Nco Ntsoov Tseem Ceeb - Saib Xyuas Serial

Txoj haujlwm no siv Serial input los tsav cov ntawv qhia zaub mov. Qhov no txhais tau tias nws yuav xav tau txuas nrog lub khoos phis tawj lossis laptop thaum siv. Txhawm rau ua haujlwm saib xyuas lub ntsej muag, nyem rau sab xis sab xis (zoo li lub iav tsom iav) ntawm lub qhov rais arduino.

*** Tseem ceeb - siv "Autoscroll", "Tsis muaj kab xaus", thiab "9600 baud" cov kev xaiv ntawm lub vijtsam saib ua ntej … yog tias koj tsis ua, txoj cai yuav tsis ua raws li tsim

Txhawm rau nkag qhov tseem ceeb, ntaus tus nqi hauv kev siv koj cov keyboard thiab nias tus yuam sij nkag, lossis nyem "Xa"

Kauj Ruam 6: Hloov Kho Txoj Cai rau Koj Tus Tswj Cai Xav Tau

Muaj qhov yooj yim heev uas tsuas yog yuav tsum tau hloov pauv kom ntseeg tau tias txoj haujlwm no ua haujlwm rau koj! Hauv qab no yog cov lus pom zoo kom hloov pauv thiab lawv cov lus piav qhia:

- fillTime: ntev npaum li cas nws siv koj lub twj tso kua mis kom puv nrog kua, hauv vib nas this

- ncua sijhawm: ntev npaum li cas koj xav kom tus tswj hwm tos ua ntej tso rau hauv kev daws teeb meem ntau dua

- me me Kho: tus naj npawb ntawm vib nas this koj xav kom cov kua qaub/hauv paus raug tso tawm thaum pH sib txawv los ntawm 0.3 - 1 pH

- kho qhov loj: tus naj npawb ntawm vib nas this koj xav kom cov kua qaub/hauv paus raug tso tawm thaum pH sib txawv los ntawm> 1pH

_

Ib qho ntxiv, koj yuav tsum txiav txim siab qhov offset thiab nqes hav koj lub ntsuas pH …

Yog tias kuv nqes hav thiab ua haujlwm tsis zoo nrog koj lub ntsuas pH, koj yuav tsum ua cov hauv qab no:

(1)- teeb nqes hav = 1 thiab offset = 0

(2)- coj thiab sau pH nyeem hauv kev daws teeb meem ntawm pH 4, pH 7, thiab pH 10

(3)- Tsim cov kab ke sib npaug zoo li no:

(qhov tseeb pH 4 nyeem)*nqes hav + offset = 4

(qhov tseeb pH 7 nyeem)*nqes hav + offset = 7

(qhov tseeb pH 10 nyeem)*nqes hav + offset = 10

_

Siv peb qhov kev sib npaug no txhawm rau nrhiav kab uas haum tshaj plaws los daws qhov nqes hav thiab txiav tawm thiab hloov pauv qhov no mus rau koj qhov kev nqes hav tshiab thiab qhov tseem ceeb

Pom zoo: