Cov txheej txheem:

DIY Voltmeter Siv Arduino thiab Ua: 4 Kauj Ruam
DIY Voltmeter Siv Arduino thiab Ua: 4 Kauj Ruam

Video: DIY Voltmeter Siv Arduino thiab Ua: 4 Kauj Ruam

Video: DIY Voltmeter Siv Arduino thiab Ua: 4 Kauj Ruam
Video: how to make voltage current meter using Arduino 2024, Kaum ib hlis
Anonim
DIY Voltmeter Siv Arduino thiab Ua Haujlwm
DIY Voltmeter Siv Arduino thiab Ua Haujlwm

Nyob zoo thiab txais tos rau hnub no txoj haujlwm. Kuv yog Sarvesh thiab hnub no

peb yuav ua tus arduino raws voltmeter. Tab sis qhov txawv ntawm qhov no yog qhov nws yuav qhia nws cov zis ntawm kev ua software. Tam sim no hauv ib qho ntawm kuv qhov kev qhia yav dhau los peb tau ua cov txheej txheem raws cov noog flappy los ntawm kev tau txais cov tswv yim los ntawm arduino. Txoj haujlwm no kuj zoo ib yam li ntawd. Peb yuav ntsuas qhov ntsuas hluav taws xob siv tus pin analog input ntawm arduino. Cov tswv yim hluav taws xob tuaj yeem siab li 20 V thiab arduino analog pin tsis tuaj yeem ntsuas qhov hluav taws xob ntau vim nws qhov kev daws teeb meem ntawm 10 khoom (1024) piv txwv li. 5 V. Yog li peb yuav siv tus tiv thaiv kev faib tawm coj qhov hluav taws xob no mus rau qhov ntau ntawm 0-30 V (512). Tam sim no cia peb ua txoj haujlwm no.

Kauj Ruam 1: Sau tag nrho cov khoom siv xav tau

Sau tag nrho cov khoom siv xav tau
Sau tag nrho cov khoom siv xav tau

Kuv xav qhia koj kom yuav cov khoom siv los ntawm UTSource.net vim tias lawv muab cov khoom lag luam zoo thiab xa lawv mus raws sijhawm. Lawv kuj muab cov PCB zoo hauv tus nqi pheej yig. Yog li xyuas lawv.

1 X Arduino Pro Micro

1 X Resistor (10K thiab 100K ohm)

Cov qhob cij

Txiv neej rau txiv neej header xov hlau

Roj teeb rau kev sim

Multimeter

Kauj ruam 2: Kev sib txuas

Kev sib txuas
Kev sib txuas

Ua cov kev sib txuas raws li qhia hauv daim duab qhia hluav taws xob saum toj no.

Txuas ob lub resistors hauv koob thiab txuas lawv qhov chaw taw tes rau Analog pin A0. Tom qab ntawd txuas lwm qhov kawg ntawm 10K R rau Gnd thiab lwm qhov kawg ntawm 100K resistor rau +5V. Tam sim no siv qhov ntsuas qhov ntsuas ntawm ob qhov kawg no. Ntawd yog qhov kev sib txuas tau ua tiav.

Kauj Ruam 3: Tshaj Tawm Txoj Haujlwm rau Koj Pawg Arduino

Rub tawm qhov program rau koj Pawg Arduino
Rub tawm qhov program rau koj Pawg Arduino

Tam sim no rub tawm qhov program hauv qab no thiab qhib nws. Nco ntsoov

los xaiv lub rooj tsav xwm kom raug ua ntej xa cov cai. Ntawm no peb siv Arduino Pro Micro. Yog tias koj siv Arduino Uno ces cia li khaws cia raws li nws yog. Tam sim no upload cov cai rau lub rooj tsavxwm.

Kauj Ruam 4: Qhib Tus Txheej Txheem Sketch

Qhib Tus Txheej Txheem Duab
Qhib Tus Txheej Txheem Duab
Qhib Tus Txheej Txheem Duab
Qhib Tus Txheej Txheem Duab
Qhib Tus Txheej Txheem Duab
Qhib Tus Txheej Txheem Duab

Rub tawm thiab qhib cov txheej txheem kos duab thiab xyuas kom tseeb tias koj

xaiv qhov chaw nres nkoj com kom raug hauv cov cai ua. Tam sim no nyem rau ntawm lub pob nyem thiab pib ntsuas qhov hluav taws xob ntawm - thiab + pins ntawm qhov sib faib resistor. Kuv tau txuas ob peb cov duab ntawm kuv qhov tshwm sim. Vam tias koj txaus siab ua qhov voltmeter me me no. Koj kuj tseem tuaj yeem siv LCD thiab tso saib qhov ntsuas hluav taws xob ntawm nws ua rau nws yog lub ntsuas hluav taws xob digital portable. Koj tseem tuaj yeem tsim koj li PCB thiab muab txoj haujlwm no ua haujlwm zoo. PCB Tsim Kev Pabcuam Nws yog rau cov menyuam hnub no. Saib koj yuav sai sai nrog lwm qhov haujlwm.

Pom zoo: