Difference between revisions of "Automatic window blinds"

From Hackerspace ACKspace
Jump to: navigation, search
(the project)
m (removed outdated message (it annoyed me))
 
(6 intermediate revisions by 3 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.  
  
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.
+
Some ideas to work out:  
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 :)
+
*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]  
- [[User:Vicarious|Vicarious]] 08:44, 10 March 2011 (CET)
+
*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
  
== intro ==
+
== specs  ==
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 :)
+
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.
  
== the project ==
+
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 stuff works more or less. Now it's time to optimize/automate.
 
  
Some ideas to work out:
+
=== console  ===
* 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
 
Describe your plans on the [[Talk:Automatic_window_blinds|discussion tab]], so we can execute them here
 
  
== specs ==
+
[[Image:Windowblinds console front.jpg]] [[Image:Windowblinds console back.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 buttons work as followed:
  
=== console ===
+
*^-.- Rotate left (keep small opening but block sun)
[[File:windowblinds_console_front.jpg]]
+
*-.-^ Rotate completely right, closing the blinds
[[File:windowblinds_console_back.jpg]]
+
*<||> Rotate and open blinds/stops actions upon release
 +
*|><| Rotate and close blinds/stops actions upon release
  
The buttons work as followed:
+
=== relay box  ===
* ^-.- 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 ===
+
[[Image:Windowblinds relay box.jpg]]  
[[File:windowblinds_relay_box.jpg]]
 
  
 
The turn left/right buttons were extended to a relay box  
 
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.)
+
(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.  
[[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.
 
  
This unit is missing a (fairly common, 12VDC) power supply. The current rating is marked on the socketed relays.
+
This unit is missing a (fairly common, 12VDC) power supply. The current rating is marked on the socketed relays.  
  
=== blinds ===
+
=== 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&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 ===
+
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
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]]
+
*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!
  
The top connector (close to the ceiling) is used as input, while the bottom header is connected to the next set of blinds.
+
=== motor unit  ===
  
[[File:windowblinds_motor_pcb.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).  
  
The PCB has several easy identifyable components on it, for example:
+
[[Image:Windowblinds chain module.jpg]]
*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)
+
The top connector (close to the ceiling) is used as input, while the bottom header is connected to the next set of blinds.
*a [http://en.wikipedia.org/wiki/Rectifier voltage rectifier], the big black thing below the shiney capacitor
+
 
 +
[[Image: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 [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/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'.
  
=== pinout ===
+
All pinouts are connector side, not print side
Warning: colors/pins are not verified yet, but can easily be derived from the switch panelThe current colors might need swapping in pairs of two, due to the layout of the box header.
+
<pre>Daisy chain pin socket (both are similar, but some pins might not be 'chained'
 +
2  10
 +
.-----.
 +
|:::::|
 +
'-- --'
 +
  1  9
  
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'.
+
Main controller pin socket
 +
2      18 
 +
.---------.
 +
|:::::&nbsp;:::|
 +
'-- ------'
 +
1      17
  
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),
+
Box header (cables and remote)
 +
10
 +
.-----.
 +
|:::::|
 +
'--_--'
 +
2  8
 +
</pre>
 +
<br>
  
Assuming that pin 1 (purple), is the bottom left pin, this should mean that:
+
{| class="wikitable"
#(purple) power A (ground?)
+
|+ window blind control layout
#(black) power A
+
|-
#(orange) switch common
+
! scope="col" | pin  
#(blue) Rotate CCW -.-^
+
! scope="col" | color
#pink) NC
+
! scope="col" | indicator
#(gray) Rotate CW ^-.-
+
! scope="col" | function
#(yellow) open |><|
+
! scope="col" | remark
#(green) close <||>
+
|-
#(brown) power B (VCC?)
+
| 1  
#(white) power B
+
| 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;?  
 +
|
 +
|
 +
|}
  
Has anyone looked at the motor drive side of the power supply? Do the blinds run on stepper motors or DC?
+
<br> The two motors are regular DC motors with on each side an end switch.
  
In either case, 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)
+
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)

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)