Instructables

Arduino controlled automated blinds with Web UI

Featured
Picture of Arduino controlled automated blinds with Web UI
This instructable is a detailed guide on how to build an automated controller to run a motor that can operate the opening and closing of blinds. The controller enables the blinds to open and close based on a schedule, room temperature and out door luminosity. The controller settings can be set up via a web UI which enables a user to open or close the blinds manually or place them on a schedule with certain parameters. 

This project will guide you through creating simple circuits for the sensors, hacking the motor shield so it can be stacked with the arduino and ethernet shield and implementation of the code (note all code is provided and is fully commented). The project is laid out in the following manner. First the controller and system will be constructed. Then the logic behind the code will be explained. The last page will contain the code and link to download so it can be installed on the arduino.

So I hope you enjoy this instructable, gain from it and most importantly have fun.

Table of contents:

1.Requirements and parts
2.Wiring the sensors.
3.Wiring the arduino and shields.
4.Hacking the motor shield.
5.Code logic.


 
Remove these adsRemove these ads by Signing Up

Step 1: Requirements and parts

This project is fairly simple to create and set up since the most difficult part, the code, is fully provided. The setting up the arduino and shields is fairly straight forward. Below is a list of parts you will need for this project. I have also listed the prices for these parts if you need do not have them. Most of these can be ordered from Adafruit, Sparkfun or the robotshop.

1. Arduino ($30)
2. Ethernet shield ($50)
3. Motor Shield ($20)
4. Analog temperature (TMP36)  sensor ($2)
5. Photocell ($1)
6. 20 pin 0.1" Female Headers ($3)
7. Breadboarding Wire Bundle (6)
8. Breadboard friendly 2.1mm DC Jack ($1)
9. 12 V Stepper Motor (14)
10. 100 ohm resistor
11. MicroSD card (1gb card is good and can be found for as little as $2).
12. 2 Full breadboards ($14)
13. 12V AC adapter. (powers the motor only)
14. battery pack for the arduino

Remember, all these parts can be used for other projects, so don't worry too much about the cost because you'll be able to use them in many more projects, unless of course you are gonna use this as a permanent installment.

Equipment needed
1.Soldering iron
2.Soldering Fan
3. Small screwdriver.
1-40 of 50Next »
motherprune1 month ago

Really good

Its interesting

Thats brilliant

gorgeddamp1 month ago



Thats extremely good

illrings1 month ago


Its incredible :)


Very good

headlymph2 months ago

great

tealrink2 months ago

NICE

grousebandit2 months ago


Its useful

harechubby2 months ago

amezing

clapfilk3 months ago

super

cheshirecorn3 months ago

Its striking

super

workexaminer3 months ago


Exceptional...!!

gazumpglue5 months ago

do you have the updated version of the code? because its not working it has alot of errors....any advised?

regaltaxlaw7 months ago
do you have the updated version of the code? because its not working it has alot of errors....any advised?
talhoo78627 months ago
do you have the updated version of the code? because its not working it has alot of errors....any advised?
draythomp1 year ago
Very nice job, and food for thought in the future. However, how the heck would one hook the servo to window blinds? Just wrapping the cord around the motor spindle won't do the job for very long. Using two power supplies makes it simple, but how many people have two outlets below the blind to plug in wall warts? One would have to use wall power since the servo would discharge a battery in a short time. I have to think of the aesthetics of a couple of wall warts plugged in below a window with the wires routing up the wall to a big ol' servo nailed somehow and attached to the cord or twist projection on the blind; especially since most wall warts are black.
FreedomToCreate (author)  draythomp1 year ago
Hey. If you connect the motor to a IKEA rollar blinds (come in various sizes and range from 10 to 20 dollars), the motors produces enough torque to rotate the shaft to open and close the blinds. As soon as I get time, I will upload a instructable on how to connect the motor to the blinds, but for now, experiment. As for the power required. A standard 9V power supply connected to the motor should last for a couple of weeks. I am working on a more efficient circuit design(the one given is extremely basic). Overall the conclusion is that this instructable is mostly an opportunity to experiment.
Hi, awesome tutorial,
did you get around on how to connect the motor to the blinds?
would be much appreciated,
thanks for your time. :)
Mariska Botha10 months ago
Very nice.
BunnyRoger10 months ago
Nice!!
Amanda Culbert10 months ago
Very cool, quite impressive.
MAApleton11 months ago
Very impressive. Thanks for sharing. Going into my Favorites list.
CountParadox11 months ago
Hey man, Whenever I try and upload the code, I'm given this error: Binary sketch size: 32,244 bytes (of a 32,256 byte maximum)
avrdude: verification error, first mismatch at byte 0x7800
0x4e != 0xff
avrdude: verification error; content mismatch

I don't have anything attached to the arduino at the moment, but this shouldnt cause any problems should it ? :c
THanks in advance c:
/fixedlibraryproblem
mmanville11 months ago
Have you finalized your design enough to post a video yet? Thanks.
ErikAndren1 year ago
Cool stuff but is the web and temperature stuff really necessary. Wouldn't it suffice with just the light sensor controlling the blinds?
hdutoit1 year ago
I have tried to download you code but have not been successful. Followed the link to download the code and installed iLivid, however is unable to download and reports an error. Your assistance will be appreciated.
Regards
H
FreedomToCreate (author)  hdutoit1 year ago
I tried the link on multiple computers and it works fine. Try using Firefox or Chrome. Here is the link again http://www.2shared.com/file/guPvu-HK/WindowBlindsSever1_4.html
great job man! really nice
This is great! I would love to see how you have attached it to your blinds and wall, or indeed where you have mounted the assembly!
codesck1 year ago
Hi, I am working on a project that using the same motor shield and a wifi shield. For hacking the motor shield from pin 12 to pin 9, is it possible to do the similar way for pin 7 as well? Because the wifi shield need to use pin 7 for socket connection.

Thanks
pepperm1 year ago
Thanks for the code but it is too big to fit into the ATMega328 Arduinos as featured in the Instructable. It will fit into the 1280 2560 based Arduino's because they have much more memory. I have even removed the Temperature sensing bits of code which involve floating point maths and the code still doesnt fit into the smaller Arduinos. So how did the author get it to work?
FreedomToCreate (author)  pepperm1 year ago
Hey, The code works out to about 32kb which fits perfectly onto an arduino uno R3 used in the instructable. The ATMega 328 have 32Kb of which 0.5 is used by the bootloader. What size is your compiler saying the code is?
Interesting because I dont believe that it says that an Uno is used, in the article. It just says Arduino and the actual Arduino is hidden under the Ethernet shield. When I compile for an Uno I get a sketch size of 32,188 bytes which fits, but when compiling for a Duemilanove w/Atmega328 the size is the same but the space available is 30,720 bytes so the project doesnt fit. I dont understand what the difference is. Anyone any clues please? Isn't the microntroller the same one? I actually have a Freeduino 328.
Very nice , I am looking forward to reading through your code . Thank you for share !
Build_it_Bob
pepperm1 year ago
How do you download the code from that god awfull download site?
All roads lead to an iLivid download or a bet 365 advertisement (for me) and nothing to the WindowBlindsSever1_4 code. The project looks really interesting but is worthless without the code to play with, so how do we get the code please?

ikohler1 year ago
What version of IDE did you use? I tried to use your code, but I'm getting some error during upload, when using 1.0 or 1.0.1 with Arduino Uno smd R2. Cheers
FreedomToCreate (author)  ikohler1 year ago
I have 1.0.1. What is the error that you are getting?
1-40 of 50Next »