Difference between revisions of "Automatic window blinds"

From Hackerspace ACKspace
Jump to: navigation, search
(relay box)
m (removed outdated message (it annoyed me))
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{Project
 
{{Project
|State=Active
+
|Featured=No
 +
|State=Impossible
 
|Members=xopr
 
|Members=xopr
 
|Description=Connect and interface the existing window blinds
 
|Description=Connect and interface the existing window blinds
 +
|Picture=Windowblinds_motor_pcb.jpg
 
}}
 
}}
== disclaimer ==
+
== disclaimer ==
 +
 
 
{{InfoBox
 
{{InfoBox
|Title=NOTE: The first blind (in the lounge) is intentionally disconnected: it doesn't slide properly, and it will only get worst if it is still controlled.
+
|Title=NOTE: These window blinds were located in the very first space where we moved out of in 2012
Also, the last blind (near the soldering table) is disconnected: I guess the chain slipped off and it doesn't durn. I'm going to try and fix it: To be continued.
+
}}
}}
+
 
 +
== intro  ==
 +
 
 +
The first space had 8 windows with a width of a little less than 1.80m per window, each with a motorized window blind mechanism. This would be an opportunity to automate this system to our needs.
 +
 
 +
Last time, [[User:Eracoon|eracoon]] and [[User:Coolepascal|CoolePascal]] were helping out, so they deserve credits here (correct [[User:Xopr|xopr]] if I'm wrong :)
 +
 
 +
== the project  ==
 +
 
 +
The stuff worked more or less. Now it's time to optimize/automate.  
 +
 
 +
Some ideas to work out:
 +
 
 +
*Control it with [http://www.arduino.cc/ Arduino]+[http://www.arduino.cc/en/Main/ArduinoEthernetShield Ethernet Shield] or [http://shop.myavr.com/index.php?sp=article.sp.php&artID=100065 MyEthernet]
 +
*Put on the letters ACKspace
 +
*Make the blinds individually controllable
 +
*Install a string of individually controllable LED strings on each blind, making the windows a mini-Blinkenlights array.  
 +
*your creativity here
 +
 
 +
== specs  ==
 +
 
 +
Unfortunately, the cables are cut, probably somewhere in the basement, by estimating where the signaling cable leaves; you can see the white cable going into the metal conduit on the far right side of the windowed wall. It then goes down left of the second last concrete pillar, where it disappears.
  
Before starting to tear things apart, make note that the hire contract states that we are not allowed to make changes (i.e. structural) to the building.
+
Each blind has its own transformer right behind the motor on the right side of the window, labeled as a 12v 1.3A (it's an unstabalized one), which plugs into the system as a 3.5mm jack plug (be *careful when unplugging* this, because jack plugs short momentarily)  
Therefore we need to inform the building manager what needs to be done to fix the blinds, first.
 
Contact one of the [[Special:SearchByProperty/Role/Board|board members]], or [[User:Xopr|Xopr]] before grabbing the soldering iron ;)
 
  
The contract also states that small technical maintenance must be performed by the tenants themselves. Large technical problems must be reported to the front desk. Fixing the window blinds, is this considered small or large technical maintenance? I'll ask Camelot :)
+
=== console  ===
- [[User:Vicarious|Vicarious]] 08:44, 10 March 2011 (CET)
 
  
== intro ==
+
[[Image:Windowblinds console front.jpg]] [[Image:Windowblinds console back.jpg]]
The space has 8 windows with a width of a little less than 1.80m per window, each with a motorized window blind mechanism.
 
This is an opportunity to automate this system to our needs.
 
  
Last time, [[user:eracoon|eracoon]] and [[user:coolepascal|CoolePascal]] were helping out, so they deserve credits here (correct me if I'm wrong :)
+
The buttons work as followed:  
  
== the project ==
+
*^-.- Rotate left (keep small opening but block sun)
The stuff works more or less.  Now it's time to optimize/automate.
+
*-.-^ Rotate completely right, closing the blinds
 +
*<||> Rotate and open blinds/stops actions upon release
 +
*|><| Rotate and close blinds/stops actions upon release
  
Some ideas to work out:
+
=== relay box  ===
* Control it with [http://www.arduino.cc/ Arduino]+[http://www.arduino.cc/en/Main/ArduinoEthernetShield Ethernet Shield] or [http://shop.myavr.com/index.php?sp=article.sp.php&artID=100065 MyEthernet]
 
* Put on the letters ACKspace
 
* Make the blinds individually controllable
 
* your creativity here
 
Describe your plans on the [[Talk:Automatic_window_blinds|discussion tab]], so we can execute them here
 
  
== specs ==
+
[[Image:Windowblinds relay box.jpg]]
Unfortunately, the cables are cut, probably somewhere in the basement, by estimating where the signaling cable leaves; you can see the white cable going into the metal conduit on the far right side of the windowed wall. It then goes down left of the second last concrete pillar, where it disappears.
 
  
Each blind has its own transformer right behind the motor on the right side of the window, labeled as a 12v 1.3A (it's an unstabalized one), which plugs into the system as a 3.5mm jack plug (be *careful when unplugging* this, because jack plugs short momentarily)
+
The turn left/right buttons were extended to a relay box
  
=== console ===
+
(come to think of it, they start rotating upon a pulse, which will eventually close them, so this setup is at least peculiar.) [[User:Stoney3K|Stoney3K]] suggests this setup is a cross-linked set of 12VDC relays in a set/reset flip-flop configuration, meaning the relay will latch when you push the 'close' button, but release once power is disengaged through the motor control or end stop switch.  
[[File:windowblinds_console_front.jpg]]
 
[[File:windowblinds_console_back.jpg]]
 
  
The buttons work as followed:
+
This unit is missing a (fairly common, 12VDC) power supply. The current rating is marked on the socketed relays.
* ^-.- Rotate left (keep small opening but block sun)
 
* -.-^ Rotate completely right, closing the blinds
 
* <||> Rotate and open blinds/stops actions upon release
 
* |><| Rotate and close blinds/stops actions upon release
 
  
=== relay box ===
+
=== blinds  ===
[[File:windowblinds_relay_box.jpg]]
 
  
The turn left/right buttons were extended to a relay box (come to think of it, they start rotating upon a pulse, which will eventually close them, so this setup is at least peculiar.
+
The blinds open up from the center. Note that the string at window 4 is fubar: better not use the open function because you won't be able to close it anymore. To demount the blinds, do the following
  
[[User:Stoney3K | Stoney3K]] suggests this setup is a cross-linked set of 12VDC relays in a set/reset flip-flop configuration, meaning the relay will latch when you push the 'close' button, but release once power is disengaged through the motor control or end stop switch.
+
*unplug the power supply
 +
*unplug the jack connector and box headers
 +
*with grace, bend the plastic sheets 45° towards you, use a fingernail to open up the clip a bit, and you'll be able to remove the sheet easily
 +
*repetition is inevitable
 +
*press firm on each of the two metal clips on the back of the rail, while holding that&nbsp;;)
 +
*..  
 +
*profit!
  
This unit is missing a (fairly common, 12VDC) power supply. The current rating is marked on the socketed relays.
+
=== motor unit ===
  
=== blinds ===
+
The blinds signaling system uses a daisy-chaining plug-on module (it's two double sided prints soldered on top of each other) with two 10 pins box headers (see picture).  
The blinds open up from the center.  Note that the string at window 4 is fubar: better not use the open function because you won't be able to close it anymore.
 
To demount the blinds, do the following
 
* unplug the power supply
 
* unplug the jack connector and box headers
 
* with grace, bend the plastic sheets 45&deg; towards you, use a fingernail to open up the clip a bit, and you'll be able to remove the sheet easily
 
* repetition is inevitable
 
* press firm on each of the two metal clips on the back of the rail, while holding that ;)
 
* ..
 
* profit!
 
  
=== motor unit ===
+
[[Image:Windowblinds chain module.jpg]]
The blinds signaling system uses a daisy-chaining plug-on module (it's two double sided prints soldered on top of each other) with two 10 pins box headers (see picture).
 
  
[[File:windowblinds_chain_module.jpg]]
+
The top connector (close to the ceiling) is used as input, while the bottom header is connected to the next set of blinds.  
  
The top connector (close to the ceiling) is used as input, while the bottom header is connected to the next set of blinds.
+
[[Image:Windowblinds motor pcb.jpg]]
  
[[File:windowblinds_motor_pcb.jpg]]
+
The PCB has several easy identifyable components on it, for example:  
  
The PCB has several easy identifyable components on it, for example:
+
*a PIC processor (the big IC with the sticker)  
*a PIC processor (the big IC with the sticker)
+
*a motor driver IC (most likely [http://en.wikipedia.org/wiki/H_bridge H-bridge], that silly looking IC)  
*a motor driver IC (most likely [http://en.wikipedia.org/wiki/H_bridge H-bridge], that silly looking IC)
+
*a [http://en.wikipedia.org/wiki/Rectifier voltage rectifier], the big black thing below the shiney capacitor  
*a [http://en.wikipedia.org/wiki/Rectifier voltage rectifier], the big black thing below the shiney capacitor
 
 
*a [http://en.wikipedia.org/wiki/Voltage_regulator voltage regulator] LM series (not LM317 though, can't remember), the small black thing below the shiney capacitor
 
*a [http://en.wikipedia.org/wiki/Voltage_regulator voltage regulator] LM series (not LM317 though, can't remember), the small black thing below the shiney capacitor
  
Also, the unit has two DC motors and 4 end-detectors (microswitches)
+
Also, the unit has two DC motors and 4 end-detectors (microswitches)  
 +
 
 +
=== pinout  ===
 +
 
 +
Warning: colors are not verified yet, but are plausible to be correct. The current colors might need swapping in pairs of two, due to the layout of the box header.
 +
 
 +
Also, timings can be off, but are reasonable guidelines.
 +
 
 +
From the relay box, the rightmost relay connecting the blue and orange wires do the 'clockwise' turning, while the second right one (using white and brown wires) do 'counter clockwise'.
 +
 
 +
All pinouts are connector side, not print side
 +
<pre>Daisy chain pin socket (both are similar, but some pins might not be 'chained'
 +
2  10
 +
.-----.
 +
|:::::|
 +
'-- --'
 +
1  9
 +
 
 +
Main controller pin socket
 +
2      18 
 +
.---------.
 +
|:::::&nbsp;:::|
 +
'-- ------'
 +
1      17
  
=== pinout ===
+
Box header (cables and remote)
Warning: colors/pins are not verified yet, but can easily be derived from the switch panel.  The current colors might need swapping in pairs of two, due to the layout of the box header.
+
1  10
 +
.-----.
 +
|:::::|
 +
'--_--'
 +
2  8
 +
</pre>
 +
<br>
  
From the relay box, the rightmost relay connecting the blue and orange wires do the 'clockwise' turning, while the second right one (using white and brown wires) do 'counter clockwise'.
+
{| class="wikitable"
 +
|+ window blind control layout
 +
|-
 +
! scope="col" | pin
 +
! scope="col" | color
 +
! scope="col" | indicator
 +
! scope="col" | function
 +
! scope="col" | remark
 +
|-
 +
| 1
 +
| white
 +
| V<sub>IN</sub>
 +
| unsure; possibly to power the driver IC
 +
| driver side: connected through the 8-pin jumper in the daisy-chain module,<br>remote side: connected with pin 2
 +
|-
 +
| 2
 +
| brown
 +
| V<sub>IN</sub>
 +
| unsure; possibly to power the driver IC
 +
| driver side: connected through the 3-pin jumper in the daisy-chain module,<br>remote side: connected with pin 1
 +
|-
 +
| 3
 +
| green
 +
| template broken?{{!}} {{!}}&gt; &lt;{{!}}
 +
| rotates to 20°(CCW), closes blinds and rotates to 0°
 +
| momentary switch style<br>actuation time: 3.5s, 6s and 2s
 +
|-
 +
| 4
 +
| yellow
 +
| template broken?{{!}} &lt;{{!}} {{!}}&gt;
 +
| rotates to 180°(CW), back to 160°(CCW) and opens blinds
 +
| momentary switch style<br>actuation time: 5.5s, 1.5s and 5.5s
 +
|-
 +
| 5
 +
| gray
 +
| ^-.-
 +
| closes and rotates CW to 160°<br>alternatively, rotates to 20° and back to 160°
 +
| continuous switch (until end stop switch)<br>runs for 5.5s and 4.5s (alternatively, 7s)
 +
|-
 +
| 6
 +
| pink
 +
| NC
 +
|
 +
| Not connected
 +
|-
 +
| 7
 +
| blue  
 +
| -.-^
 +
| closes and rotates CCW to 0°
 +
| continuous switch (until end stop switch)<br>runs for 5.5s and 1.5s
 +
|-
 +
| 8
 +
| orange  
 +
| V<sub>EE</sub>/GND
 +
| switch common (ground)
 +
| emittor side of the transistors to be connected
 +
|-
 +
| 9
 +
| black
 +
| GND
 +
| unsure; possibly to power the driver IC
 +
| driver side: connected through the 3-pin jumper in the daisy-chain module,<br>remote side: connected with pin 10
 +
|-
 +
| 10
 +
| purple
 +
| GND
 +
| unsure; possibly to power the driver IC
 +
| driver side: connected through the 8-pin jumper in the daisy-chain module,<br>remote side: connected with pin 9
 +
|-
 +
| 11
 +
| -
 +
| NC
 +
| -
 +
| No pin
 +
|-
 +
| 12
 +
| -
 +
| NC
 +
| -
 +
| No pin
 +
|-
 +
| 13
 +
| -
 +
| &nbsp;?
 +
|
 +
|
 +
|-
 +
| 14
 +
| -
 +
| V<sub>CC</sub>
 +
|
 +
| useful for connecting custom circuitry<br>Note: this could also be something like {{~|busy}}
 +
|-
 +
| 15
 +
| -
 +
| GND
 +
|
 +
| useful for connecting custom circuitry
 +
|-
 +
| 16
 +
| -
 +
| V<sub>CC</sub>
 +
|
 +
| useful for connecting custom circuitry<br>Note: this could also be something like {{~|busy}}
 +
|-
 +
| 17
 +
| -
 +
| &nbsp;?
 +
|
 +
|
 +
|-
 +
| 18
 +
| -
 +
| &nbsp;?
 +
|
 +
|
 +
|}
  
Following the connections on the button console PCB, you can derive that pins 1+2 (purple and black) and 9+10 (brown and white) suggest power supply (not sure if it is in- or output),
+
<br> The two motors are regular DC motors with on each side an end switch.
  
Assuming that pin 1 (purple), is the bottom left pin, this should mean that:
+
I'd like to draft something up with a simple ATMEGA168 and some MOSFETs to drive the motors directly and keep the system calibrated (positionally) using the end stop switches. Using some RS422 receivers we could control the whole lot directly from any UART-capable serial device and set the blinds in any arbitrary position we want. [[User:Stoney3K|Stoney3K]] 23:24, 26 November 2011 (CET)
#(purple) power A (ground?)
 
#(black) power A
 
#(orange) switch common
 
#(blue) Rotate CCW -.-^
 
#pink) NC
 
#(gray) Rotate CW ^-.-
 
#(yellow) open |><|
 
#(green) close <||>
 
#(brown) power B (VCC?)
 
#(white) power B
 

Latest revision as of 11:23, 15 November 2018

Project: Automatic window blinds
Featured: No
State Impossible
Members xopr
GitHub No GitHub project defined. Add your project here.
Description Connect and interface the existing window blinds
Picture
Windowblinds motor pcb.jpg

disclaimer

NOTE: These window blinds were located in the very first space where we moved out of in 2012

intro

The first space had 8 windows with a width of a little less than 1.80m per window, each with a motorized window blind mechanism. This would be an opportunity to automate this system to our needs.

Last time, eracoon and CoolePascal were helping out, so they deserve credits here (correct xopr if I'm wrong :)

the project

The stuff worked more or less. Now it's time to optimize/automate.

Some ideas to work out:

  • Control it with Arduino+Ethernet Shield or MyEthernet
  • Put on the letters ACKspace
  • Make the blinds individually controllable
  • Install a string of individually controllable LED strings on each blind, making the windows a mini-Blinkenlights array.
  • your creativity here

specs

Unfortunately, the cables are cut, probably somewhere in the basement, by estimating where the signaling cable leaves; you can see the white cable going into the metal conduit on the far right side of the windowed wall. It then goes down left of the second last concrete pillar, where it disappears.

Each blind has its own transformer right behind the motor on the right side of the window, labeled as a 12v 1.3A (it's an unstabalized one), which plugs into the system as a 3.5mm jack plug (be *careful when unplugging* this, because jack plugs short momentarily)

console

Windowblinds console front.jpg Windowblinds console back.jpg

The buttons work as followed:

  • ^-.- Rotate left (keep small opening but block sun)
  • -.-^ Rotate completely right, closing the blinds
  • <||> Rotate and open blinds/stops actions upon release
  • |><| Rotate and close blinds/stops actions upon release

relay box

Windowblinds relay box.jpg

The turn left/right buttons were extended to a relay box

(come to think of it, they start rotating upon a pulse, which will eventually close them, so this setup is at least peculiar.) Stoney3K suggests this setup is a cross-linked set of 12VDC relays in a set/reset flip-flop configuration, meaning the relay will latch when you push the 'close' button, but release once power is disengaged through the motor control or end stop switch.

This unit is missing a (fairly common, 12VDC) power supply. The current rating is marked on the socketed relays.

blinds

The blinds open up from the center. Note that the string at window 4 is fubar: better not use the open function because you won't be able to close it anymore. To demount the blinds, do the following

  • unplug the power supply
  • unplug the jack connector and box headers
  • with grace, bend the plastic sheets 45° towards you, use a fingernail to open up the clip a bit, and you'll be able to remove the sheet easily
  • repetition is inevitable
  • press firm on each of the two metal clips on the back of the rail, while holding that ;)
  • ..
  • profit!

motor unit

The blinds signaling system uses a daisy-chaining plug-on module (it's two double sided prints soldered on top of each other) with two 10 pins box headers (see picture).

Windowblinds chain module.jpg

The top connector (close to the ceiling) is used as input, while the bottom header is connected to the next set of blinds.

Windowblinds motor pcb.jpg

The PCB has several easy identifyable components on it, for example:

  • a PIC processor (the big IC with the sticker)
  • a motor driver IC (most likely H-bridge, that silly looking IC)
  • a voltage rectifier, the big black thing below the shiney capacitor
  • a voltage regulator LM series (not LM317 though, can't remember), the small black thing below the shiney capacitor

Also, the unit has two DC motors and 4 end-detectors (microswitches)

pinout

Warning: colors are not verified yet, but are plausible to be correct. The current colors might need swapping in pairs of two, due to the layout of the box header.

Also, timings can be off, but are reasonable guidelines.

From the relay box, the rightmost relay connecting the blue and orange wires do the 'clockwise' turning, while the second right one (using white and brown wires) do 'counter clockwise'.

All pinouts are connector side, not print side

Daisy chain pin socket (both are similar, but some pins might not be 'chained'
 2   10
.-----.
|:::::|
'-- --'
 1   9

Main controller pin socket
 2       18   
.---------.
|::::: :::|
'-- ------'
 1       17

Box header (cables and remote)
 1   10
.-----.
|:::::|
'--_--'
 2   8


window blind control layout
pin color indicator function remark
1 white VIN unsure; possibly to power the driver IC driver side: connected through the 8-pin jumper in the daisy-chain module,
remote side: connected with pin 2
2 brown VIN unsure; possibly to power the driver IC driver side: connected through the 3-pin jumper in the daisy-chain module,
remote side: connected with pin 1
3 green |> <| rotates to 20°(CCW), closes blinds and rotates to 0° momentary switch style
actuation time: 3.5s, 6s and 2s
4 yellow <| |> rotates to 180°(CW), back to 160°(CCW) and opens blinds momentary switch style
actuation time: 5.5s, 1.5s and 5.5s
5 gray ^-.- closes and rotates CW to 160°
alternatively, rotates to 20° and back to 160°
continuous switch (until end stop switch)
runs for 5.5s and 4.5s (alternatively, 7s)
6 pink NC Not connected
7 blue -.-^ closes and rotates CCW to 0° continuous switch (until end stop switch)
runs for 5.5s and 1.5s
8 orange VEE/GND switch common (ground) emittor side of the transistors to be connected
9 black GND unsure; possibly to power the driver IC driver side: connected through the 3-pin jumper in the daisy-chain module,
remote side: connected with pin 10
10 purple GND unsure; possibly to power the driver IC driver side: connected through the 8-pin jumper in the daisy-chain module,
remote side: connected with pin 9
11 - NC - No pin
12 - NC - No pin
13 -  ?
14 - VCC useful for connecting custom circuitry
Note: this could also be something like busy
15 - GND useful for connecting custom circuitry
16 - VCC useful for connecting custom circuitry
Note: this could also be something like busy
17 -  ?
18 -  ?


The two motors are regular DC motors with on each side an end switch.

I'd like to draft something up with a simple ATMEGA168 and some MOSFETs to drive the motors directly and keep the system calibrated (positionally) using the end stop switches. Using some RS422 receivers we could control the whole lot directly from any UART-capable serial device and set the blinds in any arbitrary position we want. Stoney3K 23:24, 26 November 2011 (CET)