This project was made in 2013.
A friend of mine wanted to replace all his swing shutters by electrical ones, so he asked what was possible to automate them. As his home has unused accessible attic and because some holes already had to be drilled to bring the electricity to the new shutter, I suggested him to use shutter switches which support remote control through wires (I love wire).
His installer only had available SIMU Cegeo shutter switches. These models have a one wire bus to allow a central control from a master switch.
Once all the shutters were finally installed, he gave me one off this switch to understand how it works.
As everything that pass through my hand, I need to disassemble it to see how it works.
This switch is composed of a little transformer for power, a PIC16LF628A microcontroller from Microchip as brain, two relays to switch the motor and some passive components.
The installation documentation indicates that to be used as a standalone switch without remote control, the bus must be connected to the ground.
After some tests, when the bus is left unconnected, the switch is not working.
The multimeter indicates a 110V AC voltage on the bus (when not grounded), half of the 220V AC of the main voltage.
A test with a diode indicates that positive halfwave open the shutter and negative halfwave close the shutter.
So we have 4 orders :
- Grounded : Normal operation
- Positive halfwave : Open
- Negative halfwave : Close
- Unconnected : Stop / Inhibition of local command
I don't remember the exact value of the current drawn when the bus is grounded but it was few mA.
As each shutter must be individually controlled, the 5 shutter buses must be isolated from each other.
I made the following interface, with two ULN2803, 10 diodes, 10 relays and one fuse.
The simple schematic is above :
The resulting interface looked like this.
It is controlled by a Web Platform (http://dangerousprototypes.com/docs/Web_Platform) from Dangerous Prototype, the PIC which power this board was programmed to provide an HTML user interface which allows :
The final result was this one :
I made this simple HTML, Js interface, entirely hosted on the PIC. User interaction are sent through AJAX GET requests, so any other apps which can do GET request can control them.
For security reason, this interface is only available on the local network, it is remotely access with a VPN.
- Individually command each shutter individually
- A Group command
- Program automatic opening/closing at user defined times and days