Cov txheej txheem:

IoT Power Module: Ntxiv IoT Power Measurement Feature rau Kuv Hnub Ci Tus Nqi Tswj: 19 Cov Kauj Ruam (nrog Duab)
IoT Power Module: Ntxiv IoT Power Measurement Feature rau Kuv Hnub Ci Tus Nqi Tswj: 19 Cov Kauj Ruam (nrog Duab)

Video: IoT Power Module: Ntxiv IoT Power Measurement Feature rau Kuv Hnub Ci Tus Nqi Tswj: 19 Cov Kauj Ruam (nrog Duab)

Video: IoT Power Module: Ntxiv IoT Power Measurement Feature rau Kuv Hnub Ci Tus Nqi Tswj: 19 Cov Kauj Ruam (nrog Duab)
Video: Лучшие 15 часов Casio G Shock до $ 500 | Лучшие часы G-Shock ниже $ 500... 2024, Kaum ib hlis
Anonim
IoT Power Module: Ntxiv IoT Power Measurement Feature rau Kuv Hnub Ci Tus Nqi Tswj
IoT Power Module: Ntxiv IoT Power Measurement Feature rau Kuv Hnub Ci Tus Nqi Tswj
IoT Power Module: Ntxiv IoT Power Measurement Feature rau Kuv Hnub Ci Tus Nqi Tswj
IoT Power Module: Ntxiv IoT Power Measurement Feature rau Kuv Hnub Ci Tus Nqi Tswj
IoT Power Module: Ntxiv IoT Power Measurement Feature rau Kuv Hnub Ci Tus Nqi Tswj
IoT Power Module: Ntxiv IoT Power Measurement Feature rau Kuv Hnub Ci Tus Nqi Tswj

Nyob zoo txhua tus, Kuv vam tias koj txhua tus zoo! Hauv cov lus qhia no kuv yuav qhia koj li cas kuv tau ua IoT Kev Ntsuas Hluav Taws Xob uas suav cov nqi hluav taws xob tsim los ntawm kuv lub hnub ci vaj huam sib luag, uas tau siv los ntawm kuv lub hnub ci tus tswj hwm kom them kuv cov roj teeb kua qaub. Cov qauv no mus nyob nruab nrab ntawm cov hnub ci vaj huam sib luag thiab tus tswj hwm tus nqi thiab muab rau koj txhua qhov tsim nyog ntsuas qhov tseeb ntawm koj lub xov tooj ntawm Is Taws Nem. Rau IoT platform Kuv tau siv Blynk, uas yog qhov yooj yim siv thiab tuaj yeem hloov kho tau yooj yim raws li koj txoj haujlwm. Qhov txwv ntawm tus tswj hwm tus nqi uas twb muaj lawm yog tias nws tsuas yog muab lub zog them rau kuv thiab yog li ntawd lub zog tsis tuaj yeem txiav txim siab. Hauv qhov haujlwm no kuv tau ntxiv qhov ntsuas hluav taws xob thiab ntsuas tam sim no rau lub zog ntsuas hluav taws xob uas tuaj yeem siv los suav lub zog (hauv watts) thiab yog li tag nrho lub zog sau. Ib tus tuaj yeem yooj yim siv lub zog ntsuas no hauv lwm daim ntawv thov ntsuas DC lub zog. Qhov no yuav yog qhov qhia tau ntev heev yog li cia peb pib!

Khoom siv

  1. Arduino Pro Mini / Nano lossis sib npaug
  2. LM2596 tus nqi hloov pauv tus qauv
  3. 7805 tus tswj hluav taws xob
  4. AMS1117 3.3V tus tswj hwm
  5. ESP8266-01 WiFi module
  6. OLED Zaub
  7. LM358 dual OP-Amp
  8. 100K, 10K, 2.2k thiab 1K resistors (1/4 watt)
  9. 0.1uF ceramic disc capacitors
  10. 22uF electrolytic capacitor
  11. Ntsia Hlau Terminals
  12. Txiv neej thiab poj niam berg strip
  13. ON-OFF hloov
  14. Perf board los yog veroboard
  15. Cov khoom siv hluav taws xob

Kauj Ruam 1: Sau tag nrho Cov Tshooj thiab ua tiav qhov txheej txheem

Sib sau ua ke txhua qhov thiab ua tiav qhov txheej txheem
Sib sau ua ke txhua qhov thiab ua tiav qhov txheej txheem
Sib sau ua ke txhua qhov thiab ua tiav qhov txheej txheem
Sib sau ua ke txhua qhov thiab ua tiav qhov txheej txheem

Thaum peb tau sau tag nrho cov khoom tsim nyog, nws yog ib qho tseem ceeb uas peb ua tib zoo txiav txim siab qhov teeb tsa ntawm peb lub rooj tsavxwm thiab tso cov khoom sib txawv kom cov hlua txuas mus tau yooj yim thiab txhua yam khoom sib dhos tau nyob ze ib leeg. Txog kev txuas ntawm Arduino, hloov pauv hloov pauv, WiFi module thiab Oled Display Kuv yuav siv poj niam lub taub hau tsis txhob siv cov qauv ncaj qha, qhov no kuv tuaj yeem siv cov khoom sib piv rau qee qhov lwm qhov haujlwm, tab sis koj tuaj yeem ncaj ncaj cov qauv yog tias koj npaj kom nws ruaj khov.

Kauj Ruam 2: Ntxiv Cov Ntsia Hlau

Ntxiv Ntsia Hlau Terminals
Ntxiv Ntsia Hlau Terminals
Ntxiv Ntsia Hlau Terminals
Ntxiv Ntsia Hlau Terminals

Ua ntej tshaj plaws peb tau siv cov ntsia hlau txuas uas yuav siv los txuas lub hnub ci vaj huam sib luag raws li cov tswv yim thiab tus nqi tswj raws li tso tawm rau lub zog hluav taws xob. Cov ntsia hlau txuas muab txoj hauv kev yooj yim rau ntsaws lossis tshem tawm cov cuab yeej thaum xav tau.

Kauj Ruam 3: Ntxiv Cov Resistor Voltage Divider Network

Ntxiv qhov Resistor Voltage Divider Network
Ntxiv qhov Resistor Voltage Divider Network
Ntxiv qhov Resistor Voltage Divider Network
Ntxiv qhov Resistor Voltage Divider Network
Ntxiv qhov Resistor Voltage Divider Network
Ntxiv qhov Resistor Voltage Divider Network

Rau kev nkag siab qhov hluav taws xob nkag, siv hluav taws xob faib hluav taws xob network. Rau kuv daim ntawv thov, Kuv tau ua lub network resistor siv 10K thiab 1K resistor thiab kuv tab tom ntsuas qhov ntsuas hluav taws xob poob thoob plaws 1K resistor uas yuav muab raws li kev nkag mus rau Arduino microcontroller. Tsis tas li ntawd kuv tau ntxiv 0.1uF capacitor hla lub 1K resistor kom du tawm txhua qhov kev hloov pauv tam sim.

Kauj Ruam 4: Ntxiv Shunt Resistor rau Kev Pom Zoo Tam Sim No

Ntxiv Shunt Resistor rau Kev Pom Zoo Tam Sim No
Ntxiv Shunt Resistor rau Kev Pom Zoo Tam Sim No
Ntxiv Shunt Resistor rau Kev Pom Zoo Tam Sim No
Ntxiv Shunt Resistor rau Kev Pom Zoo Tam Sim No

Shunt resistor yog tus tiv thaiv ntawm tus nqi me me (feem ntau nyob rau hauv qhov kev txiav txim ntawm milliOhms) hauv koob nrog lub thauj khoom uas tsim qhov hluav taws xob me me poob qis uas tuaj yeem ua kom nrov dua siv Kev Ua Haujlwm Amplifier thiab cov txiaj ntsig tuaj yeem muab rau arduino rau ntsuas. Txog kev ntsuas tam sim no, kuv tab tom siv lub shunt resistor (uas muaj tus nqi kwv yees li 10 milliohms. Kuv tau ua qhov no siv cov hlau hlau thiab khoov nws kom ua ib qho qauv ntawm cov kauj) hauv qhov qis ntawm Circuit Court, piv txwv li., nruab nrab ntawm lub nra thiab hauv av. Txoj hauv kev no qhov ntsuas hluav taws xob me me tuaj yeem ntsuas ncaj qha nrog rau hauv av.

Kauj Ruam 5: Ntxiv rau OpAmp Amplifier Circuit

Ntxiv rau OpAmp Amplifier Circuit
Ntxiv rau OpAmp Amplifier Circuit
Ntxiv rau OpAmp Amplifier Circuit
Ntxiv rau OpAmp Amplifier Circuit
Ntxiv rau OpAmp Amplifier Circuit
Ntxiv rau OpAmp Amplifier Circuit

Lub tshuab ua haujlwm ua haujlwm siv ntawm no yog LM358 uas yog ob chav Op-Amp nti. Peb yuav siv tsuas yog ib qho Op-Amp ua lub suab tsis hloov pauv. Qhov nce ntawm qhov tsis hloov pauv lub zog tuaj yeem teeb tsa los ntawm kev siv cov tes hauj lwm tiv thaiv R1 thiab R2 raws li qhia hauv daim duab. Rau kuv daim ntawv thov kuv tau xaiv R1 li 100K thiab R2 li 2.2K uas muab rau kuv kwv yees kwv yees li ntawm 46. Tus tiv thaiv thiab OpAmp tsis zoo tag nrho yog li qee qhov kev hloov pauv yuav tsum tau ua hauv qhov program arduino kom tau txais kev nyeem zoo (peb yuav tham txog uas nyob hauv cov kauj ruam tom ntej).

Kuv kuj tseem tau ua qhov project yuav ua li cas thiaj ua wattmeter rau arduino ntawm no kuv tau tham ntau lub ntsiab lus hauv kev nthuav dav. Koj tuaj yeem tshawb xyuas qhov haujlwm ntawm no:

Kauj Ruam 6: Lub Hwj Huam Fais Fab

Lub Hwj Huam
Lub Hwj Huam
Lub Hwj Huam
Lub Hwj Huam

Txhawm rau muab lub zog rau Arduino, OpAmp, OLED thiab WiFi module Kuv tab tom siv LM2596 tus nqi hloov pauv tus lej txhawm rau nqis qis qhov hluav taws xob nkag mus txog 7 volts. Tom qab ntawd siv 7805 tus tswj hluav taws xob Kuv tab tom hloov 7 volts rau 5 volts rau Arduino thiab OLED thiab siv AMS1117 tus tswj hwm, tsim 3.3V tsim nyog rau WiFi Module. Vim li cas thiaj ntau rau lub hwj chim koj nug? Yog vim li cas koj thiaj tsis tuaj yeem ntsaws ncaj qha rau lub hnub ci vaj huam sib luag rau 5 volt tus tswj hwm thiab cia siab tias yuav ua haujlwm tau zoo (vim nws yog tus tswj kab). Kuj tseem muaj qhov ntsuas hluav taws xob ntawm lub hnub ci vaj huam sib luag yog kwv yees li 18-20 volts uas tuaj yeem siab dhau rau tus tswj hwm txoj kab thiab tuaj yeem kib koj cov khoom siv hluav taws xob hauv lub ntsej muag! Yog li nws zoo dua kom muaj kev hloov pauv tau txiaj ntsig zoo nyob hauv qhov chaw

Kauj Ruam 7: Txhim Kho Tus Hloov Buck thiab Tus Tswj

Txhim kho Buck Converter thiab Regulator
Txhim kho Buck Converter thiab Regulator
Txhim kho Buck Converter thiab Regulator
Txhim kho Buck Converter thiab Regulator
Txhim kho Buck Converter thiab Regulator
Txhim kho Buck Converter thiab Regulator
Txhim kho Buck Converter thiab Regulator
Txhim kho Buck Converter thiab Regulator

Ua ntej, Kuv cim cov haujlwm uas cov pins ntawm tus hloov pauv phaib yuav haum rau hauv. 5V tus tswj hwm mus rau qis dua tus nqi hloov pauv tus qauv thiab txuas nrog rau qhov tso tawm ntawm nws hloov pauv kom muab 5V du rau cov tswj hwm.

Kauj Ruam 8: Ntxiv Kev Hloov

Ntxiv Hloov
Ntxiv Hloov
Ntxiv Hloov
Ntxiv Hloov
Ntxiv Hloov
Ntxiv Hloov

Kuv tau ntxiv qhov hloov pauv nruab nrab ntawm tus hloov pauv phaw thiab cov khoom siv hnub ci vaj huam sib luag, yog tias kuv xav toggle ON lossis OFF lub zog module. Yog tias tua tawm, lub zog tseem yuav raug xa mus rau lub nra (them tus tswj hauv kuv qhov teeb meem), tsuas yog ntsuas thiab IoT cov haujlwm yuav tsis ua haujlwm. Cov duab saum toj no tseem qhia txog txheej txheem txheej txheem kom deb li deb tau.

Kauj Ruam 9: Ntxiv Headers rau Arduino thiab kho 3.3v Regulator

Ntxiv Headers rau Arduino thiab kho qhov 3.3v Regulator
Ntxiv Headers rau Arduino thiab kho qhov 3.3v Regulator
Ntxiv Headers rau Arduino thiab kho qhov 3.3v Regulator
Ntxiv Headers rau Arduino thiab kho qhov 3.3v Regulator
Ntxiv Headers rau Arduino thiab kho qhov 3.3v Regulator
Ntxiv Headers rau Arduino thiab kho qhov 3.3v Regulator

Tam sim no kuv tau txiav cov poj niam lub taub hau raws li qhov loj ntawm Arduino pro mini thiab muag nws. Kuv tau siv tus AMS1117 tus tswj hwm ncaj qha ntawm Vcc thiab Gnd ntawm Arduino lub zog xa khoom (Arduino tau txais 5V los ntawm 7805 tus tswj hwm uas ua rau muab AMS1117 rau 3.3v xav tau los ntawm WiFi module). Kuv tau muab cov tswv yim tso rau hauv ib txoj hauv kev uas kuv yuav tsum tau siv cov xov hlau tsawg thiab cov ntu tuaj yeem txuas nrog ntawm cov kab laug sab.

Kauj ruam 10: Ntxiv Headers rau WiFi Module

Ntxiv Lub Hau Rau WiFi Module
Ntxiv Lub Hau Rau WiFi Module
Ntxiv Lub Hau Rau WiFi Module
Ntxiv Lub Hau Rau WiFi Module
Ntxiv Lub Hau Rau WiFi Module
Ntxiv Lub Hau Rau WiFi Module

Kuv soldered tus poj niam lub taub hau rau WiFi module nyob ib sab ntawm qhov twg Arduino pro mini yuav haum.

Kauj Ruam 11: Ntxiv Cov Cheeb Tsam rau WiFi Module

Ntxiv Cov Cheeb Tsam rau WiFi Module
Ntxiv Cov Cheeb Tsam rau WiFi Module
Ntxiv Cov Cheeb Tsam rau WiFi Module
Ntxiv Cov Cheeb Tsam rau WiFi Module
Ntxiv Cov Cheeb Tsam rau WiFi Module
Ntxiv Cov Cheeb Tsam rau WiFi Module

ESP8266 tus qauv ua haujlwm ntawm 3.3 volts thiab tsis yog 5 volts (thov 5 volts Kuv pom cov qauv tau txais, kub heev thiab feem ntau yuav tau txais kev puas tsuaj yog siv ntev dhau). Arduino thiab WiFi module sib tham ntawm kev sib txuas lus txuas uas siv Tx thiab Rx pins ntawm tus qauv. Peb tuaj yeem teeb tsa ib qho 2 tus lej digital ntawm arduino los ua tus lej txuas siv software software lub tsev qiv ntawv txuas ntawm arduino IDE. Rx tus pin ntawm tus qauv mus rau Tx ntawm Arduino thiab rov ua dua. Rx tus pin ntawm ESP ua haujlwm ntawm 3.3V cov laj thawj yog li peb siv qhov faib hluav taws xob faib hluav taws xob ntawm 2.2K thiab 1K kom txo qis 5V cov ntsiab lus ntawm Arduino mus rau kwv yees li 3.6V (uas tseem tseem siv tau). Peb tuaj yeem txuas ncaj qha Tx ntawm ESP rau Rx ntawm arduino raws li arduino yog 3.3v sib xws.

Kauj Ruam 12: Ntxiv OLED Zaub

Ntxiv rau OLED Zaub
Ntxiv rau OLED Zaub
Ntxiv rau OLED Zaub
Ntxiv rau OLED Zaub

Txhawm rau txuas OLED cov duab peb xav tau 4 kev sib txuas, ob qho rau lub hwj chim thiab 2 rau nws I2C kev sib txuas lus raws tu qauv nrog Arduino uas yog A4 thiab A5 pins ntawm Arduino. Kuv yuav siv lub xov tooj me me txuas nrog txiv neej lub taub hau txuas I2C tus pin thiab ncaj qha txuas lub zog txuas

Kauj Ruam 13: Saib zaum kawg ntawm Modular Board

Saib zaum kawg ntawm Modular Board
Saib zaum kawg ntawm Modular Board
Saib zaum kawg ntawm Modular Board
Saib zaum kawg ntawm Modular Board
Saib zaum kawg ntawm Modular Board
Saib zaum kawg ntawm Modular Board

Tom qab thaum ua tiav tag nrho cov txheej txheem txheej txheem qhov no yog lub rooj tsavxwm zoo li cas! Yog lawm kuv yuav tsum tau siv qee cov xov hlau thaum kawg, tab sis kuv tau txaus siab heev ntawm qhov tshwm sim. Qhov ntxim nyiam yog lub rooj tsavxwm tau hloov pauv tag nrho thiab txhua qhov tseem ceeb tuaj yeem tshem tawm lossis hloov tau yooj yim yog xav tau.

Kauj Ruam 14: Muab Txhua Qhov Ua Ke

Muab Nws Tag Nrho Ua Ke
Muab Nws Tag Nrho Ua Ke
Muab Nws Tag Nrho Ua Ke
Muab Nws Tag Nrho Ua Ke
Muab Nws Tag Nrho Ua Ke
Muab Nws Tag Nrho Ua Ke

Nov yog qhov ua tiav qhov module zoo li thaum txhua yam nyob hauv qhov chaw!

Cia peb mus rau ntu software tam sim no…

Kauj Ruam 15: Kev Sau Ntawv Siv FTDI Pawg Thawj Coj

Programming Siv FTDI Board
Programming Siv FTDI Board
Programming Siv FTDI Board
Programming Siv FTDI Board

Txog rau kev tsim cov qauv no kuv yuav siv FTDI kev sib cais pawg thawj coj uas yog qhov zoo tshaj plaws rau program Arduino Pro Mini. Nws tus pin qhia yog ua kom zoo zoo yog li koj yuav tsis tau siv thiab dhia lossis lwm yam.

Kauj Ruam 16: Daim duab qhia chaw

Schematic Daim duab
Schematic Daim duab

Nov yog daim duab qhia chaw ntawm IoT lub ntsuas hluav taws xob ntsuas qhov ntsuas. Kuv tau tsim cov phiaj xwm no hauv Eagle CAD. Ua siab dawb rub tawm thiab hloov kho cov ntaub ntawv schematic raws li koj lub tswv yim:)

Kauj Ruam 17: Cov txiaj ntsig

Cov txiaj ntsig!
Cov txiaj ntsig!
Cov txiaj ntsig!
Cov txiaj ntsig!
Cov txiaj ntsig!
Cov txiaj ntsig!
Cov txiaj ntsig!
Cov txiaj ntsig!

Kuv tau ua tiav kev teeb tsa los ntawm kev txuas lub zog hluav taws xob nruab nrab ntawm lub hnub ci vaj huam sib luag thiab tus tswj kev them nyiaj thiab sai li sai tau thaum peb txhawb nws nws txuas rau kuv li WiFi router thiab cov ntaub ntawv tau tshaj tawm tas li ntawm Blynk app ntawm kuv lub xov tooj ntse. Qhov no muab cov ntaub ntawv ntawm lub sijhawm tiag tiag ntawm kev them nqi tsis hais kuv nyob qhov twg, kom deb li kuv muaj internet txuas! Zoo siab tau pom qhov project ua haujlwm zoo:)

Rau lub hom phiaj sim, kuv sim teeb tsa siv kuv 50 Watt hnub ci vaj huam sib luag thiab 12V 18AH ua kua roj teeb.

Kauj Ruam 18: Arduino Code

Nov yog qhov ua tiav Arduino code uas kuv tau siv rau kuv txoj haujlwm.

Muaj ob peb lub tsev qiv ntawv uas koj yuav xav tau txhawm rau kom txoj haujlwm no ua haujlwm tau zoo cov no yog:

Blynk tus tswv tsev qiv ntawv

Adafruit_GFX lub tsev qiv ntawv

Adafruit_SSD1306 lub tsev qiv ntawv

Kuv vam tias qhov haujlwm no muaj txiaj ntsig. Xav txog kev txhawb nqa kuv cov phiaj xwm los ntawm kev koom nrog koj lub zej zog:)

Xav tias yuav tawm tswv yim tawm tswv yim lossis lus nug uas koj muaj txog qhov haujlwm no. Muaj ib hnub zoo!

Txoj haujlwm no pab kuv saib xyuas lub zog kuv sau los ntawm kuv lub vaj huam sib luag. Cia peb ua ib qib ua ntej txhawm rau txhawm rau txuas ntxiv cov peev txheej txuas ntxiv ntawm lub zog kom txo qis cov pa roj carbon hneev taw thiab tsim ib puag ncig ib puag ncig:)

Pom zoo: