Cov txheej txheem:

DIY Power Meter Project los ntawm Kev Siv Arduino Pro Mini: 5 Kauj Ruam
DIY Power Meter Project los ntawm Kev Siv Arduino Pro Mini: 5 Kauj Ruam

Video: DIY Power Meter Project los ntawm Kev Siv Arduino Pro Mini: 5 Kauj Ruam

Video: DIY Power Meter Project los ntawm Kev Siv Arduino Pro Mini: 5 Kauj Ruam
Video: 7 txoj kev khwv nyiaj, yuav tau paub los mus hloov yus lub neej 2024, Hlis ntuj nqeg
Anonim
DIY Power Meter Project los ntawm Kev Siv Arduino Pro Mini
DIY Power Meter Project los ntawm Kev Siv Arduino Pro Mini

Taw qhia

Nyob zoo, electronics zej zog! Hnub no kuv yuav nthuav qhia koj qhov haujlwm uas tso cai rau koj ntsuas qhov hluav taws xob thiab qhov tam sim no ntawm cov khoom siv, thiab tso tawm ua ke nrog lub zog thiab lub zog qhov tseem ceeb. Kev ntsuas tam sim no/Kev ntsuas hluav taws xob Yog tias koj xav ntsuas qhov hluav taws xob thiab tam sim no ntawm Circuit Court nrog Arduino, cov txheej txheem yog ncaj ncaj rau pem hauv ntej. Koj siv cov lus sib piv los ntsuas qhov ntsuas hluav taws xob hla qhov thauj khoom thiab siv qhov ntsuas los ntsuas qhov tam sim no ntawm qhov hluav taws xob poob ntawm shunt resistor. Tam sim no, txoj hauv kev no yog qhov nyuab dua, thiab nws ua haujlwm nkaus xwb rau qhov ntsuas hluav taws xob tsis pub dhau 0-5 V, thiab ADC ntawm Arduino uas tau siv los nyeem qhov ntsuas hluav taws xob poob qis ntawm tus tiv thaiv me ntsis tsis raug rau ntsuas ntau pua mV tsuas yog uas yuav poob hla qhov shunt. Luckily, muaj modules tawm muaj, uas ua rau peb lub neej yooj yim dua. Txog qhov haujlwm no, Kuv yuav siv INA219 IC, uas siv 0.1R resistor los ua shunt thiab tuaj yeem ntsuas hluav taws xob txog li 32V, thiab muaj tam sim no ntawm 0-3.2A. IC no muaj I2C interface, txhawm rau sib tham nrog Arduino, thiab los ntawm kev kawm cov ntaub ntawv, peb tuaj yeem siv cov lus txib tshwj xeeb tshaj li I2C interface, txhawm rau nyeem qhov hluav taws xob thiab qhov muaj txiaj ntsig tam sim no. Peb muaj hmoo dua vim tias peb tsis tas yuav hla qhov teeb meem ntawd. Muaj cov tsev qiv ntawv los ntawm Adafruit uas koj tuaj yeem rub tawm, thiab siv cov haujlwm ua ntej los nyeem qhov hluav taws xob thiab tam sim no | Nyem qhov no mus rub lub tsev qiv ntawv

Kauj ruam 1: OLED Zaub

OLED Zaub
OLED Zaub

Cov tivthaiv tom ntej uas kuv yuav siv yog zaub. Txoj hauv kev no peb tuaj yeem tso tawm qhov txiaj ntsig peb tab tom ntsuas. Kuv tau ua haujlwm nrog 96 nti OLED zaub rau ib pliag tam sim no, thiab nws ua haujlwm zoo nkauj. Peb tuaj yeem siv lub tsev qiv ntawv Adafruit uas twb tau ua dua ib zaug txhawm rau xa cov ntaub ntawv peb xav qhia rau ntawm lub vijtsam | Nyem qhov no mus rub Adafruit lub tsev qiv ntawv | koj tseem yuav xav tau Adafruit GFX lub tsev qiv ntawv.

Kauj ruam 2: SD Card Reader

SD Card Nyeem Ntawv
SD Card Nyeem Ntawv

Tam sim no, txhawm rau ua txoj haujlwm no tiav, peb yuav ntxiv ntu kawg. Tus nyeem ntawv micro SD, txhawm rau khaws cov ntaub ntawv ntsuas raws li cov ntawv, los ntawm qhov uas koj tuaj yeem luam lawv rau hauv qhov haujlwm zoo li Excel kom ua cov phiaj xwm zoo, thiab suav lub zog thiab lub zog siv, los ntawm kev sib kis tam sim no thiab qhov hluav taws xob nrog sij hawm ua ntu zus.

Cov qauv no sib txuas lus ntawm SPI interface, uas tseem siv cov lus txib los sau/nyeem cov ntaub ntawv. Cov qauv no tsis yog 5V sib xws, yog li peb tsis tuaj yeem cia li xaim nws mus rau Arduino interface txij li 5V yuav rhuav tshem 3.3V nti. Txog qhov ntawd, Kuv tau ua qhov faib hluav taws xob tawm ntawm cov neeg tawm tsam kom poob 5V cov cim rau qhov tsim nyog 3.3V cov cim rau cov nti (MOSI, CS thiab CLK kab feem thiab ua rau poob 5V rau 3.3V kom muaj zog rau cov qauv).

Kauj Ruam 3: Schematic Daim Duab:

Schematic Daim duab
Schematic Daim duab

Thaum kawg, peb teeb tsa Arduino siv Adafruit lub tsev qiv ntawv rau INA219 tus qauv, txhawm rau nyeem qhov hluav taws xob thiab tus nqi tam sim no. Tsis tas li ntawd, peb suav nrog cov hluav taws xob tam sim no kom tau txais lub zog siv. Tom qab ntawd, peb tuaj yeem siv milis () ua haujlwm kom khaws lub sijhawm dhau los, thiab muab nws nrog lub zog, txhawm rau xam lub zog uas tau siv. Txog SD daim npav nyeem ntawv, kuv siv "SdFat" lub tsev qiv ntawv, vim tias tus qauv SD cov tsev qiv ntawv los ntawm Arduino tsis ua haujlwm zoo li ntawd | Nyem qhov no mus rub tawm Sdfat Library

Koj tuaj yeem siv lub rooj tsavxwm siv DC jack thiab los ntawm kev siv qhov hluav taws xob nruab nrab ntawm 7 thiab 12V rau Arduino, uas ua rau lwm qhov khoom siv ntawm 5V VCC.

Kauj Ruam 4: PCB Tuaj Txog:

PCB tuaj txog
PCB tuaj txog

Tus neeg txhawb nqa txoj haujlwm no

Tus neeg txhawb nqa ntawm txoj haujlwm no yog PCBGOGO uas xa peb 10 PCB's rau txoj haujlwm no. PCBGOGO tsim cov PCBs zoo hauv lub sijhawm luv luv thiab xa lawv sai heev. Yog li, yog tias koj tab tom xav ua koj txoj haujlwm tshaj lij, tsis txhob yig xa koj cov ntaub ntawv Gerber rau PCBGOGO kom tau txais 10 PCBs rau tus nqi qis heev.

Kauj Ruam 5: Kev Qhia Ua Haujlwm Video

www.electronicslovers.com/2019/03/29/diy-power-meter-project-by-using-arduino-pro-mini.html

Pom zoo: