Poem for a window



Poem for a Window is a project based on the fragile reality of living in confinement. It tries to encourage an healthy environment to it's user by monitoring and outputting information such as the air quality, the temperature and the humidity index. The project is embedded in a curtain that will open and close depending on the time of the day. The curtain is also the vector in wich the data is shared, using abstract form of communication such as light, the user will be able to inform itself on it's direct surronding.

The curtain is made for people who struggles with the actual context of being stuck inside, the lack of light and therefore vitamin D would already be a solid enouph argument for realising this project in my personnal case. To create an object that pull the user onto the external light is something that I consider very valuable. The ability to monitor and therefore adapt our environment is another very important aspect of the project, It gives insight on what's going on around you.

The reason on why now is a good time to generate this kind of tool is pretty easy to understand, but let me sum it up. It's now been a year since the whole world has "shut down". The human is a social species, not being able to see and interact with others is not easy for the mind, it becomes very easy in these circumstance to forget about our well being. Also the passage to telecommuting can be hard on people, working in front of a computer all day long is not healthy, without transport the routine of a worker or a student is now pretty much limited. Studies start to show that depression and anxiety is at an all time high due to these circumstance. To illustrate this, I used KFF , this non profit organisation gives insight on health policy analysis. Here are some stats that they shared on their platform.



You can find more information about this survey here.

On top of this worrying subject, another reason why I am drawn to this kind of project is the fact that in lots of nothern countries, we have what we called Seasonal Affective Dissorder (SAD) . This is mostly due to the lack of light that winter brings on us, it is a very serious issue that many falls victim of, including myself. The number one treatment for this issue is light therapy, the curtain is again made for the user to be drawn to light, to let him contemplate the outside world for a while before going back to it's inside activity. It is a form of light therapy that encourage the participant to experience light in a more concientous way.



Mechanism

First thing I had to do for my project was to design the mechanism that would open and close my curtain. To do so, I tried imagine what kind of mechanism could do the job, I wanted to keep the hardware as light as possible, I want the cost of my project to stay low and the parts to be easily avaible if someone want to reproduce the project. So I did a bit of sketching and achieve to find something that should work fairly well.

The idea is to have a geared motor that drives a single belt, the belt would then be attach to a rail that would drive the curtain. The weight of the curtain is not important since all the strenght will be supported by the rail.

For my first prototype I designed simple parts to test the whole design.

I needed two thing, First the part that would hold my motor, it's driver and the microcontroller controlling it. Second a simple pulley system on the other side of the window so that the belt would be able to easily turn on itself.

Also, I will make use of reed switches so that the motor knows when to stop when reaching the end of it's movement. Reedswitch are super easy to use, they are just magnet serve as a switch.

So I started the design using Fusion360. The pulley system was simple enoupgh to design, I just needed a 8mm bearing that would be inserted in a 3d printed chassis.



I used Cura to print the part on my Prusa Mk3 and the results were perfect, the snap is tight and solid enouph the bearing fits perfectly into the part.



After that I simply create a rectangle that will fit this part using a simple slot, the belt will pull the part into the slot so it dosent have to be super tight.

Once this was done I design the part that would hold the motor and the and the driver, again, the goal is not to have a final part here, just something that is functional for the first prototype. The most important thing here is that we need the center of the pulley to be at the same height that the motor gear.
I use 18mm birch plywood for this part, I create a simple 3D procketing toolpath for my CNC and was able to do the whole job using a 6mm endmill.





I fix everything unto a plank of wood to be able to debug and test the mechanism without having to go up onto the window, here how is the first prototype looks like.





Now I need to fit all of this in a nice package. For now the electronics are all over the place and the magnet are not set onto the belt. Also, I need to test the whole thing with a curtain on it to see how it reacts to weight.

Motor Control

The motor that I chose for my project is a simple DC geared motor that is set to turn at 64 RPM at 12 volts. To control the speed of a DC motor, you need to adjust the input voltage that is coming into the motor. A good technique for this is to use a pulse with modulation (PWM) signal.

PWM is a digital signal (HIGH or LOW) that you can vary by calculating the average value in a duty cycle. For exemple, if inside a cycle that has a minimum value of 0V and a maximum value of 12V, you pass 50% of your time on LOW and 50% on high, the average voltage will then be 6V. You can see it has simulating analog signal using digital I/O.

To be able to use pwm or any digital signal at all, you will need two things, a microcontroller that will be able to create the duty cycle, and a motor drive that will then be able to enable and disable the motor and also control the direction of your motor by inversing the current using an H-bridge. You can see the H-bridge as a switch that let the current flow in a particular way. You can easily see it in this picture.



In my case, I used an Arduino Uno for my microcontroller and the famous L298N as my driver. This driver is very inexpensive and is able to efficiently control a DC motor that doesn't require more than 46V. I will also need a simple photoresistor to analyse the amount of light that surrounds the curtain so that it is able to open and close depending on it.

A photoresistor is a variable resistor that decrease it's resistance with the more light it gets. works like a non mechanical potentiometer.

First thing I did was to design the schematic of the circuit, please keep in mind that I had no intention of manufacturing a PCB out of this, it is just a schematic map to help me with my connection.



Once the schematic was done, I was able to write the arduino code. I tried to make my program as clean as possible, and achieve to do so quite elegantly I think instead of using if statements like I usally do I decided to draw myself a State Diagram and exploit the switch function. I will explain this a bit later, for now let's look at the state Diagram.



The general idea is that my system will have four possible state, Open, Close, Opening and Closing. The instruction that will be send to the motor will depend on what state it actually is. This make thing very easy to understand and make the code very readable.

If you look at the code, you'll see that I use the enum definition to create 4 hidden integer that are disguised as strings, those string reprent my four possible state, then using the switch function, I can control the flow of my program using certain condition (case), in my particular situation, those case represent my current state. I absolutely love writting this program, it gave me great insight on how you can optimize your code using more obscure funtion.



Let's take a closer look at the L298N,

Sensors

For my input device, I want to be able to monitor 3 things, the temperature, the humidity index and the air quality. The most important data being the latter. Before doing anything, I needed to find the component that I will be using for my input system, I've decided to use a SDS011 particle analyser for my air quality.

Air quality is a tricky subject, lot's of variable make the air surrouding you good or bad, the one that I will be concentring on is the amount of particle in your space. Particles comes in different size and the smaller they get, the more problematic they become.



Our human body is able to reject most particles over 10 microns, with our body hair, mucus and other defense mechanism. The issues really start with the particules that are under 2.5 microns, these particules are small enouph to bypass our mechanism system and go deeper into our bodies, in our lung and even in our blood. These are the particules that we need to monitor.

They are multiple plateform that are made for compilling these data, also multiple citizen project and citizen sensors has been made to democratize these data. In the world of Fablabs the most popular one is the SmartCitizen kit from barcelona that compile a range of data like these in a very small and well done IOT kit. There is also our project (echofab) that uses cheaper sensor for a greater audience (Project Canari)



The SDS011 is an interesting sensor that output the density of 10 and 2.5 microns in our environment. To do so it uses a cycle of 1004 ms. The cycle needs 2ms to output the data at the end of it's analys, the rest of the time, it is looking for either high or low bytes. It is a digital sensor wich make it pretty interesting.





you can see here that for each xug/m3 the sensor will output HIGH 1 ms, this means that the maximum output would be 999 xug/m3. And it uses it's last 2 ms to output the data.



Exploring the output

Now I needed to think about the way that my curtain will look like and how it will output the data. My first Idea was to explore different possible outcome using small fabric swatches. This part is very stressful for me since I want to have a final result that looks good, but stay subtile and not too extravagant since this piece of fabric is meant to be part of the household. If I make this looks too aggressive I will get tired of it and ultimately will get rid of it. The objective is to make something subtile that will be able to communicate information without being intrusive.

One idea that Annie gave me is the fact that in nature, we often find beauty in things that are dying. A good exemple of that is in autumn when leaves takes beautiful colors before falling off, or when corals take vibrant colors in their last effort before letting go.



Starting from this concept, I could try to integrate element that intensify when the air quality around you is starting to get bad. This way, I could make sure that my curtain is minimalist and subile enouph and would only become extravagany when things are getting bad, wich would be a call to action.

I really enjoy digital embroidery, I think it is a interesting way to embellish fabrics without having to be an expert with working with textile. The first "swatch" that I tried was to draw a repetion pattern using my ipad and the amazing application Amaziograph. The result were quick to achieve and looked very interesting. Here are some exemples of the test that I did:



I then used Vector magic to vectorize one of these illustration for my embroidery test. Vector magic is an amazing vectorization software but it is quite pricey, if you are looking for something that those pretty much the same job without the cost, I would encourage you too look Vectorizer.

Once I had my design vectorize, I thread my embroidery machine and start the the test.



I love the results, I think I will integrate this kind of pattern repetition in my final curtain, I just still don't know what forms it will ultimately takes. Also, for those who wondering, The embroidery machine at the lab is a Entrepreneur ProX Entrepreneur Pro X by Brother it has 10 needle and works at amazing speeds, up to a point of 1000 thread per minutes. This is an amazing machine that works wireless and let me iterate easily and rapidly. The software I used to program my embroidery is PE-Design 11 , it is the official brothers software but for a cheaper alternative I would recommend SewArt wich has a simple enouph interface and works with the righ file extension (.pes).

Another Idea I had was to see if I could output the meteo by make my curtain rain, I did a very small test using neo-pixel and and again a simple embroidery. I bought some neopixel on amazon for very cheap and was curious to try the out, unfortunately they come in a underpad package wich means I had to solder cable extension on each pad to be able to wire them together and to my microcontroller. I made a simple test drawing where I iterate the rain drop and also the conductive thread for embroidery.




I've used the FastLed library and an arduino nano to program my neopixel, I tried to quicly wrote a little something that could look like rain, I'm not convinced with the result, I will have to do something a bit more clean before judging if this is an interesting alternative or not..



Final System





enclosing

I have to think about the system integration of my project. The electronics needs to be hidden in a compact design that will be hold beside my window. The design needs to be simple and efficient. I used Fusion 360 to create my design, and decided that I would 3D print my casing so that I can freely design without having to think about 3 axis machining.

For most of my component, I used Grabcad to facilitate my design. There are tons of very well designed 3D CAD that you can import into Fusion360.

I used my prusa i3 Mk3 to print the case, but since it's a pretty big print and it dosen't particulary needs to be super precise, I switch my 0.4 nozzle for a 0.8 one. Tweaking with settings I achieved to do a good print under 5 hours of print time. Here are the results:



Sountrack


The goal of this collaborative soundtrack is to create an ambiance in witch the people can contemplate and appreciate the light surrounding them. There is no better way to output emotions than via the vector of music. It is an artform that is accessible, intemporel and very triggering. We can understand music, nevermind the language it uses, and I think it fits perfectly this context of being globally in the search of a form of human interaction. I hope that for those who might stumble on this page, please please add a song to this playlist so that we can know we are not alone looking for light.



You can find all the files needed for this project here