Difference between revisions of "Automatic window blinds"

From Hackerspace ACKspace
Jump to: navigation, search
m (set project picture)
m (removed outdated message (it annoyed me))
 
Line 1: Line 1:
 
{{Project
 
{{Project
 +
|Featured=No
 
|State=Impossible
 
|State=Impossible
 
|Members=xopr
 
|Members=xopr
Line 5: Line 6:
 
|Picture=Windowblinds_motor_pcb.jpg
 
|Picture=Windowblinds_motor_pcb.jpg
 
}}
 
}}
{{marked as outdated|These window blinds were located in the very first space where we moved out of in 2012}}
 
 
 
== 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.
 
 
}}  
 
}}  
 
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. 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 :) - [[User:Vicarious|Vicarious]] 08:44, 10 March 2011 (CET)
 
  
 
== intro  ==
 
== intro  ==
  
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.  
+
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 me if I'm wrong :)  
+
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 project  ==
  
The stuff works more or less. Now it's time to optimize/automate.  
+
The stuff worked more or less. Now it's time to optimize/automate.  
  
 
Some ideas to work out:  
 
Some ideas to work out:  

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)