Cov txheej txheem:

Yuav Ua Li Cas Arduino Ohm Meter: 5 Kauj Ruam (nrog Duab)
Yuav Ua Li Cas Arduino Ohm Meter: 5 Kauj Ruam (nrog Duab)

Video: Yuav Ua Li Cas Arduino Ohm Meter: 5 Kauj Ruam (nrog Duab)

Video: Yuav Ua Li Cas Arduino Ohm Meter: 5 Kauj Ruam (nrog Duab)
Video: NOOBS PLAY CLASH ROYALE FROM START LIVE 2024, Kaum ib hlis
Anonim
Image
Image

Peb pom nws nyuaj rau nyeem cov lej xim ntawm cov neeg tawm tsam kom pom nws qhov kev tawm tsam. Txhawm rau kov yeej qhov nyuaj ntawm kev nrhiav tus nqi tsis kam, peb tab tom tsim kom yooj yim Ohm Meter siv Arduino. Lub hauv paus ntsiab lus tom qab txoj haujlwm no yog Voltage Divider Network. Tus nqi ntawm qhov tsis paub ua haujlwm tau tshwm sim ntawm 16*2 LCD zaub.

Kauj Ruam 1: Cov Cheeb Tsam Yuav Tsum Tau:-

Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
  • Breadboard (https://www.banggood.in/custlink/Kv3KBp15nG)
  • Arduino UNO (https://www.banggood.in/custlink/DmmmecTtQy)
  • 16x2 LCD zaub (https://www.banggood.in/custlink/3GGD6JTVbV)
  • Jumper xov hlau (https://www.banggood.in/custlink/Kmm34JuHs8)
  • 10k potentiometer (https://www.banggood.in/custlink/D3D36p7F6A)
  • 470ohm resistor (https://www.banggood.in/custlink/vDvDBJ7PNl)

Kauj Ruam 2: Circuit thiab Kev Sib Txuas:-

Circuit thiab Kev Sib Txuas
Circuit thiab Kev Sib Txuas

LCD PIN 1 ------------ GND

LCD PIN 2 ------------ VCC

LCD PIN 3 ------------ Tus pin nruab nrab ntawm lub lauj kaub

LCD PIN 4 ------------ D12 ntawm arduino

LCD PIN 5 ------------ GND

LCD PIN 6 ------------ D11 ntawm arduino

LCD PIN 7 ------------ NC

LCD PIN 8 ------------ NC

LCD PIN 9 ------------ NC

LCD PIN 10 ---------- NC

LCD PIN 11 ---------- D5 ntawm arduino

LCD PIN 12 ---------- D4 ntawm arduino

LCD PIN 13 ---------- D3 ntawm arduino

LCD PIN 14 ---------- D2 ntawm arduino

LCD PIN 15 ---------- VCC

LCD PIN 16 ---------- GND

Kauj Ruam 3: Xam Qhov Kev Tiv Thaiv Siv Arduino Ohm Meter:

Kev ua haujlwm ntawm Qhov Kev Ntsuas Qhov Ntsuas no yog qhov yooj yim heev thiab tuaj yeem piav qhia siv qhov yooj yim faib hluav taws xob faib network qhia hauv qab no.

Los ntawm qhov faib hluav taws xob faib hluav taws xob network ntawm resistors R1 thiab R2, Vout = Vin * R2 / (R1 + R2)

Los ntawm qhov sib npaug saum toj no, peb tuaj yeem txiav tus nqi R2 li

R2 = Vout * R1 / (Vin - Vout)

Qhov twg R1 = paub tsis kam

R2 = Tsis paub ua haujlwm

Vin = qhov hluav taws xob tsim tawm ntawm 5V tus pin ntawm Arduino

Vout = voltage ntawm R2 nrog kev hwm rau hauv av.

Nco tseg: tus nqi ntawm kev paub tsis kam (R1) xaiv yog 470Ω, tab sis cov neeg siv yuav tsum hloov nws nrog tus nqi tsis kam ntawm resistor lawv tau xaiv.

Kauj Ruam 4: Txoj Cai:

#suav nrog

// LiquidCrystal (rs, sc, d4, d5, d6, d7)

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

const int analogPin = 0;

int analogval = 0;

int vin = 5;

ntab buff = 0;

ntab vout = 0; ntab R1 = 0; ntab R2 = 470;

void teeb tsa () {

lcd.begin (16, 2); }

void voj () {

analogval = analogRead (analogPin);

yog (analogval) {buff = analogval * vin; vout = (buff) / 1024.0;

yog (vout> 0.9) {

buff = (vin / vout) - 1; cov. R1 = R2 * buff; lcd.setCursor (0, 0); lcd.print ("-Resistance-"); lcd.setCursor (0, 1);

yog tias ((R1)> 999) {

lcd.print (""); lcd.print (R1 / 1000); lcd.print ("K ohm"); } lwm {lcd.print (""); lcd.print (puag ncig (R1)); lcd.print ("ohm"); }

ncua (1000);

lcd.clear ();

}

lwm tus {lcd.setCursor (0, 0); lcd.print ("! Muab Resistor"); lcd.setCursor (0, 1);

}

} }

Kauj Ruam 5: Xaus:

Lub voj voog no nrog R1 yog 470 ohm yuav ua haujlwm zoo ntawm 100Ohm txog 2k ohm ntawm kev tawm tsam. Koj tuaj yeem hloov tus nqi ntawm kev paub tsis kam rau qhov muaj txiaj ntsig siab dua ntawm kev tsis paub tsis kam.

Vam tias koj nyiam qhov kev qhia no.

Txiav txim siab txhawb nqa kuv hauv youtube. Kuv paub tseeb tias koj yuav tsis poob siab. youtube.com/creativestuff

Pom zoo: