Accumulated some information from internet circuitry, controllers, various examples. As a confirmation of my small developing the project, decided to write an article ...
So we have: router dir-320 (with dd-wrt, the installation process described in the previous article about dir-320 + C), the controller ATmega8535, a small control circuit for optodriver, object management (reading lamps, power audio, home water heater), a little wires soldering iron, FREE time.
What I would like to receive: software power management objects that feed from ~ 220 V.
Proper management of the facility as follows:
Mobile phone-> mobile browser-> wifi (mobile) -> wifi (router dir-320) -> set lightpd-> handler to perl-> uart (router) -> uart (controller mega8535) -> control signal (+5 controller) -> control signal (+5 optodrayvera) -> control signal (~ 220 optodriver) -> object management.
In this scheme can be replaced with «Mobile phone-> mobile browser-> wifi (mobile) ->» on a laptop, work PC and TP.
Also has the ability to manage through the wan port connected to the Inet Network, again by reference to lightpd.
What + this scheme:
- No need to get out of bed for the inclusion of blackouts, TC management with a laptop or a mobile.
- There is a possibility to saving by switch off / on the water heater, even if you're not at home — through the Net.
- Integrated on / off devices (coming to the house, you can pre-enable such light wherever necessary. Including teapot before joining)
- Often forget to disconnect the device from the network before leaving. This is possible at any time.
What — this scheme:
- Maybe not quite convenient to get or keep a hand every once in a mobile phone for on/off light. But this is solved by parallel turning optodriver with switch light.But, again, will not turn off remotely if it enabled.
- Each device is an additional wire and a device for optodraiver. The wires need to get by secured to the wall or hide in the wall, which entails a change of wallpaper ))))) Optodriver also need to get by hiding in the socket, God forbid, if there is enough room)
- Exception when MOBILE, laptop does not turn on the computer broke. Solved only parallel connection of a physical means of control.