This project is a component of a larger project: After many evenings stumbling through a dark house trying to find the main breaker I decided I needed a way to temporarily turn off electric wall heaters at times of high load. Our holiday house has a 40A main breaker and 120A of devices... You see the problem: On a cold night with lots of heating going you go to the kitchen to boil the kettle for a cuppa. And then everything goes dark...
The larger system monitors power usage and turns off the heaters when usage tops 35A, and brings them back on line when it is safe to do so.
Power monitoring and management is handled by a NodeMCU, the actual load switching is done by an AUD 60.- set of 5 remote power outlets, controlled by the NodeMCU.
This project just shows how to control the outlets from the NodeMCU, because once you can do that, the possibilities are endless.
Admittedly, time may have overtaken this project, as WiFi connected power outlets are now quite common. These could be used in a similar fashion without the hassle of needing to physically connect to a controller.
Interfacing with the transmitterSo far I have bought two different sets. They weren't identical, but very similar, and importantly they both used the same EV1527 OTP Encoder. (datasheet attached)Chances are that all remote powerpoint transmitters are organised the same way, with the same or similar encoder chips to which we can interface.
The encoder has 4 inputs representing a binary code. When one or more of the inputs inputs is high, the encoder combines the input code with a hardwired code recognized by the remotes and repeatedly transmits this on 433 Mhz (same as remote garage openers etc.).
In this case (see datasheet) K0-K2 are used to address up to 7 remotes, and K3 to indicate on/off.
The remote control circuitry runs off a single 12V supply, the NodeMCU has in internal 3.3V regulator. I elected to use a dual 6V supply (unregulated, a decent amount of ripple is ok). The NodeMCU is supplied from the positive supply, the remote control is supplied from +6V and -6V. Voltage translation is done with 4 PNP transistors which pull the encoder inputs up to 3.3V. This is sufficient to register as "high".
Wiring the remoteI wired it up by tracing the EV1527 inputs back to one of its connected diodes. I then remove the diode (to provide a larger area for soldering, and because I don't trust myself not to overheat the diode and maybe short-circuit it) and solder the wire in its place.








Comments