3228

Intelligent monitoring system for electrical equipment completed

 
Overview

The equipment is divided into two parts. The first part is the stm32 development board, and the second part is the AC voltage and current detection module.

(Subsequent versions may be integrated, directly welding the chips together and removing the development board) Completed

 

A long-winded mouth:

Friends who think the chip is a bit expensive

stm32f103c8t6 is available

cks32f103cbt6/c8t6 (USB can be converted to TTL for burning, SWD has not been tested)

ns32f103c8t6 (not tested) has the best compatibility, but its shortcomings are related to the battery pins.

ch32f103c8t6 (only supports SWD for burning)

When the domestic chip is replaced, the functionality has yet to be tested. The above three successfully wrote data.

 

Good news: The V4 version has been integrated and there is no need for additional stm32 development board welding.

The next version is expected to only have minor changes to the hardware, and no new features will be added to the project functions.

Not necessarily, the ec11 encoder may be added and the menu function may be added.

 

Hardware version update:

V1-2021.12

Modular for easy testing

 

V2-2022.1

Each module is further integrated into one

 

V3.3-2022.3.2

Optimize the layout and increase the width of communication lines

New:

1) 0.96-inch OLED

 

V4-2022.7.19 (Demo)

Please note that the V4 version should not be boarded yet. There is a serious problem that will be fixed in the V4.1 version. The 220v~5v power module has no slots

New:

1) The 220v to 5v module can be plugged in and used without additional type-c power supply.

2) RGB (pseudo) lighting effect (effect to be tested)

3) Figure 8 plug

4) AC power switch

5) 4 expansion holes to facilitate subsequent testing of new functions. (Basically useless, please ignore haha)

Update on progress, almost completed. I went drinking in the evening, and I will continue painting tomorrow (gu gu gu) and I just need to lay the copper.

The V4-Demo version has been uploaded, thank you all for your support!

 

Demo-V4.1-2022-7-29(uploaded)

Optimize AC line width

Change the pseudo RGBled package (soldering found that the pad is too small and not easy to solder)'

New:

1) Ceramic LED

Fix the packaging problem of 220~5v power module (fix the problem of two long holes not being cut out)

...

There are insufficient materials and other problems need to be discovered. You are welcome to point them out in the comment area. Thank you very much!

Demo-V4 version RGB lighting effect (pseudo) display, the effect is still acceptable.

 

Software version update:

V1.0

Realize basic pressure and flow measurement functions

v1.1

Added OLED display

0.96-inch OLED (buy one starting with GND)

SCL connected to PB13

SDA connected to PB14

v1.2

Added startup text

v1.3

Newly added:
1) The display shows the on and off status of the relay

2) Overload display

v1.4

Fixed issues such as overlapping text display with power outage when the power is overloaded

Temporarily block the AT command transmission of WiFi, otherwise it will cause abnormal communication with the computer (computer software optimization problem,

I can't do anything for the time being. If you want to use WiFi, uncomment these.

    //printf("AT+CIPMUX=1 ");  
    //delay_ms(1000);
    //printf("AT+CIPSERVER=1,8080 ");
    //delay_ms(1000);

 

    //delay_ms(200);
    //printf("AT+CIPSEND=0,42 ");

v1.5

Perfect display of power consumption parameters

v1.6 2022-8-9

Optimization:
1) Boot speed

2) Judgment conditions

Delete useless code (related to WiFiat command)

v1.7

Change boot animation

The relay judgment conditions have changed a bit. The v1.6 project file was accidentally deleted.

I re-wrote it, it may be a little different from v1.6

In the picture, the white version is V4.2

 

1. stm32 development board, powered by type-c interface (v4 version has been integrated, no need to build stm32 development board)

Development board project link:

https://oshwhub.com/Qusenberg/STM32F103C8T6kai-fa-ban

Introduction to program downloading and burning:
The development board supports two interfaces: a download interface and a serial port.
1. SWD program download and debugging interface to facilitate program downloading (self-prepared ST-LINK V2 emulator)
2. Serial port interface to facilitate serial port debugging and program downloading (self-prepared USB to TTL module)
3. Lead to 5V power supply (type-c voltage Straight out) (220V to DC5v module may be added in the future)

2. AC voltage and current detection part

AC voltage transformer TV1005M-1M (available from a few yuan to a dozen yuan)

AC current transformer TA1005M-1M

The relay is Songle's 5V relay

The WiFi module is ESP-01/01S

 

3. Serial communication system

This is something written by my teacher, and it’s pretty good. The electricity consumption value is displayed in the form of a graph.

Explore the software functions yourself.

 

Serial communication connection instructions:

1. Open the remote intelligent control software and click Communication Settings

2. Select the corresponding serial port number

3. Baud rate: 9600

4. Open the serial port

5. Check Show data and Show original code

Back to Home page

cyUjCeZhbiQ2Mmx0Cw11hF9rqDEvlA2Dk4polBuh.png

Software usage instructions:

The remote intelligent monitoring system developed in this design can provide real-time warning and determine whether there are safety hazards in the line.

First, connect the electrical equipment. Since the power of various electrical equipment is different, when the equipment is powered on, the remote intelligent control system can click Record to sample the power consumption data of the current equipment.

After the sampling is completed, the electrical equipment can be monitored in real time.

If the power of the device is too high, the software will prompt a red warning of high power, and you can intuitively see the data changes on the software interface.

When the electrical equipment is powered on, click the recording button of the software. After the software obtains the power of the electrical equipment, click the Start Monitoring button to use this as a standard to make intelligent judgments on electricity safety.

In this design, the maximum power of the electrical equipment is set to not exceed 30% of its own power consumption limit . Connect a commonly used electric fan to the load end. After testing, the first gear of the fan is about 28W , and the second gear is about 38W .

Turn the fan to the first gear mode and enter the power consumption for intelligent monitoring of power consumption. If the fan is adjusted to the second gear and 38W exceeds 30% of the entered power , the relay will automatically power off.

After completing the above operations, you can click Return to return to the main interface. The system interface adopts four box design.

Three of them can freely select signal channels and freely switch the voltage, current or power curves you want to display.

The block diagram in the upper right corner shows the selection of the signal channel. In this introduction, channel No. 1 is selected, and then click the record button to record the running signal.

Acquire the power consumption parameters of the electrical equipment, and turn off the recording after a certain period of time. If you want to carry out intelligent monitoring of electrical equipment,

Just click the Start Monitoring button.

 

++++++++++++++++++Software instructions++++++++++++++++++++++++++

The version is updated relatively quickly, but some pictures are still from the old version.

Click Intelligent Control to monitor electricity safety.

The recording button monitors the voltage of the electrical equipment at this time.

Record for a while and then cancel the recording, then click Monitor to intelligently monitor the electrical equipment at that time.

VW0zypIPd5iSPUqmDzbI4ICm2MxerstHI4cHgsXF.png

P0ORCOrBZirekccSjZSVg6pnkSYmsbzrb6aJTzZx.png

Power on display

OVkWwlbayYFlPTU5EWybun7BCJfg2gEHomnZIZkO.jpeg

Summarize:

1. Designed and developed the smallest system board of STM32F103C8T6 microcontroller. The compact size is suitable for precision circuits and reduces hardware space.

2. Use floating-point arithmetic to calculate the values ​​of AC voltage and current, and determine whether there are abnormalities in device power consumption in real time.

3. Designed and developed a remote intelligent control system on the computer side, and drew the data into a curve chart to read the power consumption value more intuitively. In view of the different power consumption required by electrical equipment, a monitoring system has been developed in the system, which can monitor the power consumption values ​​of new equipment and analyze the data for real-time intelligent monitoring.

Precautions:

This project prohibits anyone from making profits by any means. Violators will be prosecuted.

If you have any questions, please go to the correct channel to provide feedback, or leave a comment.

Since the project involves the use of mains power, we are not responsible for any electric shock accidents during debugging and use. Once you adopt this open source project, you will accept and bear the risks!

 

 

 

 

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-05-12 09:36:48

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号