Smart socket system design
This design consists of three parts: metering module, display module and control module (see Figure 1). This article will focus on the design of the key metering module.
Figure 1: Block diagram of CSE7780-based smart socket system
1. Metering function design
This system uses CSE7780, which can provide active power, active energy, current RMS, voltage RMS, line frequency, zero-crossing interruption and other functions, and provides full digital gain, phase, bias current calibration, and active energy pulse output from the PF pin. In addition, CSE7780 provides an SPI serial interface that can communicate with an external MCU, and has an internal power monitoring circuit to ensure the normal operation of the chip.
As shown in Figure 2, the measurement of this system includes two parts: current and voltage sampling.
(1) Current signal sampling
In the current sampling circuit, when the current flows through the manganese copper shunt, a voltage drop will be generated on the current sampling channel of the metering chip. Different current signals will form different voltage drops on the shunt. The metering chip collects the voltage signal formed on the shunt to realize the collection of the current signal.
(2) Voltage signal sampling
Voltage sampling usually collects the signal on the neutral line. Since the voltage signal is large, this system design directly samples the voltage signal by reducing the voltage through a resistor network.
Figure 2: Metering circuit based on CSE7780 smart socket
2. Display module design
The display part of this system design adopts the HT1621 LCD driver control chip, which can drive 4*32 LCD segments and fully meet the requirements of display driver. It can display information such as power, voltage RMS, current RMS, and active power.
3. Power module
Considering the space factor of the product, the power supply designed for this system adopts a non-isolated power supply, and the power supply circuit can provide a current of about 60mA.
Smart socket software design
1. Calculation of electrical parameters
To design a rated voltage of 220V (Un), 10 (60) For example, the current specification and constant 1600imp/KWh socket, since the maximum input signal allowed by the current input channel is ±700mV peak-to-peak (effective value is 495mVrms), the 10(60)A table can select 200~250μΩ manganese copper considering the heating of channel A. If 250μΩ manganese copper is used for sampling, when Imax=60A, the sampling signal of channel A is 60A*250μΩ=15mV. Since the maximum input signal allowed by current channel A is 495mV, the gain selection of the current channel can be configured to 16, and channel B uses a 2500:1 mutual inductor; the load resistance is 10Ω, and the gain of current channel B is set to 1. The maximum input signal allowed by the voltage channel is ±700mV peak-to-peak. Considering that the voltage will have an overvoltage of 130%Un, the voltage sampling signal can be reduced to about 220mV through a network resistor, and the gain of the voltage channel is selected to be 1.
Based on the above discussion, we need to set the gain of current channel A to 16 and the gain of voltage channel A to 1, so the SYSCON register should be set to 0080H.
The configuration flow of CSE7780 registers is shown in Figure 3.
2. Setting of HFConST register
Constant EC is 1600imp/KWh; Vu=0.22V; Vi=10A*0.00025Ω*16=40mV; EC=1600; Un=220V;
Ib=10A. According to the formula HFConst= INT[39.3143*Vu*Vi*10^11/(EC*Un*Ib)], HFConst=2664H, so the value written into the HFConst register should be 2664H.
3. Other metering control register configuration
Configuration of starting current. In the case of Un and Ib, the value of the active power register PowerA is 1A375D7H. According to the requirement, it can start normally under 0.4%Ib. Then the Pstar register can be configured to the value corresponding to 0.2%Ib active power Pstar=00D6H (Pstart corresponds to the upper 24 bits of PowerA, and the calculated Pstart is 16'h00D6).
Configuration of energy accumulation mode. Since we need to measure the positive and negative active energy, we must configure the energy accumulation mode so that both positive and negative power are accumulated. The accumulation method is algebraic sum. Negative power is indicated by the REVQ sign. Enable PF pulse output and active energy register accumulation. Then, configure EMUCON to 0001H.
4. Configuration of calibration registers
(1) Active power correction
a. Power gain correction
When the input signals are Un and Ib, the error of channel A obtained from the calibration station is err, then formula 1. If Pgain>=0, then GPQA=INT[Pgain*2^15], otherwise if Pgain<0, then GPQA=INT[2^16 +Pgain*2^15].
Power calibration of Channel B can be accomplished by configuring GPQB in the same manner as Channel A.
b. Phase correction
When PF=0.5L and the input signal is 100%Un, 100%Ib, the error obtained from the calibration table is err, and the phase error compensation is formula 2. For a 50Hz power grid, PHSA has a relationship of 0.02^0/LSB, then: if θ>=0, PHSA =INT(θ/0.02^0); if θ<0, PHSA =INT(2^8+θ/0.02)-96.
Phase correction of channel B can be achieved by configuring PHSB in the same way as that of channel A.
c. Active bias current correction
In the case of small signal 1.0, if the small signal deviation is large, the deviation of the small signal can be corrected by adjusting the active power bias current correction register. In the case of PF=1.0, Vu=Un, Vi=0, wait for the update of DPUDIF, get the value of PowerA through MCU, read several times to average, and write the last 4 bits of the complement of the average value into the APOSA correction register.
Active bias current correction for Channel B can be achieved by configuring APOSB in the same way as for Channel A.
(2) Voltage and current calculation
The correction process of the effective value is to correct the bias current of the current first. After correcting the bias current, calculate the current conversion coefficient KIA and the voltage conversion coefficient KU. Read the value of the IARMS register when PF=1.0, 100%Un, Ib. According to the formula KIA=IARMS/Ib, the conversion coefficient of the current channel A can be obtained. The conversion coefficient KU of the voltage channel can be obtained in the same way.
Figure 4: Main program flow chart of the intelligent energy-saving socket system based on CSE7780
Conclusion
The smart energy-saving socket based on CSE7780 has been successfully applied in batches by many companies. After testing, the energy-saving socket system has shown good control effect, can sensitively detect whether the load is overloaded and the standby state, effectively protect the safety of electrical appliances, and is favored by manufacturers of such products and has begun to be sold overseas in batches.
Previous article:Creating a Precision DC Floating Current Source
Next article:Power Supply Design Tips: Understanding FFT Plots
- Popular Resources
- Popular amplifiers
- MathWorks and NXP Collaborate to Launch Model-Based Design Toolbox for Battery Management Systems
- STMicroelectronics' advanced galvanically isolated gate driver STGAP3S provides flexible protection for IGBTs and SiC MOSFETs
- New diaphragm-free solid-state lithium battery technology is launched: the distance between the positive and negative electrodes is less than 0.000001 meters
- [“Source” Observe the Autumn Series] Application and testing of the next generation of semiconductor gallium oxide device photodetectors
- 采用自主设计封装,绝缘电阻显著提高!ROHM开发出更高电压xEV系统的SiC肖特基势垒二极管
- Will GaN replace SiC? PI's disruptive 1700V InnoMux2 is here to demonstrate
- From Isolation to the Third and a Half Generation: Understanding Naxinwei's Gate Driver IC in One Article
- The appeal of 48 V technology: importance, benefits and key factors in system-level applications
- Important breakthrough in recycling of used lithium-ion batteries
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Detailed explanation of intelligent car body perception system
- How to solve the problem that the servo drive is not enabled
- Why does the servo drive not power on?
- What point should I connect to when the servo is turned on?
- How to turn on the internal enable of Panasonic servo drive?
- What is the rigidity setting of Panasonic servo drive?
- How to change the inertia ratio of Panasonic servo drive
- What is the inertia ratio of the servo motor?
- Is it better for the motor to have a large or small moment of inertia?
- What is the difference between low inertia and high inertia of servo motors?
- 5 ways to suppress or reduce switching power supply ripple
- 【Project source code】Implementation of 8-bit decimal digital frequency meter based on FPGA
- The normal static current of the same hardware and software is 100uA. Why do some machines reach 120 130uA? What's the reason?
- This DC60V 100AH battery pack is converted into AC220V15A and has solar MPPT power tracking. Which energy storage power supply...
- TI Engineer's Annual Summary: Selected Q&A on Wireless Connectivity Technologies (ZigBee, Bluetooth, etc.)
- A quick guide to NFC (Near Field Communication)
- Will ESD devices be damaged?
- ST60 Short-Range, Contactless Connector Review 3: Initial Evaluation of SK202 Evaluation Kit
- Share: DSP2833x Programming Summary
- MSP430 MCU Development Record (24)