Cov txheej txheem:

DIY Arduino Multifunction Energy Meter V1.0: 13 Cov Kauj Ruam (nrog Duab)
DIY Arduino Multifunction Energy Meter V1.0: 13 Cov Kauj Ruam (nrog Duab)

Video: DIY Arduino Multifunction Energy Meter V1.0: 13 Cov Kauj Ruam (nrog Duab)

Video: DIY Arduino Multifunction Energy Meter V1.0: 13 Cov Kauj Ruam (nrog Duab)
Video: как сделать тестер электронных компонентов, используя Arduino nano, dfrobot 2024, Hlis ntuj nqeg
Anonim
Image
Image
DIY Arduino Multifunction Energy Meter V1.0
DIY Arduino Multifunction Energy Meter V1.0
DIY Arduino Multifunction Energy Meter V1.0
DIY Arduino Multifunction Energy Meter V1.0

Hauv Cov Lus Qhia no, Kuv yuav qhia koj yuav ua li cas thiaj ua Arduino raws li Kev Siv Lub Hwj Huam Ntau Lub Zog. Qhov Meter me me no yog cov cuab yeej muaj txiaj ntsig zoo uas nthuav qhia cov ntaub ntawv tseem ceeb ntawm cov ntsuas hluav taws xob. Cov cuab yeej tuaj yeem ntsuas 6 qhov ntsuas hluav taws xob muaj txiaj ntsig: Voltage, Tam sim no, Lub Hwj Chim, Lub Zog, Lub Peev Xwm, thiab Kub. Cov cuab yeej no haum rau DC thauj khoom xws li Solar PV systems. Koj kuj tseem tuaj yeem siv lub ntsuas ntsuas ntsuas roj teeb.

Meter tuaj yeem ntsuas txog qhov ntsuas hluav taws xob ntawm 0 - 26V thiab qhov siab tshaj tam sim no ntawm 3.2A.

Khoom siv

Cheebtsam Siv:

1. Arduino Pro Micro (Amazon)

2. INA219 (Amazon)

3. 0.96 OLED (Amazon)

4. DS18B20 (Amazon)

5. Roj teeb Lipo (Amazon)

6. Ntsia Hlau Terminals (Amazon)

7. Poj Niam / Txiv Neej Headers (Amazon)

8. Perforated Board (Amazon)

9. 24 AWG Hlau (Amazon)

10. Swb Hloov (Amazon)

Cov Cuab Yeej & Cov Cuab Yeej Siv:

1. Soldering Iron (Amazon)

2. Hlau Stripper (Amazon)

3. Multimeter (Amazon)

4. Tester Hluav Taws Xob (Amazon)

Kauj Ruam 1: Nws Ua Haujlwm Li Cas?

Nws Ua Haujlwm Li Cas?
Nws Ua Haujlwm Li Cas?

Lub plawv ntawm Lub Ntsuas Hluav Taws Xob yog Arduino Pro Micro board. Arduino hnov qhov tam sim no thiab qhov hluav taws xob los ntawm kev siv INA219 lub ntsuas hluav taws xob tam sim no thiab qhov kub tau hnov los ntawm qhov ntsuas kub DS18B20. Raws li qhov hluav taws xob thiab tam sim no, Arduino ua lej rau kev suav lub zog thiab lub zog.

Tag nrho Schematic tau muab faib ua 4 pawg

1. Arduino Pro Micro

Lub zog xav tau rau Arduino Pro Micro tau muab los ntawm LiPo/ Li-Ion Roj teeb los ntawm kev hloov swb.

2. Sensor tam sim no

Tam sim no Sensor INA219 txuas nrog Arduino pawg thawj coj hauv I2C hom kev sib txuas lus (SDA thiab SCL tus pin).

3. OLED Zaub

Zoo ib yam li Sensor tam sim no, OLED zaub tseem txuas nrog Arduino pawg thawj coj hauv I2C hom kev sib txuas lus. Txawm li cas los xij, qhov chaw nyob rau ob lub cuab yeej sib txawv.

4. Kub Sensor

Ntawm no kuv tau siv lub ntsuas kub DS18B20. Nws siv cov txheej txheem ib-kab los sib tham nrog Arduino.

Kauj Ruam 2: Kuaj Breadboard

Kev xeem Breadboard
Kev xeem Breadboard
Kev xeem Breadboard
Kev xeem Breadboard

Ua ntej tshaj, peb yuav ua qhov Circuit Court ntawm Breadboard. Qhov txiaj ntsig tseem ceeb ntawm lub khob cij uas tsis muaj ham yog nws yog, tsis muaj kuab lom. Yog li koj tuaj yeem hloov pauv qhov tsim qauv yooj yim los ntawm kev tshem tawm cov khoom thiab ua raws li koj xav tau.

Tom qab ua qhov ntsuas ntawm lub khob cij, kuv tau ua lub Circuit Court ntawm Perforated Board

Kauj Ruam 3: Npaj Arduino Board

Npaj Arduino Board
Npaj Arduino Board
Npaj Arduino Board
Npaj Arduino Board
Npaj Arduino Board
Npaj Arduino Board

Arduino Pro Micro los yam tsis siv lub taub hau taub hau. Yog li koj yuav tsum tau muab lub taub hau tso rau hauv Arduino ua ntej.

Ntxig koj tus txiv neej lub taub hau ntev-sab-nqes mus rau hauv lub khob cij. Tam sim no, nrog lub taub hau teeb tsa, koj tuaj yeem yooj yim tso Arduino board rau hauv qhov chaw saum toj kawg nkaus ntawm tus pin headers. Tom qab ntawd muab tag nrho cov pins rau Arduino Board.

Kauj Ruam 4: Npaj Headers

Npaj Headers
Npaj Headers
Npaj Headers
Npaj Headers

Txhawm rau nce Arduino, OLED zaub, ntsuas tam sim no, thiab ntsuas kub, koj xav tau qee tus poj niam ncaj lub taub hau tus pin. Thaum koj yuav lub taub hau ncaj, lawv yuav ntev dhau rau cov khoom siv. Yog li, Koj yuav tsum tau txiav lawv mus rau qhov ntev uas tsim nyog. Kuv siv tus nipper los txiav nws.

Hauv qab no yog cov ntsiab lus hais txog cov headers:

1. Arduino Board - 2 x 12 pins

2. INA219 - 1 x 6 pins

3. OLED - 1 x 4 pin

4. Kub. Sensor - 1 x 3 tus pin

Kauj Ruam 5: Tua Tus Poj Niam Headers

Solder Tus Poj Niam Headers
Solder Tus Poj Niam Headers
Solder Tus Poj Niam Headers
Solder Tus Poj Niam Headers
Solder Tus Poj Niam Headers
Solder Tus Poj Niam Headers

Tom qab npaj tus poj niam lub taub hau tus pin, muab lawv tso rau ntawm lub rooj tsav xwm uas tau tawg. Tom qab siv lub taub hau taub hau, xyuas seb txhua yam khoom haum zoo lossis tsis haum.

Nco tseg: Kuv yuav pom zoo kom ntsuas lub ntsuas tam sim no ncaj qha rau lub rooj tsavxwm tsis txhob hla tus poj niam lub taub hau.

Kuv tau txuas nrog los ntawm tus lej taub hau rau rov siv INA219 rau lwm txoj haujlwm.

Kauj Ruam 6: Mount Qhov Kub Sensor

Mount lub ntsuas kub
Mount lub ntsuas kub
Mount lub ntsuas kub
Mount lub ntsuas kub

Ntawm no kuv tab tom siv DS18B20 qhov ntsuas kub hauv TO-92 pob. Los ntawm kev txiav txim siab hloov pauv tau yooj yim, Kuv tau siv 3 tus pin poj niam lub taub hau. Tab sis koj tuaj yeem tso ncaj qha lub sensor rau lub rooj sib txig sib luag.

Kauj Ruam 7: Siv Lub Tshuab Ntsia Hlau

Solder Screw Terminals
Solder Screw Terminals
Solder Screw Terminals
Solder Screw Terminals
Solder Screw Terminals
Solder Screw Terminals

Ntawm no cov ntsia hlau txuas tau siv rau sab nrauv txuas rau lub rooj tsavxwm. Cov kev sib txuas sab nraud yog

1. Qhov Chaw (Roj Teeb / Hnub Ci Vaj Huam Sib Luag)

2. Thauj khoom

3. Lub hwj chim muab rau Arduino

Lub dav hlau ntsia hlau xiav yog siv rau lub zog xa mus rau Arduino thiab ob lub dav hlau ntsuab tau siv rau qhov chaw thiab thauj khoom txuas.

Kauj Ruam 8: Ua Circuit Court

Ua lub Circuit
Ua lub Circuit
Ua lub Circuit
Ua lub Circuit
Ua lub Circuit
Ua lub Circuit
Ua lub Circuit
Ua lub Circuit

Tom qab siv cov poj niam lub taub hau thiab cov ntsia hlau txuas, koj yuav tsum koom nrog cov ntaub qhwv raws li daim duab qhia duab pom saum toj no.

Cov kev sib txuas yog ncaj nraim rau pem hauv ntej

INA219 / OLED -> Arduino

VCC -> VCC

GND -> GND

SDA -> D2

SCL-> D3

DS18B20 -> Arduino

GND -> GND

DQ -> D4 los ntawm 4.7K rub -up resistor

VCC -> VCC

Thaum kawg, txuas cov ntsia hlau txuas raws li cov txheej txheem.

Kuv tau siv 24AWG cov xaim xaim los ua hluav taws xob. Solder cov hlau raws li daim duab qhia chaw.

Kauj ruam 9: Mounting Standoffs

Mounting lub Standoffs
Mounting lub Standoffs
Mounting lub Standoffs
Mounting lub Standoffs

Tom qab siv cov hlua thiab txuas, nce qhov sawv ntawm 4 fab. Nws yuav muab kev tshem tawm kom txaus rau cov laug txuas thiab cov xov hlau los ntawm hauv av.

Kauj Ruam 10: PCB Tsim

PCB Tsim
PCB Tsim
PCB Tsim
PCB Tsim

Kuv tau tsim tus txheej txheem PCB rau txoj haujlwm no. Vim tias tam sim no muaj kev kis thoob qhov txhia chaw COVID-19, Kuv tsis tuaj yeem xaj xaj rau PCB no. Yog li kuv tseem tsis tau sim PCB.

Koj tuaj yeem rub tawm Gerber cov ntaub ntawv los ntawm PCBWay

Thaum koj xaj xaj los ntawm PCBWay, Kuv yuav tau txais 10% kev pub dawb los ntawm PCBWay rau kev pab rau kuv txoj haujlwm. Koj qhov kev pab me me yuav txhawb kuv kom ua haujlwm zoo dua yav tom ntej. Ua tsaug rau koj kev koom tes.

Kauj Ruam 11: Lub Hwj Chim thiab Lub Zog

Hwj chim thiab Zog
Hwj chim thiab Zog

Lub zog: Lub zog yog cov khoom siv hluav taws xob (volt) thiab tam sim no (Amp)

P = VxI

Chav nyob ntawm lub zog yog Watt lossis KW

Zog: Lub zog yog cov khoom lag luam ntawm lub zog (watt) thiab lub sijhawm (Teev)

E = npx

Lub zog ntawm lub zog yog Watt Teev lossis Kilowatt Teev (kWh)

Peev Xwm: Peev Xwm yog cov khoom tam sim no (Amp) thiab sijhawm (Teev)

C = kuv x t

Chav muaj peev xwm yog Amp-Teev

Txhawm rau saib xyuas lub zog thiab lub zog sab saud lub tswv yim tau ua tiav hauv software thiab cov kev ntsuas tau tshwm sim hauv 0.96-nti OLED zaub.

Duab credit: imgoat

Kauj Ruam 12: Software thiab Tsev Qiv Ntawv

Software thiab Tsev Qiv Ntawv
Software thiab Tsev Qiv Ntawv
Software thiab Tsev Qiv Ntawv
Software thiab Tsev Qiv Ntawv
Software thiab Tsev Qiv Ntawv
Software thiab Tsev Qiv Ntawv
Software thiab Tsev Qiv Ntawv
Software thiab Tsev Qiv Ntawv

Ua ntej, rub cov cai txuas hauv qab no. Tom qab ntawd rub tawm cov tsev qiv ntawv hauv qab no thiab nruab lawv.

1. Adafruit INA219 Lub Tsev Qiv Ntawv

2. Adafruit SSD1306 Lub Tsev Qiv Ntawv

3. DallasTemperature

Tom qab teeb tsa tag nrho cov tsev qiv ntawv, teeb tsa lub rooj tsavxwm raug thiab COM chaw nres nkoj, tom qab ntawd xa cov cai.

Kauj Ruam 13: Xeem Kawg

Xeem Kawg
Xeem Kawg
Xeem Kawg
Xeem Kawg
Xeem Kawg
Xeem Kawg
Xeem Kawg
Xeem Kawg

Txhawm rau ntsuas lub rooj tsavxwm, Kuv tau txuas lub roj teeb 12V ua lub hauv paus thiab 3W LED raws li lub nra.

Lub roj teeb tau txuas nrog lub davhlau ya nyob twg hauv qab Arduino thiab LED txuas nrog lub hau ntswj hauv qab INA219. Lub roj teeb LiPo txuas nrog lub dav hlau ntsia hlau xiav thiab tom qab ntawd hloov ON rau hauv Circuit Court los ntawm kev siv lub tshuab swb.

Koj tuaj yeem pom txhua qhov ntsuas tsis tau tso tawm ntawm lub vijtsam OLED.

Qhov tsis nyob hauv thawj kab ntawv yog

1. Voltage

2. Tam sim no

3. Hwj chim

Qhov tsis nyob hauv kab thib ob yog

1. Zog

2. Peev Xwm

3. Kub

Txhawm rau txheeb xyuas qhov raug Kuv tau siv kuv lub multimeter thiab Tester raws li qhia saum toj no. Qhov tseeb yog ze rau lawv. Kuv txaus siab tiag tiag nrog lub hnab ntim khoom me me no.

Ua tsaug rau kev nyeem kuv Cov Lus Qhia. Yog tias koj nyiam kuv qhov haujlwm, tsis txhob hnov qab qhia nws. Cov lus pom thiab cov lus tawm tswv yim zoo siab txais tos.

Pom zoo: