This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
en:tech:powermeter [2021/01/21 11:40] – [Controler Setup] bullar | en:tech:powermeter [2022/09/23 14:37] – bullar | ||
---|---|---|---|
Line 15: | Line 15: | ||
The first task is to investigate into the S0 interface and then make it available for evaluation in our home WiFi. Let's take a look at the S0 signal, which comes from a three-phase meter: | The first task is to investigate into the S0 interface and then make it available for evaluation in our home WiFi. Let's take a look at the S0 signal, which comes from a three-phase meter: | ||
- | {{: tech: s0_signal.png? | + | {{ : |
There are pulses of approx. 44ms and the interval between the pulses reflects the current consumption. In the example it is 19.25 seconds. According to the device specification, | There are pulses of approx. 44ms and the interval between the pulses reflects the current consumption. In the example it is 19.25 seconds. According to the device specification, | ||
Line 48: | Line 48: | ||
{{ : | {{ : | ||
- | ===== Programmierung | + | ===== Programming (ESPEasy)===== |
After the hardware has been created, we still have to program the ESP module. As already mentioned, the PowerMeter is based on [[https:// | After the hardware has been created, we still have to program the ESP module. As already mentioned, the PowerMeter is based on [[https:// | ||
Line 83: | Line 83: | ||
On this tab we only have to switch on the pull-ups at the inputs used. | On this tab we only have to switch on the pull-ups at the inputs used. | ||
- | {{: | + | {{ : |
==== Device Setup ==== | ==== Device Setup ==== | ||
Line 89: | Line 89: | ||
Next we need a device that measures and stores the time between pulses. This can be achieved via the Devices tab. A separate device is required for each S0 input. Here is just one input shown in my solution. | Next we need a device that measures and stores the time between pulses. This can be achieved via the Devices tab. A separate device is required for each S0 input. Here is just one input shown in my solution. | ||
- | {{: | + | {{ : |
Incidentally, | Incidentally, | ||
Here are the settings for the pulse counter: | Here are the settings for the pulse counter: | ||
- | {{: | + | {{ : |
Now we have a connection to the MQTT server and we can determine the consumption. What is missing is the flow control for MQTT. There are rules for this within ESPEasy: To do this, copy the following code into rules set 1. | Now we have a connection to the MQTT server and we can determine the consumption. What is missing is the flow control for MQTT. There are rules for this within ESPEasy: To do this, copy the following code into rules set 1. | ||
Line 111: | Line 111: | ||
The PowerMeter has been running for 2 months without any problems and is transmitting the data. A typical consumption curve looks like this (screen shot from my own // | The PowerMeter has been running for 2 months without any problems and is transmitting the data. A typical consumption curve looks like this (screen shot from my own // | ||
- | {{:tech:consumption.png? | + | {{ :tech:verbrauch.png? |
The peaks include the oven, stove and kettle. The regular pulses come from the fridge/ | The peaks include the oven, stove and kettle. The regular pulses come from the fridge/ |