Monday, May 13, 2013

a final reflection

project description : automated shading system for tillandsia

Tillandsia is really easy to take care of. These plants need minimal water, they don't require dirt and therefore don't require repotting... they just don't like direct sunlight. So, we fixed that part.


Using recycled light bulbs seemed to fit perfectly with the theme of "follow the light". It was also much cheaper than buying special pre-made terrariums (and more eco friendly!) In addition, the small enclosure provided a good 'greenhouse' in a way- when watered, it tends to get pretty humid within the light bulb, which tillandsia loves! These bulbs that our plants are kept in are half painted. This is to provide a side that the direct sunlight won't go through completely. We used two light sensors: one on the front, clear side, and one on the opaque, white back. The light sensor in the front continually tests for whether or not there is direct sunlight- and when there is, it will command the bulb to turn and hand over the command for sensor two (there's a wait for the duration of the turn to prevent antagonistic commands within that turn). From there, sensor two will test to see whether or not the direct sunlight has gone away- and when it has, the bulbs will turn back. The turning mechanism is a simple gear rack attached to a motor. This motor is set to 'pulse' in two ways: using the shaft encoders, the motor will turn 180 degrees in response to direct sunlight, and then back 180 degrees when the direct sunlight has gone away. 


We did run into quite a bit of trouble while creating all of this though (as indicated by our joyous cries at the fact that our project actually worked when showing it to people).

Among the things that we changed from the initial conception of our device was most notably the turning mechanism - originally we favored a pulley system over a rack and pinion system. But the rubber bands slipped a lot due to just the weight of our light bulbs, and getting the rubber bands on just right was hard enough... luckily, we were inspired by Lynn to replace our pulley system with simple gear train! Other than that, a lot of aspects of our device stayed pretty close to our initial prototype, with just some small changes in dimensions/design of the box-frame. Unfortunately, our program was very finnicky up to the day that we presented. Luckily it worked... We're still not sure what went wrong there. Depending on the day/configuration, the motor would not turn a complete 180, or would go above 180 - this changed from day to day, even without the plants being attached. We would have to change the power/distance/gains a few times before getting it to work again. Oddly, it favored the same inputs for gain/distance/power every time- but we had to change it, run it a few times, and then change it back for it to work... In addition, we tried multiple ways to try and slow down the speed of the turn, but unfortunately, NXT would not let us do that. The only way to slow down the NXT motor is to turn down the power - unfortunately, lower power = no movement for our system, since there was a lot of weight/torque/friction involved. But we got a lot of laughs and gasps of adoration at the sudden turn that our bulbs took, so I guess that's a plus. To be honest, we never really noticed how silly it looked. We were more frustrated by it I suppose...

Overall, there are many improvements that could be made if given more time. Things we were considering during this process were creating the box-frame out of wood for a better aesthetic; delrin just seemed like a sturdier fix. We were also considering making the gear/axle/bushings ourselves for better over all integration- with the legos + delrin in our prototype, there was a lot of torquing and in balance because the bushings wouldn't sit flat on the gear shelf. We also considered putting the entire thing on an actual curtain rod, since this is what our actual design called for... but PVC pipe is much cheaper. With our current design, the PVC pipe can easily be removed and the entire motor box/display can be put onto a curtain rod anyway.
The white "shielding" paint of our bulbs also has an undesired effect- you can't actually see the plants from the inside of the window ! However, acrylic paint was the best and cheapest option we had on our hands at the time (aka FREE and already on hand), and it demonstrated the point well enough. Ideally, we would perhaps coat it with a thin layer of spraypaint (more clear) or even perhaps tint it with tinted window paint (for cars? or sunglasses?).
Aesthetics aside, there is still one pretty big issue that we'd definitely like to fix given time. The turn of the bulbs is still slightly too fast for our liking. This can be easily fixed with a gear train to slow it down- the reason that we didn't do this is because we already had our gear support shelf printed out. An alternative solution would be to drive the system with a different motor that applied the same amount of power but turned at a slower rate. Either of these changes would make for a steadier motion, which would allow us to replace the (ANNOYING) piano wire with twine or hemp... for better aesthetics. (I'm a sucker for good looks I guess.)
Other add ons to our project would be perhaps a small solar panel array on the shelving box to power the entire system, which would make it very sustainable and much easier to go battery/cord free! In addition, we'd probably want to add a different controlling mechanism for deciding when to turn- instead of bang/bang control (aka, if it goes above a certain value, then turn), perhaps we'd have it check over a period of time to see what the change was like- if it was a cloudy, windy but sunny day, it wouldn't necessarily turn at a brief flash of bright sunlight. Another possible mechanism would be to add a temperature sensor and integrate those two things together.

Regardless of all the things we could have done, I'm very satisfied with my project. I feel accomplished, but it's great to know that there are so many possible ways of making this project even better. It was tiring and painful and frustrating, but the end product is something that I'm very proud of - and was very proud to show off during the exhibition!



All smiles! 

- Julia Um, Cabrina Kang, Julie Barron

Monday, May 6, 2013

FINALLY. FINALLY.

so, after our in class exhibition... we ran into a few problems.

EVERYTHING STOPPED WORKING. EVERYTHING.
The bulbs would turn when they weren't supposed to, they turned too far, they wouldn't turn when they should... the piano-wire suspension system was twisting and pulling in all the wrong ways... the hemp tied around the neck of the bulbs ripped... everything went wrong.

After a lot of frustration we figured out that the weird bulb movements were due to a problem with our soldering. The only problem was... we had already super glued everything.

shoot. me.

So a very long (and pretty) Saturday was spent indoors in the lab away from the nice sunshine ( i really wish the light tunnel project people had a working life-sized model that day), fixing EVERYTHING.
 Basically, we had to un-epoxy, unsuperglue, cut, rip, snip everything and then re do everything.
I'll skip the excruciating details... I already had to live through it once.

TO THE HAPPY ENDING.


Friday, May 3, 2013

putting it all together

After a few notch trials/printing... we finally got to put the whole thing together.

Over the weekend, Julie worked out the solidworks/laser printing, while I superglued the bushings to axles and assembled the gear shelf. I also replaced the hemp string that hung the bulbs with piano wire in order to get rid of the spinning bulb problem... which was basically a disaster waiting to happen (the spinning bulbs. and the bending/manipulation of piano wire... many nicks/cuts were sustained). Cabrina was brave and soldered our light sensors!

THE (SEMI) FINAL PRODUCT


Sunday, April 28, 2013

babysitting the plants

So gutting the bulbs might have been my favorite part of this project so far.
It involves a lot of broken glass/coaxing/brute force. One bulb broke in my hand because I squeezed it too hard (I had gloves on! and it was old). Another bulb got a hole punched through it due to an unwieldy blow with a screwdriver... you get the point. but I LOVED it.

anyway, Cabrina and Julie were away this weekend so it was my turn to baby sit our plants...




...which translates to instagram photoshoots. SO. CUTE.

Friday, April 26, 2013

looks like model IRL

Yay!


While I built our looks like model out of legos (so we could figure out good dimensions for the actual solidworks piece), Julie & Cabrina tried to fix the bug in our turning program with the added weights.

Here's a picture of me making it.


Thursday, April 25, 2013

looks like model sketch


solidworks side (x2)

**updated GEAR support shelf (x1)

motor/motherboard shelf

Tuesday, April 23, 2013

testing, testing, testing



programming.

The first thing that we had to program was to turn the motor, and thus the pulley, and thus the lightbulb-terrarium 180 degrees. This is our first shot at it, without really controlling the speed, other than having it proportional to keep it from wobbling back and forth once it completed the turn. We'll go back in a bit to work to change the speed, because as is, it'll probably be too fast of a turn which will cause the terrarium itself to spin and possibly get tangled and maybe hit each other and all sorts of undesirable stuff. But after testing a bunch of gains...


Now, to integrate these movement subprograms into the main light sensing program.


Choosing an arbitrary value for "direct sunlight" (values < 20), we programmed the motor to turn away. Once it turns away, it wait until the sensor on the opaque side of the bulb is no longer experiencing "direct sunlight". The wait is in there because once it begins to turn away and goes into the 'then' subloop, sensor 3 will begin picking up that it isn't in direct sunlight, because the bulb has JUST begun to turn, so of course it isn't experiencing direct sunlight yet. A wait for the amount of time it takes for the bulb to turn keeps this from happening.