Cov txheej txheem:

Arduino Powered Multimeter: 8 Kauj Ruam (nrog Duab)
Arduino Powered Multimeter: 8 Kauj Ruam (nrog Duab)

Video: Arduino Powered Multimeter: 8 Kauj Ruam (nrog Duab)

Video: Arduino Powered Multimeter: 8 Kauj Ruam (nrog Duab)
Video: ✔Как сделать МУЛЬТИМЕТР на arduino СВОИМИ РУКАМИ / how to make a multimeter 2024, Hlis ntuj nqeg
Anonim
Arduino Powered Multimeter
Arduino Powered Multimeter
Arduino Powered Multimeter
Arduino Powered Multimeter

Hauv txoj haujlwm no, koj yuav tsim lub voltmeter thiab ohmmeter siv digitalRead ua haujlwm ntawm Arduino. Koj yuav muaj peev xwm nyeem tau yuav luag txhua lub millisecond, ntau qhov tseeb ntau dua li qhov ntsuas ntau zaus.

Thaum kawg, cov ntaub ntawv tuaj yeem nkag mus rau ntawm Serial monitor, uas tom qab ntawd tuaj yeem theej mus rau lwm cov ntaub ntawv, piv txwv. zoo, yog tias koj xav tshuaj xyuas cov ntaub ntawv.

Ib qho ntxiv, txij li Arduinos raug txwv tsuas yog 5V, kev hloov pauv ntawm qhov muaj peev xwm faib hluav taws xob yuav tso cai rau koj hloov qhov siab tshaj qhov hluav taws xob uas Arduino tuaj yeem ntsuas tau.

Kuj tseem muaj tus choj kho qhov sib txuas sib txuas ua ke rau hauv lub voj voog no uas yuav tso cai rau lub ntsuas cua ntsuas tsis yog DC qhov hluav taws xob nkaus xwb tabsis tseem siv hluav taws xob AC.

Khoom siv

1) 1 x Arduino nano/Arduino Uno + Txuas cable

2) 5cm x 5cm Perfboard

3) 20 x jumper cables lossis xov hlau

4) 1 x 1K resistor

5) 2x resistors ntawm tus nqi qub (tsis muaj teeb meem dab tsi qhov txiaj ntsig yog)

6) 1 x 16x2 LCD npo (Yeem tau)

7) 1 x DB107 choj rectifier (tuaj yeem hloov nrog 4 diodes)

8) 1 x 100K lossis 250K potentiometer

9) 6 tus kauv kauv

10) 1 x Latching laub hloov

11) 1 x 9V roj teeb + txuas txuas

Kauj Ruam 1: Tau Txais Cov Khoom

Cov khoom feem ntau tuaj yeem yuav los ntawm amazon. Muaj ob peb ntawm cov khoom siv hluav taws xob ntawm amazon uas muab rau koj nrog txhua qhov kev sib piv yooj yim xws li resistors, diodes, transistors, thiab lwm yam.

Qhov kuv tau pom los muab nyiaj npib rau kuv cov nyiaj yog muaj nyob ntawm qhov txuas no.

Kuv tus kheej muaj feem ntau ntawm cov khoom siv tam sim no raws li kuv ua ntau yam ntawm cov phiaj xwm no. Rau cov neeg tsim khoom tawm hauv Singapore, Sim Lim Tower yog qhov chaw mus yuav txhua yam khoom siv hluav taws xob. Kuv

pom zoo Chaw siv hluav taws xob, Khoom siv hluav taws xob txuas ntxiv, lossis hluav taws xob Hamilton nyob rau hauv pem teb thib 3.

Kauj Ruam 2: Nkag Siab Lub Circuit (1)

Lub voj voog yog qhov nyuab nyuab dua li qhov koj xav tau. Lub voj voog no ua rau siv cov peev txheej faib los ntsuas qhov tsis kam thiab ntxiv qhov tshwj xeeb ntawm qhov sib txawv qhov siab tshaj plaws rau qhov ntsuas hluav taws xob.

Zoo ib yam li lub ntsuas hluav taws xob tuaj yeem ntsuas qhov hluav taws xob ntawm ntau theem, 20V, 2000mV, 200mV thiab lwm yam, Circuit Court tso cai rau koj hloov pauv qhov siab tshaj plaws uas lub cuab yeej ntsuas tau.

Kuv yuav cia li hla lub hom phiaj ntawm cov khoom sib txawv.

Kauj Ruam 3: Kev nkag siab txog Circuit: Lub Hom Phiaj ntawm Cheebtsam

1) Arduino yog siv rau nws cov analog nyeem ua haujlwm. Qhov no tso cai rau Arduino txhawm rau ntsuas qhov muaj peev xwm sib txawv ntawm qhov xaiv analog pin thiab nws tus pin hauv av. Yeej tseem ceeb qhov hluav taws xob ntawm tus pin xaiv.

2) Lub hwj chim siv tau los hloov qhov sib txawv ntawm lub vijtsam LCD.

3) Lub tsev ntawm qhov screen LCD yuav siv los tso saib qhov hluav taws xob.

4) Ob lub resistors ntawm tus nqi zoo ib yam tau siv los tsim cov peev txheej faib rau voltmeter. Qhov no yuav ua rau nws tuaj yeem ntsuas qhov ntsuas hluav taws xob siab dua 5V.

Oneresistor yuav raug muab muag rau ntawm lub rooj tsav tsheb perf thaum lwm tus neeg tiv thaiv tau txuas nrog siv cov kais dej.

Thaum koj xav tau qhov tseeb ntau dua thiab qhov siab tshaj plaws ntawm 5V, koj yuav txuas cov khej sib txuas ua ke yam tsis muaj kev tawm tsam nyob nruab nrab. Thaum koj xav tau qhov siab tshaj plaws ntawm 10V koj yuav txuas tus tiv thaiv thib ob nruab nrab ntawm cov kais kais.

4) Tus choj txuas siv los tig ib qho AC tam sim no, tej zaum los ntawm dynamo, rau hauv DC. Ib qho ntxiv, tam sim no koj tsis tas yuav txhawj xeeb txog cov xov tooj zoo thiab tsis zoo thaum ntsuas qhov hluav taws xob.

5) 1K resistor tau siv los ua lub peev xwm faib rau ohmmeter. Qhov poob hauv qhov hluav taws xob, ntsuas los ntawm analogRead muaj nuj nqi, tom qab 5V nkag mus rau qhov muaj peev xwm faib tawm yuav qhia tus nqi ntawm R2 resistor.

6) Lub latching laub hloov pauv yog siv los hloov Arduino ntawm Voltmeter hom thiab Ohmmeter hom. Thaum lub pob qhib, tus nqi yog 1, Arduino tab tom ntsuas qhov Kuj. Thaum lub pob tawm, tus nqi yog 0, Arduino tab tom ntsuas Voltage.

7) Muaj 6 tus kauv kauv tawm los ntawm lub voj voog. 2 yog qhov ntsuas hluav taws xob, 2 yog qhov ntsuas qhov ntsuas hluav taws xob, thiab 2 kawg yog siv los sib txawv qhov siab tshaj plaws ntawm lub ntsuas hluav taws xob.

Txhawm rau nce qhov siab tshaj plaws mus rau 10V, koj yuav ntxiv qhov thib ob tus nqi tiv thaiv ntawm qhov sib txawv qhov siab tshaj plaws khej kab. Txhawm rau kom qhov siab tshaj plaws ntawm 5V, txuas cov khej pins ua ke yam tsis muaj kev tawm tsam ntawm lawv.

Thaum twg los xij hloov qhov ntsuas hluav taws xob siv tus tiv thaiv, nco ntsoov hloov pauv tus nqi ntawm VR hauv Arduino code rau tus nqi tiv thaiv ntawm qhov sib txawv ntau tshaj plaws khej kab.

Kauj Ruam 4: Ua ke ua ke ntawm Circuit

Ua ke ua ke ntawm Circuit
Ua ke ua ke ntawm Circuit
Ua ke ua ke ntawm Circuit
Ua ke ua ke ntawm Circuit
Ua ke ua ke ntawm Circuit
Ua ke ua ke ntawm Circuit
Ua ke ua ke ntawm Circuit
Ua ke ua ke ntawm Circuit

Muaj ob peb txoj kev xaiv yuav ua li cas tso ua ke hauv Circuit.

1) Rau cov pib tshiab, Kuv xav kom siv lub khob cij los tsim lub Circuit Court. Nws yog qhov tsis tshua muaj kev cuam tshuam ntau dua li cov laug, thiab nws yuav yooj yim dua debug vim tias cov xov hlau tuaj yeem hloov kho tau yooj yim. Ua raws cov kev sib txuas uas pom ntawm cov duab fritzing.

Hauv daim duab fritzing zaum kawg, koj tuaj yeem pom 3 khub ntawm cov txiv kab ntxwv txuas nrog tsis muaj dab tsi. Cov ntawd txuas mus rau qhov ntsuas hluav taws xob voltmeter, ntsuas qhov ntsuas ohmmeter, thiab qhov siab tshaj qhov sib txawv ntawm tus pin. Ob sab saum toj yog rau ohmmeter. Qhov nruab nrab ob yog rau voltmeter (tuaj yeem yog AC lossis DC voltage). Thiab hauv qab ob yog rau qhov sib txawv ntawm qhov siab tshaj plaws.

2) Rau cov tib neeg uas muaj kev paub ntau dua, sim ua kom siv cov kab hluav taws xob txuas mus rau lub qhov rooj ntoo. Nws yuav nyob ruaj khov thiab kav ntev dua. Nyeem thiab ua raws schematic rau kev taw qhia. Nws yog lub npe tshiab-doc.

3) Thaum kawg, koj tseem tuaj yeem xaj PCB ua ntej los ntawm SEEED. Txhua yam koj yuav tsum tau ua yog txhawm rau txhawm rau cov khoom siv. Qhov tsim nyog Gerberfile tau txuas nrog hauv cov kauj ruam.

Nov yog qhov txuas rau google drive nplaub tshev nrog zipped Gerber file:

Kauj Ruam 5: Txoj Cai rau Arduino

#suav nrog LiquidCrystal lcd (12, 11, 5, 4, 3, 2);

ntab analogr2;

ntab analogr1;

ntab VO1; / Voltage hla lub peev xwm faib rau lub Circuit Court uas ntsuas kev tiv thaiv

ntab Voltage;

ntab Kuj;

ntab VR; / Qhov no yog tus tiv thaiv uas tau siv los hloov qhov kev txwv siab tshaj plaws ntawm voltmeter. Nws tuaj yeem sib txawv

float Cov; / Qhov no yog qhov tseem ceeb uas qhov ntsuas hluav taws xob tau sau los ntawm arduino yuav tsum tau muab sib npaug nrog rau suav nrog rau qhov txo qis ntawm qhov hluav taws xob los ntawm cov peev txheej faib. Nws yog "coefficient"

int Modepin = 8;

void teeb tsa ()

{

Serial.begin (9600);

lcd.begin (16, 2);

pinMode (Modepin, INPUT);

}

void voj () {

yog (digitalRead (Modepin) == HIGH)

{Resistanceread (); }

lwm tus

{lcd.clear (); Kev ntsuas hluav taws xob (); }

}

void Resistanceread () {

analogr2 = analogRead (A2);

VO1 = 5*(analogr2/1024);

Kuj = (2000*VO1)/(1- (VO1/5));

//Serial.println(VO1);

yog (VO1> = 4.95)

{lcd.clear (); lcd.print ("Tsis ua rau"); lcd.setCursor (0, 1); lcd.print ("txuas"); ncua (500); }

lwm tus

{//Serial.println(Resistance); lcd.clear (); lcd.print ("Kuj:"); lcd.setCursor (0, 1); lcd.print (Kuj); ncua (500); }}

void Voltageread () {

analogr1 = (analogRead (A0));

//Serial.println(analogr1);

VR = 0; / Hloov tus nqi no ntawm no yog tias koj muaj tus nqi sib txawv hauv qhov chaw ntawm VR. Ib zaug ntxiv qhov kev tiv thaiv no nyob ntawd kom hloov qhov siab tshaj qhov hluav taws xob uas koj lub ntsuas cua tuaj yeem ntsuas tau. Siab tsis kam ntawm no, siab dua qhov txwv qhov hluav taws xob rau Arduino.

Co = 5/(1000/(1000+VR));

//Serial.println(Co);

yog (analogr1 <= 20)

{lcd.clear (); Serial.println (0.00); lcd.print ("Tsis ua rau"); lcd.setCursor (0, 1); lcd.print ("txuas"); ncua (500); }

lwm tus

{Qhov hluav taws xob = (Co * (analogr1/1023)); Serial.println (Voltage); lcd.clear (); lcd.print ("Voltage:"); lcd.setCursor (0, 1); lcd.print (Voltage); ncua (500); }

}

Kauj Ruam 6: Casing Nrog 3D Tshuab Luam Ntawv

Casing Nrog 3D Tshuab Luam Ntawv
Casing Nrog 3D Tshuab Luam Ntawv
Casing Nrog 3D Tshuab Luam Ntawv
Casing Nrog 3D Tshuab Luam Ntawv
Casing Nrog 3D Tshuab Luam Ntawv
Casing Nrog 3D Tshuab Luam Ntawv
Casing Nrog 3D Tshuab Luam Ntawv
Casing Nrog 3D Tshuab Luam Ntawv

1. Sib nrug los ntawm cov vaj tsev acrylic, Cov Lus Qhia no tseem yuav muaj lub tsev luam tawm 3D, uas yog qhov ruaj khov thiab zoo nkauj me ntsis.

2. Muaj lub qhov nyob rau sab saum toj rau lub LCD kom haum, thiab tseem muaj ob lub qhov nyob rau sab rau qhov kev sojntsuam thiab Arduino cable los hla.

3. Nyob rau sab saum toj, muaj lwm lub qhov rau qhov hloov pauv kom haum rau hauv. Qhov hloov pauv no yog qhov hloov pauv ib zaug ntawm ohmmeter thiab voltmeter.

3. Muaj qhov zawj nyob hauv qab phab ntsa sab hauv rau daim tuab daim npav kom xaub mus rau hauv kom lub voj voog raug kaw txawm tias nyob hauv qab.

4. Kom ruaj ntseg lub vaj huam sib luag tom qab, muaj ob peb kab ntawm kab ntawv ntawm lub ntsej muag uas tuaj yeem siv txoj hlua khi los khi nws.

Kauj Ruam 7: Luam Ntawv 3D

3D Printing Cov Ntaub Ntawv
3D Printing Cov Ntaub Ntawv
3D Printing Cov Ntaub Ntawv
3D Printing Cov Ntaub Ntawv

1. Ultimaker Cura tau siv ua lub tshuab txiav thiab fusion360 tau siv los tsim cov casing. Ender 3 yog lub tshuab luam ntawv 3D siv rau txoj haujlwm no.

2. Cov.step thiab.gcode cov ntaub ntawv tau ob qho tib si txuas nrog rau theem no.

3. Cov ntaub ntawv.step tuaj yeem rub tawm yog tias koj xav ua qee qhov kev hloov kho rau tsim ua ntej luam ntawv. Cov ntaub ntawv.gcode tuaj yeem xa ncaj qha rau koj lub tshuab luam ntawv 3D.

4. Lub casing tau ua los ntawm cov txiv kab ntxwv PLA thiab siv sijhawm li 14 teev los luam tawm.

Kauj Ruam 8: Casing (tsis muaj 3D Luam Ntawv)

Casing (tsis muaj 3D Printing)
Casing (tsis muaj 3D Printing)

1) Koj tuaj yeem muaj cov ntaub ntawv yas qub rau nws lub casing. Siv rab riam kub los txiav tawm lub qhov rau LCD thiab khawm.

2) Tsis tas li ntawd, koj tuaj yeem tshawb xyuas kuv tus lej nyiaj rau lwm qhov kev qhia uas kuv piav qhia yuav tsim lub thawv tawm ntawm laser txiav acrylic li cas. Koj yuav tuaj yeem nrhiav cov ntaub ntawv svg rau lub tshuab txiav laser.

3) Thaum kawg, koj tuaj yeem tawm ntawm lub Circuit Court yam tsis muaj lub casing. Nws yuav yooj yim kho thiab hloov kho.

Pom zoo: