(Created page with "<!-- Comments that appear only in the edit view are formatted like this. --> <!-- These comments are offered as an aid as you get started. Remove as you wish. --> <!-- next line ...")
 
(→‎Modifying the box: how to gallery)
(23 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Statusboxtop}}
{{Status-Prototype}}
{{Status-Verified|[[Queen's Solar Design Team]]}}
You can help Appropedia by contributing to the next step in this [[OSAT]]'s [[:Category:Status]]
{{boxbottom}}
<!-- Comments that appear only in the edit view are formatted like this. -->
<!-- Comments that appear only in the edit view are formatted like this. -->
<!-- These comments are offered as an aid as you get started. Remove as you wish. -->
<!-- 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 -->
<!-- next line is the code for inserting an image; delete if you don't have an image yet -->
[[File:Imageneeded.png|thumb|right|Sample photo caption.]]
[[File:Front Blinds.JPG|thumb|right|Front View of the box for Smart Motorized Blinds]]


<center>''You can put an abstract (a brief description of your project) here. ''</center>
<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>


== Introduction ==
== Introduction ==
<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 />
<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.
<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.


== 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 />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 />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 />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 />In order 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 />
<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.




To make bullets use the asterisk:
== Parts List ==
* Like this
<br />The following table outlines the approximate cost to build one set of blinds. Shipping costs are based on shipping to Kingston, Ontario.  
* and like this
** and two for the next indent
* and back to one...


== Project Goals ==
{| class="wikitable"
Describe project goals here.
|-
! 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
|
|}
 
<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.).


To make a numbered list use the pound sign:
# Like this
# and like this
# See [[Help:Contents]] for more formatting code.


== Design ==
== Construction ==
Describe your design here.
<br />There are three major steps in the physical construction of the blinds: creating the circuit, modifying the box and securing the components.
<br />
===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).


<!-- Here is a sample gallery.  -->
[[File:SmartBlinds2.png|thumb|right|Front View the box for Smart Motorized Blinds]]
<gallery caption="Sample gallery">
File:Imageneeded.png|Sample caption text.
File:Imageneeded.png|More sample caption text. This would look better with different images. :)
File:Imageneeded.png|Even more sample caption text.
</gallery>


=== next level heading ===
You may need deeper level headings.  Just keep adding equal signs to get that.


== Costs ==
=== Modifying the box ===
You may describe your costs here.
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:
{| class="wikitable"
 
|-
*One hole for each manual override switch (motor and reverse)
! header 1
*One hole for wiring the motor
! header 2
*Two holes to mount the motor
! header 3
*One hole for the master switch
|-
*One hole for the stereo jack
| row 1, cell 1
*As many holes as needed to secure the breadboard
| row 1, cell 2
 
| row 1, cell 3
In addition, there should also be a small hole in the lid of the box to fit in the photoresistor.
|-
| row 2, cell 1
| row 2, cell 2
| row 2, cell 3
|}
See [[Help:Tables]] and [[Help:Table examples]] for more.


== Discussion ==
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.  
Your discussion.


=== Next Steps ===
{{How to
The next steps.
|title=Smart Motorized Blinds Pictures
|header2=Description
|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.
|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.
|File:Motor Screws.JPG|||Screws used to attach the gear motor to the project box.
|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.
|File:Jackhole.JPG|||Hole in box drilled for access to the 3.5mm 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.
}}


== Conclusions ==
=== Securing the Components ===
Your conclusions.
<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.


== References ==
== Programming the Blinds ==
<!-- This code is for placing the citation you included above. If you did not use the <ref> code, please delete this. -->
<br />
<references/>
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:
<br />
<blockquote>
symbol Relay = B.6<br />
symbol Motor = B.0<br />
<br />
BEGIN:<br />
readadc C.0,b0<br />
b0 = b0*$2<br />
sertxd ("The temp is ",#b0,cr,lf)<br />
<br />
if b0 > 28 then goto CLOSE<br />
if b0< 28 then goto LIGHT<br />
goto BEGIN<br />
<br />
LIGHT:<br />
readadc C.1, b1<br />
sertxd ("The light level is ", #b1,cr,lf)<br />
if b1 > 60 then goto OPEN<br />
if b1 < 50 then goto CLOSE<br />
goto BEGIN<br />
<br />
OPEN:<br />
if b3 = 1 then goto BEGIN<br />
high Relay<br />
pause 10<br />
high Motor<br />
pause 6600<br />
low Motor<br />
pause 10<br />
low Relay<br />
let b3 = 1<br />
goto BEGIN<br />
<br />
CLOSE:<br />
if b3 = 2 then goto BEGIN<br />
high Motor<br />
pause 6150<br />
low Motor<br />
let b3 = 2<br />
goto BEGIN<br />
</blockquote>
<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).


== Contact details ==
== Contact details ==
Add your contact information.
Please visit our [http://qsdt.ca website] for more information about the Queen's Solar Design Team.  


<!-- Don't change the next line unless you intend to change the categorization -->
<!-- Don't change the next line unless you intend to change the categorization -->
<!-- Do add additional, appropriate categories.  See http://www.appropedia.org/Appropedia:CategoryTree for ideas. -->
<!-- Do add additional, appropriate categories.  See http://www.appropedia.org/Appropedia:CategoryTree for ideas. -->
== Future Projects ==
* Replicate with the open source [[Arduino]] microcontroller
[[Category:Projects]]
[[Category:Projects]]
[[category:energy conservation]]
[[category:green IT]]
[[category:Queens Green IT]]
[[category:How tos]]

Revision as of 00:29, 19 September 2011

Template:Statusboxtop Template:Status-Prototype Template:Status-Verified You can help Appropedia by contributing to the next step in this OSAT's Category:Status Template:Boxbottom


Front View of the box for Smart Motorized Blinds
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]

Introduction


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


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


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


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



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

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.

File:Back Blinds.JPG
Smart Motorized Blinds Pictures

Securing the Components


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


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:

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

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


Future Projects

  • Replicate with the open source Arduino microcontroller
Cookies help us deliver our services. By using our services, you agree to our use of cookies.