Board-dat/MPC/MPC1130-dat/2024-12-08-17-13-39.png
... ...
Binary files /dev/null and b/Board-dat/MPC/MPC1130-dat/2024-12-08-17-13-39.png differ
Board-dat/MPC/MPC1130-dat/2024-12-08-17-15-49.png
... ...
Binary files /dev/null and b/Board-dat/MPC/MPC1130-dat/2024-12-08-17-15-49.png differ
Board-dat/MPC/MPC1130-dat/MPC1130-dat.md
... ...
@@ -4,7 +4,18 @@
4 4
- board use guide please refer to page [[RMP-driver-dat]]
5 5
6 6
7
+## Board map
7 8
9
+![](2024-12-08-17-15-49.png)
10
+
11
+- reserved pull resistor for P18 IO1 (not soldered)
12
+
13
+## Extra Pins
14
+
15
+![](2024-12-08-17-13-39.png)
16
+
17
+- ROW_E GND Sel_8 Sel_8 SC
18
+- ROW_E GND Sel_8 Sel_8 SC
8 19
9 20
## demo video
10 21
Board-dat/SVC/SVC1035-dat/SVC1035-dat.md
... ...
@@ -31,4 +31,4 @@ Pins Definitions
31 31
32 32
- [[HLW8032-dat]] - [[HLW-dat]]
33 33
34
-- [[SVC1035]]
... ...
\ No newline at end of file
0
+- [[svc1035]]
... ...
\ No newline at end of file
Chip-cn-dat/HLW-dat/HLW8032-dat/2024-12-08-16-32-50.png
... ...
Binary files /dev/null and b/Chip-cn-dat/HLW-dat/HLW8032-dat/2024-12-08-16-32-50.png differ
Chip-cn-dat/HLW-dat/HLW8032-dat/2024-12-08-16-33-30.png
... ...
Binary files /dev/null and b/Chip-cn-dat/HLW-dat/HLW8032-dat/2024-12-08-16-33-30.png differ
Chip-cn-dat/HLW-dat/HLW8032-dat/2024-12-08-16-37-50.png
... ...
Binary files /dev/null and b/Chip-cn-dat/HLW-dat/HLW8032-dat/2024-12-08-16-37-50.png differ
Chip-cn-dat/HLW-dat/HLW8032-dat/2024-12-08-16-38-09.png
... ...
Binary files /dev/null and b/Chip-cn-dat/HLW-dat/HLW8032-dat/2024-12-08-16-38-09.png differ
Chip-cn-dat/HLW-dat/HLW8032-dat/2024-12-08-16-38-22.png
... ...
Binary files /dev/null and b/Chip-cn-dat/HLW-dat/HLW8032-dat/2024-12-08-16-38-22.png differ
Chip-cn-dat/HLW-dat/HLW8032-dat/2024-12-08-16-38-54.png
... ...
Binary files /dev/null and b/Chip-cn-dat/HLW-dat/HLW8032-dat/2024-12-08-16-38-54.png differ
Chip-cn-dat/HLW-dat/HLW8032-dat/2024-12-08-16-39-38.png
... ...
Binary files /dev/null and b/Chip-cn-dat/HLW-dat/HLW8032-dat/2024-12-08-16-39-38.png differ
Chip-cn-dat/HLW-dat/HLW8032-dat/2024-12-08-16-40-36.png
... ...
Binary files /dev/null and b/Chip-cn-dat/HLW-dat/HLW8032-dat/2024-12-08-16-40-36.png differ
Chip-cn-dat/HLW-dat/HLW8032-dat/2024-12-08-16-41-04.png
... ...
Binary files /dev/null and b/Chip-cn-dat/HLW-dat/HLW8032-dat/2024-12-08-16-41-04.png differ
Chip-cn-dat/HLW-dat/HLW8032-dat/HLW8032-DAT.md
... ...
@@ -2,33 +2,16 @@
2 2
3 3
- [[SVC1031-dat]] - [[SVC1035-dat]]
4 4
5
+- [[HLW8032-faq-dat]] - [[HLW8032-reg-dat]]
6
+
5 7
## Chip Info
6 8
7 9
- The HLW8032 is a high precision energy metering IC that uses a CMOS manufacturing process and is primarily intended for single phase applications. It can measure line voltage and current, and can calculate active power, apparent power and power factor.
8 10
- The device integrates two ∑-Δ ADCs and a high-precision energy metering core. The HLW8032 can communicate data through the UART port. The HLW8032 uses a 5V supply, a built-in 3.579M crystal, and an 8PIN SOP package.
9 11
- The HLW8032 has the advantages of high precision, low power consumption, high reliability and strong adaptability to the environment. It is suitable for energy metering of single-phase two-wire power users.
10 12
11
-## Hex Read
12
-
13
- F2 5A 02 DC D0 04 C8 20 00 3E 4E 03 7C A6 4E 2B B8 B9 8A BB 61 00 01 DC
14 13
15
- seperated: F2 | 5A | 02 DC D0 | 04 C8 20 | 00 3E 4E | 03 7C A6 | 4E 2B B8 | B9 8A BB | 61 | 00 01 | DC
16 14
17
- convert to int: 85 90 2 220 208 4 134 64 0 62 78 4 25 218 78 43 184 235 216 59 97 0 0 139
18
-
19
-| | hex | dec / int |
20
-| -------------------------- | -------- | ---------- |
21
-| start | F2 | 242 |
22
-| Check register | 5A | 90 |
23
-| Voltage parameter register | 02 DC D0 | 2 220 208 |
24
-| Voltage register | 04 C8 20 | 4 134 64 |
25
-| Current parameter register | 00 3E 4E | 0 62 78 |
26
-| Current register | 03 7C A6 | 3 124 166 |
27
-| Power parameter register | 4E 2B B8 | 78 43 184 |
28
-| Power register | B9 8A BB | 235 216 59 |
29
-| Data updata register | 61 | 97 |
30
-| PF register | 00 01 | 0 1 |
31
-| CheckSum register | DC | 139 |
32 15
33 16
34 17
## Applications
... ...
@@ -38,3 +21,5 @@
38 21
## ref
39 22
40 23
- [[HLW8032.pdf]]
24
+
25
+- [[HLW-dat]]
... ...
\ No newline at end of file
Chip-cn-dat/HLW-dat/HLW8032-dat/HLW8032-faq-dat.md
... ...
@@ -0,0 +1,83 @@
1
+
2
+# FAQ: HLW8032 Module
3
+
4
+## 1. What is the HLW8032 module, and what is it used for?
5
+The HLW8032 module is designed to measure AC effective voltage, effective current, active power, and energy consumption. It can also calculate apparent power and power factor:
6
+- **Apparent Power** = Effective Voltage × Effective Current
7
+- **Power Factor** = Active Power ÷ Apparent Power
8
+
9
+Typical applications include smart plugs and charging stations. The module outputs hexadecimal data via a serial interface, which can be processed using provided formulas. Tutorials for testing and data parsing are available.
10
+
11
+
12
+---
13
+
14
+## 2. Can the HLW8032 measure DC or three-phase electricity? What are its measurement ranges, sampling frequency, and accuracy?
15
+- **DC Measurement:** Not supported.
16
+- **Three-Phase Electricity:** Not supported.
17
+- **Voltage Range:** 85V~280V AC.
18
+- **Current Range:** 50mA~10A/20A.
19
+- **Sampling Frequency:** 0.89475 MHz.
20
+- **Measurement Accuracy:** 2%.
21
+
22
+### Special Note
23
+
24
+![](2024-12-08-16-32-50.png)
25
+
26
+When measuring low-power devices (e.g., ~3W), the module updates current and power readings slowly, taking approximately 8 seconds. Similarly, it may take about 5 seconds to detect no load after a device is disconnected.
27
+
28
+
29
+
30
+---
31
+
32
+## 3. What sampling method does the module use? Can I connect the serial output directly to a computer?
33
+- **Sampling Method:** Non-isolated sampling.
34
+- **Serial Output:** Data is isolated using an optocoupler, making the serial output pin header safe. You can connect it directly to a microcontroller or to a computer via a USB-to-TTL adapter.
35
+
36
+---
37
+
38
+## 4. What is the baud rate of the serial output? Can it be modified?
39
+- **Baud Rate:** Fixed at 4800 bps.
40
+- **Configuration:** 8 data bits, 1 stop bit, even parity.
41
+- **Modification:** The baud rate cannot be changed.
42
+
43
+---
44
+
45
+## 5. How do I connect the module? Does it distinguish live and neutral wires? Can it work without a load or without 5V DC power?
46
+
47
+![](2024-12-08-16-33-30.png)
48
+
49
+- **AC Wiring:** Loosen the screws slightly, insert the metal part of the wire into the terminal, and tighten the screws. *(Tip: Place the module on a stable surface, hold it with one hand, and press the screwdriver down firmly while turning.)*
50
+- **Live and Neutral Wires:** No distinction is needed.
51
+- **Without Load:** The module can measure voltage with just a 220V input. If only 5V DC is supplied (without 220V AC input), the module will still output data.
52
+- **5V DC Power:** Required to power the chip. Without it, the chip will not function.
53
+ - Do not use 3.3V as the power supply. However, the `T` pin can be connected to a 3.3V microcontroller's RXD pin.
54
+
55
+---
56
+
57
+## 6. What is the difference between the 10A and 20A versions? What about soldered vs. unsoldered modules?
58
+- **10A vs. 20A Versions:** The difference lies in the sampling resistor:
59
+ - **10A Version:** Sampling resistor is 3 milliohms.
60
+ - **20A Version:** Sampling resistor is 1 milliohm.
61
+- **Soldered vs. Unsoldered:**
62
+ - Soldered modules have the 3P pin header and 220V terminal pre-soldered.
63
+ - Unsoldered modules allow for easier reinforcement of 220V traces with solder and the ability to reverse the pin header for use on other boards. Both versions are shipped with these components included.
64
+- **Reinforcing 220V Traces:**
65
+ To prevent trace burnout under high current (above 10A), reinforce the 220V traces with solder on both sides of the module. Be careful not to short-circuit live and neutral wires.
66
+
67
+---
68
+
69
+## 7. Can the HLW8032 module connect to microcontrollers like STM32, 51, or Arduino?
70
+Yes, the module is compatible with any TTL serial microcontroller. While example code is available for STM32 and 51 series microcontrollers, you can adapt the module to other platforms as needed.
71
+
72
+
73
+This FAQ should help you understand the HLW8032 module and its configuration for your application. For additional support, refer to tutorials and example projects.
74
+
75
+## 8. Why is the effective voltage 231V instead of 220V?
76
+This is normal and depends on the transformer and power distribution in your area. To ensure sufficient capacity, power companies often supply higher voltages. The highest observed voltage can be up to 258V. Such voltages will not damage household appliances. You can use a multimeter to verify the voltage, which should be similar to the module's readings.
77
+
78
+---
79
+
80
+## 9. Why does the effective current show a value when no device is connected instead of showing 0?
81
+This is expected behavior. The module's current detection range is 50mA–10A. Although the effective current shows a value, the energy consumption does not increase. You can verify if no device is connected by checking the first byte of raw data; if it is `0xF2`, no load is connected.
82
+
83
+For detailed information about the meaning of each byte in the raw data, refer to the HLW8032 datasheet.
Chip-cn-dat/HLW-dat/HLW8032-dat/HLW8032-reg-dat.md
... ...
@@ -0,0 +1,64 @@
1
+
2
+# HLW8032-reg-dat.md
3
+
4
+![](2024-12-08-16-37-50.png)
5
+
6
+![](2024-12-08-16-38-09.png)
7
+
8
+![](2024-12-08-16-38-22.png)
9
+
10
+![](2024-12-08-16-38-54.png)
11
+
12
+## sample data
13
+
14
+ F2 5A 02 E1 80 00 06 52 0 3E A8 3 A6 C8 4F 9A E8 5E 79 B 61 0 1 27
15
+
16
+### Voltage Parameter Register
17
+
18
+ 02 E1 80
19
+
20
+![](2024-12-08-16-39-38.png)
21
+
22
+Summing these values gives the voltage parameter register value: 131072 + 57600 + 128 = 188800
23
+
24
+### Voltage Register Calculation
25
+
26
+ 00 06 52
27
+
28
+![](2024-12-08-16-40-36.png)
29
+
30
+voltage register value: 0 + 1536 + 82 = 1618
31
+
32
+### Effective Voltage Calculation
33
+
34
+Therefore, the effective voltage is approximately 219.372V.
35
+
36
+![](2024-12-08-16-41-04.png)
37
+
38
+
39
+
40
+
41
+## obselete
42
+
43
+## Hex Read
44
+
45
+ F2 5A 02 DC D0 04 C8 20 00 3E 4E 03 7C A6 4E 2B B8 B9 8A BB 61 00 01 DC
46
+
47
+ seperated: F2 | 5A | 02 DC D0 | 04 C8 20 | 00 3E 4E | 03 7C A6 | 4E 2B B8 | B9 8A BB | 61 | 00 01 | DC
48
+
49
+ convert to int: 85 90 2 220 208 4 134 64 0 62 78 4 25 218 78 43 184 235 216 59 97 0 0 139
50
+
51
+| | hex | dec / int |
52
+| -------------------------- | -------- | ---------- |
53
+| start | F2 | 242 |
54
+| Check register | 5A | 90 |
55
+| Voltage parameter register | 02 DC D0 | 2 220 208 |
56
+| Voltage register | 04 C8 20 | 4 134 64 |
57
+| Current parameter register | 00 3E 4E | 0 62 78 |
58
+| Current register | 03 7C A6 | 3 124 166 |
59
+| Power parameter register | 4E 2B B8 | 78 43 184 |
60
+| Power register | B9 8A BB | 235 216 59 |
61
+| Data updata register | 61 | 97 |
62
+| PF register | 00 01 | 0 1 |
63
+| CheckSum register | DC | 139 |
64
+
Chip-cn-dat/HLW-dat/hlw-dat.md
... ...
@@ -1,5 +1,8 @@
1 1
# hlw-dat
2 2
3
+
4
+## chips
5
+
3 6
| ! chip | Sensing | Size | Calibration | COMM | Other |
4 7
| ------- | ----------------------- | ------- | ----------- | -------- | ---------------------------- |
5 8
| HLW8112 | 2x current / 1x voltage | SSOP16 | No need | SPI/UART | OV / LV / Zeor-crossing / OC |
... ...
@@ -11,6 +14,12 @@
11 14
* [[HLW8012-dat]] - [[HLW8032-dat]]
12 15
13 16
17
+
18
+## code house
19
+
20
+- https://github.com/Edragon/HLW
21
+
22
+
14 23
## ref
15 24
16 25
- [[HLW]]
... ...
\ No newline at end of file