<div dir="ltr"><p>Hi Chris,</p><p>I had a chance to try out the visual aspect of what you are describing on a Raspberry Pi and it was pleasantly easy! The code was written in Python on a stock install of the operating system 'Rasbian', I simply turned on the Pi, wrote the code and ran it - didn't have to install anything else!</p>
<p>The code displays 5 'breaths', each cycle lasts 2 seconds going from black to full white. If you had the Pi connected to a projector as your 'light' I believe this could work nicely. There are some artifacts as the colour changes because I am simply refreshing the screen really fast, but if you have you canvas to act as a diffuser I don't think you would see them.</p>
<p><a href="https://www.youtube.com/watch?v=QjOoXHBC5Ic&feature=youtube_gdata_player" target="_blank">https://www.youtube.com/watch?v=QjOoXHBC5Ic</a></p><p>Have you picked your sensor yet?</p><p>Cheers!</p><p>Kirk</p>
<div class="gmail_quote">On Mar 22, 2013 9:03 AM, "Kirk Sutherland" <<a href="mailto:kirk.sutherland@gmail.com" target="_blank">kirk.sutherland@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p>I second the raspberry pi as a projector controller! Its cheap, projectors are bright (and can be borrowed!), and I don't think the code would be that hard. You will have to use some external controller with the Pi if the sensor is analog as the pi has only digital io. I could try out some simple code tonight to see if the video part is possible without getting into opengl code :)<br>
Cheers!<br>
Kirk</p>
<div class="gmail_quote">On Mar 21, 2013 9:21 PM, "Henri Kuschkowitz" <<a href="mailto:henri.kuschkowitz@gmail.com" target="_blank">henri.kuschkowitz@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">Hey Chris,<div><br></div><div>I know you already received tons of ideas, but i was thinking about a mini fan put somewhere between parts of the tube (maybe after the bacteria filter) and you then just measure the speed of it to determine the power for your lights?</div>
<div><br></div><div><div>For the question regarding lights, there are hundreds of controllable led strips out there that could suit your needs. or maybe EL solutions (though it would cost you more i think) like this: <a href="https://www.sparkfun.com/products/10800" target="_blank">https://www.sparkfun.com/products/10800</a></div>
</div><div><br></div><div>Also, you can dim a projector simply by projecting grey scale images… which means a raspberry pi connected to the sensor could be a neat solution.</div><div><br></div><div>Just my 2 cents.</div>
<div>
<br></div><div><br></div><div>Cheers and good luck,</div><div>Henri</div><div><br><div><div>On 2013-03-21, at 5:46 PM, The Big Plan - Chris B wrote:</div><br><blockquote type="cite"><div style="word-wrap:break-word"><div>
<br></div><div>Hi Modlabbers,</div><div><br></div><div>Thanks for all the interest in my art installation! </div><div><br></div><div>So far it looks like the pressure sensor idea is the one I'm leaning towards. Having a microphone detect the ventilator breaths sounds more finicky to me. </div>
<div><br></div><div>Still trying to figure out how to back light the canvas. Would a projector work instead of using LED lighting? Can a projector</div><div>be connected to the pressure sensor set up to do the variable dimming? </div>
<div><br></div><div>Club SAW has 3 projectors available: </div><div><br></div><div>Panasonic PTAX200U HD Video Projector</div><div>16mm Projector</div><div>35mm Projector</div><div><br></div><div>As for a timeline / schedule. If I could do this in May / June that would be great but it may be more realistic to wait until September.</div>
<div><br></div><div>Here's a photo of the painting below. It's about 7 by 11 feet:</div><div><br></div><div>Thanks,</div><div>Chris</div><div><br></div><div><span><2012-11-12 14.51.55.jpg></span></div><div>
<br>
</div><div><br></div><div><br></div><div><br></div><br><div><div>On 15-Mar-13, at 8:41 AM, Michael Sepa wrote:</div><br><blockquote type="cite"><div style="word-wrap:break-word"><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<span style="font-family:monospace">Chris,</span></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><span style="font-family:monospace"><br></span></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<span style="font-family:monospace">The clarification of the project really helps out. I looked up the manual for the Puritan Bennet LP10 (<a href="http://www.meql.com/Manuals/Puritan-Bennett-LP6-Plus-and-10-Ops-Manual.pdf" target="_blank">http://www.meql.com/Manuals/Puritan-Bennett-LP6-Plus-and-10-Ops-Manual.pdf</a>) in the hope that there would be a simple electronic monitor connector on the back that you could hook into, but no such luck. There are pressure alarms that can be set and a remote alarm connection on the back of the machine, but you'll get audible alarms off the machine at the same time. Not what you intend.</span></blockquote>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><span style="font-family:monospace"><br></span></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><font face="monospace">One approach would be to do the following:</font></blockquote>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><font face="monospace"><br></font></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><font face="monospace">1. Lights start off, no ventilator pressure</font></blockquote>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><font face="monospace">2. Ventilator turns on, a microphone beside the patient air tube senses flow</font></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<font face="monospace">3. Arduino detects change from microphone</font></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><font face="monospace">4. Arudino uses pulse width modulation[2] to brighten an LED array from off to full on in 1.5s, and holds</font></blockquote>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><font face="monospace">5. Ventilator turns off</font></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><font face="monospace">6. Microphone detects stop of flow from patient air tube</font></blockquote>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><font face="monospace">7. Arduino uses pulse width modulation to dim an LED array from current level to off in 1.5s and holds</font></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<font face="monospace"><br></font></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><span style="font-family:monospace">[1] pulse width modulation is just a fancy way to say turn on/off the LED array fast enough to control brightness. This is built into the Arduino system, so it's very easy.</span></blockquote>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><span style="font-family:monospace"><br></span></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><span style="font-family:monospace">Connecting to and dimming an LED array with an Arduino is well understood. No issues there.</span></blockquote>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><span style="font-family:monospace"><br></span></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><font face="monospace">The microphone will require an amp chip to get it producing a signal the Arduino can easily read. If we can find a pre-made microphone and amp, then it will be all so much easier.</font></blockquote>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><font face="monospace"><br></font></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><font face="monospace">The programming of the system would be straight forward. Certainly less than a day of effort.</font></blockquote>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><font face="monospace"><br></font></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><font face="monospace">The system would work well if the room was reasonably quiet. If there was other noise it might trigger the microphone causing premature light adjustment. A better approach would be to use a pressure sensor. I checked ebay and see several pressure sensors available, all use I2C interfaces. That would take a bit more programming effort, but certainly less than a day or two.</font></blockquote>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><font face="monospace"><br></font></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><font face="monospace">If you go with a pressure sensor, we'd need to makes sure the sensor has the right range to sense the ventilator pressure. That I couldn't get from the quick ebay search because they don't usually publish specs with sale items. I'm confident we could find an appropriate one on ebay, spark fun, or somewhere else.</font></blockquote>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><font face="monospace"><br></font></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><font face="monospace">As for your budget, I'd think you should have no issues buying all the tech plus paying someone a small honorarium for helping you program it all.</font></blockquote>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><font face="monospace"><br></font></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><font face="monospace">My big question would be what's your schedule?</font></blockquote>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><font face="monospace"><br></font></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><span style="font-family:monospace">-Michael Sepa</span></blockquote>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><span style="font-family:monospace"><br></span></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><span style="font-family:monospace"><br>
</span></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><span style="font-family:monospace">Date: Thu, 14 Mar 2013 17:49:08 -0400<br></span><span style="font-family:monospace">From: The Big Plan - Chris B <</span><span style="font-family:monospace"><a href="mailto:tbp@ghostwise.com" target="_blank">tbp@ghostwise.com</a></span><span style="font-family:monospace">><br>
</span><span style="font-family:monospace">To:</span><span style="font-family:monospace"> </span><span style="font-family:monospace"><a href="mailto:lab@artengine.ca" target="_blank">lab@artengine.ca<br></a></span><span style="font-family:monospace">Subject: Re: [Lab] Controlling Light with Sound<br>
</span><span style="font-family:monospace">Message-ID: <</span><span style="font-family:monospace"><a href="mailto:F3148EB9-8831-464E-92AA-2144AB15E72B@ghostwise.com" target="_blank">F3148EB9-8831-464E-92AA-2144AB15E72B@ghostwise.com</a></span><span style="font-family:monospace">><br>
</span><span style="font-family:monospace">Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes</span><span style="font-family:monospace"><br></span><span style="font-family:monospace"><br></span><span style="font-family:monospace">Hi everyone,</span><span style="font-family:monospace"><br>
</span><span style="font-family:monospace">Thanks for the awesome replies so far. I think I should clarify my <br></span><span style="font-family:monospace">intentions:</span><span style="font-family:monospace"><br></span><span style="font-family:monospace">My plan is to suspend a loose canvas that is approximately 7 by 11 <br>
</span><span style="font-family:monospace">feet on an angle from the ceiling.</span><span style="font-family:monospace"><br></span><span style="font-family:monospace">I would like to put lighting behind it (I don't know what lighting to <br>
</span><span style="font-family:monospace">use or whether it<br></span><span style="font-family:monospace">should be a set of lights). The rest of the room will be dark.</span><span style="font-family:monospace"><br></span><span style="font-family:monospace">A ventilator (Puritan Bennett LP10) will be on the floor. Every breath <br>
</span><span style="font-family:monospace">of the ventilator<br></span><span style="font-family:monospace">should cause the lights to turn on in a gradual way and then dim dark <br></span><span style="font-family:monospace">as the breath<br>
</span><span style="font-family:monospace">ends. Each breath should take about 1.2-1.5 seconds.</span><span style="font-family:monospace"><br></span><span style="font-family:monospace">I like the idea of an Arduino or Raspberry Pi controlling the lighting.</span><span style="font-family:monospace"><br>
</span><span style="font-family:monospace">It sounds like I will also need a mic by the ventilator.</span><span style="font-family:monospace"><br></span><span style="font-family:monospace">Finally, I have zero programming experience or overall technical <br>
</span><span style="font-family:monospace">experience to do this. I'm the artist<br></span><span style="font-family:monospace">with a vision. I would appreciate assistance from anyone interested in <br></span><span style="font-family:monospace">this project.</span><span style="font-family:monospace"><br>
</span><span style="font-family:monospace">It would be great if it could be done on a $250-500 budget.</span><span style="font-family:monospace"><br></span><span style="font-family:monospace">Thanks in advance,</span><span style="font-family:monospace"><br>
</span><span style="font-family:monospace">Chris</span><span style="font-family:monospace"><br></span><span style="font-family:monospace">On 14-Mar-13, at 4:11 PM, The Big Plan - Chris B wrote:</span><span style="font-family:monospace"><br>
</span><blockquote type="cite" style="font-family:monospace"><br></blockquote><blockquote type="cite" style="font-family:monospace">Hi!</blockquote><blockquote type="cite" style="font-family:monospace"><br></blockquote><blockquote type="cite" style="font-family:monospace">
Looking for some advice for an art installation. I'd like to have a </blockquote><blockquote type="cite" style="font-family:monospace">light or set of lights respond to an auditory</blockquote><blockquote type="cite" style="font-family:monospace">
input. I'd like the lights to turn on in time with the sound of a </blockquote><blockquote type="cite" style="font-family:monospace">ventilator (a medical one). So when the ventilator is</blockquote><blockquote type="cite" style="font-family:monospace">
not doing a breath, the lights would be off, but then when the </blockquote><blockquote type="cite" style="font-family:monospace">ventilator starts doing a breath they would</blockquote><blockquote type="cite" style="font-family:monospace">
turn on for the duration of the breath. I'd like the lights to light </blockquote><blockquote type="cite" style="font-family:monospace">up and dim gradually, not just on an off.</blockquote><blockquote type="cite" style="font-family:monospace">
<br></blockquote><blockquote type="cite" style="font-family:monospace">What's a simple or best way to do this?</blockquote><blockquote type="cite" style="font-family:monospace"><br></blockquote><blockquote type="cite" style="font-family:monospace">
Thanks!</blockquote><blockquote type="cite" style="font-family:monospace"><br></blockquote><blockquote type="cite" style="font-family:monospace">Chris</blockquote><blockquote type="cite" style="font-family:monospace"><br>
</blockquote><blockquote type="cite" style="font-family:monospace">_______________________________________________</blockquote><blockquote type="cite" style="font-family:monospace">Lab mailing list</blockquote><blockquote type="cite" style="font-family:monospace">
<a href="mailto:Lab@artengine.ca" target="_blank">Lab@artengine.ca</a></blockquote><blockquote type="cite" style="font-family:monospace"><a href="http://artengine.ca/mailman/listinfo/lab" target="_blank">http://artengine.ca/mailman/listinfo/lab</a></blockquote>
</blockquote><span style="font-family:monospace"><br></span></div>_______________________________________________<br>Lab mailing list<br><a href="mailto:Lab@artengine.ca" target="_blank">Lab@artengine.ca</a><br><a href="http://artengine.ca/mailman/listinfo/lab" target="_blank">http://artengine.ca/mailman/listinfo/lab</a><br>
</blockquote></div><br></div>_______________________________________________<br>Lab mailing list<br><a href="mailto:Lab@artengine.ca" target="_blank">Lab@artengine.ca</a><br><a href="http://artengine.ca/mailman/listinfo/lab" target="_blank">http://artengine.ca/mailman/listinfo/lab</a><br>
</blockquote></div><br></div></div><br>_______________________________________________<br>
Lab mailing list<br>
<a href="mailto:Lab@artengine.ca" target="_blank">Lab@artengine.ca</a><br>
<a href="http://artengine.ca/mailman/listinfo/lab" target="_blank">http://artengine.ca/mailman/listinfo/lab</a><br>
<br></blockquote></div>
</blockquote></div>
</div>