Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
projects:power_quality_analyzer [2025/10/10 08:37] – [AC sensors] adminprojects: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 =====
 +<code>
 +"api/v1/values"
 +{
 +  "U1": 240.0,
 +  "U2": 241.0,
 +  "U3": 242.0,
 +  "I1": 1.0,
 +  "I2": 2.0,
 +  "I3": 0.5,
 +  "fi1": 10.0,
 +  "fi2": -1.0,
 +  "fi3": 90.0
 +}
 +</code>
 +<code>
 +"api/v1/samples.csv"
 +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
 +...
 +</code>
 ===== esp-idf for ESP32-S3 installation and configuration ===== ===== esp-idf for ESP32-S3 installation and configuration =====
-  * installation of esp-idf development environment+  * [[https://docs.espressif.com/projects/esp-idf/en/stable/esp32/get-started/linux-setup.html|Installation of ESP-IDF and Tools on Linux - v6.1.0]] 
 +<code> 
 +$ ssh jdambors@rpi 
 +</code> 
 +  * [[https://docs.espressif.com/projects/esp-idf/en/stable/esp32/get-started/macos-setup.html|Installation of ESP-IDF and Tools on macOS - v6.1.0]] 
 +  * [[https://docs.espressif.com/projects/esp-idf/en/stable/esp32/get-started/linux-macos-setup-legacy.html|Legacy installation of esp-idf development environment - v5.5.1]]
 <code> <code>
 $ mkdir ~/esp $ mkdir ~/esp
Line 20: Line 49:
 <code> <code>
 $ cd ~/projects.local/elektro/pq-anal/fw/pqa $ cd ~/projects.local/elektro/pq-anal/fw/pqa
 +</code>
 +  * activate build environment - v5.5.1
 +<code>
 $ . ~/esp/esp-idf/export.sh $ . ~/esp/esp-idf/export.sh
 +</code>
 +  * activate build environment - v6.1.0
 +<code>
 +$ . ~/.espressif/tools/activate_idf_v6.1.sh
 +</code>
 +  * proceed with pqa project configuration
 +<code>
 $ vim main/idf_component.yml $ vim main/idf_component.yml
 $ cat main/idf_component.yml $ cat main/idf_component.yml
Line 28: Line 67:
 espressif/esp-dsp: '*' espressif/esp-dsp: '*'
 $ idf.menuconfig $ idf.menuconfig
 +  * Partition Table ---> Partition Table (Single factory app (large), no OTA)
   * Serial flasher config ---> Flash size (8MB)   * Serial flasher config ---> Flash size (8MB)
   * Component config ---> ESP PSRAM ---> [*] Support for external, SPI-connected RAM   * Component config ---> ESP PSRAM ---> [*] Support for external, SPI-connected RAM
Line 48: Line 88:
  
 ===== AC sensors ===== ===== AC sensors =====
-<tikzjax> +
-\usetikzlibrary{circuitikz} +
-\begin{circuitikz} +
-    \draw (0,0) to[R, l=$R_1$] (2,0) +
-              to[C, l=$C_1$] (2,2) +
-              to[V, l=$V_s$] (0,2) -- (0,0); +
-\end{circuitikz} +
-</tikzjax>+
 ==== 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}}$$
projects/power_quality_analyzer.1760078233.txt.gz · Last modified: (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0