logo elektroda
logo elektroda
X
logo elektroda

Remote controlled WiFi socket with power measurement - Piri

(Sponsored) TechEkspert 12531 24
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • Remote controlled WiFi socket with power measurement - Piri
    Piri made it available to us for testing remote controlled socket WiFi 2.4GHz to measure the power consumed by the connected device. In the video you will find the results of the socket tests, we will also take a look inside the housing.
    The control of switching on the connected device and the reading of power consumption is possible thanks to the smartphone application: Piri smart home .
    The socket is compact and ready to use out of the box, it can switch powers up to 3kW, while the application guides you through the process of connecting to your home WiFi network. We set up an account in the operator's cloud in the application using the e-mail address we have. We put the device into pairing mode by holding the button for 5s, then the LED will start flashing quickly. In order for the application to connect the socket to our WiFi network, broadcasting of the network SSID should be started on the AP, and the socket's MAC must be on the list of devices allowed to connect to our WiFi AP.

    Remote controlled WiFi socket with power measurement - Piri Remote controlled WiFi socket with power measurement - Piri Remote controlled WiFi socket with power measurement - Piri Remote controlled WiFi socket with power measurement - Piri

    DEVICE CONTROLS

    We can control the device connected to the socket:
    - manually with a button on the socket housing,
    - from anywhere in the world where we have access to the Internet, using the application on a smartphone,
    -using schedules of switching on and off, as well as a timer configured by the application.
    The schedules set in the application are launched in the operator's cloud and the socket will be switched regardless of whether our smartphone and application have an internet connection. The condition for remote control of the socket is its continuous connection to the Internet.

    OPERATION AND CONSTRUCTION OF THE NEST:





    The application is convenient to use, but minor adjustments would be needed, e.g. polonization of messages in the operation log and increasing the resolution of measurement points on the time axis.

    Remote controlled WiFi socket with power measurement - Piri Remote controlled WiFi socket with power measurement - Piri Remote controlled WiFi socket with power measurement - Piri

    It is worth taking a look at the Piri YT channel, you will find there materials about both the WiFi socket and, for example, a wireless camera:
    https://www.youtube.com/watch?v=q1VYP0bVcg8

    The socket, when powered by ~230.8VAC, consumes 3.14mA with the relay off and 6.73mA with WiFi activity, while 9.44mA with the relay on and 11.64mA with WiFi activity.

    Comparison of the indications of the device with the bulb connected is 158W in the application on the smartphone and 148W from the indications of the connected multimeters.
    Connecting the iron gave an indication in the application of 1092W, multimeter indications are 1013W.
    Connecting a 1uF capacitor gave an indication of 0W, while the ammeter indicated 73mA way to go! the socket actually indicates active power .
    A PF (power factor) measurement would also be useful.

    Remote controlled WiFi socket with power measurement - Piri

    We look inside the socket and the thoughtful compact design immediately catches the eye. It is easy to locate the measuring resistor and the WiFi module.

    Remote controlled WiFi socket with power measurement - Piri Remote controlled WiFi socket with power measurement - Piri Remote controlled WiFi socket with power measurement - Piri

    The WiFi module is based on the Mediatek MT5931 chip (802.11n 2.4HGz) and ARM MC101, after a while of searching you can find information about the module in the network: Micro UART To WiFi Module . The WiFi antenna is made in the form of a wire section - there is room for development in the direction of a PCB or ceramic antenna.

    Remote controlled WiFi socket with power measurement - Piri

    On the board you will find a 250V/16A relay controlling the connected device, a switching power supply based on the LNK306N, the HLW8012 power measurement system and the STM8 8S003FP6 microcontroller. More about the power measurement system can be found, for example, here: HLW8012 .

    Remote controlled WiFi socket with power measurement - Piri Remote controlled WiFi socket with power measurement - Piri

    Where do you see a use for a remote-controlled WiFi socket with power measurement?

    Personally, I see an application in the control of electric heating and air conditioning (provided that the air conditioner will start after powering up). Power metering can help you optimize your energy costs, while remote control and scheduling can help you stay in control of your connected device. During an unexpected change in the weather or when plans change, the socket could turn on the heating or air conditioning and prepare the house for our return.
    There are days when such a socket would be useful to run an overflow coffee machine in the kitchen, when the alarm clock in the bedroom does not let us sleep :)
    - of course, you should properly "arm" such a coffee machine the day before ...

    An interesting development of the design would be the possibility of indicating in the application, apart from active power/energy, other parameters, e.g. power factor, mains voltage, current consumed by the receiver, counting inductive and capacitive reactive energy. Even if the values were approximate as in simple energy meters: measurement of active, reactive and apparent power that would be an interesting feature. Perhaps such functionality can be added by changing the firmware and by expanding the application?

    Remote controlled WiFi socket with power measurement - Piri

    We tested before wireless outdoor WiFi camera also shared by Piri.

    [ADVERTISING COLLABORATION]

    Cool? Ranking DIY
    About Author
    TechEkspert
    Editor
    Offline 
    TechEkspert wrote 6253 posts with rating 4910, helped 16 times. Been with us since 2014 year.
  • ADVERTISEMENT
  • #2 17512441
    subribe
    Level 11  
    The downside in such devices is that they cover two sockets, and in triple ones, 3 sockets.
  • #3 17512542
    Szyszkownik Kilkujadek
    Level 37  
    It is a pity that it is not possible to control via the website.
  • #4 17512568
    Piri Polska

    Level 8  
    subribe wrote:
    The downside in such devices is that they cover two sockets, and in triple ones, 3 sockets.

    This socket does not cover two sockets
    the socket is 78mm high and 67mm wide
    Standard frame for the socket is 86 mm, in the case of frames where several sockets are installed, the area for the socket is 74 mm
    The problem can only be when a double socket is mounted in a single box, as in the photo
    Remote controlled WiFi socket with power measurement - Piri
  • #5 17513100
    TechEkspert
    Editor
    Is there a chance that in the future firmware / application update will add voltage, current and PF measurement functions?

    If you have ideas for additional tests and trials, you can write in the topic, maybe some of them can be implemented. Similarly in the earlier material with the camera.
  • #6 17513302
    Szyszkownik Kilkujadek
    Level 37  
    I suggest checking:
    1. Will the socket remember the settings after programming the timer and a power failure in the mains?
    2. As above, except that there is no wi-fi after power is restored
  • #7 17513909
    wniedzie
    Level 14  
    quick research and it looks like the uC + radio module is http://www.hi-flying.com/hf-lpt100. For me, the basic information is: Is there an alternative, open firmware that will allow you to integrate with anything without the need for the manufacturer's cloud?
  • ADVERTISEMENT
  • #8 17517891
    TechEkspert
    Editor
    @Sunday according to the module description, it is "UART to Wi-Fi", i.e. it is very possible that all the logic sits in the ST microcontroller. I think it will be difficult to use anything other than the manufacturer's cloud. I discovered a curiosity, the WiFi module displays the WEB page on port 80. Access to this page is admin / admin. Our AP password is written there, so it may be some attack vector on the socket or network with which it is connected. It's worth fixing it up.

    Remote controlled WiFi socket with power measurement - Piri

    @szyszkownik Kilkujadek these are interesting questions, I did tests.
    1. "Will the socket remember the settings after programming the timer and power failure in the network?"
    here I had no doubts, this is a cloud device and it will definitely work, connect to WiFi and download settings.

    The course of the test:
    - we set the timer in the application
    - the relay has been turned on
    - we disconnect the power from the socket
    - we power it up again
    - the device has been connected to WiFi and the relay has been turned on
    - the activation time in the timer has passed and the relay has been turned off

    No surprise, the device is controlled from the cloud.

    2. "As above, but additionally there is no wi-fi after power is restored"

    There was no chance here, but the result surprised me a lot.

    The course of the test:
    - we set the timer in the application, e.g. at 19:10 on and 19:20 off
    - we turn off the Wi-Fi AP
    -we are waiting
    -the socket switched the relay during its activation and deactivation!

    So someone had to predict such a situation and the microcontroller kept the switching on times from the cloud, and counts down the offline time.
    I am not sure what the time range of the correct operation of such a timer is, but it copes with no problems for short periods of time.

    Test excluding WiFi and power outlet.
    - we set timers in the application
    -we turn off WiFi
    - we disconnect the power from the device
    - we power the socket again
    -we are waiting
    nothing happens.

    This is normal, there is no RTC backup battery inside, and after restarting the power supply, there was no WiFi available and the socket could not synchronize the settings.

    @piri Poland I am quite intrigued by the possibility of updating the firmware and applications. Does the design of the device theoretically allow the expansion of measurement capabilities through firmware update? Mainly it is about current / voltage, PF / reactive power / cos phi. Such options in addition to active power.
  • #9 17518782
    Szyszkownik Kilkujadek
    Level 37  
    @TechEkspert thanks for taking the tests. The results surprise positively, because I was wondering if the socket would lose the settings after the restart. As you can see, it doesn't get lost. It only needs WiFi to set the current date and time.
    TechEkspert wrote:
    I discovered a curiosity, the WiFi module displays the WEB page on port 80

    Can I control the socket via this page?
  • ADVERTISEMENT
  • #10 17518821
    wniedzie
    Level 14  
    TechEkspert wrote:
    it is very possible that all the logic is in the ST microcontroller. I think it will be difficult to use anything other than the manufacturer's cloud

    I do not really understand. Since there is a microcontroller, the firmware can probably be uploaded to it. The more that it is based on the ARM core. You just need to find a Cossack to write it. Anybody? :)
  • #11 17519219
    katakrowa
    Level 23  
    wniedzie wrote:
    I do not really understand. Since there is a microcontroller, the firmware can probably be uploaded to it. The more that it is based on the ARM core. You just need to find a Cossack to write it. Anybody? :)

    It is probably easier to design such a device by yourself from "0" than to play in such combinations.
  • #12 17519239
    Szyszkownik Kilkujadek
    Level 37  
    There is no need to reinvent the wheel. There are already devices of this type that you can program according to your preferences. Working from cover to cover.
  • #13 17539945
    TechEkspert
    Editor
    @szyszkownik Kilkujadek the fact that the socket synchronized after restarting via WiFi is of course on +, I was more surprised that the programmed sequence of switching on and off was performed after the WiFi disappeared (probably it works in a limited time range ...).

    The WEB interface looks like the interface of the WiFi-UART converter, so you cannot control the socket, only set the WiFi connection parameters.

    @Sunday this board with ARM is a WiFi-UART converter, therefore my suspicion that all the logic of the socket control is in the ST microcontroller, the WiFi-UART board is probably only for ST communication with the cloud.
  • #14 17543669
    Anonymous
    Level 1  
  • #15 17545042
    kowal011
    Level 21  
    Nice, beautiful, but the price of PLN 169 discredits this device in my "intelligent apartment". Sonoff POW is cheaper, and the option of an all-plug instead of a box on the cable is not worth overpaying PLN 120.
  • ADVERTISEMENT
  • #16 17545352
    Anonymous
    Level 1  
  • #17 17546678
    TechEkspert
    Editor
    @Erbit it looks like one contact is disconnecting. Maybe there is a chance to present the solution you did in Articles , measurement and control are one thing, the description shows that you have added data analysis and control on this basis in the future.

    However, what Piri hides is a question for Piri ;)

    On the one hand, easy commissioning and control will be appreciated by users counting on plug & play, while the possibility of local control and possibly API access will be appreciated by another group of recipients. It looks like it's best to have both in your product.
  • #18 17546836
    Anonymous
    Level 1  
  • #19 17546900
    Szyszkownik Kilkujadek
    Level 37  
    For comparison, for PLN 49 in Biedronka you can buy a WiFi socket, but without timers. Only on / off.
  • #20 17547642
    piotrku
    Level 16  
    subribe wrote:
    The downside in such devices is that they cover two sockets, and in triple ones, 3 sockets.


    Just put such a clever socket in one of the end sockets on a wall or strip and they will never obstruct more than two.

    I see a more serious problem:
    If the condition of work is constant access to the Internet, then in the event of a network access interruption that occurs after switching on the receiver, we cannot turn it off (remote option). And since the socket carries 3kW it can be hot.

    WOW! however, the producer embraced such a scenario - bravo.

    Added after 4 [minutes]:

    Piri Polska wrote:
    subribe wrote:
    The downside in such devices is that they cover two sockets, and in triple ones, 3 sockets.

    This socket does not cover two sockets


    When plugged into a power strip connected to a contact, it covers more than one of the sockets in the strip as much as possible. But something for something.
  • #21 17549674
    TechEkspert
    Editor
    Good thing there is a variety of devices of this type on the market and they are available at different prices.

    @szyszkownik Kilkujadek Do you have this socket from Bierdonka, maybe you can put the material, what is its internal structure?
    Does this socket measure the power consumed by the connected device?
  • #22 17550398
    kowal011
    Level 21  
    Erbit wrote:
    thank you for pointing this out
    Here you are.
  • #23 17553815
    Szyszkownik Kilkujadek
    Level 37  
    @TechEkspert I don't have this outlet. But I have read the description on the case and they don't mention the measurements there.
  • #24 17554171
    tikooo
    Level 11  
    Are there flush-mounted sockets like standard ones so that nothing sticks out? one that can fit into a can?
  • #25 17554232
    Szyszkownik Kilkujadek
    Level 37  
    These specifically not. But there are manufacturers who offer solutions mounted in a box instead of a socket, or in a deep box under the socket.
ADVERTISEMENT