m (Text replacement - "| affiliations = " to "| organizations = ")
 
(30 intermediate revisions by 11 users not shown)
Line 1: Line 1:
<!-- Comments that appear only in the edit view are formatted like this. -->
[[File:Front Blinds.JPG|thumb|Front View of the box for Smart Motorized Blinds]]
<!-- These comments are offered as an aid as you get started. Remove as you wish. -->
<!-- next line is the code for inserting an image; delete if you don't have an image yet -->
[[File:Front Blinds.JPG|thumb|right|Front View of the box for Smart Motorized Blinds]]


<center>This prototype of smart motorized blinds was created by the Queen's Solar Design Team to put into a demonstration solar home. The prototype is based of the design from the  www.instructables.com user ''biochemtronics''.[http://www.instructables.com/id/Build-A-Motorized-Window-Blinds-Controller-For-Les/]</center>
{{Project data
| authors = Queen's Solar Design Team
| status = Prototyped, Verified
| verified-by = Queen's Solar Design Team
| cost = 88.86
| links = http://www.instructables.com/id/Build-A-Motorized-Window-Blinds-Controller-For-Les/
| location = Kingston, Canada
}}


== Introduction ==
This prototype of smart motorized blinds was created by the Queen's Solar Design Team to put into a demonstration solar home. The prototype is based of the design from the www.instructables.com user ''biochemtronics''.[http://www.instructables.com/id/Build-A-Motorized-Window-Blinds-Controller-For-Les/]
<br />Though there are many blinds on the market that come with motors, they are often very expensive and do not have automatic elements installed. It would be more cost-effective to install a custom motor attached to a circuit box able to control the tilt of manual blinds based on ambient settings. The goal of this project is to open the tilt of the blinds during the day and close them at night, allowing natural light to fill the house during the day and giving privacy in the evening. Additionally, these blinds will contain a temperature sensor to close the blinds if the interior becomes too warm.
 
<br />
Though there are many blinds on the market that come with motors, they are often very expensive and do not have automatic elements installed. It would be more cost-effective to install a custom motor attached to a circuit box able to control the tilt of manual blinds based on ambient settings. The goal of this project is to open the tilt of the blinds during the day and close them at night, allowing natural light to fill the house during the day and giving privacy in the evening. Additionally, these blinds will contain a temperature sensor to close the blinds if the interior becomes too warm.
<br />Automatic motorized blinds should be put on the south windows in a North American household as the south facade has more sun exposure. This placement will ensure that the blinds operate at the right times and will be able to measure the temperature due to the sun exposure more accurately. With the motorized blinds installed, it will be much easier to decorate the interior of the test house with living plants, while also eliminating the need to manually open the blinds for daily demonstration purposes.
 
Automatic motorized blinds should be put on the south windows in a North American household as the south facade has more sun exposure. This placement will ensure that the blinds operate at the right times and will be able to measure the temperature due to the sun exposure more accurately. With the motorized blinds installed, it will be much easier to decorate the interior of the test house with living plants, while also eliminating the need to manually open the blinds for daily demonstration purposes.


== Smart Blind Design ==
== Smart Blind Design ==
<br />The general design of the smart blind technology is based off of the schematic provided by a user on www.instructables.com named biochemtronics. Many of the components used in the original schematic were substituted to slightly different specifications, and to reduce shipping costs. One of the best designs for motorized blinds would be to create a box containing the circuitry and motor and simply attach the motor to the blinds via a hook. This will allow the smart blinds to be used on any set of venetian blinds.
<br />
<br />In order to control a motor based on light and temperature readings, a microcontroller is needed. The PICAXE controller was chosen to be the optimal microcontroller after assessing the required functionality and cost. Though the cheaper PICAXE-08m would be satisfactory for this project, the PICAXE-18m2 model was chosen just in case more inputs would be needed for future alterations of the project.
<br />
<br />There were two options to power the blinds: either to plug them into an electrical outlet via a transformer or to power it using batteries. To reduce the amount of installation required and the amount of wires needed for the design, the battery method was used. The PICAXE-18m2 microcontroller cannot support a voltage much higher than 5V, so if the batteries used exceeded 5V, a voltage regulator would be required. Using 4 AA batteries running through a 5V LM7805T voltage regulator powered the PICAXE controller, its outputs and the temperature sensor.
<br />
<br />To make testing of the blinds easier, a 3.5mm Serial Jack was incorporated into the schematic so that the PICAXE controller could be reprogrammed while inside the motorized blind box. This jack can be accessed without opening up the box. In addition, two buttons were put into the schematic as a manual override to open and close the blinds. Lastly, a master switch was installed to save battery life when the blinds are not in use.


<br>The general design of the smart blind technology is based off of the schematic provided by a user on www.instructables.com named biochemtronics. Many of the components used in the original schematic were substituted to slightly different specifications, and to reduce shipping costs. One of the best designs for motorized blinds would be to create a box containing the circuitry and motor and simply attach the motor to the blinds via a hook. This will allow the smart blinds to be used on any set of venetian blinds.
<br>
<br>In order to control a motor based on light and temperature readings, a microcontroller is needed. The PICAXE controller was chosen to be the optimal microcontroller after assessing the required functionality and cost. Though the cheaper PICAXE-08m would be satisfactory for this project, the PICAXE-18m2 model was chosen just in case more inputs would be needed for future alterations of the project.
<br>
<br>There were two options to power the blinds: either to plug them into an electrical outlet via a transformer or to power it using batteries. To reduce the amount of installation required and the amount of wires needed for the design, the battery method was used. The PICAXE-18m2 microcontroller cannot support a voltage much higher than 5V, so if the batteries used exceeded 5V, a voltage regulator would be required. Using 4 AA batteries running through a 5V LM7805T voltage regulator powered the PICAXE controller, its outputs and the temperature sensor.
<br>
<br>To make testing of the blinds easier, a 3.5mm Serial Jack was incorporated into the schematic so that the PICAXE controller could be reprogrammed while inside the motorized blind box. This jack can be accessed without opening up the box. In addition, two buttons were put into the schematic as a manual override to open and close the blinds. Lastly, a master switch was installed to save battery life when the blinds are not in use.


== Parts List ==
== Parts List ==
<br />The following table outlines the approximate cost to build one set of blinds. Shipping costs are based on shipping to Kingston, Ontario.  
 
<br>The following table outlines the approximate cost to build one set of blinds. Shipping costs are based on shipping to Kingston, Ontario.


{| class="wikitable"
{| class="wikitable"
|-
! Item
! Item
! Cost/Unit
! Cost/Unit
Line 122: Line 127:
| RONA
| RONA
|-
|-
| '''Subtotal'''
! Subtotal
|  
|
|  
|
| 58.10
| 58.10
|  
|
|-
|-
| Shipping
| Shipping
|  
|
|  
|
| 20.54
| 20.54
|  
|
|-
|-
| Tax
| Tax
|  
|
|  
|
| 10.22
| 10.22
|  
|
|-
|-
| '''Total'''
! Total
|  
|
|  
|
| 88.86
| 88.86
|  
|
|}
|}


<br />There are many assumptions to this price list. Firstly, it assumes that this is the first time using a PICAXE microcontroller. The PICAXE-18M2 comes with the programmable USB cable (which accounts for most of the starter kit's cost) and a few other useful components. If the USB cable is already available then there is no need to buy a starter pack, putting the total cost of the blinds closer to $50. Additionally, it assumes that there are blinds already available, a few common resistors (two 10k resistors and a 22k), wiring, soldering equipment, and some sort of project box (or box that can hold the circuitry.).
<br>There are many assumptions to this price list. Firstly, it assumes that this is the first time using a PICAXE microcontroller. The PICAXE-18M2 comes with the programmable USB cable (which accounts for most of the starter kit's cost) and a few other useful components. If the USB cable is already available then there is no need to buy a starter pack, putting the total cost of the blinds closer to $50. Additionally, it assumes that there are blinds already available, a few common resistors (two 10k resistors and a 22k), wiring, soldering equipment, and some sort of project box (or box that can hold the circuitry.).


== Construction ==


== Construction ==
<br>There are three major steps in the physical construction of the blinds: creating the circuit, modifying the box and securing the components.
<br />There are three major steps in the physical construction of the blinds: creating the circuit, modifying the box and securing the components.
<br>
<br />
 
===Creating the circuit===
=== Creating the circuit ===
<br /><br />Every prototype of motorized blinds will have a different layout of components, even with the same schematic, depending on the components at hand. The schematic can be viewed in the picture to the right. All connections are soldered on the breadboard. The black PCB shown in the pictures comes with the PICAXE starter kit ordered from Solarbiotics. It contains the Darlington array, serial jack and the PICAXE-18m2. There are pads on the PCB where the power is attached, as well as the microcontroller's inputs and outputs.
<br /><br />It is important to make sure that the two manual override buttons are on the opposite side of the breadboard as the rest of the circuit. These two buttons should be accessible from the outside of the box through a couple of drilled holes. In addition, a master switch was placed between the positive end of the 4xAA battery pack and the input of the voltage regulator (not shown in schematic).


[[File:SmartBlinds2.png|thumb|right|Front View the box for Smart Motorized Blinds]]
<br><br>Every prototype of motorized blinds will have a different layout of components, even with the same schematic, depending on the components at hand. The schematic can be viewed in the picture to the right. All connections are soldered on the breadboard. The black PCB shown in the pictures comes with the PICAXE starter kit ordered from Solarbiotics. It contains the Darlington array, serial jack and the PICAXE-18m2. There are pads on the PCB where the power is attached, as well as the microcontroller's inputs and outputs.
<br><br>It is important to make sure that the two manual override buttons are on the opposite side of the breadboard as the rest of the circuit. These two buttons should be accessible from the outside of the box through a couple of drilled holes. In addition, a master switch was placed between the positive end of the 4xAA battery pack and the input of the voltage regulator (not shown in schematic).


[[File:SmartBlinds2.png|thumb|Front View the box for Smart Motorized Blinds]]


=== Modifying the box ===
=== Modifying the box ===
<br /><br /><In order to make sure the motorized blinds box functions properly, it is important to strategically drill a few holes in the box. The box used in the prototype was left over from another project, and therefore has many holes that are not needed - the pictures should not be a model for aesthetics. The following is a list of holes needed to be drilled:
<br />
*One hole for each manual override switch (motor and reverse)
*One hole for wiring the motor
*Two holes to mount the motor
*One hole for the master switch
*One hole for the stereo jack
*As many holes as needed to secure the breadboard
<br /><br />
In addition, there should also be a small hole in the lid of the box to fit in the photoresistor.
<br /><br />
The GM3 DC motor comes with two holes in order to mount it. All that is needed to mount the motor is a washer, two machine screws and two bolts. To connect the box to the blinds, drill a hole through the motor axel and put and S-hook through to connect to the tilting mechanism of the venetian blinds. It may be required to drill a hole through the tilt rod of the blinds.
<br /><br />


<gallery caption="Smart Motorized Blinds Pictures">
In order to make sure the motorized blinds box functions properly, it is important to strategically drill a few holes in the box. The box used in the prototype was left over from another project, and therefore has many holes that are not needed - the pictures should not be a model for aesthetics. The following is a list of holes needed to be drilled:
File:Back Blinds.JPG|Back of the circuitry box. Note the Small hole for the photoresistor. Makeshift backing cut from spare plywood.
 
File:Inside.JPG|Inside the circuitry box of the motorized blinds
* One hole for each manual override switch (motor and reverse)
File:PICAXE PCB.JPG|Close-up view of the CHI030A PCB board. Houses a PICAXE-18M2 microcontroller and ULN2803A darlington array. Available from Solarbiotics in the PICAXE-18M2 starter pack.
* One hole for wiring the motor
File:Motor Screws.JPG|Screws used to attach the gear motor to the project box.
* Two holes to mount the motor
File:Motor Washer.JPG|Close up of motor attachment to the project box. Note the placement of the washer to make sure the motor is secure and lies parallel to the underside of the box.
* One hole for the master switch
File:Jackhole.JPG|Hole in box drilled for access to the 3.5mm stereo jack.
* One hole for the stereo jack
File:PhotoResistor.JPG|Photoresistor used to measure light. May be vaguely seen also in the view of the reverse side of the motorized blinds box. Black heat shrink tubing prevents accidental electrical connections and makes the resistor more rigid.
* As many holes as needed to secure the breadboard
</gallery>
 
In addition, there should also be a small hole in the lid of the box to fit in the photoresistor.
 
The GM3 DC motor comes with two holes in order to mount it. All that is needed to mount the motor is a washer, two machine screws and two bolts. To connect the box to the blinds, drill a hole through the motor axel and put and S-hook through to connect to the tilting mechanism of the venetian blinds. It may be required to drill a hole through the tilt rod of the blinds.
 
{{Step
| number = 1
| text = Back of the circuitry box. Note the Small hole for the photoresistor. Makeshift backing cut from spare plywood.
| image = File:Back Blinds.JPG
}}
 
{{Step
| number = 2
| text = Inside the circuitry box of the motorized blinds.
| image = File:Inside.JPG
}}
 
{{Step
| number = 3
| text = Close-up view of the CHI030A PCB board. Houses a PICAXE-18M2 microcontroller and ULN2803A darlington array. Available from Solarbiotics in the PICAXE-18M2 starter pack.
| image = File:PICAXE PCB.JPG
}}
 
{{Step
| number = 4
| text = Screws used to attach the gear motor to the project box.
| image = File:Motor Screws.JPG
}}
 
{{Step
| number = 5
| text = Close up of motor attachment to the project box. Note the placement of the washer to make sure the motor is secure and lies parallel to the underside of the box.
| image = File:Motor Washer.JPG
}}
 
{{Step
| number = 6
| text = Hole in box drilled for access to the 3.5mm stereo jack.
| image = File:Jackhole.JPG
}}
 
{{Step
| number = 7
| text = Photoresistor used to measure light. May be vaguely seen also in the view of the reverse side of the motorized blinds box. Black heat shrink tubing prevents accidental electrical connections and makes the resistor more rigid.
| image = File:PhotoResistor.JPG
}}


=== Securing the Components ===
=== Securing the Components ===
<br />
 
<br>
It is important to make sure there are as few moving parts within the box as possible. Anything that may be screwed in should be without compromising the circuit. The corners of the breadboard may be drilled and screwed into the box to prevent it from moving. If this is done, make sure that the circuit is not near any of the drilling areas. Tape may be used to keep the battery pack in place. It is very important that the wires of the photoresistor are long enough to let it protrude from the box, but do not touch. To solve this issue, heat shrink tubing was put on each individual photoresistor wire. If heat shrink tubing isn't available, electrical tape will suffice.
It is important to make sure there are as few moving parts within the box as possible. Anything that may be screwed in should be without compromising the circuit. The corners of the breadboard may be drilled and screwed into the box to prevent it from moving. If this is done, make sure that the circuit is not near any of the drilling areas. Tape may be used to keep the battery pack in place. It is very important that the wires of the photoresistor are long enough to let it protrude from the box, but do not touch. To solve this issue, heat shrink tubing was put on each individual photoresistor wire. If heat shrink tubing isn't available, electrical tape will suffice.


== Programming the Blinds ==
== Programming the Blinds ==
<br />
 
The software used to program the PICAXE may be downloaded here: http://www.rev-ed.co.uk/picaxe/. This software gives the option of using either textual BASIC to program the microcontroller or flowchart programming. The code to program the blinds is as follows:
The software used to program the PICAXE may be downloaded here: [https://web.archive.org/web/20110903015353/http://www.rev-ed.co.uk:80/picaxe/ http://web.archive.org/web/20110903015353/http://www.rev-ed.co.uk:80/picaxe/]. This software gives the option of using either textual BASIC to program the microcontroller or flowchart programming. The code to program the blinds is as follows:
<br />
 
<blockquote>
<code>
symbol Relay = B.6<br />
symbol Relay = B.6<br>
symbol Motor = B.0<br />
symbol Motor = B.0<br>
<br />
<br>
BEGIN:<br />
BEGIN:<br>
readadc C.0,b0<br />
readadc C.0,b0<br>
b0 = b0*$2<br />
b0 = b0*$2<br>
sertxd ("The temp is ",#b0,cr,lf)<br />
sertxd ("The temp is ",#b0,cr,lf)<br>
<br />
<br>
if b0 > 28 then goto CLOSE<br />
if b0 > 28 then goto CLOSE<br>
if b0< 28 then goto LIGHT<br />
if b0< 28 then goto LIGHT<br>
goto BEGIN<br />
goto BEGIN<br>
<br />
<br>
LIGHT:<br />
LIGHT:<br>
readadc C.1, b1<br />
readadc C.1, b1<br>
sertxd ("The light level is ", #b1,cr,lf)<br />
sertxd ("The light level is ", #b1,cr,lf)<br>
if b1 > 60 then goto OPEN<br />
if b1 > 60 then goto OPEN<br>
if b1 < 50 then goto CLOSE<br />
if b1 < 50 then goto CLOSE<br>
goto BEGIN<br />
goto BEGIN<br>
<br />
<br>
OPEN:<br />
OPEN:<br>
if b3 = 1 then goto BEGIN<br />
if b3 = 1 then goto BEGIN<br>
high Relay<br />
high Relay<br>
pause 10<br />
pause 10<br>
high Motor<br />
high Motor<br>
pause 6600<br />
pause 6600<br>
low Motor<br />
low Motor<br>
pause 10<br />
pause 10<br>
low Relay<br />
low Relay<br>
let b3 = 1<br />
let b3 = 1<br>
goto BEGIN<br />
goto BEGIN<br>
<br />
<br>
CLOSE:<br />
CLOSE:<br>
if b3 = 2 then goto BEGIN<br />
if b3 = 2 then goto BEGIN<br>
high Motor<br />
high Motor<br>
pause 6150<br />
pause 6150<br>
low Motor<br />
low Motor<br>
let b3 = 2<br />
let b3 = 2<br>
goto BEGIN<br />
goto BEGIN<br>
</blockquote>
</code>
<br />
 
Different PICAXE microcontrollers have different syntax for symbol names. Other than the symbol names, the code is universal for all PICAXE microcontrollers. Programming the PICAXE requires power to the microcontroller and the serial output and inputs wired as shown in the schematic (the voltage divider to the Serial IN is important).
Different PICAXE microcontrollers have different syntax for symbol names. Other than the symbol names, the code is universal for all PICAXE microcontrollers. Programming the PICAXE requires power to the microcontroller and the serial output and inputs wired as shown in the schematic (the voltage divider to the Serial IN is important).


== References ==
== Contact details ==
<!-- This code is for placing the citation you included above. If you did not use the <ref> code, please delete this. -->
 
<references/>
Please visit our [https://web.archive.org/web/20190124073808/http://www.qsdt.ca/ website] for more information about the Queen's Solar Design Team.
 
== Future Projects ==


== Contact details ==
* Replicate with the open source [[Arduino]] microcontroller
Please visit our website [http://qsdt.ca] for more information about the Queen's Solar Design Team.
 
{{Page data
| keywords = energy conservation, green it, blinds, motorized blinds, automatic blinds, temperature sensor, Microcontroller, Darlington Array, Stereo Jack, GM3 Gear Motor, Proto Board, Photoresistor, Temperature Sensor, Devices, How tos, Energy efficiency
| sdg = SDG07 Affordable and clean energy, SDG11 Sustainable cities and communities
| authors = Queen's Solar Design Team
| published = 2011
| organizations = Queen's University, Queens Green IT
}}


<!-- Don't change the next line unless you intend to change the categorization -->
[[Category:Devices]]
<!-- Do add additional, appropriate categories.  See http://www.appropedia.org/Appropedia:CategoryTree for ideas. -->
[[Category:How tos]]
[[Category:Projects]]
[[Category:Energy efficiency]]

Latest revision as of 15:04, 28 February 2024

Front View of the box for Smart Motorized Blinds
FA info icon.svg Angle down icon.svg Project data
Authors Queen's Solar Design Team
Location Kingston, Canada
Status Prototyped
Verified
Verified by Queen's Solar Design Team
Cost 88.86
Links http://www.instructables.com/id/Build-A-Motorized-Window-Blinds-Controller-For-Les/
OKH Manifest Download

This prototype of smart motorized blinds was created by the Queen's Solar Design Team to put into a demonstration solar home. The prototype is based of the design from the www.instructables.com user biochemtronics.[1]

Though there are many blinds on the market that come with motors, they are often very expensive and do not have automatic elements installed. It would be more cost-effective to install a custom motor attached to a circuit box able to control the tilt of manual blinds based on ambient settings. The goal of this project is to open the tilt of the blinds during the day and close them at night, allowing natural light to fill the house during the day and giving privacy in the evening. Additionally, these blinds will contain a temperature sensor to close the blinds if the interior becomes too warm.

Automatic motorized blinds should be put on the south windows in a North American household as the south facade has more sun exposure. This placement will ensure that the blinds operate at the right times and will be able to measure the temperature due to the sun exposure more accurately. With the motorized blinds installed, it will be much easier to decorate the interior of the test house with living plants, while also eliminating the need to manually open the blinds for daily demonstration purposes.

Smart Blind Design[edit | edit source]


The general design of the smart blind technology is based off of the schematic provided by a user on www.instructables.com named biochemtronics. Many of the components used in the original schematic were substituted to slightly different specifications, and to reduce shipping costs. One of the best designs for motorized blinds would be to create a box containing the circuitry and motor and simply attach the motor to the blinds via a hook. This will allow the smart blinds to be used on any set of venetian blinds.

In order to control a motor based on light and temperature readings, a microcontroller is needed. The PICAXE controller was chosen to be the optimal microcontroller after assessing the required functionality and cost. Though the cheaper PICAXE-08m would be satisfactory for this project, the PICAXE-18m2 model was chosen just in case more inputs would be needed for future alterations of the project.

There were two options to power the blinds: either to plug them into an electrical outlet via a transformer or to power it using batteries. To reduce the amount of installation required and the amount of wires needed for the design, the battery method was used. The PICAXE-18m2 microcontroller cannot support a voltage much higher than 5V, so if the batteries used exceeded 5V, a voltage regulator would be required. Using 4 AA batteries running through a 5V LM7805T voltage regulator powered the PICAXE controller, its outputs and the temperature sensor.

To make testing of the blinds easier, a 3.5mm Serial Jack was incorporated into the schematic so that the PICAXE controller could be reprogrammed while inside the motorized blind box. This jack can be accessed without opening up the box. In addition, two buttons were put into the schematic as a manual override to open and close the blinds. Lastly, a master switch was installed to save battery life when the blinds are not in use.

Parts List[edit | edit source]


The following table outlines the approximate cost to build one set of blinds. Shipping costs are based on shipping to Kingston, Ontario.

Item Cost/Unit Quantity Cost Distributor
PICAXE-18M Starter Pack 30.99 1 30.99 Solarbiotics
PICAXE-18M Microcontroller 5.45 1 5.45 Solarbiotics
ULN2003A Darlington Array 0.66 1 0.66 Digikey
3.5mm Stereo Jack 2.28 1 2.28 Digikey
P2 Relay V23079 (PB1059-ND) 2.42 1 2.42 Digikey
GM3 Gear Motor 5.75 1 5.75 Solarbiotics
4x1.5V AA Batter Holder (BH24AAW-ND) 1.22 1 1.22 Digikey
LM7805T Voltage Reg 5V 1.87 1 1.87 Digikey
Small Proto Board 0,92 1 0.92 Digikey
8 Pin Dip Socket 0.47 1 0.47 Digikey
16 Pin DIP Socket 0.71 2 1.42 Digikey
Photoresistor (PDV-P9008-ND) 1.66 1 1.66 Digikey
Temperature Sensor LM35 1.79 1 1.79 Digikey
SPST switch 0.60 2 1.20 Solarbiotics
Blinds 24.99 0 24.99 RONA
Subtotal 58.10
Shipping 20.54
Tax 10.22
Total 88.86


There are many assumptions to this price list. Firstly, it assumes that this is the first time using a PICAXE microcontroller. The PICAXE-18M2 comes with the programmable USB cable (which accounts for most of the starter kit's cost) and a few other useful components. If the USB cable is already available then there is no need to buy a starter pack, putting the total cost of the blinds closer to $50. Additionally, it assumes that there are blinds already available, a few common resistors (two 10k resistors and a 22k), wiring, soldering equipment, and some sort of project box (or box that can hold the circuitry.).

Construction[edit | edit source]


There are three major steps in the physical construction of the blinds: creating the circuit, modifying the box and securing the components.

Creating the circuit[edit | edit source]



Every prototype of motorized blinds will have a different layout of components, even with the same schematic, depending on the components at hand. The schematic can be viewed in the picture to the right. All connections are soldered on the breadboard. The black PCB shown in the pictures comes with the PICAXE starter kit ordered from Solarbiotics. It contains the Darlington array, serial jack and the PICAXE-18m2. There are pads on the PCB where the power is attached, as well as the microcontroller's inputs and outputs.

It is important to make sure that the two manual override buttons are on the opposite side of the breadboard as the rest of the circuit. These two buttons should be accessible from the outside of the box through a couple of drilled holes. In addition, a master switch was placed between the positive end of the 4xAA battery pack and the input of the voltage regulator (not shown in schematic).

Front View the box for Smart Motorized Blinds

Modifying the box[edit | edit source]

In order to make sure the motorized blinds box functions properly, it is important to strategically drill a few holes in the box. The box used in the prototype was left over from another project, and therefore has many holes that are not needed - the pictures should not be a model for aesthetics. The following is a list of holes needed to be drilled:

  • One hole for each manual override switch (motor and reverse)
  • One hole for wiring the motor
  • Two holes to mount the motor
  • One hole for the master switch
  • One hole for the stereo jack
  • As many holes as needed to secure the breadboard

In addition, there should also be a small hole in the lid of the box to fit in the photoresistor.

The GM3 DC motor comes with two holes in order to mount it. All that is needed to mount the motor is a washer, two machine screws and two bolts. To connect the box to the blinds, drill a hole through the motor axel and put and S-hook through to connect to the tilting mechanism of the venetian blinds. It may be required to drill a hole through the tilt rod of the blinds.

1
Back Blinds.JPG

Back of the circuitry box. Note the Small hole for the photoresistor. Makeshift backing cut from spare plywood.

2
Inside.JPG

Inside the circuitry box of the motorized blinds.

3
PICAXE PCB.JPG

Close-up view of the CHI030A PCB board. Houses a PICAXE-18M2 microcontroller and ULN2803A darlington array. Available from Solarbiotics in the PICAXE-18M2 starter pack.

4
Motor Screws.JPG

Screws used to attach the gear motor to the project box.

5
Motor Washer.JPG

Close up of motor attachment to the project box. Note the placement of the washer to make sure the motor is secure and lies parallel to the underside of the box.

6
Jackhole.JPG

Hole in box drilled for access to the 3.5mm stereo jack.

7
PhotoResistor.JPG

Photoresistor used to measure light. May be vaguely seen also in the view of the reverse side of the motorized blinds box. Black heat shrink tubing prevents accidental electrical connections and makes the resistor more rigid.

Securing the Components[edit | edit source]


It is important to make sure there are as few moving parts within the box as possible. Anything that may be screwed in should be without compromising the circuit. The corners of the breadboard may be drilled and screwed into the box to prevent it from moving. If this is done, make sure that the circuit is not near any of the drilling areas. Tape may be used to keep the battery pack in place. It is very important that the wires of the photoresistor are long enough to let it protrude from the box, but do not touch. To solve this issue, heat shrink tubing was put on each individual photoresistor wire. If heat shrink tubing isn't available, electrical tape will suffice.

Programming the Blinds[edit | edit source]

The software used to program the PICAXE may be downloaded here: http://web.archive.org/web/20110903015353/http://www.rev-ed.co.uk:80/picaxe/. This software gives the option of using either textual BASIC to program the microcontroller or flowchart programming. The code to program the blinds is as follows:

symbol Relay = B.6
symbol Motor = B.0

BEGIN:
readadc C.0,b0
b0 = b0*$2
sertxd ("The temp is ",#b0,cr,lf)

if b0 > 28 then goto CLOSE
if b0< 28 then goto LIGHT
goto BEGIN

LIGHT:
readadc C.1, b1
sertxd ("The light level is ", #b1,cr,lf)
if b1 > 60 then goto OPEN
if b1 < 50 then goto CLOSE
goto BEGIN

OPEN:
if b3 = 1 then goto BEGIN
high Relay
pause 10
high Motor
pause 6600
low Motor
pause 10
low Relay
let b3 = 1
goto BEGIN

CLOSE:
if b3 = 2 then goto BEGIN
high Motor
pause 6150
low Motor
let b3 = 2
goto BEGIN

Different PICAXE microcontrollers have different syntax for symbol names. Other than the symbol names, the code is universal for all PICAXE microcontrollers. Programming the PICAXE requires power to the microcontroller and the serial output and inputs wired as shown in the schematic (the voltage divider to the Serial IN is important).

Contact details[edit | edit source]

Please visit our website for more information about the Queen's Solar Design Team.

Future Projects[edit | edit source]

  • Replicate with the open source Arduino microcontroller
FA info icon.svg Angle down icon.svg Page data
Keywords energy conservation, green it, blinds, motorized blinds, automatic blinds, temperature sensor, microcontroller, darlington array, stereo jack, gm3 gear motor, proto board, photoresistor, temperature sensor, devices, how tos, energy efficiency
SDG SDG07 Affordable and clean energy, SDG11 Sustainable cities and communities
Authors Queen's Solar Design Team
License CC-BY-SA-3.0
Organizations Queen's University, Queens Green IT
Language English (en)
Related 0 subpages, 1 pages link here
Aliases Smart Motorized Blinds
Impact 964 page views
Created August 2, 2011 by Anonymous1
Modified February 28, 2024 by Felipe Schenone
Cookies help us deliver our services. By using our services, you agree to our use of cookies.