Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| projects:power_quality_analyzer [2025/08/29 19:28] – external edit 127.0.0.1 | projects:power_quality_analyzer [2026/10/25 19:30] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| * real-time operation | * real-time operation | ||
| * USB communication interface | * USB communication interface | ||
| + | ===== REST API ===== | ||
| + | < | ||
| + | " | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | </ | ||
| + | < | ||
| + | " | ||
| + | i1, i2, i3, u1, u2, u3 | ||
| + | 93390, -361519, 129825, 5145535, -774099, -4559377 | ||
| + | 19145, -338362, 153637, 5365310, -1620378, -3868587 | ||
| + | -6606, -323890, 150418, 5446114, -2413114, -3135951 | ||
| + | -3541, -304116, 174229, 5479039, -3169516, -2380155 | ||
| + | ... | ||
| + | </ | ||
| + | ===== esp-idf for ESP32-S3 installation and configuration ===== | ||
| + | * [[https:// | ||
| + | < | ||
| + | $ ssh jdambors@rpi | ||
| + | </ | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | < | ||
| + | $ mkdir ~/esp | ||
| + | $ cd ~/esp | ||
| + | $ git clone -b v5.5.1 --recursive https:// | ||
| + | $ cd esp-idf | ||
| + | $ ./ | ||
| + | </ | ||
| + | * pqa project configuration | ||
| + | < | ||
| + | $ cd ~/ | ||
| + | </ | ||
| + | * activate build environment - v5.5.1 | ||
| + | < | ||
| + | $ . ~/ | ||
| + | </ | ||
| + | * activate build environment - v6.1.0 | ||
| + | < | ||
| + | $ . ~/ | ||
| + | </ | ||
| + | * proceed with pqa project configuration | ||
| + | < | ||
| + | $ vim main/ | ||
| + | $ cat main/ | ||
| + | ## IDF Component Manager Manifest File | ||
| + | dependencies: | ||
| + | ... | ||
| + | espressif/ | ||
| + | $ idf.menuconfig | ||
| + | * Partition Table ---> Partition Table (Single factory app (large), no OTA) | ||
| + | * Serial flasher config ---> Flash size (8MB) | ||
| + | * Component config ---> ESP PSRAM ---> [*] Support for external, SPI-connected RAM | ||
| + | * ---> SPI RAM Config ---> Mode (QUAD/OCT) of SPI RAM chip in use (Octal Mode PSRAM) | ||
| + | * ---> SPI RAM Config ---> SPI RAM access method (Make RAM allocatable using malloc() as well) | ||
| + | * ---> SPI RAM Config ---> (1024) Maximum malloc size, in bytes, to always put in internal memory | ||
| + | * ---> SPI RAM Config ---> Allow .bss segment placed in external memory | ||
| + | * Component config ---> ESP System Settings ---> CPU frequency (160MHz) | ||
| + | * Component config ---> LWIP ---> SNTP ---> (2) Maximum number of NTP servers | ||
| + | * Component config ---> DSP Library ---> DSP Optimization (ANSI C) | ||
| + | * Component config ---> DSP Library ---> Maximum FFT length (4096) | ||
| + | </ | ||
| + | * build, flash and monitor | ||
| + | < | ||
| + | $ idf.py fullclean | ||
| + | $ idf.py build ; echo $? | ||
| + | $ idf.py -p / | ||
| + | $ idf.py -p / | ||
| + | </ | ||
| + | |||
| ===== AC sensors ===== | ===== AC sensors ===== | ||
| + | |||
| ==== AC voltage sensors ==== | ==== AC voltage sensors ==== | ||
| For three-phase balanced system, the sum of instantaneous values of phase voltages (as well as currents) is zero: $$v_{L1} + v_{L2} + v_{L3} = i_{L1} + i_{L2} + i_{L3} = 0$$ In such case also $$u_{N1} = u_{N2} = 0$$ and $$v_1 = v_{L1}\frac{R_{12}}{R_{11} + R_{12}}$$ | For three-phase balanced system, the sum of instantaneous values of phase voltages (as well as currents) is zero: $$v_{L1} + v_{L2} + v_{L3} = i_{L1} + i_{L2} + i_{L3} = 0$$ In such case also $$u_{N1} = u_{N2} = 0$$ and $$v_1 = v_{L1}\frac{R_{12}}{R_{11} + R_{12}}$$ | ||
