element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Project Videos
  • Challenges & Projects
  • element14 presents
  • Project Videos
  • More
  • Cancel
Project Videos
Documents Smart Windows and Blinds with Arduino and Raspberry Pi Pico -- Episode-652
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Project Videos to participate - click to join for free!
Related
EMI-Reduction-Techniques
Recommended
Engagement
  • Author Author: tariq.ahmad
  • Date Created: 2 May 2024 1:08 PM Date Created
  • Last Updated Last Updated: 2 May 2024 6:39 PM
  • Views 1936 views
  • Likes 9 likes
  • Comments 2 comments

Smart Windows and Blinds with Arduino and Raspberry Pi Pico -- Episode-652

Want to set up your own home automation? Do you want to be able to control your lights, or windows with a few clicks on your phone? You could run a sequence that turns off the lights when you fall asleep, or to prevent waking up in the middle of the night because your environment is too hot, and you want to open a window without getting up. Join Milos as he goes over simple ways to automate your home using an Arduino and Raspberry Pi. 

Watch the Video:

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

Download & Links | Bill of Material | Discussion

Be warned that this project can involve working with high voltages. If you are not experienced or qualified to do so, please do not attempt to replicate this project without guidance and assistance from a suitably qualified and competent person. 

Milos decides to focus on the bedroom, aiming for a routine that is suitable for getting ready for sleep, or waking up. In their ‘smart room concept’ we can see what he wants to control and how he intends to interact and control them. With separate nodes for each component, controlling window access, lighting along with sensors and the base server with communications. 

 image 

Milos has three main components to this project; these are a server and two nodes. Identifying that the server would benefit from being low power, Milos opts for a  Raspberry Pi 3B+ (though any Raspberry with a wireless LAN connection will work), while the nodes will be a Raspberry Pi Pico W and an Arduino MKR 1000 (both could be done with a Pi Pico W, but Milos notes that the Arduino has already been a part of the project for the past five years!). Going for a standard protocol for the components to talk together, Milos uses MQTT, with the server running Node Red. 

 image

With Milos’ decision to use MQTT it requires a broker which will be set up on the ‘server’. Using the Raspberry Pi 3B+ it will work as the message coordinator, so all communication goes through it. Any connected nodes can either subscribe or publish data to the ‘topics’ (which are like messaging channels) that the MQTT broker controls. You can find more information on setting up Node Red and Mosquitto for this project below, be sure to check the official documentation with the latest downloads. 

After setting up the broker Milos quickly has a way to receive commands on his nodes and a way of sending the sensor data to the server. 

 image

The Arduino Node 

Again, please be aware that this project can involve working with high voltages. If you are not experienced or qualified to do so, please do not attempt to replicate this project without guidance and assistance from a suitably qualified and competent person. 

Milos blogged about this part of  The Smart Room Project - Current Phase  in 2019 (code included in link) , using relays, motor control and blinds. This part of the project works by running a small server on the Arduino MKR1000 detecting requests and commands, the node also has a small infra-red receiver for infra-red remote control. 

{gallery}My Gallery Title

image

image

image 

Raspberry Pi Pico W Node for the Window Blinds 

On top of the existing project, this is the new addition that Milos will be adding to the room automation setup. This node will control the venetian blinds on both windows in the room, open the right window and monitor the ambient temperature, humidity, and CO2 levels. Milos mounted the node above his windows where the curtain will hide it which will also reduce the needed length of the cabling. 

 

{gallery}My Gallery Title

image

image

Controlling the Venetian Blinds 

Designing the actuator for the venetian blind control was an entirely new experience for Milos. The ones in the room operate by turning an axle a few times in either direction, changing the angle of the light blades of the blinds. To accomplish this, Milos decided to use a 360-degree servo to ensure control of the range of motion in either direction. Adding small dimples to the blind’s coupler, it then triggers a micro switch which is used as a makeshift encoder. 

{gallery}My Gallery Title

image

image

image

image

Setting up the Window Control 

Controlling the opening and closing of the window required setting up another actuator, deciding to use the same motor, but this time requiring linear motion. This required setting up a rock and pinion mounted onto the window frame. When activated, this causes the setup to move and open and close the window as it navigates the rack gear, also using a micro switch for limit detection 

{gallery}My Gallery Title

image

image

image

image

image

image

Setting up the Interface Control 

Since the server-side is programmed in Node Red, it has functional dashboard elements! Which are incredibly useful for making simple graphical interfaces. Milos wanted to be able to control everything in his room from his PC and his smart phone. By bookmarking the address to the dashboard, with its responsive design it can adapt suitably to both a desktop browser or a portrait layout without installing it as an app. 

{gallery}My Gallery Title

image

image

image

image

image

image

image

image

image

image

Overall, it provides a nice and presentable way to control lighting, windows and monitor the environment to ensure comfort all from the convenience of a computer or phone, potentially even away from home if necessary. So long as you take necessary security precautions of course! 

Is this something you would like to set up? Or have you already set up something like this yourself? 

Downloads & Links:

  • Download Code and CAD Files
  • Running on Raspberry Pi
  • Mosquitto Debian repository
  •  The Smart Room Project - Current Phase  

Bill of Material:

Product Name Manufacturer Quantity Buy Kit
RASPBERRY-PI SBC, Raspberry Pi Pico W, RP2040, ARM Cortex-M0+, 264kB RAM, 2MB Flash, Wifi, Micro-USB RASPBERRY-PI 1 Buy Now
MULTICOMP PRO 3D Printer Filament, 1.75 mm, White, EPLA, 1 kg MULTICOMP PRO 1 Buy Now
ARDUINO ABX00004 ARDUINO 1 Buy Now
VISHAY 4N27 VISHAY 3 Buy Now
RASPBERRY-PI RPI3-MODBP RASPBERRY-PI 1 Buy Now
SEEED STUDIO 103020136 SEEED STUDIO 1 Buy Now
SENSIRION SEK-SCD41-SENSOR SENSIRION 1 Buy Now
 

Additional Parts:

Continous (360 degree) Servo Motor
Micro Switches
Passive components like resistors, capacitors, header pins, perfboard
Cables
Screws like M3, M4, M5
Old 5V 2A Charger

element14 presents

element14 presents  |  About Milos Rasic |  Project Videos

  • diy smart home
  • Arduino home automation projects
  • Smart bedroom ideas
  • Smart room setup
  • e14p_Milos
  • DIY home technology
  • Arduino home control
  • arduino home automation
  • Home automation tutorial
  • Raspberry Pi automation
  • raspberry pi projects
  • Smart room automation guide
  • Arduino automation guide
  • Raspberry Pi home projects
  • Home automation with Node Red
  • friday_release
  • Raspberry Pi home automation tutorial
  • Share
  • History
  • More
  • Cancel
Actions
  • Share
  • More
  • Cancel
  • Sign in to reply
  • milosrasic98
    milosrasic98 over 1 year ago in reply to DAB

    Thanks, glad you like it!

    With the Pi 3 and Node Red my idea was to have an easily expandable system so I can easily add more nodes in other rooms, the yard and so on! I'll probably be adding some kind of an outside weather station next.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 1 year ago

    Very good build.

    You now have a basic control system for controlling or monitoring just about anything.

    Well done.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube