|
arduino IDEArduino
|
|
|
ThingSpeakThingSpeak
|
Design and execute sensor network application for monitoring the electric power.
VIDEO
SUMMARY
The emergence of a large number of household appliances that use electricity leads to the great challenges of managing electricity efficiently. Effective power management will help save energy sources, help managers assess power consumption to offer cost and energy saving options, help monitor power quality. , minimizing the risks when using electricity. Furthermore, large-scale power monitoring can become a valuable data resource that enables computational analysis to improve power system reliability and continuity, and is an important component of power systems. An integral part of the Smart Grid system is being researched by power providers.
Realizing the importance of power management and the trend of "IoTization" of all devices, I have researched and built "Intelligent electricity data collection and measurement system". The system is integrated with the function of measuring the current, voltage, and power of electrical equipment in real time, and that data is collected and sent to the phone for analysis and evaluation software. We will know clearly about the power usage of each device, through which appropriate suggestions and recommendations will be given by the software to optimize equipment and power.
DESCRIBTION OF PROJECT
The operating principle of the system is quite simple. From the main circuit, the current sensing modules perform continuous measurement of the currents of each electrical device. The current value is displayed on the LCD so that the user can directly monitor. These stream values ??are processed and sent to the master station by the wireless transmission module.
At the main circuit, the total AC voltage and current consumed throughout the system are measured. When receiving data from the nodes, the processor will save the information needed in real time. From the information received, the system will calculate the capacity and send it to the management software.
In the management software, users will be provided with all information of the system including: value of current consumption of each device in real time, power consumption of the system, operating voltage of the whole system. . The management software is designed to add alarm functions with pre-set rated values. When the system operates with voltage or current with a current exceeding the rated value, the software will warn the user for timely handling.
+ The power block includes IC LM7805 which transforms the input voltage (7V -> 12V) into 5V DC voltage, and IC ASM1117 converts the 5V taken from the voltage into 3.3V. In addition, noise filter capacitors including high-pass filter capacitors and low-frequency filter capacitors are also added. The circuit is designed with a power indicator light to help us easily identify whether the circuit is powered or not.
+ The main processor used is Atmega328P with 28 pins. Together with 16MHz quartz to help generate pulses for the MCU.
The circuit is built with a UART code port to load code for the Atmega 328P MCU, the charging port communicates with usb charging TTL 5v / 3.3v FTDI FT232RL
+ The display block uses 16x2 LCD to save space on the circuit board.
+ Communication block using LoRa Ra-02 module operating at 433MHz frequency.
FINAL
Enjoy a happy PCBWay Contest.
If you have any questions send it to me.
Email: truongart1999@gmail.com
HAVE A NICE DAY!
//Khai báo thư viện.
#include <LiquidCrystal.h>
#include <SPI.h>
#include <LoRa.h>
#include <PZEM004Tv30.h>
#include <ArduinoJson.h>
#include "ACS712.h"
//define các pin kết nối của Lora với MCU.
#define ss 10 //PWM.
#define rst 9 //PWM.
#define dio0 2 //Digital.
//cấu hình message Lora.
#define MCU_ID 2 //NODE đọc dữ liệu gửi qua Lora
#define GATEWAY_ID 1 //Lora gửi đến Gateway với ID_1
//Khai báo Pzem004Tv30
PZEM004Tv30 pzem(A4,A5); // (RX,TX) connect to TX,RX of PZEM
//Cấu hình chân cho ACS712
ACS712 sensorA(ACS712_20A, A0); //Độ nhạy của sensor 96-104 mV/A, lấy giá trị TB là 100
ACS712 sensorB(ACS712_30A, A1); //Độ nhạy của sensor 64-68 mV/A, lấy giá trị TB là 66
//Cấu hình chân cho LCD
LiquidCrystal lcd(2,3,4,5,6,7);
/*
* Lựa chọn chip nạp trên Arduino IDE 1.8.16
* Wifi LoRa 32(V2)
* Lựa chọn Upload Speed cho đúng
*/
//Khai báo thư viện
#include <SPI.h>
#include <LoRa.h>
#include <WiFi.h>
#include <WiFiClient.h>
#include <ThingSpeak.h>
#include <ArduinoJson.h> //Using Library version 5.13.5
#include <BlynkSimpleEsp32.h>
#define BLYNK_PRINT Serial
#define ss 18
#define rst 14
#define dio0 26
//Các chân SPI nối với module Lora trên Heltec WifiLoRa32(V2)
#define sck 5
#define miso 19
#define mosi 27
//Cấu hình message Lora
#define BOARDCAST_ID 0 //Gateway gửi lên Blynk với ID_0
#define GATEWAY_ID 1 //Lora bên Node gửi đến Gateway ID_1 nhận
Design and execute sensor network application for monitoring the electric power.
*PCBWay community is a shared platform and we are not responsible for any design issues.
- Comments(0)
- Likes(0)
- 1 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
-
10design
-
10usability
-
10creativity
-
10content
More by qtruongsmt
-
RPI - 8 IO PLC With ATTiny85 Watch Dog
111 0 0 -
Nintendo Famicom HVC-001 Controller Shells
156 0 1 -
COMMODORE 128 DIAGNOSTIC REV.785260 KEYBOARD DONGLE
163 0 2 -
COMMODORE 128 15KHz DISPLAY ADAPTER (C128 80 COLUMN ADAPTER)
189 0 2 -
-
-
-
TEKTRONIX THS710,THS720,THS730 LED Backlight drop in replacement Controller
550 0 0